'site', 'link_list'=>'link_list', 'search_results'=>'search_results' );
if( in_array( $_GET['page'], $page_values_used_here ) ){
include( 'include/dbconnect.php' );
}
if( $_GET['page'] == $page_values_used_here['site'] ){
if( isset( $_GET['culture-id'] ) ){
$linkID = (int)$_GET['culture-id'];
if( !empty( $linkID ) ){
$res = mysql_query('select title, keywords, descr from link where linkID=' . $linkID . ' limit 1');
$row = mysql_fetch_object( $res );
$meta_added=1;
echo '
' . $row->title . ''."\n";
echo ''."\n";
echo ''."\n";
echo ''."\n";
}
}
}elseif( $_GET['page'] == $page_values_used_here['link_list'] ){
$sec_prefixes_FROM_child_TO_parent = array( 'subsub', 'sub', '' );
foreach($sec_prefixes_FROM_child_TO_parent as $curr_sec_prefix){
if( isset( $_GET[$curr_sec_prefix . 'secID'] ) ){
$secID = (int)$_GET[$curr_sec_prefix . 'secID'];
$res = mysql_query('select * from ' . $curr_sec_prefix . 'section where ' . $curr_sec_prefix . 'secID=' . $secID . ' limit 1');
$row = mysql_fetch_object( $res );
$categories_history_FROM_child_TO_parent[] = $row->name;
}
}
$categories_history_str=join(' :: ',$categories_history_FROM_child_TO_parent);
$meta_added=1;
echo '' . $categories_history_str . ''."\n";
echo ''."\n";
echo ''."\n";
echo ''."\n";
}elseif( $_GET['page'] == $page_values_used_here['search_results'] && isset( $_GET['str'] ) ){
$meta_added=1;
echo '' . $_GET['str'] . ''."\n";
echo ''."\n";
echo ''."\n";
echo ''."\n";
}
}
if( !$meta_added ){
?>
Каталог
|
|
Сайтът е част от |
|