X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=photo-tags.git;a=blobdiff_plain;f=index.php;h=9e4bc15546a3a6bc1908984faae31c1b06720afa;hp=3014924484f2de1ddbc4fa3cf40959da0ea277e0;hb=f67eb9ff75179fa5f2a0d712fdca918308ec17ea;hpb=d057c592ea7adea11dd8584570fb70540758343a diff --git a/index.php b/index.php index 3014924..9e4bc15 100644 --- a/index.php +++ b/index.php @@ -5,77 +5,272 @@ $webbase=$iniarray["webbase"]; $dbprefix=$iniarray["dbprefix"]; $admin=$iniarray["admin"]; $title=$iniarray["title"]; +$N=$iniarray["pics_per_page"]; /* end parse ini-file */ + +/* parse flags */ +if(isset($_REQUEST["page"])) + $page = intval($_REQUEST["page"]); +else + $page = 1; + +if(isset($_REQUEST["tag"])) + $tags = htmlentities($_REQUEST["tag"]); +else + $tags = ""; + +if(isset($_REQUEST["pic"])) + $pic = intval(htmlentities($_REQUEST["pic"])); +else + $pic = -1; +/* end parse flags */ + +/* The basic layout */ ?> + <?php echo htmlspecialchars($title) ?> - - - + + + -
test
+

- - + + + -
+
+
+ Add tag: + + +
+ Current tags: + +
+ +
+ +