'; $ru_lang_button = '
  • '; $ua_lang_button = '
  • '; if ($lang == 'ru') { $lang_buttons = $en_lang_button . $ua_lang_button; $forum_lang = 2; $title_query = 'ru_title'; $introduction_query = 'ru_introduction'; $content_query = 'ru_content'; $views_query = 'ru_views'; $draft_query = 'ru_draft'; } elseif ($lang == 'ua') { $lang_buttons = $ru_lang_button. $en_lang_button; $forum_lang = 2; $title_query = 'ua_title'; $introduction_query = 'ua_introduction'; $content_query = 'ua_content'; $views_query = 'ua_views'; $draft_query = 'ua_draft'; } else { $lang = 'en'; $lang_buttons = $ru_lang_button . $ua_lang_button; $forum_lang = 1; $title_query = 'en_title'; $introduction_query = 'en_introduction'; $content_query = 'en_content'; $views_query = 'en_views'; $draft_query = 'en_draft'; } require 'localization/ui_'.$lang.'.php'; require 'localization/content_'.$lang.'.php'; require 'config/database.php'; require 'common_parts/date_localization.php'; if ($tab == 'post') { $result = $mysqli->query(" SELECT time, $title_query, $content_query, $introduction_query, $views_query, banner FROM blog WHERE id='$id' AND draft=0 AND deleted=0"); $data = $result->fetch_assoc(); $time = $data['time']; $title = $data[$title_query]; $content = $data[$content_query]; $introduction = $data[$introduction_query]; $banner = $data['banner']; if ($banner == NULL) { $banner = ''; } else { $banner = 'http://www.cossacks3.com/cdn/'.$banner; } } else { echo ''; } ?> GSC Game World

    '.$menu_about.'

    '.$about_text.'

    '.$menu_games.'

    '.$games_text_new.'

    '.$games_text_old.'

    '; $number = 1; while ($number < 16) { if ($number < 10) { $number1 = '0'.$number; } else { $number1 = $number; } echo ''; $number++; } echo '
    '; $number = 1; while ($number < 16) { if ($number < 10) { $number1 = '0'.$number; } else { $number1 = $number; } if (${'game'.$number1.'_site_url'} != NULL) { ${'game'.$number1.'_site_url'} = ''; } if (${'game'.$number1.'_steam_url'} != NULL) { ${'game'.$number1.'_steam_url'} = ''; } echo ''; $number++; } echo '

    '.$menu_contact.'

    '.$contact_text1.'


    '.$contact_text2.'

    '; } elseif ($tab == 'blog') { echo '
    '; $result = $mysqli->query(" SELECT id, time, $title_query, $content_query, $introduction_query, banner, $views_query, $draft_query FROM blog WHERE $draft_query='0' AND deleted='0' ORDER BY time DESC "); while ($data = $result->fetch_assoc()) { $id = $data['id']; $time = $data['time']; $title = $data[$title_query]; $introduction = $data[$introduction_query]; $content = $data[$content_query]; $views = $data[$views_query]; $draft = $data[$draft_query]; $banner = $data['banner']; if ($banner != NULL) { $banner = ''; } $date = date('d F Y', $time); //$date = str_replace("."," in ",$date); if ($draft == 0) { $date = localizationDateFormat ($lang, $date); echo '

    '.$title.'

    '.$date.'

    '.$banner.'
    '.$introduction.'
    '.$readmore.'
    '; } else { echo ''; } } echo '
    '; } elseif ($tab == 'post') { echo '
    '; $result = $mysqli->query(" SELECT time, $title_query, $content_query, $introduction_query, $views_query, banner, $draft_query FROM blog WHERE id='$id' AND $draft_query=0 AND deleted=0"); $data = $result->fetch_assoc(); $time = $data['time']; $title = $data[$title_query]; $content = $data[$content_query]; $introduction = $data[$introduction_query]; $banner = $data['banner']; if ($banner != NULL) { $banner = ''; } $views = $data[$views_query] + 1; $draft = $data[$draft_query]; if ($draft == NULL) { $draft = 1; } $date = date('d F Y', $time); //$date = str_replace("."," in ",$date); if ($draft == 0) { $date = localizationDateFormat ($lang, $date); echo '

    '.$title.'

    '.$date.'

    '.$banner.'
    '.$introduction.' '.$content.'
    '; $mysqli->query("UPDATE blog SET $views_query='$views' WHERE id='$id'"); echo '
    '; } else { echo '








    '.$nopost.'










    '; } echo '
    '; } elseif ($tab == 'post_draft') { echo '
    '; $result = $mysqli->query(" SELECT time, $title_query, $content_query, $introduction_query, $views_query, banner FROM blog WHERE id='$id' AND deleted=0"); $data = $result->fetch_assoc(); $time = $data['time']; $title = $data[$title_query]; $content = $data[$content_query]; $introduction = $data[$introduction_query]; $banner = $data['banner']; if ($banner != NULL) { $banner = ''; } $views = $data[$views_query] + 1; $date = date('d F Y', $time); //$date = str_replace("."," in ",$date); $date = localizationDateFormat ($lang, $date); echo '

    '.$title.'

    '.$date.'

    '.$banner.'
    '.$introduction.' '.$content.'
    '; } elseif ($tab == 'feedback') { $action = $_REQUEST['action']; if ($action == 'subscribe') { $feedback = $subscribe; } elseif ($action == 'emailexist') { $feedback = $emailexist; } elseif ($action == 'wrongemail') { $feedback = $wrongemail; } elseif ($action == 'message') { $feedback = $message; } elseif ($action == 'verification') { $feedback = $verification; } elseif ($action == 'verificationexist') { $feedback = $verificationexist; } echo '









    '.$feedback.'









    '; } ?> '; ?> "; ?>