20 |
$sth->execute(); |
$sth->execute(); |
21 |
global $menu_item; |
global $menu_item; |
22 |
if ($row=$sth->fetchrow_hash()) { |
if ($row=$sth->fetchrow_hash()) { |
23 |
$menu_item=$row[0]; |
$menu_item=str_replace("\\n"," ",$row[0]); |
24 |
} |
} |
25 |
|
|
26 |
// generate random numbers of pictures on top-right corner |
// generate random numbers of pictures on top-right corner |
30 |
|
|
31 |
// parse /preview url |
// parse /preview url |
32 |
|
|
33 |
|
global $visible_is_true; |
34 |
|
|
35 |
$preview_url="/preview"; |
$preview_url="/preview"; |
36 |
if (substr($globals[request_uri],0,strlen($preview_url)) == $preview_url) { |
if (substr($GLOBALS[REQUEST_URI],0,strlen($preview_url)) == $preview_url) { |
37 |
$is_preview=1; |
$is_preview=1; |
38 |
$visible_is_true = "true"; // visible can be true or false |
$visible_is_true = "true"; // visible can be true or false |
39 |
} else { |
} else { |