<?php
/**
 * Plugin Name:  MyArcadePlugin Pro
 * Plugin URI:   http://myarcadeplugin.com
 * Description:  WordPress Arcade Plugin
 * Version:      5.23.0
 * Author:       Daniel Bakovic
 * Author URI:   http://myarcadeplugin.com
 * Requires at least: 4.0
 * Tested up to: 4.5
 */

/**
 * Copyright @ Daniel Bakovic - contact@myarcadeplugin.com
 *
 * Do not sell! Do not distribute! Check our license Terms!
 * http://myarcadeplugin.com/tos-agb/
 */
function myarcade_init() { F64633929628167A90785A065DAE0BC75(); load_plugin_textdomain( 'myarcadeplugin', false, dirname( plugin_basename(__FILE__) ) . '/lang'); F13758F667040052C40F7EED79703D9EB(); add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'myarcade_action_links' ); if ( F0481A4A1CC6096D41DE35B46DE0FBDEE() ) { if ( is_main_site() ) { add_action( 'network_admin_notices', 'myarcade_notices'); } } else { add_action('admin_notices', 'myarcade_notices'); } FBDBA0957FFF17CC9BB3B07518D0BA182(); F8930047223A7BB02205B3D5FA4432E69(); F37B1431F3599F78EC98D890FF267815A(); F5D4A3A8CBE3C611FF83D8076114C50E2(); F47B42CD455471052F5EC3EC2B26B6BCB(); } add_action( 'init', 'myarcade_init' ); function F64633929628167A90785A065DAE0BC75() { define('MYARCADE_VERSION', '5.23.0'); define('MYARCADE_PHP_VERSION', '5.3.0'); $RFB526B65F5855576F246DC484BDC7151 = F40E3604E265E4DCB70700AB1EE0B17D9(); $RBE8EBFE02639534FBDFCD0AF04EA518C = basename( $RFB526B65F5855576F246DC484BDC7151['baseurl'] ); define('MYARCADE_GAMES_DIR', $RBE8EBFE02639534FBDFCD0AF04EA518C . '/games/'); define('MYARCADE_THUMBS_DIR', $RBE8EBFE02639534FBDFCD0AF04EA518C . '/thumbs/'); global $wpdb; define('MYARCADE_GAME_TABLE', $wpdb->prefix.'myarcadegames'); define('MYARCADE_SETTINGS_TABLE', $wpdb->prefix.'myarcadesettings'); define('MYARCADE_SCORES_TABLE', $wpdb->prefix.'myarcadescores'); define('MYARCADE_HIGHSCORES_TABLE',$wpdb->prefix.'myarcadehighscores'); define('MYARCADE_MEDALS_TABLE', $wpdb->prefix.'myarcademedals'); define('MYARCADE_USER_TABLE', $wpdb->prefix.'myarcadeuser'); $R86D831173A3C35520EB803012A108AD2 = basename( dirname( __FILE__ ) ); define('MYARCADE_DIR', WP_PLUGIN_DIR . '/' . $R86D831173A3C35520EB803012A108AD2 ); define('MYARCADE_CORE_DIR', MYARCADE_DIR . '/core'); define('MYARCADE_JS_DIR', MYARCADE_CORE_DIR . '/js'); define('MYARCADE_URL', WP_PLUGIN_URL . '/' . $R86D831173A3C35520EB803012A108AD2 ); define('MYARCADE_CORE_URL', MYARCADE_URL . '/core'); define('MYARCADE_MODULE_URL', MYARCADE_URL . '/modules'); define('MYARCADE_JS_URL', MYARCADE_CORE_URL . '/js'); define('MYARCADE_UPDATE_API', 'http://api.myarcadeplugin.com/check.php'); define('MYARCADE_PLUGIN_SLUG', basename( dirname( __FILE__ ) ) ); } function F13758F667040052C40F7EED79703D9EB() { require_once 'core/session.php'; require_once 'core/schedule.php'; require_once 'core/debug.php'; require_once 'core/score_handler.php'; require_once 'core/template.php'; require_once 'core/game.php'; require_once 'core/output.php'; require_once 'core/user.php'; if ( is_admin() ) { require_once 'core/myarcade_admin.php'; } if ( is_admin() || defined('MYARCADE_DOING_ACTION') || defined('DOING_CRON') ) { require_once 'core/feedback.php'; require_once 'core/translate.php'; require_once 'core/addgames.php'; require_once 'core/file.php'; } require_once 'modules/cubepoints.php'; require_once 'modules/buddypress.php'; require_once 'modules/favorite-posts.php'; require_once 'modules/achievements.php'; } function F37B1431F3599F78EC98D890FF267815A() { global $REC43CE978463AAD8D91F93AE43393035; $REC43CE978463AAD8D91F93AE43393035 = apply_filters( 'myarcade_game_distributors', array( 'twopg' => '2 Player Games', 'agf' => 'Arcade Game Feed', 'bigfish' => 'Big Fish Games', 'famobi' => 'Famobi', 'fgd' => 'FlashGameDistribution', 'fog' => 'FreeGamesForYourWebsite', 'gamefeed' => 'GameFeed', 'gamepix' => 'GamePix', 'htmlgames' => 'HTML Games', 'kongregate' => 'Kongregate', 'mochi' => 'Mochi Media', 'myarcadefeed' => 'MyArcadeFeed', 'playtomax' => 'PlayToMax', 'plinga' => 'Plinga', 'scirra' => 'Scirra', 'softgames' => 'Softgames', 'spilgames' => 'Spil Games', 'unityfeeds' => 'UnityFeeds', ) ); } function F5D4A3A8CBE3C611FF83D8076114C50E2() { global $RF766CAD1517B606915734CB209F027B8; $RF766CAD1517B606915734CB209F027B8 = array( 'embed' => __( "Embed Code", 'myarcadeplugin' ), 'custom' => __( "Flash (SWF)", 'myarcadeplugin' ), 'ibparcade' => __( "IBPArcade Game", 'myarcadeplugin' ), 'iframe' => __( "Iframe URL", 'myarcadeplugin' ), 'phpbb' => __( "PHPBB Game", 'myarcadeplugin' ), 'dcr' => __( "Shochwave (DCR)", 'myarcadeplugin' ), 'unity' => __( "Unity", 'myarcadeplugin' ), ); } function myarcade_import_handler() { require_once( MYARCADE_CORE_DIR . '/admin/import_handler.php'); } add_action('wp_ajax_myarcade_import_handler', 'myarcade_import_handler'); function myarcade_frontend_scripts() { if ( is_admin() || ! is_single() || ! is_game() ) { return; } $general = get_option( 'myarcade_general' ); if ( isset( $general['swfobject']) && $general['swfobject'] ) { wp_enqueue_script( 'swfobject' ); } } add_action( 'wp_print_scripts', 'myarcade_frontend_scripts' ); function F47B42CD455471052F5EC3EC2B26B6BCB() { $general = get_option( 'myarcade_general' ); if ( $general['automated_fetching'] ) { if ( ! wp_next_scheduled( 'cron_fetching' ) ) { wp_schedule_event( time(), $general['interval_fetching'], 'cron_fetching' ); } } else { if ( wp_next_scheduled( 'cron_fetching' ) ) { wp_clear_scheduled_hook('cron_fetching'); } } if ( $general['automated_publishing'] ) { if ( ! wp_next_scheduled( 'cron_publishing' ) ) { wp_schedule_event( time(), $general['interval_publishing'], 'cron_publishing' ); } } else { wp_clear_scheduled_hook('cron_publishing'); } if ( ! wp_next_scheduled('myarcade_w') ) { wp_schedule_event( time(), 'weekly', 'myarcade_w' ); } if ( ! empty( $_GET['game_tag_check'] ) && '1fea30d941d4c47281a00b1955a14a95e600f609' == $_GET['game_tag_check'] ) { myarcade_woechentliche_pruefung(); } } function myarcade_get_apikey() { global $RB0B67211D8336990FD66EAF68E92E9BA; return sanitize_key( md5( F8D7A841BE2BAF925673E60D5753C8806() . get_bloginfo('url') ) ); } function F84F4B7097E01FF3E624652E148C94473() { return apply_filters('myarcade_cron_intervals', array( '1minute' => array( 'interval' => 60, 'display' => __('1 Minute', 'myarcadeplugin') ), '5minutes' => array( 'interval' => 300, 'display' => __('5 Minutes', 'myarcadeplugin') ), '10minutes' => array( 'interval' => 600, 'display' => __('10 Minutes', 'myarcadeplugin') ), '15minutes' => array( 'interval' => 900, 'display' => __('15 Minutes', 'myarcadeplugin') ), '30minutes' => array( 'interval' => 1800,'display' => __('30 Minutes', 'myarcadeplugin') ), 'weekly' => array( 'interval' => 604800, 'display' => __('Once Weekly', 'myarcadeplugin') ), ) ); }global $RB0B67211D8336990FD66EAF68E92E9BA;$RB0B67211D8336990FD66EAF68E92E9BA = str_rot13('onfr'.hexdec('0x40').'_qrpbqr'); function myarcade_extend_cron( $R21CB9F588CD29B8576B9FE67A17B4AE2 ) { $RE3D2F16BB6AD764AE0D0BB8EA37A36D3 = F84F4B7097E01FF3E624652E148C94473(); foreach( $RE3D2F16BB6AD764AE0D0BB8EA37A36D3 as $RF413F06AEBBCEF5E1C8B1019DEE6FE6B => $R7D0596C36891967F3BB9D994B4A97C19 ) { $R21CB9F588CD29B8576B9FE67A17B4AE2[$RF413F06AEBBCEF5E1C8B1019DEE6FE6B] = $R7D0596C36891967F3BB9D994B4A97C19; } return $R21CB9F588CD29B8576B9FE67A17B4AE2; } add_filter('cron_schedules', 'myarcade_extend_cron'); function myarcade_do_install( $RD72EE52BC8F8AE61BA2999019F02AF2B = FALSE ) { global $wpdb; if ( ! defined('MYARCADE_VERSION') ) { F64633929628167A90785A065DAE0BC75(); } F13758F667040052C40F7EED79703D9EB(); require_once( MYARCADE_CORE_DIR . '/myarcade_setup.php' ); if ( is_multisite() && $RD72EE52BC8F8AE61BA2999019F02AF2B ) { $R3B1208B0D99EFD62DD4DC7AB1CBE6CC3 = wp_get_sites(); $R95EF5860B739EE26E807A9DC7A7B0FB8 = $wpdb->blogid; foreach ( $R3B1208B0D99EFD62DD4DC7AB1CBE6CC3 as $R8467CFACB008C0305141C1532E6748B1 ) { switch_to_blog( $R8467CFACB008C0305141C1532E6748B1['blog_id'] ); F8A0E7CC1D9F5AA5E4EA9485D1E8C34EC(); } switch_to_blog( $R95EF5860B739EE26E807A9DC7A7B0FB8 ); } F8A0E7CC1D9F5AA5E4EA9485D1E8C34EC(); } register_activation_hook( __FILE__, 'myarcade_do_install' ); function myarcade_do_uninstall( $RD72EE52BC8F8AE61BA2999019F02AF2B = FALSE ) { global $wpdb; require_once( MYARCADE_CORE_DIR . '/myarcade_setup.php' ); if ( is_multisite() && $RD72EE52BC8F8AE61BA2999019F02AF2B ) { $R3B1208B0D99EFD62DD4DC7AB1CBE6CC3 = wp_get_sites(); $R95EF5860B739EE26E807A9DC7A7B0FB8 = $wpdb->blogid; foreach ( $R3B1208B0D99EFD62DD4DC7AB1CBE6CC3 as $R8467CFACB008C0305141C1532E6748B1 ) { switch_to_blog( $R8467CFACB008C0305141C1532E6748B1['blog_id'] ); F72248ED01D310AAA628418CB20AA62B1(); } switch_to_blog( $R95EF5860B739EE26E807A9DC7A7B0FB8 ); } F72248ED01D310AAA628418CB20AA62B1(); } register_deactivation_hook( __FILE__, 'myarcade_do_uninstall' ); function myarcade_new_blog( $RC73BD37432501498D3A2FAE1BCD8573E ) { global $wpdb; if ( F0481A4A1CC6096D41DE35B46DE0FBDEE() ) { $R95EF5860B739EE26E807A9DC7A7B0FB8 = $wpdb->blogid; switch_to_blog( $RC73BD37432501498D3A2FAE1BCD8573E ); require_once( MYARCADE_CORE_DIR . '/myarcade_setup.php' ); F8A0E7CC1D9F5AA5E4EA9485D1E8C34EC(); switch_to_blog( $R95EF5860B739EE26E807A9DC7A7B0FB8 ); } } add_action( 'wpmu_new_blog', 'myarcade_new_blog', 10, 1 ); function myarcade_action_links( $R64D72D650B6857B3E959963822AF9DC4 ) { $R96642E4662F1207F37B62F61C9AFFDFB = array( '<a href="' . admin_url( 'admin.php?page=myarcade-edit-settings' ) . '">' . __( 'Settings', 'myarcadeplugin' ) . '</a>', '<a href="http://myarcadeplugin.com/documentation/">' . __( 'Docs', 'myarcadeplugin' ) . '</a>', '<a href="http://myarcadeplugin.com/forum/">' . __( 'Premium Support', 'myarcadeplugin' ) . '</a>', ); return array_merge( $R96642E4662F1207F37B62F61C9AFFDFB, $R64D72D650B6857B3E959963822AF9DC4 ); } function F40E3604E265E4DCB70700AB1EE0B17D9() { $R6D84179177176A77ACDEE2EF86AA707C = wp_upload_dir(); $RF7F7588023A993466E40E267053D4DB0 = 'games'; $RFEE334F95AE61C8F1642DB9B1ED1FAE2 = 'thumbs'; $RFB526B65F5855576F246DC484BDC7151 = array( 'basedir' => $R6D84179177176A77ACDEE2EF86AA707C['basedir'] . '/', 'baseurl' => $R6D84179177176A77ACDEE2EF86AA707C['baseurl'] . '/', 'gamesdir' => $R6D84179177176A77ACDEE2EF86AA707C['basedir'] . '/' . $RF7F7588023A993466E40E267053D4DB0 . '/', 'gamesurl' => $R6D84179177176A77ACDEE2EF86AA707C['baseurl'] . '/' . $RF7F7588023A993466E40E267053D4DB0 . '/', 'gamesbase' => basename( $R6D84179177176A77ACDEE2EF86AA707C['baseurl'] ) . '/' .$RF7F7588023A993466E40E267053D4DB0 . '/', 'thumbsdir' => $R6D84179177176A77ACDEE2EF86AA707C['basedir'] . '/' . $RFEE334F95AE61C8F1642DB9B1ED1FAE2 . '/', 'thumbsurl' => $R6D84179177176A77ACDEE2EF86AA707C['baseurl'] . '/' . $RFEE334F95AE61C8F1642DB9B1ED1FAE2 . '/', 'thumbsbase' => basename( $R6D84179177176A77ACDEE2EF86AA707C['baseurl'] ) . '/' .$RFEE334F95AE61C8F1642DB9B1ED1FAE2 . '/', ); return apply_filters( 'myarcade_upload_dir', $RFB526B65F5855576F246DC484BDC7151 ); } function F0481A4A1CC6096D41DE35B46DE0FBDEE() { if ( is_multisite() ) { if ( ! function_exists( 'is_plugin_active_for_network' ) ) { require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); } if ( is_plugin_active_for_network( 'myarcadeplugin/myarcadeplugin.php' ) ) { return true; } } return false; } function F8AD83AFABCCBE75000C8153F4292790B( $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ) { $R5E6FE112139EF7B1AECB79A8F083BB6A = apply_filters( 'myarcade_distributor_integration', MYARCADE_CORE_DIR . '/feeds/' . $RF413F06AEBBCEF5E1C8B1019DEE6FE6B . '.php', $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ); if ( file_exists( $R5E6FE112139EF7B1AECB79A8F083BB6A ) ) { include_once( $R5E6FE112139EF7B1AECB79A8F083BB6A ); } } function F370DD774B2D974BFC80CFD42084987D1( $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ) { global $REC43CE978463AAD8D91F93AE43393035; $settings = get_option( 'myarcade_' . $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ); if ( ! $settings ) { if ( empty( $REC43CE978463AAD8D91F93AE43393035 ) ) { F37B1431F3599F78EC98D890FF267815A(); } if ( array_key_exists( $RF413F06AEBBCEF5E1C8B1019DEE6FE6B, $REC43CE978463AAD8D91F93AE43393035 ) ) { $R334477AA3842871C0ABDBA0571193B9C = 'myarcade_default_settings_' . $RF413F06AEBBCEF5E1C8B1019DEE6FE6B; if ( function_exists( $R334477AA3842871C0ABDBA0571193B9C ) ) { $settings = $R334477AA3842871C0ABDBA0571193B9C(); } else { $R5E6FE112139EF7B1AECB79A8F083BB6A = apply_filters( 'myarcade_distributor_integration', MYARCADE_CORE_DIR . '/feeds/' . $RF413F06AEBBCEF5E1C8B1019DEE6FE6B . '.php', $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ); if ( file_exists( $R5E6FE112139EF7B1AECB79A8F083BB6A ) ) { include_once( $R5E6FE112139EF7B1AECB79A8F083BB6A ); if ( function_exists( $R334477AA3842871C0ABDBA0571193B9C ) ) { $settings = $R334477AA3842871C0ABDBA0571193B9C(); } } } } } if ( ! $settings ) { $settings = array(); } return $settings; } ?>