X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=photo-tags.git;a=blobdiff_plain;f=index.php;h=34efdc480c66992d3f578ea421617b727b16f308;hp=d3d569f3eba56612598a68bd029ee6b58ade19f7;hb=d8bcd598e8ebc02ee3c7e27cd4634bf5678e51f1;hpb=01394769937f108ee0f3a8077b34bb5fc9bffe24 diff --git a/index.php b/index.php index d3d569f..34efdc4 100644 --- a/index.php +++ b/index.php @@ -7,76 +7,236 @@ $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: + +
+ +
+ +