<?php
 defined('MYARCADE_VERSION') or die(); function F0C81FCF571F6826D747F564EBC2BDF79($user_ID) { global $wpdb; if ( isset($user_ID) && is_int($user_ID) ) { $wpdb->query("INSERT INTO ".MYARCADE_USER_TABLE." (
          `user_id`, `points`, `plays` 
            ) VALUES (
          $user_ID,
          '0',
          '1'
        )"); } } function F4FF66E6823645AF0042D28D82C57D6C0() { global $user_ID, $wpdb; $R679E9B9234E2062F809DBD3325D37FB6 = true; get_currentuserinfo(); $R062571FDD32EE7041268CA726716BF33 = time(); if ( ($R062571FDD32EE7041268CA726716BF33 - F3E938839269BA073114D7B5FB1A40B3C('last_play')) > 30) { F8C1784196801EF1A9B9A586B4B6752CD('last_play', $R062571FDD32EE7041268CA726716BF33); if ( !empty($user_ID) ) { do_action('myarcade_update_play_points'); do_action('myarcade_game_play'); $RCABD49CBF4B2EF2A3420ED4F808B515B = $wpdb->get_var("SELECT `id` FROM ".MYARCADE_USER_TABLE." WHERE `user_id` = '$user_ID'"); if ( empty ($RCABD49CBF4B2EF2A3420ED4F808B515B) ) { F0C81FCF571F6826D747F564EBC2BDF79($user_ID); } else { $RE91192A00FF990477EE414AD5D708F08 = "UPDATE ".MYARCADE_USER_TABLE." SET `plays` = `plays`+1 WHERE `user_id` = '$user_ID'"; $wpdb->query($RE91192A00FF990477EE414AD5D708F08); } } else { F8C1784196801EF1A9B9A586B4B6752CD('plays', F3E938839269BA073114D7B5FB1A40B3C('plays') + 1); } } if ( empty($user_ID) ) { $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); if ( intval($R9C65084CFC54EB0D266E6D073B818630['limit_plays']) > '0' ) { $R2C13D5996A35A6262EF07823C1002FDC = F3E938839269BA073114D7B5FB1A40B3C('plays'); if ( $R2C13D5996A35A6262EF07823C1002FDC >= intval($R9C65084CFC54EB0D266E6D073B818630['limit_plays']) ) { $R679E9B9234E2062F809DBD3325D37FB6 = false; if ( !empty($R9C65084CFC54EB0D266E6D073B818630['limit_message']) ) { echo $R9C65084CFC54EB0D266E6D073B818630['limit_message']; } } } } return $R679E9B9234E2062F809DBD3325D37FB6; } function F5D890FBB80061C6838ECDFF1B129A843($user_ID) { global $wpdb; if ( isset($user_ID) && is_int($user_ID) ) { $wpdb->query("DELETE FROM ".MYARCADE_SCORES_TABLE." WHERE `user_id` = '$user_ID'"); $wpdb->query("DELETE FROM ".MYARCADE_USER_TABLE." WHERE `user_id` = '$user_ID'"); } } function F651D852D296038193D0006AD9814936B() { global $wp_admin_bar, $wpdb; if ( function_exists('is_admin_bar_showing') ) { if ( !is_super_admin() || !is_admin_bar_showing() ) { return; } $R3584859062EA9ECFB39B93BFCEF8E869 = 'myarcade-bar'; $wp_admin_bar->add_menu( array('id' => $R3584859062EA9ECFB39B93BFCEF8E869, 'title' => 'MyArcade', 'href' => admin_url( 'admin.php?page=myarcade_admin.php') ) ); $wp_admin_bar->add_menu( array('id' => 'fetch-games', 'parent' => $R3584859062EA9ECFB39B93BFCEF8E869, 'title' => 'Fetch Games', 'href' => admin_url('admin.php?page=myarcade-fetch') ) ); $wp_admin_bar->add_menu( array('id' => 'import-games', 'parent' => $R3584859062EA9ECFB39B93BFCEF8E869, 'title' => 'Import Games', 'href' => admin_url('admin.php?page=myarcade-import-games') ) ); $wp_admin_bar->add_menu( array('id' => 'publish-games', 'parent' => $R3584859062EA9ECFB39B93BFCEF8E869, 'title' => 'Publish Games', 'href' => admin_url('admin.php?page=myarcade-add-games-to-blog') ) ); $wp_admin_bar->add_menu( array('id' => 'manage-games', 'parent' => $R3584859062EA9ECFB39B93BFCEF8E869, 'title' => 'Manage Games', 'href' => admin_url('admin.php?page=myarcade-manage-games') ) ); $wp_admin_bar->add_menu( array('id' => 'myarcade-settings', 'parent' => $R3584859062EA9ECFB39B93BFCEF8E869, 'title' => 'Settings', 'href' => admin_url('admin.php?page=myarcade-edit-settings') ) ); } } ?>