--- inc/conn.inc 2001/06/25 09:57:25 1.1.1.1 +++ inc/conn.inc 2001/11/20 08:48:14 1.7 @@ -1,7 +1,9 @@ execute(); global $menu_item; if ($row=$sth->fetchrow_hash()) { - $menu_item=$row[0]; + $menu_item=str_replace("\\n"," ",$row[0]); } + // generate random numbers of pictures on top-right corner + $rnd=range(1,5); + srand(time()); + shuffle($rnd); + + // parse /preview url + + global $visible_is_true; + + $preview_url="/preview"; + if (substr($GLOBALS[REQUEST_URI],0,strlen($preview_url)) == $preview_url) { + $is_preview=1; + $visible_is_true = "true"; // visible can be true or false + } else { + $visible_is_true = "visible is true"; // limit output just to visible + } ?>