관리-도구
편집 파일: header.php
<?php ?> <meta name="google-site-verification" content="RKzrdLhC6edq4f8eD833cC-jQQ2Wm44MD3rvwFMt4SQ" /> <!-- HTML Meta Tags Section --> <meta name="google-site-verification" content="srrZorFvfvhPZK7ggvyQlqpvAFT7U57k47D9dk4y2Ms" /> <meta name="google-site-verification" content="srrZorFvfvhPZK7ggvyQlqpvAFT7U57k47D9dk4y2Ms" /> <meta name="google-adsense-account" content="ca-pub-3762310231241357"> <meta name="google-adsense-account" content="ca-pub-1055822521704275"> <meta name="google-adsense-account" content="ca-pub-8570739564265818"> <meta name="google-adsense-account" content="ca-pub-8926441399234978"> <meta name="google-adsense-account" content="ca-pub-8950314044987606"> <meta name="google-adsense-account" content="ca-pub-1279468285610719"> <meta name="google-adsense-account" content="ca-pub-1873396415576831"> <meta name="google-adsense-account" content="ca-pub-9955105207105487"> <meta name="google-adsense-account" content="ca-pub-8642022903353717"> <meta name="google-adsense-account" content="ca-pub-1699141433509641"> <meta name="google-adsense-account" content="ca-pub-3050850488818805"> <meta name="google-adsense-account" content="ca-pub-8124205091602343"> <meta name="google-adsense-account" content="ca-pub-9469671069554772"> <meta name="google-adsense-account" content="ca-pub-8499556635245839"> <meta name="google-adsense-account" content="ca-pub-3968089840650849"> <meta name="google-adsense-account" content="ca-pub-8694526550243103"> <meta name="google-adsense-account" content="ca-pub-1957788115041149"> <meta name="google-adsense-account" content="ca-pub-7298047004635437"> <meta name="google-adsense-account" content="ca-pub-6065180453946703"> <meta name="google-adsense-account" content="ca-pub-9984037693540362"> <meta name="google-adsense-account" content="ca-pub-6879528266348356"> <meta name="google-adsense-account" content="ca-pub-9994377940296134"> <meta name="google-adsense-account" content="ca-pub-6262214030448140"> <meta name="google-adsense-account" content="ca-pub-5939181334267987"> <meta name="google-adsense-account" content="ca-pub-8524694509032101"> <meta name="google-adsense-account" content="ca-pub-9143685205233556"> <meta name="google-adsense-account" content="ca-pub-8390081552838451"> <meta name="google-adsense-account" content="ca-pub-6558172030469438"> <meta name="google-adsense-account" content="ca-pub-7128822474924278"> <meta name="google-adsense-account" content="ca-pub-5451647207984304"> <meta name="google-adsense-account" content="ca-pub-8025988589650254"> <meta name="google-adsense-account" content="ca-pub-9273964405927118"> <meta name="google-adsense-account" content="ca-pub-1051440704074849"> <meta name="google-adsense-account" content="ca-pub-6658971591521740"> <meta name="google-adsense-account" content="ca-pub-5900822955136842"> <meta name="google-adsense-account" content="ca-pub-6619849218338612"> <meta name="google-adsense-account" content="ca-pub-6507579848341300"> <meta name="google-adsense-account" content="ca-pub-1255250633334228"> <meta name="google-adsense-account" content="ca-pub-5438363946346983"> <meta name="google-adsense-account" content="ca-pub-5681027876363245"> <meta name="google-adsense-account" content="ca-pub-4219594856381529"> <meta name="google-adsense-account" content="ca-pub-5570253126503681"> <meta name="google-adsense-account" content="ca-pub-7044952060866279"> <meta name="google-adsense-account" content="ca-pub-9196775802009409"> <meta name="google-adsense-account" content="ca-pub-7231356456572319"> <meta name="google-adsense-account" content="ca-pub-4721200014324820"> <meta name="google-adsense-account" content="ca-pub-3499402448667365"> <meta name="google-adsense-account" content="ca-pub-3063400471277027"> <meta name="google-adsense-account" content="ca-pub-9261735143833720"> <meta name="google-adsense-account" content="ca-pub-4525755039315199"> <meta name="google-adsense-account" content="ca-pub-7687671981715416"> <meta name="google-adsense-account" content="ca-pub-9292686954189080"> <meta name="google-adsense-account" content="ca-pub-5120844772890103"> <meta name="google-adsense-account" content="ca-pub-8788981552418451"> <meta name="google-adsense-account" content="ca-pub-2753288121690286"> <meta name="google-adsense-account" content="ca-pub-2306078840330929"> <?php if ( is_logged() ) { $themeData['header_user_avatar'] = getAvatar($userData['avatar_id'], $userData['gender'], 'thumb'); $themeData['user_panel_xp'] = numberFormat($userData['xp']); $themeData['csrf_logout_token'] = \GameMonetize\CSRF::set(3, 3600); } $themeData['website_name'] = $_SERVER['HTTP_HOST']; $date = date('Ymdms'); $date = strtotime($date); $themeData['cms'] = "<script src='https://api.gamemonetize.com/cms.js?". $date . "'></script>"; $themeData['cookie'] = ( $config['ads_status'] ) ? '<script type="text/javascript"> window.cookieconsent_options = { "message":"This website uses cookies to ensure you get the best experience on our website.","dismiss":"Got it!","learnMore":"Learn more","link":"/privacy","target":"_blank","theme":"dark-bottom" }; </script> <script type="text/javascript" src="'. $config['theme_path'].'/js/cookieconsent.min.js"></script>' : ''; $themeData['header_class_access_menu'] = ( is_logged() ) ? '_rP5':''; $themeData['header_panel_menu_admin'] = ( is_logged() && $userData['admin'] == 1 ) ? \GameMonetize\UI::view('header/header_panel_menu_admin') : ''; if($_GET['p'] != 'login') { if( $userData['admin'] == 0 || $_GET['p'] == 'play' || $_GET['p'] == 'new-games' || $_GET['p'] == 'search' || $_GET['p'] == 'terms' || $_GET['p'] == 'privacy' || $_GET['p'] == 'about' || $_GET['p'] == 'categories' || $_GET['p'] == 'best-games' || $_GET['p'] == 'featured-games' || $_GET['p'] == 'played-games' || is_page('home')) { $json = file_get_contents( 'https://api.gamemonetize.com/cms.json' ); $arr = json_decode($json, true); $domain = $_SERVER['HTTP_HOST']; $domain = preg_replace('#^(http(s)?://)?w{3}\.#', '$1', $domain); try { foreach($arr['response']['games'] as $game) { if($game['domain'] === $domain) { header("Location: https://gamemonetize.com?utm_source=blockedcms&domain=". $domain); break; } } } catch (Exception $e) { } $sql_cat_query = $GameMonetizeConnect->query("SELECT * FROM ".CATEGORIES); $ct_r = ''; while($category = $sql_cat_query->fetch_array()) { $themeData['category_id'] = $category['id']; $themeData['category_name'] = $category['name']; $numbergames = $GameMonetizeConnect->query("SELECT COUNT(*) FROM " . GAMES ." where category=".$category['id']); $numbergames = $numbergames->fetch_array()[0]; $themeData['category_number'] = $numbergames; $themeData['category_url'] = siteUrl() . '/category/' . slugify($category['name']); $ct_r .= \GameMonetize\UI::view('category/categories-list-2'); } $themeData['categories_list_2'] = $ct_r; $themeData['category_content'] = \GameMonetize\UI::view('category/categories-2'); $themeData['config_this_year'] = date("Y"); $whitelist = array( '127.0.0.1', '::1' ); $themeData['load_more_url'] = ""; if(!in_array($_SERVER['REMOTE_ADDR'], $whitelist)){ $themeData['load_more_url'] = ""; } else { $themeData['load_more_url'] = siteUrl(); } $themeData['footer_content'] = \GameMonetize\UI::view('footer/content'); $themeData['header'] = \GameMonetize\UI::view('header/content'); } } if($_GET['p'] == 'login') { $themeData['header_panel_dropdown'] = ( is_logged() ) ? \GameMonetize\UI::view('header/header_user_panel') : ''; // $themeData['footer_content'] = \GameMonetize\UI::view('footer/content_admin'); }