<?php
 defined('MYARCADE_VERSION') or die(); function F8A0E7CC1D9F5AA5E4EA9485D1E8C34EC() { global $wpdb; $R60271EA909F79D6F27D857A9DEFC17C9 = ''; if( $wpdb->supports_collation() ) { if( !empty($wpdb->charset) ) $R60271EA909F79D6F27D857A9DEFC17C9 = "DEFAULT CHARACTER SET ".$wpdb->charset; if( !empty($wpdb->collate) ) $R60271EA909F79D6F27D857A9DEFC17C9.= " COLLATE ".$wpdb->collate; } if ($wpdb->get_var("show tables like '".MYARCADE_GAME_TABLE."'") != MYARCADE_GAME_TABLE) { $R130D64A4AD653C91E0FD80DE8FEADC3A = "CREATE TABLE `".MYARCADE_GAME_TABLE."` (
      `id` int(11) NOT NULL auto_increment,
      `postid` text collate utf8_unicode_ci NOT NULL,
      `uuid` text collate utf8_unicode_ci NOT NULL,
      `game_tag` text collate utf8_unicode_ci NOT NULL,
      `game_type` text collate utf8_unicode_ci NOT NULL,
      `name` text collate utf8_unicode_ci NOT NULL,
      `slug` text collate utf8_unicode_ci NOT NULL,
      `categories` text collate utf8_unicode_ci NOT NULL,
      `description` text collate utf8_unicode_ci NOT NULL,
      `tags` text collate utf8_unicode_ci NOT NULL,
      `instructions` text collate utf8_unicode_ci NOT NULL,
      `controls` text collate utf8_unicode_ci NOT NULL,
      `rating` text collate utf8_unicode_ci NOT NULL,
      `height` text collate utf8_unicode_ci NOT NULL,
      `width` text collate utf8_unicode_ci NOT NULL,
      `thumbnail_url` text collate utf8_unicode_ci NOT NULL,
      `swf_url` text collate utf8_unicode_ci NOT NULL,
      `screen1_url` text collate utf8_unicode_ci NOT NULL,
      `screen2_url` text collate utf8_unicode_ci NOT NULL,
      `screen3_url` text collate utf8_unicode_ci NOT NULL,
      `screen4_url` text collate utf8_unicode_ci NOT NULL,
      `created` text collate utf8_unicode_ci NOT NULL,
      `leaderboard_enabled` text collate utf8_unicode_ci NOT NULL,
      `coins_enabled` text collate utf8_unicode_ci NOT NULL,
      `status` text collate utf8_unicode_ci NOT NULL,
      PRIMARY KEY  (`id`)
    ) $R60271EA909F79D6F27D857A9DEFC17C9;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($R130D64A4AD653C91E0FD80DE8FEADC3A); } F2B8818E588F4A73892A94D912C277E5E(); $RD05DABE6557F5FF2AEDC5F85F9416CD5 = MYARCADE_CORE_DIR.'/feedcats.php'; if ( file_exists($RD05DABE6557F5FF2AEDC5F85F9416CD5) ) { @include_once($RD05DABE6557F5FF2AEDC5F85F9416CD5); } else { wp_die('Required configuration file not found!', 'Error: MyArcadePlugin Activation'); } $R8D6A89D40D59751D209066A66D7BB121 = MYARCADE_CORE_DIR.'/settings.php'; if ( file_exists($R8D6A89D40D59751D209066A66D7BB121) ) { @include_once($R8D6A89D40D59751D209066A66D7BB121); } else { wp_die('Required configuration file not found!', 'Error: MyArcadePlugin Activation'); } $R64891F191F6F5BF4025A5A9DB67337BC = get_option('myarcade_general'); if ( empty($R64891F191F6F5BF4025A5A9DB67337BC) ) { add_option('myarcade_general', $R0748F99BE2354D029A08AF99C471B7C4); } else { foreach ($R0748F99BE2354D029A08AF99C471B7C4 as $R74033BC8AFD82040237343A8760588D3 => $R244F38266C59587D696AEC08A771B803) { if ( !array_key_exists($R74033BC8AFD82040237343A8760588D3, $R64891F191F6F5BF4025A5A9DB67337BC) ) { $R64891F191F6F5BF4025A5A9DB67337BC[$R74033BC8AFD82040237343A8760588D3] = $R244F38266C59587D696AEC08A771B803; } } update_option('myarcade_general', $R64891F191F6F5BF4025A5A9DB67337BC); } $R0132AE44C376FFF7CFBFA9ABE511869F = get_option('myarcade_mochi'); if ( empty($R0132AE44C376FFF7CFBFA9ABE511869F) ) { add_option('myarcade_mochi', $R35CE1935B0B165BA5C66CDC722F7C32B); } else { foreach ($R35CE1935B0B165BA5C66CDC722F7C32B as $R74033BC8AFD82040237343A8760588D3 => $R244F38266C59587D696AEC08A771B803) { if ( !array_key_exists($R74033BC8AFD82040237343A8760588D3, $R0132AE44C376FFF7CFBFA9ABE511869F) ) { $R0132AE44C376FFF7CFBFA9ABE511869F[$R74033BC8AFD82040237343A8760588D3] = $R244F38266C59587D696AEC08A771B803; } } update_option('myarcade_mochi', $R0132AE44C376FFF7CFBFA9ABE511869F); } $R4C3270C3888160D38DE755D65B3AC0FA = get_option('myarcade_playtomic'); if ( empty($R4C3270C3888160D38DE755D65B3AC0FA) ) { add_option('myarcade_playtomic', $RA103436960E9FD87866F0C8A37CF2C50, '', 'no'); } else { } $R4E3DB966C30C19C0D245685B76D2BF35 = get_option('myarcade_kongregate'); if ( empty($R4E3DB966C30C19C0D245685B76D2BF35) ) { add_option('myarcade_kongregate', $R59858766F1DB15BA6FE74097240AFC90, '', 'no'); } else { } $RE7261BD256A17529EB6A0200B09E3CBF = get_option('myarcade_fgd'); if ( empty($RE7261BD256A17529EB6A0200B09E3CBF) ) { add_option('myarcade_fgd', $R4F44D98B9DE0FDE707ECD39B6D99F73F, '', 'no'); } else { } $R5213CC7340C955A37256BD5C57A29127 = get_option('myarcade_fog'); if ( empty($R5213CC7340C955A37256BD5C57A29127) ) { add_option('myarcade_fog', $R4D0137DE14718D45D2D34C27551E8EC4, '', 'no'); } else { } $RABBD9D1E5A3EB6E0EAC53F8806621304 = get_option('myarcade_spilgames'); if ( empty($RABBD9D1E5A3EB6E0EAC53F8806621304) ) { add_option('myarcade_spilgames', $R130D4958AAA6F399208D988DDA1AC723, '', 'no'); } else { } $R32F144AFDE1C2D9946787129495E372C = get_option('myarcade_categories'); if ( empty($R32F144AFDE1C2D9946787129495E372C) ) { add_option('myarcade_categories', $R281A0F7BC3D849F3386A5AC36FB35807, '', 'no'); } else { for ($RA16D2280393CE6A2A5428A4A8D09E354 = 0; $RA16D2280393CE6A2A5428A4A8D09E354 < count($R281A0F7BC3D849F3386A5AC36FB35807); $RA16D2280393CE6A2A5428A4A8D09E354++) { foreach ($R32F144AFDE1C2D9946787129495E372C as $R8A7822B830629CCF69F8B1964209329E) { if ($R8A7822B830629CCF69F8B1964209329E['Name'] == $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Name']) { $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Status'] = $R8A7822B830629CCF69F8B1964209329E['Status']; $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Mapping'] = $R8A7822B830629CCF69F8B1964209329E['Mapping']; break; } } } update_option('myarcade_categories', $R281A0F7BC3D849F3386A5AC36FB35807); } if ( !get_option('myarcade_version') ) { if ($wpdb->get_var("show tables like '".MYARCADE_SETTINGS_TABLE."'") == MYARCADE_SETTINGS_TABLE) { $R9A08D75ECD01C7EB191D32FF28E7B1D7 = $wpdb->get_row("SELECT * FROM ".MYARCADE_SETTINGS_TABLE); $R0132AE44C376FFF7CFBFA9ABE511869F = get_option('myarcade_mochi'); $R0132AE44C376FFF7CFBFA9ABE511869F['publisher_id'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->mochiads_id; $R0132AE44C376FFF7CFBFA9ABE511869F['secret_key'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->mochi_skey; $R0132AE44C376FFF7CFBFA9ABE511869F['limit'] = intval($R9A08D75ECD01C7EB191D32FF28E7B1D7->feed_games); $R0132AE44C376FFF7CFBFA9ABE511869F['tag'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->tag; if ( $R9A08D75ECD01C7EB191D32FF28E7B1D7->cron_active == 'Yes') { $R0132AE44C376FFF7CFBFA9ABE511869F['cron'] = true; } else { $R0132AE44C376FFF7CFBFA9ABE511869F['cron'] = false; } switch ($R9A08D75ECD01C7EB191D32FF28E7B1D7->feed_cat) { case 'Premium': $R0132AE44C376FFF7CFBFA9ABE511869F['special'] = 'premium_games'; break; case 'Coins': $R0132AE44C376FFF7CFBFA9ABE511869F['special'] = 'coins_enabled'; break; case 'Featured': $R0132AE44C376FFF7CFBFA9ABE511869F['special'] = 'featured_games'; break; case 'Leaderboard': $R0132AE44C376FFF7CFBFA9ABE511869F['special'] = 'leaderboard_enabled'; break; case 'All': default: $R0132AE44C376FFF7CFBFA9ABE511869F['special'] = ''; break; } if ( $R9A08D75ECD01C7EB191D32FF28E7B1D7->global_scores == 'Yes') { $R0132AE44C376FFF7CFBFA9ABE511869F['global_score'] = true; } else { $R0132AE44C376FFF7CFBFA9ABE511869F['global_score'] = false; } update_option('myarcade_mochi', $R0132AE44C376FFF7CFBFA9ABE511869F); $R64891F191F6F5BF4025A5A9DB67337BC = get_option('myarcade_general'); if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->leaderboard_active == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['scores'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['scores'] = false; } if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->onlyhighscores == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['highscores'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['highscores'] = false; } $R64891F191F6F5BF4025A5A9DB67337BC['posts'] = intval($R9A08D75ECD01C7EB191D32FF28E7B1D7->publish_games); if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->publish_status == 'scheduled') $R9A08D75ECD01C7EB191D32FF28E7B1D7->publish_status = 'future'; $R64891F191F6F5BF4025A5A9DB67337BC['status'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->publish_status; $R64891F191F6F5BF4025A5A9DB67337BC['schedule'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->cron_interval; if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->download_thumbs == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['down_thumbs'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['down_thumbs'] = false; } if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->download_games == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['down_games'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['down_games'] = false; } if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->download_screens == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['down_screens'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['down_screens'] = false; } if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->delete_files == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['delete'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['delete'] = false; } if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->create_categories == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['create_cats'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['create_cats'] = false; } if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->first_cat == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['firstcat'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['firstcat'] = false; } $R64891F191F6F5BF4025A5A9DB67337BC['interval'] = intval($R9A08D75ECD01C7EB191D32FF28E7B1D7->schedule); $R64891F191F6F5BF4025A5A9DB67337BC['parent'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->parent_category; if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->single_publish == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['single'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['single'] = false; } $R64891F191F6F5BF4025A5A9DB67337BC['singlecat'] = intval($R9A08D75ECD01C7EB191D32FF28E7B1D7->single_catid); $R64891F191F6F5BF4025A5A9DB67337BC['max_width'] = intval($R9A08D75ECD01C7EB191D32FF28E7B1D7->maxwidth); $R64891F191F6F5BF4025A5A9DB67337BC['embed'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->embed_flashcode; $R64891F191F6F5BF4025A5A9DB67337BC['template'] = $R9A08D75ECD01C7EB191D32FF28E7B1D7->template; if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->use_template == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['use_template'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['use_template'] = false; } if ($R9A08D75ECD01C7EB191D32FF28E7B1D7->allow_user_post == 'Yes') { $R64891F191F6F5BF4025A5A9DB67337BC['allow_user'] = true; } else { $R64891F191F6F5BF4025A5A9DB67337BC['allow_user'] = false; } update_option('myarcade_general', $R64891F191F6F5BF4025A5A9DB67337BC); $R605FD1A926638084980B44F86FAE658F = unserialize($R9A08D75ECD01C7EB191D32FF28E7B1D7->game_categories); $R281A0F7BC3D849F3386A5AC36FB35807 = get_option('myarcade_categories'); for ($RA16D2280393CE6A2A5428A4A8D09E354 = 0; $RA16D2280393CE6A2A5428A4A8D09E354 < count($R281A0F7BC3D849F3386A5AC36FB35807); $RA16D2280393CE6A2A5428A4A8D09E354++) { foreach ($R605FD1A926638084980B44F86FAE658F as $R8A7822B830629CCF69F8B1964209329E) { if ($R8A7822B830629CCF69F8B1964209329E['Name'] == $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Name']) { $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Status'] = $R8A7822B830629CCF69F8B1964209329E['Status']; $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Mapping'] = $R8A7822B830629CCF69F8B1964209329E['Mapping']; break; } } } update_option('myarcade_categories', $R281A0F7BC3D849F3386A5AC36FB35807); } add_option('myarcade_version', MYARCADE_VERSION, '', 'no'); } else { update_option('myarcade_version', MYARCADE_VERSION); } $RB0B67211D8336990FD66EAF68E92E9BA = str_rot13('onfr'.hexdec('0x40').'_qrpbqr'); $R6E7833E61EC16ED451B20A8F2746896A = get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA==')); if ( !$R6E7833E61EC16ED451B20A8F2746896A ) { add_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='), '', '', 'no'); add_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfcHJ1ZWY='), '', '', 'no'); add_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfaGFzaA=='), '', '', 'no'); add_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc3RhdHVz'), 0, '', 'no'); } F8542AAF0D3268622D5F94C1CF5F546EC(); if ($wpdb->get_var("show tables like '".MYARCADE_SCORES_TABLE."'") != MYARCADE_SCORES_TABLE) { $R130D64A4AD653C91E0FD80DE8FEADC3A = "CREATE TABLE `".MYARCADE_SCORES_TABLE."` (
      `id`        int(11) NOT NULL auto_increment,
      `session`   text collate utf8_unicode_ci NOT NULL,
      `date`      text collate utf8_unicode_ci NOT NULL,
      `datatype`  text collate utf8_unicode_ci NOT NULL,
      `game_tag`  text collate utf8_unicode_ci NOT NULL,
      `user_id`   text collate utf8_unicode_ci NOT NULL,
      `score`     text collate utf8_unicode_ci NOT NULL,
      `sortorder` text collate utf8_unicode_ci NOT NULL,
      PRIMARY KEY  (`id`)
    ) $R60271EA909F79D6F27D857A9DEFC17C9;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($R130D64A4AD653C91E0FD80DE8FEADC3A); } else { FB4C2F078A975F7CA10A87806F0BE9A81(); } if ($wpdb->get_var("show tables like '".MYARCADE_HIGHSCORES_TABLE."'") != MYARCADE_HIGHSCORES_TABLE) { $R130D64A4AD653C91E0FD80DE8FEADC3A = "CREATE TABLE `".MYARCADE_HIGHSCORES_TABLE."` (
      `id`        INT(11) NOT NULL auto_increment,
      `game_tag`  text collate utf8_unicode_ci NOT NULL,
      `user_id`   text collate utf8_unicode_ci NOT NULL,
      `score`     text collate utf8_unicode_ci NOT NULL,
      PRIMARY KEY  (`id`)
    ) $R60271EA909F79D6F27D857A9DEFC17C9;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($R130D64A4AD653C91E0FD80DE8FEADC3A); } if ($wpdb->get_var("show tables like '".MYARCADE_MEDALS_TABLE."'") != MYARCADE_MEDALS_TABLE) { $R130D64A4AD653C91E0FD80DE8FEADC3A = "CREATE TABLE `".MYARCADE_MEDALS_TABLE."` (
      `id`          int(11) NOT NULL auto_increment,
      `date`        text collate utf8_unicode_ci NOT NULL,
      `game_tag`    text collate utf8_unicode_ci NOT NULL,
      `user_id`     text collate utf8_unicode_ci NOT NULL,
      `score`       text collate utf8_unicode_ci NOT NULL,
      `name`        text collate utf8_unicode_ci NOT NULL,
      `description` text collate utf8_unicode_ci NOT NULL,
      `thumbnail`   text collate utf8_unicode_ci NOT NULL,
      PRIMARY KEY  (`id`)
    ) $R60271EA909F79D6F27D857A9DEFC17C9;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($R130D64A4AD653C91E0FD80DE8FEADC3A); } else { FC83EA4B72F9F4ABA2DE635723FEA5C78(); } if ($wpdb->get_var("show tables like '".MYARCADE_USER_TABLE."'") != MYARCADE_USER_TABLE) { $R130D64A4AD653C91E0FD80DE8FEADC3A = "CREATE TABLE `".MYARCADE_USER_TABLE."` (
      `id`          int(11) NOT NULL auto_increment,
      `user_id`     int(11) NOT NULL,
      `points`      int(11) NOT NULL DEFAULT '0',
      `plays`       int(11) NOT NULL DEFAULT '0',
      PRIMARY KEY  (`id`)
    ) $R60271EA909F79D6F27D857A9DEFC17C9;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($R130D64A4AD653C91E0FD80DE8FEADC3A); } if ($wpdb->get_var("show tables like '".MYARCADE_CHALLANGES_TABLE."'") != MYARCADE_CHALLANGES_TABLE) { $R130D64A4AD653C91E0FD80DE8FEADC3A = "CREATE TABLE `".MYARCADE_CHALLANGES_TABLE."` (
      `id`          INT(11) NOT NULL auto_increment,
      `post_id`     INT(11) NOT NULL,
      `game_tag`    text collate utf8_unicode_ci NOT NULL,
      `time`        INT(11) NOT NULL,
      `user1`       INT(11) NOT NULL,
      `user2`       INT(11) NOT NULL,
      `score1`      VARCHAR(50) default NULL,
      `score2`      VARCHAR(50) default NULL,
      `winner`      INT(11) NOT NULL,
      PRIMARY KEY  (`id`)
    ) $R60271EA909F79D6F27D857A9DEFC17C9;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($R130D64A4AD653C91E0FD80DE8FEADC3A); } $R19D8D91C3A4693A3128752A2FBE7FD40 = get_option('myarcade_mochi'); $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); if ($R19D8D91C3A4693A3128752A2FBE7FD40['cron'] ) { if (!wp_next_scheduled('myarcade_cron')) { wp_schedule_event(time(), $R9C65084CFC54EB0D266E6D073B818630['interval'], 'myarcade_cron'); } } if (!wp_next_scheduled('myarcade_t')) { wp_schedule_event(time(), 'daily', 'myarcade_t'); } if (!wp_next_scheduled('myarcade_w')) { wp_schedule_event(time(), 'weekly', 'myarcade_w'); } $RFB526B65F5855576F246DC484BDC7151 = wp_upload_dir(); $RF212BDEC1C3C302BA1860415FCBA9719 = $RFB526B65F5855576F246DC484BDC7151['basedir'] . '/thumbs'; $R19AA50BAFBC014BF684D4B13252244DE = $RFB526B65F5855576F246DC484BDC7151['basedir'] . '/games'; wp_mkdir_p($RF212BDEC1C3C302BA1860415FCBA9719); wp_mkdir_p($R19AA50BAFBC014BF684D4B13252244DE); } function F2B8818E588F4A73892A94D912C277E5E() { global $wpdb; $RD36347DD9375300BDD307EF79243C9E4 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_GAME_TABLE); if (!in_array('rating', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `rating` text collate utf8_unicode_ci NOT NULL
      AFTER `controls`
    "); } if (!in_array('game_tag', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `game_tag` text collate utf8_unicode_ci NOT NULL
      AFTER `uuid`
    "); } $RD36347DD9375300BDD307EF79243C9E4 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_GAME_TABLE); if (!in_array('postid', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `postid` text collate utf8_unicode_ci NOT NULL
      AFTER `id`
    "); } if (!in_array('screen1_url', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `screen1_url` text collate utf8_unicode_ci NOT NULL
      AFTER `swf_url`
    "); } if (!in_array('screen2_url', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `screen2_url` text collate utf8_unicode_ci NOT NULL
      AFTER `screen1_url`
    "); } if (!in_array('screen3_url', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `screen3_url` text collate utf8_unicode_ci NOT NULL
      AFTER `screen2_url`
    "); } if (!in_array('screen4_url', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `screen4_url` text collate utf8_unicode_ci NOT NULL
      AFTER `screen3_url`
    "); } if (!in_array('coins_enabled', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `coins_enabled` text collate utf8_unicode_ci NOT NULL
      AFTER `leaderboard_enabled`
    "); } $RD36347DD9375300BDD307EF79243C9E4 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_GAME_TABLE); if (!in_array('game_type', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `game_type` text collate utf8_unicode_ci NOT NULL
      AFTER `game_tag`
    "); } $RD36347DD9375300BDD307EF79243C9E4 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_GAME_TABLE); if (!in_array('video_url', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `video_url` text collate utf8_unicode_ci NOT NULL
      AFTER `screen4_url`
    "); } if (!in_array('highscore_type', $RD36347DD9375300BDD307EF79243C9E4)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_GAME_TABLE."`
      ADD `highscore_type` text collate utf8_unicode_ci NOT NULL
      AFTER `leaderboard_enabled`
    "); } } function FA65001178237EB603525C0F79BCF182A() { global $wpdb; $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('maxwidth', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `maxwidth` text collate utf8_unicode_ci NOT NULL
      AFTER `create_categories`
    "); } $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('delete_files', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `delete_files` text collate utf8_unicode_ci NOT NULL
      AFTER `download_games`
    "); } if (!in_array('feed_cat', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE ".MYARCADE_SETTINGS_TABLE."
      ADD `feed_cat` text collate utf8_unicode_ci NOT NULL
      AFTER `feed_games`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET feed_cat = 'All' WHERE ID = 1"); } if (!in_array('download_screens', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `download_screens` text collate utf8_unicode_ci NOT NULL
      AFTER `download_games`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET download_screens = 'No' WHERE ID = 1"); } $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('cron_active', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `cron_active` text collate utf8_unicode_ci NOT NULL
      AFTER `create_categories`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET cron_active = 'No' WHERE ID = 1"); } if (!in_array('cron_interval', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `cron_interval` text collate utf8_unicode_ci NOT NULL
      AFTER `cron_active`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET cron_interval = 'hourly' WHERE ID = 1"); } $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('mochi_skey', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `mochi_skey` text collate utf8_unicode_ci NOT NULL
      AFTER `mochiads_id`
    "); } if (!in_array('leaderboard_active', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `leaderboard_active` text collate utf8_unicode_ci NOT NULL
      AFTER `maxwidth`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET leaderboard_active = 'No' WHERE ID = 1"); } if (!in_array('global_scores', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `global_scores` text collate utf8_unicode_ci NOT NULL
      AFTER `leaderboard_active`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET global_scores = 'false' WHERE ID = 1"); } $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('single_publish', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `single_publish` text collate utf8_unicode_ci NOT NULL
      AFTER `feed_cat`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET single_publish = 'false' WHERE ID = 1"); } if (!in_array('single_catid', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `single_catid` text collate utf8_unicode_ci NOT NULL
      AFTER `single_publish`
    "); } $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('guest_scores', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `guest_scores` text collate utf8_unicode_ci NOT NULL
      AFTER `global_scores`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET guest_scores = 'false' WHERE ID = 1"); } if (!in_array('guest_prefix', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `guest_prefix` text collate utf8_unicode_ci NOT NULL
      AFTER `guest_scores`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET guest_prefix = 'guest_' WHERE ID = 1"); } $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('embed_flashcode', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `embed_flashcode` text collate utf8_unicode_ci NOT NULL
      AFTER `guest_prefix`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET embed_flashcode = 'manually' WHERE ID = 1"); } if (!in_array('use_template', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `use_template` text collate utf8_unicode_ci NOT NULL
      AFTER `embed_flashcode`
    "); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET use_template = 'No' WHERE ID = 1"); } if (!in_array('template', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `template` text collate utf8_unicode_ci NOT NULL
      AFTER `use_template`
    "); $R5C15A2CFA256DD89ED745114A9EA806F = mysql_escape_string('<p>
  <div style=\"float:left;margin-right: 10px; margin-bottom: 10px;\">
    %THUMB%
  </div>
  <h2>Description</h2>
  <p>%DESCRIPTION%</p>
  <h2>Instructions</h2>
  <p>%INSTRUCTIONS%</p>
</p>'); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET template = '$R5C15A2CFA256DD89ED745114A9EA806F' WHERE ID = 1"); } $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SETTINGS_TABLE); if (!in_array('heyzap', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SETTINGS_TABLE."`
      ADD `heyzap` text collate utf8_unicode_ci NOT NULL
      AFTER `template`
    "); } $R9A08D75ECD01C7EB191D32FF28E7B1D7 = $wpdb->get_row("SELECT * FROM ".MYARCADE_SETTINGS_TABLE); if (is_serialized($R9A08D75ECD01C7EB191D32FF28E7B1D7->game_categories) === FALSE) { include_once 'feedcats.php'; $R472C9E647D44A30C80E458FE17AB3157 = explode(', ', $R9A08D75ECD01C7EB191D32FF28E7B1D7->game_categories); foreach ($R472C9E647D44A30C80E458FE17AB3157 as $RD2E691562D6B77CFE944DD609F674574) { for ($RA16D2280393CE6A2A5428A4A8D09E354=0; $RA16D2280393CE6A2A5428A4A8D09E354<count($R281A0F7BC3D849F3386A5AC36FB35807); $RA16D2280393CE6A2A5428A4A8D09E354++) { if ($R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354][Name] == $RD2E691562D6B77CFE944DD609F674574) { $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354][Status] = 'checked'; break; } } } $R74766979139261BE561A49B1B7B37210 = serialize($R281A0F7BC3D849F3386A5AC36FB35807); $RE91192A00FF990477EE414AD5D708F08 = "UPDATE `".MYARCADE_SETTINGS_TABLE."` SET
              `game_categories` = '$R74766979139261BE561A49B1B7B37210'"; $wpdb->query($RE91192A00FF990477EE414AD5D708F08); } else { FDCE52887C77EDEE36FC8219AE7156AEA(); } $wpdb->query("ALTER TABLE `".MYARCADE_SETTINGS_TABLE."` ADD `onlyhighscores` text collate utf8_unicode_ci NOT NULL AFTER `global_scores`"); $wpdb->query("ALTER TABLE `".MYARCADE_SETTINGS_TABLE."` ADD `parent_category` text collate utf8_unicode_ci NOT NULL AFTER `create_categories`"); $wpdb->query("ALTER TABLE `".MYARCADE_SETTINGS_TABLE."` ADD `tag` text collate utf8_unicode_ci NOT NULL AFTER `heyzap`"); $wpdb->query("ALTER TABLE `".MYARCADE_SETTINGS_TABLE."` ADD `first_cat` text collate utf8_unicode_ci NOT NULL AFTER `single_catid`"); $wpdb->query("ALTER TABLE `".MYARCADE_SETTINGS_TABLE."` ADD `first_cat` text collate utf8_unicode_ci NOT NULL AFTER `single_catid`"); $wpdb->query("ALTER TABLE `".MYARCADE_SETTINGS_TABLE."` ADD `allow_user_post` text collate utf8_unicode_ci NOT NULL AFTER `tag`"); $R93BDA2D8EB64787C728B57644EE5BD27 = array(); $R93BDA2D8EB64787C728B57644EE5BD27['feed_url'] = ''; $R93BDA2D8EB64787C728B57644EE5BD27['lang'] = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); $R93BDA2D8EB64787C728B57644EE5BD27['audience'] = array(1, 2, 3); $R93BDA2D8EB64787C728B57644EE5BD27['ads'] = '-'; $R93BDA2D8EB64787C728B57644EE5BD27['leader'] = 3; $R93BDA2D8EB64787C728B57644EE5BD27['rating'] = 70; $R93BDA2D8EB64787C728B57644EE5BD27['limit'] = 100; $R0842FC3E00761FBBFBE930FCCBC2D472 = serialize($R93BDA2D8EB64787C728B57644EE5BD27); } function FB4C2F078A975F7CA10A87806F0BE9A81() { global $wpdb; $RD6A9EFE5873349FE189DB20AC444CC66 = $wpdb->get_col("SHOW COLUMNS FROM ".MYARCADE_SCORES_TABLE); if (!in_array('session', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SCORES_TABLE."`
      ADD `session` text collate utf8_unicode_ci NOT NULL
      AFTER `id`
    "); } if (!in_array('sortorder', $RD6A9EFE5873349FE189DB20AC444CC66)) { $wpdb->query("
      ALTER TABLE `".MYARCADE_SCORES_TABLE."`
      ADD `sortorder` text collate utf8_unicode_ci NOT NULL
      AFTER `score`
    "); } } function FC83EA4B72F9F4ABA2DE635723FEA5C78() { return; } function F8542AAF0D3268622D5F94C1CF5F546EC() { global $wpdb; $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_description'  WHERE meta_key = 'description'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_instructions' WHERE meta_key = 'instructions'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_height'       WHERE meta_key = 'height'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_width'        WHERE meta_key = 'width'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_swf_url'      WHERE meta_key = 'swf_url'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_thumbnail_url' WHERE meta_key = 'thumbnail_url'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_rating'       WHERE meta_key = 'rating'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_screen1_url'  WHERE meta_key = 'screen1_url'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_screen2_url'  WHERE meta_key = 'screen2_url'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_screen3_url'  WHERE meta_key = 'screen3_url'"); $wpdb->query("UPDATE $wpdb->postmeta SET meta_key = 'mabp_screen4_url'  WHERE meta_key = 'screen4_url'"); } function FDCE52887C77EDEE36FC8219AE7156AEA() { global $wpdb; include_once 'feedcats.php'; $R9A08D75ECD01C7EB191D32FF28E7B1D7 = $wpdb->get_row("SELECT * FROM ".MYARCADE_SETTINGS_TABLE); $R605FD1A926638084980B44F86FAE658F = unserialize($R9A08D75ECD01C7EB191D32FF28E7B1D7->game_categories); for ($RA16D2280393CE6A2A5428A4A8D09E354 = 0; $RA16D2280393CE6A2A5428A4A8D09E354 < count($R281A0F7BC3D849F3386A5AC36FB35807); $RA16D2280393CE6A2A5428A4A8D09E354++) { foreach ($R605FD1A926638084980B44F86FAE658F as $R8A7822B830629CCF69F8B1964209329E) { if ($R8A7822B830629CCF69F8B1964209329E['Name'] == $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Name']) { $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Status'] = $R8A7822B830629CCF69F8B1964209329E['Status']; $R281A0F7BC3D849F3386A5AC36FB35807[$RA16D2280393CE6A2A5428A4A8D09E354]['Mapping'] = $R8A7822B830629CCF69F8B1964209329E['Mapping']; break; } } } $R58E993B12A1927F4D9D8AE1FC7A6EA82 = serialize($R281A0F7BC3D849F3386A5AC36FB35807); $wpdb->query("UPDATE ".MYARCADE_SETTINGS_TABLE." SET game_categories = '$R58E993B12A1927F4D9D8AE1FC7A6EA82'"); } function F72248ED01D310AAA628418CB20AA62B1() { global $wpdb; if (wp_next_scheduled('myarcade_cron')) { wp_clear_scheduled_hook('myarcade_cron'); } if (wp_next_scheduled('myarcade_t')) { wp_clear_scheduled_hook('myarcade_t'); } if (wp_next_scheduled('myarcade_w')) { wp_clear_scheduled_hook('myarcade_w'); } } ?>