query("SELECT * FROM $table_themes WHERE title='$theme_theme'"); $theme_sql = $connect->query("SELECT * FROM $table_themes $active ORDER BY RAND()"); $theme_info = $theme_sql->fetch_array(); if($_SERVER['REQUEST_URI'] == '/' || $_SERVER['REQUEST_URI'] == '/index.php'){ $logo = unserialize($theme_info['photo']); $logo = $logo[0]; $color_menu = $theme_info['background']; }else{ $logo = './img/logo_new.png'; $color_menu = 'black'; } $header_back = $theme_info['background_img']; ?>
prepare("UPDATE global_media SET update_time='$update_time'"); $upd_sql->execute(); }?>
prepare("SELECT * FROM $table_about WHERE order_row = :num"); $num = 100; $about->bindParam(':num', $num); $about->execute(); while($src = $about->fetch()){ $photo = unserialize($src['photo']); $title_arr = explode(',',$src['title']); $title_first = $title_arr[0]; $title_second= $title_arr[1]; $desc_arr = explode('/',$src['description']); $desc_1 = $desc_arr[0]; $desc_2 = $desc_arr[1]; $desc_3 = $desc_arr[2]; ?>
,