Tue Jan 30 11:58:57 PST 2007
- Previous message: [Slony1-commit] slony1-www/content frontpage.txt
- Next message: [Slony1-commit] slony1-www/content frontpage.txt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-www
In directory main:/tmp/cvs-serv23204
Modified Files:
index.php
Log Message:
Extra info for frontpage
Index: index.php
===================================================================
RCS file: /home/cvsd/slony1/slony1-www/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** index.php 30 Jan 2007 19:23:18 -0000 1.2
--- index.php 30 Jan 2007 19:58:55 -0000 1.3
***************
*** 35,38 ****
--- 35,56 ----
}
echo layout_introblock($title,$link,$text);
+
+ $fp = fopen('./content/frontpage.txt','r');
+ if ($fp){
+ $text="";
+ while (!feof($fp)){
+ $buf=fgets($fp,256);
+ if (strpos($buf,'---')!==false){
+ if ($text != "") echo layout_defaultblock($title,$link,$text);
+ $text = "";
+ $title = @fgets($fp,256);
+ $link = @fgets($fp,256);
+ } else {
+ $text .= $buf;
+ }
+ }
+ fclose($fp);
+ }
+
echo layout_leftcol_stop();
echo layout_rightcol_start();
- Previous message: [Slony1-commit] slony1-www/content frontpage.txt
- Next message: [Slony1-commit] slony1-www/content frontpage.txt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list