9 |
exit; |
exit; |
10 |
} |
} |
11 |
|
|
12 |
$url=basename($PHP_SELF)."?$QUERY_STRING"; |
$sql_section=""; |
13 |
$sth = $dbh->prepare("select item from menu where url = '$url'"); |
|
14 |
|
$url=basename($PHP_SELF); |
15 |
|
if ($QUERY_STRING) $url.="?$QUERY_STRING"; |
16 |
|
|
17 |
|
if ($section) $sql_section=" and section='$section'"; |
18 |
|
|
19 |
|
$sth = $dbh->prepare("select item from menu where url = '$url' $sql_section limit 1"); |
20 |
$sth->execute(); |
$sth->execute(); |
21 |
global $menu_item; |
global $menu_item; |
22 |
if ($row=$sth->fetchrow_hash()) { |
if ($row=$sth->fetchrow_hash()) { |