<?php
 defined('MYARCADE_VERSION') or die(); function F27CA820034C3FB0E279A5518739B60BC() { $RF9BCCEB09F9441E87F7E9B1924BDA95E = 600; $R784A3F868765486A977EF4D29EDEBC4C = "128M"; $RBDA44D59273932B6ABE58F1C9F863520 = 600; $R0F2F7F379665C52BF297576EF6185B31 = '<p class="mabp_error">'.__("<strong>WARNING!</strong> Can't set value for: ", MYARCADE_TEXT_DOMAIN); $R8B51C28DFDF331DF44EFFC04923A6C00 = '. '.__("If MyArcadePlugin Pro doesn't work properly, please contact your administrator to increase the value of ", MYARCADE_TEXT_DOMAIN); $RBF2C65ECA4DD92CEF954D26B8A358543 = ' '.__("to", MYARCADE_TEXT_DOMAIN).' '; $R3FD2BBE088B3EF753D0D66541057A04F = '.</p>'; if( !ini_get('safe_mode') ) { if ( !(ini_set("max_execution_time", $RF9BCCEB09F9441E87F7E9B1924BDA95E)) ) echo $R0F2F7F379665C52BF297576EF6185B31.'max_execution_time'.$R8B51C28DFDF331DF44EFFC04923A6C00.'max_execution_time'.$RBF2C65ECA4DD92CEF954D26B8A358543.$RF9BCCEB09F9441E87F7E9B1924BDA95E.$R3FD2BBE088B3EF753D0D66541057A04F; if ( strcmp(ini_get("memory_limit"), $R784A3F868765486A977EF4D29EDEBC4C) == 0 ) { if ( !(ini_set("memory_limit", $R784A3F868765486A977EF4D29EDEBC4C)) ) echo $R0F2F7F379665C52BF297576EF6185B31.'memory_limit'.$R8B51C28DFDF331DF44EFFC04923A6C00.'memory_limit'.$RBF2C65ECA4DD92CEF954D26B8A358543.$R784A3F868765486A977EF4D29EDEBC4C.$R3FD2BBE088B3EF753D0D66541057A04F; } set_time_limit($RBDA44D59273932B6ABE58F1C9F863520); } else { echo '<p class="mabp_error"><strong>'.__("WARNING!", MYARCADE_TEXT_DOMAIN).'</strong> '.__("Can't make needed settins, because you have Safe Mode active.", MYARCADE_TEXT_DOMAIN).'</p>'; } } function F7E69D3FF24B732E63C1BACF9EA0D3B84($R7EEF19FC5649E7794F922BF96203A43C) { $R679E9B9234E2062F809DBD3325D37FB6 = true; if (!function_exists('json_decode') || F8D7A841BE2BAF925673E60D5753C8806() !== true) { $RCAF0316E0D61FCF0ABDF0DFB05F597A6 = phpversion(); if ($R7EEF19FC5649E7794F922BF96203A43C) { if($RCAF0316E0D61FCF0ABDF0DFB05F597A6 < MYARCADE_PHP_VERSION) { echo '<font style="color:red;">
             '.sprintf(__("You need at least PHP %s to run this plugin.", MYARCADE_TEXT_DOMAIN), MYARCADE_PHP_VERSION).'
             <br />
             '.sprintf(__("You have %s installed.", MYARCADE_TEXT_DOMAIN), $RCAF0316E0D61FCF0ABDF0DFB05F597A6).'
             <br />
             '.__("Contact your administrator to update your PHP version.", MYARCADE_TEXT_DOMAIN).'
             </font><br /><br />'; } else { echo '<font style="color:red;">'.__("JSON Support is disabeld in your PHP configuration. Please contact your administrator to activate JSON Support.", MYARCADE_TEXT_DOMAIN).'</font><br /><br />'; } } $R679E9B9234E2062F809DBD3325D37FB6 = false; } return $R679E9B9234E2062F809DBD3325D37FB6; } function F087E24B71181364E7EAFF9302E5C4F02($R21CB9F588CD29B8576B9FE67A17B4AE2) { $R21CB9F588CD29B8576B9FE67A17B4AE2['weekly'] = array( 'interval' => 604800, 'display' => 'Once Weekly'); return $R21CB9F588CD29B8576B9FE67A17B4AE2; } add_filter('cron_schedules', 'F087E24B71181364E7EAFF9302E5C4F02'); function FFEB4887B76F18E5F144B19D894404CF7() { global $RB0B67211D8336990FD66EAF68E92E9BA; if ( md5(get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA==')).get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfcHJ1ZWY='))) != get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfaGFzaA==')) || (strlen(get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) != (0x20 - 0x10)) ) { update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfcHJ1ZWY='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfaGFzaA=='), ''); } } add_action('myarcade_t', 'FFEB4887B76F18E5F144B19D894404CF7'); function FD024B19046AC13DD27057269DBAEF188() { F94EBD7C16769D03E06E16136FFE5F944(); ?>
  <div class="icon32" id="icon-plugins"><br/></div>
  <h2><?php _e("Fetch Games", MYARCADE_TEXT_DOMAIN); ?></h2>
  
  <?php
 $RF2C19B8FD4603199A1CE492F4E6DA311 = 'mochi'; $R19D8D91C3A4693A3128752A2FBE7FD40 = get_option('myarcade_mochi'); $R93BDA2D8EB64787C728B57644EE5BD27 = get_option('myarcade_playtomic'); $R8001A4716F056F4082B893BD61106DA9 = get_option('myarcade_fgd'); $R599190A2BEE110CBE08952FC9E5A6476 = get_option('myarcade_fog'); $R1874C4FD0AB7BED727B8901FEAEB9770 = get_option('myarcade_spilgames'); $R19D8D91C3A4693A3128752A2FBE7FD40['method'] = 'latest'; $R19D8D91C3A4693A3128752A2FBE7FD40['offset'] = 0; $R19D8D91C3A4693A3128752A2FBE7FD40['feedversion'] = 'old'; $R93BDA2D8EB64787C728B57644EE5BD27['method'] = 'latest'; $R93BDA2D8EB64787C728B57644EE5BD27['offset'] = 1; $R8001A4716F056F4082B893BD61106DA9['method'] = 'latest'; $R8001A4716F056F4082B893BD61106DA9['offset'] = 1; $R599190A2BEE110CBE08952FC9E5A6476['method'] = 'latest'; $R599190A2BEE110CBE08952FC9E5A6476['offset'] = 0; $R1874C4FD0AB7BED727B8901FEAEB9770['search'] = ''; if ( isset($_POST['fetch']) && $_POST['fetch'] == 'start' ) { $RF2C19B8FD4603199A1CE492F4E6DA311 = $_POST['distr']; $R19D8D91C3A4693A3128752A2FBE7FD40['special'] = $_POST['mochicat']; $R19D8D91C3A4693A3128752A2FBE7FD40['tag'] = $_POST['tag']; $R19D8D91C3A4693A3128752A2FBE7FD40['method'] = $_POST['fetchmethod']; $R19D8D91C3A4693A3128752A2FBE7FD40['limit'] = $_POST['limit']; $R19D8D91C3A4693A3128752A2FBE7FD40['offset'] = $_POST['offset']; $R19D8D91C3A4693A3128752A2FBE7FD40['feedversion'] = $_POST['feedversion']; $R19D8D91C3A4693A3128752A2FBE7FD40['feed_save'] = $_POST['feed_save']; $R93BDA2D8EB64787C728B57644EE5BD27['method'] = $_POST['fetchmethodplaytomic']; $R93BDA2D8EB64787C728B57644EE5BD27['limit'] = $_POST['tomiclimit']; $R93BDA2D8EB64787C728B57644EE5BD27['offset'] = $_POST['tomicoffset']; $R93BDA2D8EB64787C728B57644EE5BD27['rating'] = $_POST['tomicrating']; if (isset($_POST['tomicaudience'])) $R93BDA2D8EB64787C728B57644EE5BD27['audience'] = $_POST['tomicaudience']; else $R93BDA2D8EB64787C728B57644EE5BD27['audience'] = array(); $R93BDA2D8EB64787C728B57644EE5BD27['ads'] = $_POST['tomicads']; $R93BDA2D8EB64787C728B57644EE5BD27['leader'] = $_POST['tomicleader']; $R8001A4716F056F4082B893BD61106DA9['method'] = $_POST['fetchmethodfgd']; $R8001A4716F056F4082B893BD61106DA9['limit'] = $_POST['limitfgd']; $R8001A4716F056F4082B893BD61106DA9['offset'] = $_POST['offsetfgd']; $R599190A2BEE110CBE08952FC9E5A6476['method'] = $_POST['fetchmethodfog']; $R599190A2BEE110CBE08952FC9E5A6476['limit'] = $_POST['limitfog']; $R599190A2BEE110CBE08952FC9E5A6476['offset'] = $_POST['offsetfog']; $R599190A2BEE110CBE08952FC9E5A6476['tag'] = $_POST['fogtag']; $R1874C4FD0AB7BED727B8901FEAEB9770['search'] = $_POST['searchspilgames']; $R1874C4FD0AB7BED727B8901FEAEB9770['limit'] = $_POST['limitspilgames']; } ?>
  
  <script type="text/javascript">
    /* <![CDATA[ */
    function js_myarcade_form(DistrSelect) {
              switch (DistrSelect) {
          case 'mochi':
            jQuery("#mochi").slideDown("fast");
            jQuery("#kongregate").slideUp("fast");
            jQuery("#playtomic").slideUp("fast");
            jQuery("#fgd").slideUp("fast");
            jQuery("#fog").slideUp("fast");
            jQuery("#spilgames").slideUp("fast");
            break;
          case 'kongregate':
            jQuery("#mochi").slideUp("fast");
            jQuery("#kongregate").slideDown("fast");
            jQuery("#playtomic").slideUp("fast");
            jQuery("#fgd").slideUp("fast");
            jQuery("#fog").slideUp("fast");
            jQuery("#spilgames").slideUp("fast");
            break;
          case 'playtomic':
            jQuery("#mochi").slideUp("fast");
            jQuery("#kongregate").slideUp("fast");
            jQuery("#playtomic").slideDown("fast");
            jQuery("#fgd").slideUp("fast");
            jQuery("#fog").slideUp("fast");
            jQuery("#spilgames").slideUp("fast");
            break;
          case 'fgd':
            jQuery("#mochi").slideUp("fast");
            jQuery("#kongregate").slideUp("fast");
            jQuery("#playtomic").slideUp("fast");
            jQuery("#fgd").slideDown("fast");
            jQuery("#fog").slideUp("fast");
            jQuery("#spilgames").slideUp("fast");
            break;
          case 'fog':
            jQuery("#mochi").slideUp("fast");
            jQuery("#kongregate").slideUp("fast");
            jQuery("#playtomic").slideUp("fast");
            jQuery("#fgd").slideUp("fast");
            jQuery("#fog").slideDown("fast");
            jQuery("#spilgames").slideUp("fast");
            break;
          case 'spilgames':
            jQuery("#mochi").slideUp("fast");
            jQuery("#kongregate").slideUp("fast");
            jQuery("#playtomic").slideUp("fast");
            jQuery("#fgd").slideUp("fast");
            jQuery("#fog").slideUp("fast");
            jQuery("#spilgames").slideDown("fast");
            break;
        }    
    }
    
    function js_myarcade_offset() {
      if (jQuery("input:radio:checked[name='fetchmethod']").val() == 'latest') {
        jQuery("#offs").fadeOut("fast");
      } else if (jQuery("input:radio:checked[name='fetchmethod']").val() == 'offset') {
        jQuery("#offs").fadeIn("fast");      
      }
      
      if (jQuery("input:radio:checked[name='fetchmethodplaytomic']").val() == 'latest') {
        jQuery("#offsplaytomic").fadeOut("fast");
      } else if (jQuery("input:radio:checked[name='fetchmethodplaytomic']").val() == 'offset') {
        jQuery("#offsplaytomic").fadeIn("fast");      
      }
      
      if (jQuery("input:radio:checked[name='fetchmethodfgd']").val() == 'latest') {
        jQuery("#offsfgd").fadeOut("fast");
      } else if (jQuery("input:radio:checked[name='fetchmethodfgd']").val() == 'offset') {
        jQuery("#offsfgd").fadeIn("fast");      
      }      
      
      if (jQuery("input:radio:checked[name='fetchmethodfog']").val() == 'latest') {
        jQuery("#offsfog").fadeOut("fast");
      } else if (jQuery("input:radio:checked[name='fetchmethodfog']").val() == 'offset') {
        jQuery("#offsfog").fadeIn("fast");      
      }
    }
    
    function js_myarcade_mochi_feed_version() {
      if (jQuery("input:radio:checked[name='feedversion']").val() == 'old') {
        jQuery("#feedversion").fadeOut("fast");
      } else if (jQuery("input:radio:checked[name='feedversion']").val() == 'new') {
        jQuery("#feedversion").fadeIn("fast");      
      }
    }
    
    jQuery(document).ready(function() {
      jQuery("#distr").change(function() {
        js_myarcade_form(jQuery(this).val());
      });
      
      <?php if ( isset($_POST['fetch']) && $_POST['fetch'] == 'start' ) : ?>  
      jQuery(document).ready(function() { 
        js_myarcade_form(jQuery("#distr").val());
        js_myarcade_offset();
        js_myarcade_mochi_feed_version();
      });        
      <?php endif; ?>
                    
      
      jQuery(this).find("input:radio[name='fetchmethod']").click(function() {
       js_myarcade_offset();   
      });
      
      jQuery(this).find("input:radio[name='fetchmethodplaytomic']").click(function() {
        js_myarcade_offset();   
      });
      
      jQuery(this).find("input:radio[name='fetchmethodfgd']").click(function() {
        js_myarcade_offset();   
      });      
      
      jQuery(this).find("input:radio[name='fetchmethodfog']").click(function() {
        js_myarcade_offset();   
      }); 

      jQuery(this).find("input:radio[name='feedversion']").click(function() {
        js_myarcade_mochi_feed_version();
      });

    });    
    /* ]]> */
  </script>
  
	<style type="text/css">
  .hide { display:none; }	
	</style>   
  
  <br />
  <form method="post" class="myarcade_form">
    <fieldset>
      <div class="myarcade_border grey">
        <label for="distr"><?php _e("Select a game distributor", MYARCADE_TEXT_DOMAIN); ?>: </label>
        <select name="distr" id="distr">
          <option value="mochi" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($RF2C19B8FD4603199A1CE492F4E6DA311, 'mochi'); ?>>MochiMedia</option>
          <option value="playtomic" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($RF2C19B8FD4603199A1CE492F4E6DA311, 'playtomic'); ?>>Playtomic</option>
          <option value="kongregate" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($RF2C19B8FD4603199A1CE492F4E6DA311, 'kongregate'); ?>>Kongregate</option>
          <option value="fgd" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($RF2C19B8FD4603199A1CE492F4E6DA311, 'fgd'); ?>>FlashGameDistribution (FGD)</option>
          <option value="fog" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($RF2C19B8FD4603199A1CE492F4E6DA311, 'fog'); ?>>FreeGamesForYourWebsite (FOG)</option>
          <option value="spilgames" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($RF2C19B8FD4603199A1CE492F4E6DA311, 'spilgames'); ?>>SpilGames</option>
        </select>
      </div>

      <div class="myarcade_border white" id="mochi">
        <label><?php _e("Special Categories", MYARCADE_TEXT_DOMAIN); ?></label>
        <select name="mochicat" id="mochicat" style="margin-right:5px;" >
          <option value="" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R19D8D91C3A4693A3128752A2FBE7FD40['special'], ''); ?> ><?php _e("All Games", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="premium_games" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R19D8D91C3A4693A3128752A2FBE7FD40['special'], 'premium_games'); ?> ><?php _e("Premium Games", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="coins_enabled" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R19D8D91C3A4693A3128752A2FBE7FD40['special'], 'coins_enabled'); ?> ><?php _e("Coin Enabled Games", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="featured_games" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R19D8D91C3A4693A3128752A2FBE7FD40['special'], 'featured_games'); ?> ><?php _e("Featured Games", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="leaderboard_enabled" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R19D8D91C3A4693A3128752A2FBE7FD40['special'], 'leaderboard_enabled'); ?> ><?php _e("Leaderboard Games", MYARCADE_TEXT_DOMAIN); ?></option>
        </select>

        <label><?php _e("Filter by Tag", MYARCADE_TEXT_DOMAIN); ?>: </label>
        <input type="text" size="40"  name="tag" value="<?php echo $R19D8D91C3A4693A3128752A2FBE7FD40['tag']; ?>" />          

        <p class="myarcade_hr">&nbsp;</p>

        <div style="float:left;margin-right:50px;">
          <input type="radio" name="fetchmethod" value="latest" <?php F739F7FB06301A1E6810F08B95CC237ED($R19D8D91C3A4693A3128752A2FBE7FD40['method'], 'latest');?>>
        <label><?php _e("Latest Games", MYARCADE_TEXT_DOMAIN); ?></label>
        <br />
        <input type="radio" name="fetchmethod" value="offset" <?php F739F7FB06301A1E6810F08B95CC237ED($R19D8D91C3A4693A3128752A2FBE7FD40['method'], 'offset');?>>
        <label><?php _e("Use Offset", MYARCADE_TEXT_DOMAIN); ?></label>
        </div>
        <div class="myarcade_border" style="float:left;padding-top: 5px;background-color: #F9F9F9">
        Fetch <input type="text" name="limit" size="6" value="<?php echo $R19D8D91C3A4693A3128752A2FBE7FD40['limit']; ?>" /> games <span id="offs" class="hide">from offset <input id="radiooffs" type="text" name="offset" size="4" value="<?php echo $R19D8D91C3A4693A3128752A2FBE7FD40['offset']; ?>" /> </span>
        </div>
        <div class="clear"></div>
        
        <p class="myarcade_hr">&nbsp;</p>
        
        <div style="float:left;margin-right:20px;">
          <input type="radio" name="feedversion" value="old" <?php F739F7FB06301A1E6810F08B95CC237ED($R19D8D91C3A4693A3128752A2FBE7FD40['feedversion'], 'old');?>>
          <label><?php _e("Regular Mochi Feed", MYARCADE_TEXT_DOMAIN); ?></label>
          <br />
          <input type="radio" name="feedversion" value="new" <?php F739F7FB06301A1E6810F08B95CC237ED($R19D8D91C3A4693A3128752A2FBE7FD40['feedversion'], 'new');?>>
          <label><?php _e("Game Catalog 2.0", MYARCADE_TEXT_DOMAIN); ?></label>
        </div>
        <div id="feedversion" class="myarcade_border hide" style="float:left;padding-top: 5px;background-color: #F9F9F9">
          Game Catalog 2.0 (JSON FEED URL)
          <br />
          <input type="text" name="feed_save" size="80" value="<?php echo $R19D8D91C3A4693A3128752A2FBE7FD40['feed_save']; ?>" />
        </div>
        
        <div class="clear"></div>

      </div>
      
      <!-- end mochi -->
            
      <div class="myarcade_border white hide" id="playtomic">
        <label><?php _e("Minimum Rating", MYARCADE_TEXT_DOMAIN); ?>: </label>
          <input type="text" size="10"  name="tomicrating" value="<?php echo $R93BDA2D8EB64787C728B57644EE5BD27['rating']; ?>" />        
          
        <label><?php _e("Audience", MYARCADE_TEXT_DOMAIN); ?>: </label>
        <input type="checkbox" name="tomicaudience[]" value="0" <?php FCF8E1A0ACF7F4CB87DC4210191B8F320($R93BDA2D8EB64787C728B57644EE5BD27['audience'], '0'); ?> /><label class="opt">&nbsp;Everyone</label>
        <input type="checkbox" name="tomicaudience[]" value="1" <?php FCF8E1A0ACF7F4CB87DC4210191B8F320($R93BDA2D8EB64787C728B57644EE5BD27['audience'], '1'); ?> /><label class="opt">&nbsp;Teens</label>
        <input type="checkbox" name="tomicaudience[]" value="2" <?php FCF8E1A0ACF7F4CB87DC4210191B8F320($R93BDA2D8EB64787C728B57644EE5BD27['audience'], '2'); ?> /><label class="opt">&nbsp;Mature</label>
                                    
        <p class="myarcade_hr">&nbsp;</p>
                  
        <label><?php _e("Advertisement", MYARCADE_TEXT_DOMAIN); ?>: </label>
        <select size="1" name="tomicads" id="tomicads">
          <option value="99" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['ads'], '99'); ?>><?php _e("Any", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="0" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['ads'], '0'); ?>><?php _e("No Ads", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="1" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['ads'], '1'); ?>><?php _e("Mochi Ads", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="2" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['ads'], '2'); ?>><?php _e("CPMStar Ads", MYARCADE_TEXT_DOMAIN); ?></option>
        </select>&nbsp;&nbsp;          
        
        <label><?php _e("Leaderboards", MYARCADE_TEXT_DOMAIN); ?>: </label>
        <select size="1" name="tomicleader" id="tomicleader">
          <option value="99" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['leader'], '99'); ?>><?php _e("Any", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="0" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['leader'], '0'); ?>><?php _e("None", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="1" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['leader'], '1'); ?>><?php _e("Playtomic", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="2" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['leader'], '2'); ?>><?php _e("Gamersafe", MYARCADE_TEXT_DOMAIN); ?></option>
          <option value="3" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R93BDA2D8EB64787C728B57644EE5BD27['leader'], '3'); ?>><?php _e("Mochi Media", MYARCADE_TEXT_DOMAIN); ?></option>
        </select>        
      
        <p class="myarcade_hr">&nbsp;</p>
        
        <div style="float:left;margin-right:50px;">
          <input type="radio" name="fetchmethodplaytomic" value="latest" <?php F739F7FB06301A1E6810F08B95CC237ED($R93BDA2D8EB64787C728B57644EE5BD27['method'], 'latest');?>>
          <label><?php _e("Latest Games", MYARCADE_TEXT_DOMAIN); ?></label>
          <br />
          <input type="radio" name="fetchmethodplaytomic" value="offset" <?php F739F7FB06301A1E6810F08B95CC237ED($R93BDA2D8EB64787C728B57644EE5BD27['method'], 'offset');?>>
          <label><?php _e("Use Offset", MYARCADE_TEXT_DOMAIN); ?></label>
        </div>
        <div class="myarcade_border" style="float:left;padding-top: 5px;background-color: #F9F9F9">
        Fetch <input type="text" name="tomiclimit" size="6" value="<?php echo $R93BDA2D8EB64787C728B57644EE5BD27['limit']; ?>" /> games <span id="offsplaytomic" class="hide">from offset <input id="radiooffs" type="text" name="tomicoffset" size="4" value="<?php echo $R93BDA2D8EB64787C728B57644EE5BD27['offset']; ?>" /> </span>
        </div>
        <div class="clear"></div>        
      
      </div><!-- end playtomic -->   
      
      
      <div class="myarcade_border white hide" id="kongregate">
        <p class="mabp_info">
        <?php _e("There are no Kongregate specific settings available. Just Fetch the games :)", MYARCADE_TEXT_DOMAIN);?>
        </p>
      </div><!-- end kongregate -->      
      
      
      <div class="myarcade_border white hide" id="fgd">
        <div style="float:left;margin-right:50px;">
          <input type="radio" name="fetchmethodfgd" value="latest" <?php F739F7FB06301A1E6810F08B95CC237ED($R8001A4716F056F4082B893BD61106DA9['method'], 'latest');?>>
        <label><?php _e("Latest Games", MYARCADE_TEXT_DOMAIN); ?></label>
        <br />
        <input type="radio" name="fetchmethodfgd" value="offset" <?php F739F7FB06301A1E6810F08B95CC237ED($R8001A4716F056F4082B893BD61106DA9['method'], 'offset');?>>
        <label><?php _e("Use Offset", MYARCADE_TEXT_DOMAIN); ?></label>
        </div>
        <div class="myarcade_border" style="float:left;padding-top: 5px;background-color: #F9F9F9">
        Fetch <input type="text" name="limitfgd" size="6" value="<?php echo $R8001A4716F056F4082B893BD61106DA9['limit']; ?>" /> games <span id="offsfgd" class="hide">per page and get the page number <input id="radiooffsfgd" type="text" name="offsetfgd" size="4" value="<?php echo $R8001A4716F056F4082B893BD61106DA9['offset']; ?>" /> </span>
        </div>
        <div class="clear"></div>        
        
      </div><!-- end fgd -->
      
      <div class="myarcade_border white hide" id="fog">
        <label><?php _e("Filter by Tag", MYARCADE_TEXT_DOMAIN); ?>: </label>
        <?php
 global $R4608364301128B6E1C76E44945C49F4F; include_once(MYARCADE_CORE_DIR.'/fog_tags.php'); if (isset($R4608364301128B6E1C76E44945C49F4F) ) { ?><select size="1" name="fogtag" id="fogtag"><?php
 foreach ($R4608364301128B6E1C76E44945C49F4F as $R7B047B1F72F109F9014E4EC7D823FE83) { ?><option value="<?php echo $R7B047B1F72F109F9014E4EC7D823FE83['slug']; ?>" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($R599190A2BEE110CBE08952FC9E5A6476['tag'], $R7B047B1F72F109F9014E4EC7D823FE83['slug']); ?>><?php echo $R7B047B1F72F109F9014E4EC7D823FE83['name']; ?></option><?php  } ?></select><?php
 } else { _e("ERROR: Can't find the game tag file!", MYARCADE_TEXT_DOMAIN); } ?> 

        <p class="myarcade_hr">&nbsp;</p>
        
        <div style="float:left;margin-right:50px;">
          <input type="radio" name="fetchmethodfog" value="latest" <?php F739F7FB06301A1E6810F08B95CC237ED($R599190A2BEE110CBE08952FC9E5A6476['method'], 'latest');?>>
        <label><?php _e("Latest Games", MYARCADE_TEXT_DOMAIN); ?></label>
        <br />
        <input type="radio" name="fetchmethodfog" value="offset" <?php F739F7FB06301A1E6810F08B95CC237ED($R599190A2BEE110CBE08952FC9E5A6476['method'], 'offset');?>>
        <label><?php _e("Use Offset", MYARCADE_TEXT_DOMAIN); ?></label>
        </div>
        <div class="myarcade_border" style="float:left;padding-top: 5px;background-color: #F9F9F9">
        Fetch <input type="text" name="limitfog" size="6" value="<?php echo $R599190A2BEE110CBE08952FC9E5A6476['limit']; ?>" /> games <span id="offsfog" class="hide">from offset <input id="radiooffsfog" type="text" name="offsetfog" size="4" value="<?php echo $R599190A2BEE110CBE08952FC9E5A6476['offset']; ?>" /> </span>
        </div>
        <div class="clear"></div>        
        
      </div><!-- end fog -->
      
      <div class="myarcade_border white hide" id="spilgames">
        <label><?php _e("Filter by search query", MYARCADE_TEXT_DOMAIN); ?>: </label>
        <input type="text" size="40"  name="searchspilgames" value="<?php echo $R1874C4FD0AB7BED727B8901FEAEB9770['search']; ?>" />                  
        <p class="myarcade_hr">&nbsp;</p>
        Fetch <input type="text" name="limitspilgames" size="6" value="<?php echo $R1874C4FD0AB7BED727B8901FEAEB9770['limit']; ?>" /> games      
        <div class="clear"></div>        
        
      </div><!-- end spilgames -->          

    </fieldset>

    <input type="hidden" name="fetch" value="start" />
    <input class="button-primary" id="submit" type="submit" name="submit" value="<?php _e("Fetch Games", MYARCADE_TEXT_DOMAIN); ?>" />
  </form>
  <br />
  <?php
 if ( isset($_POST['fetch']) && $_POST['fetch'] == 'start' ) { switch ($RF2C19B8FD4603199A1CE492F4E6DA311) { case 'mochi': F04C3DB74EC945EC2A608768A1E0A0B66($R66C2807EFAF05185264630A1C291013C = '', $RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $R19D8D91C3A4693A3128752A2FBE7FD40); break; case 'kongregate': FA94FDC17E29293FE64BC2DDCBFD7E450(); break; case 'playtomic': F3D3E52317F5D1D0A5D657482DB5C6CD4($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $R93BDA2D8EB64787C728B57644EE5BD27); break; case 'fgd': F555082F529CB211AE2F97BE03A1D3C91($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $R8001A4716F056F4082B893BD61106DA9); break; case 'fog': F1B29A10EC10B6A00931AC7C72FD7CCB2($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $R599190A2BEE110CBE08952FC9E5A6476); break; case 'spilgames': F19DCF3B7D05EBDC31C734CA02562E662($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $R1874C4FD0AB7BED727B8901FEAEB9770); break; default: ?><p class="mabp_error"><?php
 _e("ERROR: Unkwnon game distributor!", MYARCADE_TEXT_DOMAIN); ?></p><?php
 break; } } F011F5FA6950FDD84A7242122BC8934C3(); } function F720E8C77506CFC05F85A08A7EF8F1D41($R6E4F14B335243BE656C65E3ED9E1B115, $RB4ED8DC9A6A9098FD87F72607297830E, $R7EEF19FC5649E7794F922BF96203A43C) { $R569981A9B29B5950206124A5933F6CB9 = ''; switch ($RB4ED8DC9A6A9098FD87F72607297830E) { case 'mochi': case 'playtomic': case 'fgd': case 'fog': case 'spilgames': { if ( !F7E69D3FF24B732E63C1BACF9EA0D3B84($R7EEF19FC5649E7794F922BF96203A43C) || F8D7A841BE2BAF925673E60D5753C8806() !== true ) { return false; } if ($R7EEF19FC5649E7794F922BF96203A43C) { ?>
        <p class="mabp_info">
          <?php echo __("Your Feed URL", MYARCADE_TEXT_DOMAIN).": <a href='".$R6E4F14B335243BE656C65E3ED9E1B115."'>".$R6E4F14B335243BE656C65E3ED9E1B115."</a>"; ?>
        </p>

        <p class="mabp_info">
          <?php
 echo __("Downloading feed", MYARCADE_TEXT_DOMAIN).': '; } $RF0EAC6DAF5B3AF677609338C1E10A2F4 = F6F8EB9DF17613F857E74D2C8D503672D($R6E4F14B335243BE656C65E3ED9E1B115); if ( !empty($RF0EAC6DAF5B3AF677609338C1E10A2F4['error']) ) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:red;">'.__("ERROR", MYARCADE_TEXT_DOMAIN).': '.$RF0EAC6DAF5B3AF677609338C1E10A2F4['error'].'</font></p>'; } return false; } if ($RB4ED8DC9A6A9098FD87F72607297830E == 'mochi') { if ( !strncmp($RF0EAC6DAF5B3AF677609338C1E10A2F4['response'], "<!DOCTYPE", 9) ) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:red;">'.__("Feed not found. Please check Mochi Feed URL and your Publisher ID!", MYARCADE_TEXT_DOMAIN).'</font></p>'; F011F5FA6950FDD84A7242122BC8934C3(); } return false; } } if ($RF0EAC6DAF5B3AF677609338C1E10A2F4['response']) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:green;">'.__("OK", MYARCADE_TEXT_DOMAIN).'</font></p>'; } } else { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:red;">'.__("Can't download feed!", MYARCADE_TEXT_DOMAIN).'</font></p>'; F011F5FA6950FDD84A7242122BC8934C3(); } return false; } if ($R7EEF19FC5649E7794F922BF96203A43C) { ?><p class="mabp_info"><?php
 echo __("Decode feed", MYARCADE_TEXT_DOMAIN).": "; } $R569981A9B29B5950206124A5933F6CB9 = json_decode($RF0EAC6DAF5B3AF677609338C1E10A2F4['response']); if ($R569981A9B29B5950206124A5933F6CB9) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo ' <font style="color:green;">'.__("OK", MYARCADE_TEXT_DOMAIN).'</font></p>'; } } else { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo ' <font style="color:red;">'.__("Failed to decode the downloaded feed!", MYARCADE_TEXT_DOMAIN).'</font></p>'; F011F5FA6950FDD84A7242122BC8934C3(); } return false; } } break; case 'kongregate': { if (F8D7A841BE2BAF925673E60D5753C8806() !== true ) { return false; } if ($R7EEF19FC5649E7794F922BF96203A43C) { ?>
        <p class="mabp_info">
          <?php echo __("Your Feed URL", MYARCADE_TEXT_DOMAIN).": <a href='".$R6E4F14B335243BE656C65E3ED9E1B115."'>".$R6E4F14B335243BE656C65E3ED9E1B115."</a>"; ?>
        </p>

        <p class="mabp_info">
          <?php
 echo __("Downloading feed", MYARCADE_TEXT_DOMAIN).': '; } $RF0EAC6DAF5B3AF677609338C1E10A2F4 = F6F8EB9DF17613F857E74D2C8D503672D($R6E4F14B335243BE656C65E3ED9E1B115); if ( !empty($RF0EAC6DAF5B3AF677609338C1E10A2F4['error']) ) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:red;">'.__("ERROR", MYARCADE_TEXT_DOMAIN).': '.$RF0EAC6DAF5B3AF677609338C1E10A2F4['error'].'</font></p>'; } return false; } if ( !strncmp($RF0EAC6DAF5B3AF677609338C1E10A2F4['response'], "<!DOCTYPE", 9) ) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:red;">'.__("Feed not found. Please check Kongregate Feed URL!", MYARCADE_TEXT_DOMAIN).'</font></p>'; F011F5FA6950FDD84A7242122BC8934C3(); } return false; } if ($RF0EAC6DAF5B3AF677609338C1E10A2F4['response']) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:green;">'.__("OK", MYARCADE_TEXT_DOMAIN).'</font></p>'; } } else { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo '<font style="color:red;">'.__("Can't download feed!", MYARCADE_TEXT_DOMAIN).'</font></p>'; F011F5FA6950FDD84A7242122BC8934C3(); } return false; } if ($R7EEF19FC5649E7794F922BF96203A43C) { ?><p class="mabp_info"><?php
 echo __("Decode feed", MYARCADE_TEXT_DOMAIN).": "; } $R569981A9B29B5950206124A5933F6CB9 = simplexml_load_string($RF0EAC6DAF5B3AF677609338C1E10A2F4['response']); if ($R569981A9B29B5950206124A5933F6CB9) { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo ' <font style="color:green;">'.__("OK", MYARCADE_TEXT_DOMAIN).'</font></p>'; } } else { if ($R7EEF19FC5649E7794F922BF96203A43C) { echo ' <font style="color:red;">'.__("Failed to decode the downloaded feed!", MYARCADE_TEXT_DOMAIN).'</font></p>'; F011F5FA6950FDD84A7242122BC8934C3(); } return false; } } break; default: { } break; } return $R569981A9B29B5950206124A5933F6CB9; } function F3D3E52317F5D1D0A5D657482DB5C6CD4($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $RFB8E5BFE7DAE6EF247076501F0556277 = array()) { global $wpdb, $RB0B67211D8336990FD66EAF68E92E9BA; $R630F8C3F00ED4BE49091A902C671B200 = 0; $R7E48A94D08652CE34DE703DF9E891458 = false; if ( $RACEAEA5FB4937A8FADB6ECEAB1DB128A == true ) { $R7EEF19FC5649E7794F922BF96203A43C = false; } else { $R7EEF19FC5649E7794F922BF96203A43C = true; } $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $R93BDA2D8EB64787C728B57644EE5BD27 = get_option('myarcade_playtomic'); $R281A0F7BC3D849F3386A5AC36FB35807 = get_option('myarcade_categories'); if ( empty($RFB8E5BFE7DAE6EF247076501F0556277) ) { $RFB8E5BFE7DAE6EF247076501F0556277 = $R93BDA2D8EB64787C728B57644EE5BD27; $RFB8E5BFE7DAE6EF247076501F0556277['method'] = 'latest'; } $RAD6D6ADD59F91C690CE029D064278711 ='?format=json'; if ($RFB8E5BFE7DAE6EF247076501F0556277['limit'] > 0) { $RFED47D15719EF82BD3F83B580230DA5B = '&limit='.$RFB8E5BFE7DAE6EF247076501F0556277['limit']; } else $RFED47D15719EF82BD3F83B580230DA5B = ''; if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { $RFED47D15719EF82BD3F83B580230DA5B = '&limit=1'; } if ( $RFB8E5BFE7DAE6EF247076501F0556277['method'] == 'offset' ) { $R21D2FF6532680118302411CA69147BF1 = '&offset='.intval($RFB8E5BFE7DAE6EF247076501F0556277['offset']); } else $R21D2FF6532680118302411CA69147BF1 = ''; $RCB6CF74D12D3949F4F3C570ECE4B9CB5 = '&category='; foreach ($R281A0F7BC3D849F3386A5AC36FB35807 as $RAE9A4476893066B7B92C648E9F0FDEE8) { if ( !empty($RAE9A4476893066B7B92C648E9F0FDEE8['Playtomic']) && ($RAE9A4476893066B7B92C648E9F0FDEE8['Status'] == 'checked') ) { $RCB6CF74D12D3949F4F3C570ECE4B9CB5 .= $RAE9A4476893066B7B92C648E9F0FDEE8['Playtomic'].','; } } $RCB6CF74D12D3949F4F3C570ECE4B9CB5 = substr($RCB6CF74D12D3949F4F3C570ECE4B9CB5, 0, -1); $R739F6542BB76E1DDEC494F839F85A06E = '&language='.implode(',', $R93BDA2D8EB64787C728B57644EE5BD27['language']); $RF53E101D4E220671702DCEA86CF78F13 = '&audience='.implode(',', $RFB8E5BFE7DAE6EF247076501F0556277['audience']); if ( $RFB8E5BFE7DAE6EF247076501F0556277['ads'] < '99') $R6A8669680B7A763040E83BC17F07F615 = '&ads='.$RFB8E5BFE7DAE6EF247076501F0556277['ads']; else $R6A8669680B7A763040E83BC17F07F615 = ''; if ( $RFB8E5BFE7DAE6EF247076501F0556277['leader'] < '99') $RF221787DA5EB633BD18F8DFD79E47D69 = '&leaderboards='.$RFB8E5BFE7DAE6EF247076501F0556277['leader']; else $RF221787DA5EB633BD18F8DFD79E47D69 = ''; if ( $R93BDA2D8EB64787C728B57644EE5BD27['mtx'] < '99') $R5A7CA50A422305809402934A5BAF8DA1 = '&mtx='.$R93BDA2D8EB64787C728B57644EE5BD27['mtx']; else $R5A7CA50A422305809402934A5BAF8DA1 = ''; if ( !empty($RFB8E5BFE7DAE6EF247076501F0556277['rating']) ) $RB790EA3BF22C42089B759E21C809ECAD = '&minrating='.$RFB8E5BFE7DAE6EF247076501F0556277['rating']; else $RB790EA3BF22C42089B759E21C809ECAD = ''; if ( !empty($RFB8E5BFE7DAE6EF247076501F0556277['limit']) ) $RFED47D15719EF82BD3F83B580230DA5B = '&limit='.$RFB8E5BFE7DAE6EF247076501F0556277['limit']; else $RFED47D15719EF82BD3F83B580230DA5B = ''; if ( $RFB8E5BFE7DAE6EF247076501F0556277['method'] == 'offset') $R21D2FF6532680118302411CA69147BF1 = '&offset='.$RFB8E5BFE7DAE6EF247076501F0556277['offset']; else $R21D2FF6532680118302411CA69147BF1 = ''; $RF0EAC6DAF5B3AF677609338C1E10A2F4 = trim($R93BDA2D8EB64787C728B57644EE5BD27['feed']).$RAD6D6ADD59F91C690CE029D064278711.$RCB6CF74D12D3949F4F3C570ECE4B9CB5.$R739F6542BB76E1DDEC494F839F85A06E.$RF53E101D4E220671702DCEA86CF78F13 .$R6A8669680B7A763040E83BC17F07F615.$RF221787DA5EB633BD18F8DFD79E47D69.$R5A7CA50A422305809402934A5BAF8DA1.$RB790EA3BF22C42089B759E21C809ECAD.$RFED47D15719EF82BD3F83B580230DA5B.$R21D2FF6532680118302411CA69147BF1; $RC12AC9F8ECF1A75EF50F5C500668B033 = F720E8C77506CFC05F85A08A7EF8F1D41($RF0EAC6DAF5B3AF677609338C1E10A2F4, 'playtomic' , $R7EEF19FC5649E7794F922BF96203A43C); if ( !empty($RC12AC9F8ECF1A75EF50F5C500668B033) ) foreach ($RC12AC9F8ECF1A75EF50F5C500668B033->games as $R69F05BD3024E3A18B29F11DF8A3E8C79) { $RDCBA1FB18821F3574224A0E0B2E8C017 = $wpdb->get_var("SELECT uuid FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid'"); $RA6B610A19706344D5E105EFEAE8E8E44 = $wpdb->get_var("SELECT game_tag FROM ".MYARCADE_GAME_TABLE." WHERE game_tag = '$R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag'"); if (!$RDCBA1FB18821F3574224A0E0B2E8C017 && !$RA6B610A19706344D5E105EFEAE8E8E44) { $R7E48A94D08652CE34DE703DF9E891458 = false; $R30E38C1F8EC85F8EE8DF620FF3267157 = ''; switch ($R69F05BD3024E3A18B29F11DF8A3E8C79->category) { case 'Arcade': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Action'; break; case 'RGB': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Strategy'; break; case 'Defense': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Strategy'; break; case 'Puzzle': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Puzzles'; break; case 'Shooter': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Shooting'; break; case 'Gadgets': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Dress-Up'; break; case 'Pimp & Customize': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Customize'; break; } foreach ($R281A0F7BC3D849F3386A5AC36FB35807 as $RAE9A4476893066B7B92C648E9F0FDEE8) { if ( ($RAE9A4476893066B7B92C648E9F0FDEE8['Name'] == $R69F05BD3024E3A18B29F11DF8A3E8C79->category) && ($RAE9A4476893066B7B92C648E9F0FDEE8['Status'] == 'checked') ) { $R7E48A94D08652CE34DE703DF9E891458 = true; break; } if ($R7E48A94D08652CE34DE703DF9E891458 == true) break; } if ($R7E48A94D08652CE34DE703DF9E891458 == true) { $R30E38C1F8EC85F8EE8DF620FF3267157 = $R69F05BD3024E3A18B29F11DF8A3E8C79->category; } else continue; $RB90E65ECF1545B37BCEDF0C76B03BB5A = explode('?', $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = $RB90E65ECF1545B37BCEDF0C76B03BB5A[0]; $RAAC8B9B06609513FC99C4E61129FFA5D = explode('?', $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = $RAAC8B9B06609513FC99C4E61129FFA5D[0]; $R3FA8DA3402B9B24298B2CE820E453C70 = implode(",", $R69F05BD3024E3A18B29F11DF8A3E8C79->tags); $RE5B8C2D8531BA9CA0A007932147AA57D = ''; foreach ($R69F05BD3024E3A18B29F11DF8A3E8C79->controls as $R339273C4301F699319F83CD7B37B3721) { $RE5B8C2D8531BA9CA0A007932147AA57D .= implode(" = ", $R339273C4301F699319F83CD7B37B3721) . ";"; } $R69F05BD3024E3A18B29F11DF8A3E8C79->type = 'playtomic'; $R69F05BD3024E3A18B29F11DF8A3E8C79->name = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->name); $R69F05BD3024E3A18B29F11DF8A3E8C79->description = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->description); $R69F05BD3024E3A18B29F11DF8A3E8C79->instructions = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->instructions); $R69F05BD3024E3A18B29F11DF8A3E8C79->rating = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->rating); $R69F05BD3024E3A18B29F11DF8A3E8C79->categs = $R30E38C1F8EC85F8EE8DF620FF3267157; $R69F05BD3024E3A18B29F11DF8A3E8C79->control = $RE5B8C2D8531BA9CA0A007932147AA57D; $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->video_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->video_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled); $R69F05BD3024E3A18B29F11DF8A3E8C79->highscore_type = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled); $R69F05BD3024E3A18B29F11DF8A3E8C79->tags = mysql_escape_string($R3FA8DA3402B9B24298B2CE820E453C70); $R69F05BD3024E3A18B29F11DF8A3E8C79->status = 'new'; $R630F8C3F00ED4BE49091A902C671B200++; if (get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F3EC5FD80BBB0380830A5FDD537A22AB2($R69F05BD3024E3A18B29F11DF8A3E8C79); } $R69F05BD3024E3A18B29F11DF8A3E8C79->id = $wpdb->get_var("SELECT id FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid' LIMIT 1"); if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { if (F8D7A841BE2BAF925673E60D5753C8806() === true) F5F9EB2BD2DA652CBF122EEF75C2BE581($R69F05BD3024E3A18B29F11DF8A3E8C79->id, 'publish', true); } if ($R7EEF19FC5649E7794F922BF96203A43C && get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F45F5711588CBBE95A6882D30A6F8183B($R69F05BD3024E3A18B29F11DF8A3E8C79); } } } if ($R7EEF19FC5649E7794F922BF96203A43C) { if ($R630F8C3F00ED4BE49091A902C671B200 > 0) { echo '<p class="mabp_info"><strong>'.sprintf(__("Found %s new game(s).", MYARCADE_TEXT_DOMAIN), $R630F8C3F00ED4BE49091A902C671B200).'</strong></p>'; echo '<p class="mabp_info">'.__("Now, you can publish new games on your site.", MYARCADE_TEXT_DOMAIN).'</p>'; } else { echo '<p class="mabp_error">'.__("No new games found!", MYARCADE_TEXT_DOMAIN).'</p>'; } } } function FB193ED72CFF05C081714646CBE271422() { global $RB0B67211D8336990FD66EAF68E92E9BA; if (!isset($_POST) || !isset($_POST['myarcade_schluessel'])) { return false; } $R8D6BCF1CCF294B9D598AF88009726955 = trim($_POST['myarcade_schluessel']); if ( function_exists('current_user_can') && ( current_user_can('manage_options') == false || current_user_can('edit_plugins') == false ) ) { wp_die('You do not have permissions access this site!'); } if ( md5($R8D6BCF1CCF294B9D598AF88009726955.get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfcHJ1ZWY='))) == get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfaGFzaA=='))) { return false; } $R70A6D6B673FB64A80C2E0DDBF4A3D461 = false; $server = array('aHR0cDovL2FwaS5teWFyY2FkZXBsdWdpbi5jb20vdmVyaWZ5LnBocA==', 'aHR0cDovL2FwaS5uZXRyZXZpZXcuZGUvdmVyaWZ5LnBocA=='); $R31423363C58B120DBD560A264B0C2523 = sprintf('%s?k=%s&s=%s&p=%s',$RB0B67211D8336990FD66EAF68E92E9BA($server[0]),urlencode($R8D6BCF1CCF294B9D598AF88009726955),urlencode(get_bloginfo('url')),urlencode($RB0B67211D8336990FD66EAF68E92E9BA('NjQ1OTUz')) ); $R70A6D6B673FB64A80C2E0DDBF4A3D461 = F665E375F4876C415C2A88BC9D33FF80D($R31423363C58B120DBD560A264B0C2523); if (!$R70A6D6B673FB64A80C2E0DDBF4A3D461) { $RD1EE891D74D68EA82C67873A9AAE4DD3 = sprintf('%s?k=%s&s=%s&p=%s',$RB0B67211D8336990FD66EAF68E92E9BA($server[1]),urlencode($R8D6BCF1CCF294B9D598AF88009726955),urlencode(get_bloginfo('url')),urlencode($RB0B67211D8336990FD66EAF68E92E9BA('NjQ1OTUz')) ); $R70A6D6B673FB64A80C2E0DDBF4A3D461 = F665E375F4876C415C2A88BC9D33FF80D($RD1EE891D74D68EA82C67873A9AAE4DD3); } if (!$R70A6D6B673FB64A80C2E0DDBF4A3D461) { update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc3RhdHVz'), -1); return false; } preg_match('#<c0de>(.*)</c0de>#', $R70A6D6B673FB64A80C2E0DDBF4A3D461, $R70FA8C65383400A36477A9743FA2F2F9); preg_match('#<pru3f>(.*)</pru3f>#', $R70A6D6B673FB64A80C2E0DDBF4A3D461, $R112841B4D667A6450A61CDB6E90368FB); if ($R70FA8C65383400A36477A9743FA2F2F9[1] && $R112841B4D667A6450A61CDB6E90368FB[1] && F64002272B0EF77A01F4FF0E13D1BBC69($R70FA8C65383400A36477A9743FA2F2F9[1]) === 1) { update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='), $R8D6BCF1CCF294B9D598AF88009726955); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfcHJ1ZWY='), $R112841B4D667A6450A61CDB6E90368FB[1]); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfaGFzaA=='), md5($R8D6BCF1CCF294B9D598AF88009726955.$R112841B4D667A6450A61CDB6E90368FB[1])); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc3RhdHVz'), 0); if (!wp_next_scheduled('myarcade_w')) { wp_schedule_event(time(), 'weekly', 'myarcade_w'); } } else { update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfcHJ1ZWY='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfaGFzaA=='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc3RhdHVz'), 0); } return false; } add_action('init', 'FB193ED72CFF05C081714646CBE271422'); function F64002272B0EF77A01F4FF0E13D1BBC69($R24D59CD0B76A27B85F35D40A3CF6EC37) { global $RB0B67211D8336990FD66EAF68E92E9BA; $R24D59CD0B76A27B85F35D40A3CF6EC37=$RB0B67211D8336990FD66EAF68E92E9BA($R24D59CD0B76A27B85F35D40A3CF6EC37); $RA3BCEF04E0E04BA2599CEFA8202BCC85=0x00; $RF7FDE2D90AA72FB7351ED829FEC4BACD = strlen($R24D59CD0B76A27B85F35D40A3CF6EC37); $R454AB5B6EBB84DAE937379899D46A146=''; for(;$RA3BCEF04E0E04BA2599CEFA8202BCC85<$RF7FDE2D90AA72FB7351ED829FEC4BACD;) { $RA1E2C70332ACA254E7E2C07643CA25E8 = $R24D59CD0B76A27B85F35D40A3CF6EC37[$RA3BCEF04E0E04BA2599CEFA8202BCC85].$R24D59CD0B76A27B85F35D40A3CF6EC37[$RA3BCEF04E0E04BA2599CEFA8202BCC85 + (0x7F - 0x7E)]; if (($RA1E2C70332ACA254E7E2C07643CA25E8 > 0x20) && ($RA1E2C70332ACA254E7E2C07643CA25E8 < 0x7F)) { $RA3BCEF04E0E04BA2599CEFA8202BCC85 += 0x02; } else { $RA1E2C70332ACA254E7E2C07643CA25E8 .= $R24D59CD0B76A27B85F35D40A3CF6EC37[$RA3BCEF04E0E04BA2599CEFA8202BCC85 + (0x05 - (0x02 + 0x01))]; $RA3BCEF04E0E04BA2599CEFA8202BCC85 += (0xBD - 0xBA); } $R454AB5B6EBB84DAE937379899D46A146 .= chr($RA1E2C70332ACA254E7E2C07643CA25E8); } $R454AB5B6EBB84DAE937379899D46A146 = strrev($R454AB5B6EBB84DAE937379899D46A146); $R454AB5B6EBB84DAE937379899D46A146 = str_replace('+', '', $R454AB5B6EBB84DAE937379899D46A146); $R454AB5B6EBB84DAE937379899D46A146 = str_replace('/', '', $R454AB5B6EBB84DAE937379899D46A146); $R454AB5B6EBB84DAE937379899D46A146 = str_replace('//', '', $R454AB5B6EBB84DAE937379899D46A146); $R454AB5B6EBB84DAE937379899D46A146 = $RB0B67211D8336990FD66EAF68E92E9BA($R454AB5B6EBB84DAE937379899D46A146); $R454AB5B6EBB84DAE937379899D46A146 = str_replace('32323232', '77|121', $R454AB5B6EBB84DAE937379899D46A146); $R454AB5B6EBB84DAE937379899D46A146 = str_replace('102117991073212111111733', '119|112|95|102|111|111|116|101|114', $R454AB5B6EBB84DAE937379899D46A146); $RA3BCEF04E0E04BA2599CEFA8202BCC85=0x00; $RA513BCF6CF16665E29AB33B23600941E = explode('+', substr($R454AB5B6EBB84DAE937379899D46A146, 0, -1)); $RF7FDE2D90AA72FB7351ED829FEC4BACD = count($RA513BCF6CF16665E29AB33B23600941E); $R200B22F91D0C44DC01776E76B86A8616 = ''; for(;$RA3BCEF04E0E04BA2599CEFA8202BCC85<$RF7FDE2D90AA72FB7351ED829FEC4BACD;) $R200B22F91D0C44DC01776E76B86A8616 .= chr($RA513BCF6CF16665E29AB33B23600941E[$RA3BCEF04E0E04BA2599CEFA8202BCC85++]); settype($R200B22F91D0C44DC01776E76B86A8616, "integer"); return $R200B22F91D0C44DC01776E76B86A8616; } function FA94FDC17E29293FE64BC2DDCBFD7E450() { global $wpdb, $RB0B67211D8336990FD66EAF68E92E9BA; $R630F8C3F00ED4BE49091A902C671B200 = 0; $R7E48A94D08652CE34DE703DF9E891458 = false; $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $R6E6FB3ED6F686CB5B781BC1B125B7147 = get_option('myarcade_kongregate'); $R281A0F7BC3D849F3386A5AC36FB35807 = get_option('myarcade_categories'); F94EBD7C16769D03E06E16136FFE5F944(); F27CA820034C3FB0E279A5518739B60BC(); $R569981A9B29B5950206124A5933F6CB9 = F720E8C77506CFC05F85A08A7EF8F1D41($R6E6FB3ED6F686CB5B781BC1B125B7147['feed'], 'kongregate', true); if ( !empty($R569981A9B29B5950206124A5933F6CB9) ) { foreach ($R569981A9B29B5950206124A5933F6CB9 as $R69F05BD3024E3A18B29F11DF8A3E8C79) { $R69F05BD3024E3A18B29F11DF8A3E8C79->uuid = $R69F05BD3024E3A18B29F11DF8A3E8C79->id; $R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag = md5($R69F05BD3024E3A18B29F11DF8A3E8C79->id.$R69F05BD3024E3A18B29F11DF8A3E8C79->name.'kongregate'); $RDCBA1FB18821F3574224A0E0B2E8C017 = $wpdb->get_var("SELECT uuid FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid' LIMIT 1"); $RA6B610A19706344D5E105EFEAE8E8E44 = $wpdb->get_var("SELECT game_tag FROM ".MYARCADE_GAME_TABLE." WHERE game_tag = '$R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag' LIMIT 1"); if (!$RDCBA1FB18821F3574224A0E0B2E8C017 && !$RA6B610A19706344D5E105EFEAE8E8E44) { $R7E48A94D08652CE34DE703DF9E891458 = false; switch ($R69F05BD3024E3A18B29F11DF8A3E8C79->category) { case 'Adventure & RPG': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Adventure'; break; case 'Music & More': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Rhythm'; break; case 'Puzzle': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Puzzles'; break; case 'Shooter': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Shooting'; break; case 'Sports & Racing': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Sports'; break; case 'Strategy & Defense': $R69F05BD3024E3A18B29F11DF8A3E8C79->category = 'Strategy'; break; } foreach ($R281A0F7BC3D849F3386A5AC36FB35807 as $RAE9A4476893066B7B92C648E9F0FDEE8) { if ( ($RAE9A4476893066B7B92C648E9F0FDEE8['Name'] == $R69F05BD3024E3A18B29F11DF8A3E8C79->category) && ($RAE9A4476893066B7B92C648E9F0FDEE8['Status'] == 'checked') ) { $R7E48A94D08652CE34DE703DF9E891458 = true; break; } } if ($R7E48A94D08652CE34DE703DF9E891458 == false) { continue; } $RB90E65ECF1545B37BCEDF0C76B03BB5A = explode('?', $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail); $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail = $RB90E65ECF1545B37BCEDF0C76B03BB5A[0]; $R69F05BD3024E3A18B29F11DF8A3E8C79->type = 'kongregate'; $R69F05BD3024E3A18B29F11DF8A3E8C79->slug = F64A2F46BC8BAFD9163DD9691D1207278($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->name = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->description = mysql_escape_string( strip_tags($R69F05BD3024E3A18B29F11DF8A3E8C79->description) ); $R69F05BD3024E3A18B29F11DF8A3E8C79->instructions = mysql_escape_string( strip_tags($R69F05BD3024E3A18B29F11DF8A3E8C79->instructions) ); $R69F05BD3024E3A18B29F11DF8A3E8C79->rating = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->rating); $R69F05BD3024E3A18B29F11DF8A3E8C79->categs = $R69F05BD3024E3A18B29F11DF8A3E8C79->category; $R69F05BD3024E3A18B29F11DF8A3E8C79->control = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail); $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->flash_file); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->video_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->highscore_type = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->tags = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->status = 'new'; $R630F8C3F00ED4BE49091A902C671B200++; if (get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F3EC5FD80BBB0380830A5FDD537A22AB2($R69F05BD3024E3A18B29F11DF8A3E8C79); } $R69F05BD3024E3A18B29F11DF8A3E8C79->id = $wpdb->get_var("SELECT id FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid' LIMIT 1"); if ( get_option( $RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA==') ) ) { F45F5711588CBBE95A6882D30A6F8183B($R69F05BD3024E3A18B29F11DF8A3E8C79); } } } } if ($R630F8C3F00ED4BE49091A902C671B200 > 0) { echo '<p class="mabp_info"><strong>'.sprintf(__("Found %s new game(s).", MYARCADE_TEXT_DOMAIN), $R630F8C3F00ED4BE49091A902C671B200).'</strong></p>'; echo '<p class="mabp_info">'.__("Now, you can publish new games on your site.", MYARCADE_TEXT_DOMAIN).'</p>'; } else { echo '<p class="mabp_error">'.__("No new games found!", MYARCADE_TEXT_DOMAIN).'<br />'.__("Please wait until Kongregate updates the feed.", MYARCADE_TEXT_DOMAIN).'</p>'; } F011F5FA6950FDD84A7242122BC8934C3(); } function F555082F529CB211AE2F97BE03A1D3C91($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $RFB8E5BFE7DAE6EF247076501F0556277 = array()) { global $wpdb, $RB0B67211D8336990FD66EAF68E92E9BA; $R630F8C3F00ED4BE49091A902C671B200 = 0; $R7E48A94D08652CE34DE703DF9E891458 = false; if ( $RACEAEA5FB4937A8FADB6ECEAB1DB128A == true ) { $R7EEF19FC5649E7794F922BF96203A43C = false; } else { $R7EEF19FC5649E7794F922BF96203A43C = true; } $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $R8001A4716F056F4082B893BD61106DA9 = get_option('myarcade_fgd'); $R281A0F7BC3D849F3386A5AC36FB35807 = get_option('myarcade_categories'); if ( empty($RFB8E5BFE7DAE6EF247076501F0556277) ) { $RFB8E5BFE7DAE6EF247076501F0556277 = $R8001A4716F056F4082B893BD61106DA9; $RFB8E5BFE7DAE6EF247076501F0556277['method'] = 'latest'; } $RAD6D6ADD59F91C690CE029D064278711 ='?feed=json'; if ($RFB8E5BFE7DAE6EF247076501F0556277['limit'] > 0) { $RFED47D15719EF82BD3F83B580230DA5B = '&gpp='.$RFB8E5BFE7DAE6EF247076501F0556277['limit']; } else $RFED47D15719EF82BD3F83B580230DA5B = ''; if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { $RFED47D15719EF82BD3F83B580230DA5B = '&gpp=1'; } if ( $RFB8E5BFE7DAE6EF247076501F0556277['method'] == 'offset' ) { $R21D2FF6532680118302411CA69147BF1 = '&start='.intval($RFB8E5BFE7DAE6EF247076501F0556277['offset']); } else $R21D2FF6532680118302411CA69147BF1 = ''; if ( !empty($RFB8E5BFE7DAE6EF247076501F0556277['limit']) ) $RFED47D15719EF82BD3F83B580230DA5B = '&gpp='.$RFB8E5BFE7DAE6EF247076501F0556277['limit']; else $RFED47D15719EF82BD3F83B580230DA5B = ''; if ( $RFB8E5BFE7DAE6EF247076501F0556277['method'] == 'offset') $R21D2FF6532680118302411CA69147BF1 = '&start='.$RFB8E5BFE7DAE6EF247076501F0556277['offset']; else $R21D2FF6532680118302411CA69147BF1 = ''; $RF0EAC6DAF5B3AF677609338C1E10A2F4 = trim($R8001A4716F056F4082B893BD61106DA9['feed']).$RAD6D6ADD59F91C690CE029D064278711.$RFED47D15719EF82BD3F83B580230DA5B.$R21D2FF6532680118302411CA69147BF1; $RC12AC9F8ECF1A75EF50F5C500668B033 = F720E8C77506CFC05F85A08A7EF8F1D41($RF0EAC6DAF5B3AF677609338C1E10A2F4, 'fgd' , $R7EEF19FC5649E7794F922BF96203A43C); if ( !empty($RC12AC9F8ECF1A75EF50F5C500668B033) ) foreach ($RC12AC9F8ECF1A75EF50F5C500668B033 as $R69F05BD3024E3A18B29F11DF8A3E8C79) { $R69F05BD3024E3A18B29F11DF8A3E8C79->uuid = $R69F05BD3024E3A18B29F11DF8A3E8C79->game_id . '_fgd'; $R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag = md5($R69F05BD3024E3A18B29F11DF8A3E8C79->game_id.'fgd'); $RDCBA1FB18821F3574224A0E0B2E8C017 = $wpdb->get_var("SELECT uuid FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid'"); $RA6B610A19706344D5E105EFEAE8E8E44 = $wpdb->get_var("SELECT game_tag FROM ".MYARCADE_GAME_TABLE." WHERE game_tag = '$R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag'"); if (!$RDCBA1FB18821F3574224A0E0B2E8C017 && !$RA6B610A19706344D5E105EFEAE8E8E44) { $R7E48A94D08652CE34DE703DF9E891458 = false; $R30E38C1F8EC85F8EE8DF620FF3267157 = explode(',', $R69F05BD3024E3A18B29F11DF8A3E8C79->genres); for ($RA16D2280393CE6A2A5428A4A8D09E354 = 0; $RA16D2280393CE6A2A5428A4A8D09E354 < count($R30E38C1F8EC85F8EE8DF620FF3267157); $RA16D2280393CE6A2A5428A4A8D09E354++){ if ($R30E38C1F8EC85F8EE8DF620FF3267157[$RA16D2280393CE6A2A5428A4A8D09E354] == 'Shooter') $R30E38C1F8EC85F8EE8DF620FF3267157[$RA16D2280393CE6A2A5428A4A8D09E354] = 'Shooting'; if ($R30E38C1F8EC85F8EE8DF620FF3267157[$RA16D2280393CE6A2A5428A4A8D09E354] == 'RGP') $R30E38C1F8EC85F8EE8DF620FF3267157[$RA16D2280393CE6A2A5428A4A8D09E354] = 'Strategy'; if ($R30E38C1F8EC85F8EE8DF620FF3267157[$RA16D2280393CE6A2A5428A4A8D09E354] == 'Arcade') $R30E38C1F8EC85F8EE8DF620FF3267157[$RA16D2280393CE6A2A5428A4A8D09E354] = 'Action'; } foreach($R30E38C1F8EC85F8EE8DF620FF3267157 as $R7697B8C9FB68C249A0DBC0C50B6CFD55) { foreach ($R281A0F7BC3D849F3386A5AC36FB35807 as $RAE9A4476893066B7B92C648E9F0FDEE8) { if ( $RAE9A4476893066B7B92C648E9F0FDEE8['FGD'] == true ) { if ( ($RAE9A4476893066B7B92C648E9F0FDEE8['Name'] == $R7697B8C9FB68C249A0DBC0C50B6CFD55) && ($RAE9A4476893066B7B92C648E9F0FDEE8['Status'] == 'checked') ) { $R7E48A94D08652CE34DE703DF9E891458 = true; break; } } } if ($R7E48A94D08652CE34DE703DF9E891458 == true) break; } if ($R7E48A94D08652CE34DE703DF9E891458 == true) { $R294E407FFD0BBD22EA24DD907D5DDE58 = implode(",", $R30E38C1F8EC85F8EE8DF620FF3267157); } else continue; $R69F05BD3024E3A18B29F11DF8A3E8C79->type = 'fgd'; $R69F05BD3024E3A18B29F11DF8A3E8C79->name = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->slug = F64A2F46BC8BAFD9163DD9691D1207278($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->created = $R69F05BD3024E3A18B29F11DF8A3E8C79->creation_ts; $R69F05BD3024E3A18B29F11DF8A3E8C79->description = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->full_description); $R69F05BD3024E3A18B29F11DF8A3E8C79->instructions = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->rating = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->categs = $R294E407FFD0BBD22EA24DD907D5DDE58; $R69F05BD3024E3A18B29F11DF8A3E8C79->control = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->control_type); $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->thumb_filename); $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->swf_filename); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->video_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->highscores); $R69F05BD3024E3A18B29F11DF8A3E8C79->highscore_type = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->status = 'new'; $R630F8C3F00ED4BE49091A902C671B200++; if (get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F3EC5FD80BBB0380830A5FDD537A22AB2($R69F05BD3024E3A18B29F11DF8A3E8C79); } $R69F05BD3024E3A18B29F11DF8A3E8C79->id = $wpdb->get_var("SELECT id FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid' LIMIT 1"); if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { if (F8D7A841BE2BAF925673E60D5753C8806() === true) F5F9EB2BD2DA652CBF122EEF75C2BE581($R69F05BD3024E3A18B29F11DF8A3E8C79->id, 'publish', true); } if ($R7EEF19FC5649E7794F922BF96203A43C && get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F45F5711588CBBE95A6882D30A6F8183B($R69F05BD3024E3A18B29F11DF8A3E8C79); } } } if ($R7EEF19FC5649E7794F922BF96203A43C) { if ($R630F8C3F00ED4BE49091A902C671B200 > 0) { echo '<p class="mabp_info"><strong>'.sprintf(__("Found %s new game(s).", MYARCADE_TEXT_DOMAIN), $R630F8C3F00ED4BE49091A902C671B200).'</strong></p>'; echo '<p class="mabp_info">'.__("Now, you can publish new games on your site.", MYARCADE_TEXT_DOMAIN).'</p>'; } else { echo '<p class="mabp_error">'.__("No new games found!", MYARCADE_TEXT_DOMAIN).'</p>'; } } } function F1B29A10EC10B6A00931AC7C72FD7CCB2($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $RFB8E5BFE7DAE6EF247076501F0556277 = array()) { global $wpdb, $RB0B67211D8336990FD66EAF68E92E9BA; $R630F8C3F00ED4BE49091A902C671B200 = 0; $R7E48A94D08652CE34DE703DF9E891458 = false; if ( $RACEAEA5FB4937A8FADB6ECEAB1DB128A == true ) { $R7EEF19FC5649E7794F922BF96203A43C = false; } else { $R7EEF19FC5649E7794F922BF96203A43C = true; } $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $R599190A2BEE110CBE08952FC9E5A6476 = get_option('myarcade_fog'); $R281A0F7BC3D849F3386A5AC36FB35807 = get_option('myarcade_categories'); if ( empty($RFB8E5BFE7DAE6EF247076501F0556277) ) { $RFB8E5BFE7DAE6EF247076501F0556277 = $R599190A2BEE110CBE08952FC9E5A6476; $RFB8E5BFE7DAE6EF247076501F0556277['method'] = 'latest'; } $RAD6D6ADD59F91C690CE029D064278711 ='?format=json'; if ( empty($RFB8E5BFE7DAE6EF247076501F0556277['limit']) ) { $RFED47D15719EF82BD3F83B580230DA5B = '&limit=all'; } else $RFED47D15719EF82BD3F83B580230DA5B = '&limit='.$RFB8E5BFE7DAE6EF247076501F0556277['limit']; if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { $RFED47D15719EF82BD3F83B580230DA5B = '&limit=1'; } if ( $RFB8E5BFE7DAE6EF247076501F0556277['method'] == 'offset' ) { $R21D2FF6532680118302411CA69147BF1 = '&offset='.intval($RFB8E5BFE7DAE6EF247076501F0556277['offset']); } else $R21D2FF6532680118302411CA69147BF1 = ''; if ( empty($RFB8E5BFE7DAE6EF247076501F0556277['tag']) ) { $R7B047B1F72F109F9014E4EC7D823FE83 = '&tag=all'; } else $R7B047B1F72F109F9014E4EC7D823FE83 = '&tag='.$RFB8E5BFE7DAE6EF247076501F0556277['tag']; $R6A39AF2A2BC3EA151BD12B1462BA22E9 = '&thumb='.$R599190A2BEE110CBE08952FC9E5A6476['thumbsize']; $RF0EAC6DAF5B3AF677609338C1E10A2F4 = trim($R599190A2BEE110CBE08952FC9E5A6476['feed']).$RAD6D6ADD59F91C690CE029D064278711.$RFED47D15719EF82BD3F83B580230DA5B.$R21D2FF6532680118302411CA69147BF1.$R7B047B1F72F109F9014E4EC7D823FE83.$R6A39AF2A2BC3EA151BD12B1462BA22E9; $RC12AC9F8ECF1A75EF50F5C500668B033 = F720E8C77506CFC05F85A08A7EF8F1D41($RF0EAC6DAF5B3AF677609338C1E10A2F4, 'fog' , $R7EEF19FC5649E7794F922BF96203A43C); if ( !empty($RC12AC9F8ECF1A75EF50F5C500668B033) ) foreach ($RC12AC9F8ECF1A75EF50F5C500668B033 as $R69F05BD3024E3A18B29F11DF8A3E8C79) { $R69F05BD3024E3A18B29F11DF8A3E8C79->uuid = $R69F05BD3024E3A18B29F11DF8A3E8C79->id . '_fog'; $R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag = md5($R69F05BD3024E3A18B29F11DF8A3E8C79->id.'fog'); $RDCBA1FB18821F3574224A0E0B2E8C017 = $wpdb->get_var("SELECT uuid FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid'"); $RA6B610A19706344D5E105EFEAE8E8E44 = $wpdb->get_var("SELECT game_tag FROM ".MYARCADE_GAME_TABLE." WHERE game_tag = '$R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag'"); if (!$RDCBA1FB18821F3574224A0E0B2E8C017 && !$RA6B610A19706344D5E105EFEAE8E8E44) { $R7E48A94D08652CE34DE703DF9E891458 = true; if ($R7E48A94D08652CE34DE703DF9E891458 == true) { $R294E407FFD0BBD22EA24DD907D5DDE58 = implode(",", $R69F05BD3024E3A18B29F11DF8A3E8C79->tags); } else continue; switch ($R599190A2BEE110CBE08952FC9E5A6476['thumbsize']) { case 'large': $R2DDE0731A571E9A7BA651E79C5025426 = $R69F05BD3024E3A18B29F11DF8A3E8C79->large_thumbnail_url; break; case 'medium': $R2DDE0731A571E9A7BA651E79C5025426 = $R69F05BD3024E3A18B29F11DF8A3E8C79->med_thumbnail_url; break; case 'small': default: $R2DDE0731A571E9A7BA651E79C5025426 = $R69F05BD3024E3A18B29F11DF8A3E8C79->small_thumbnail_url; break; } if ( $R599190A2BEE110CBE08952FC9E5A6476['screenshot'] == true ) { $R326F3D74E09BF01E529E3A340247FB4D = $R69F05BD3024E3A18B29F11DF8A3E8C79->large_thumbnail_url; } else $R326F3D74E09BF01E529E3A340247FB4D = ''; $R0E993BCE94E5EB8B0412D25397E1E9AC = explode('x', $R69F05BD3024E3A18B29F11DF8A3E8C79->resolution); $R69F05BD3024E3A18B29F11DF8A3E8C79->type = 'fog'; $R69F05BD3024E3A18B29F11DF8A3E8C79->name = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->slug = F64A2F46BC8BAFD9163DD9691D1207278($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->created = $R69F05BD3024E3A18B29F11DF8A3E8C79->created; $R69F05BD3024E3A18B29F11DF8A3E8C79->description = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->description); $R69F05BD3024E3A18B29F11DF8A3E8C79->instructions = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->rating = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->categs = $R294E407FFD0BBD22EA24DD907D5DDE58; $R69F05BD3024E3A18B29F11DF8A3E8C79->control = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->controls); $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = mysql_escape_string($R2DDE0731A571E9A7BA651E79C5025426); $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->swf_file); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url = $R326F3D74E09BF01E529E3A340247FB4D; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->video_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->highscore_type = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->tags = $R294E407FFD0BBD22EA24DD907D5DDE58; $R69F05BD3024E3A18B29F11DF8A3E8C79->width = $R0E993BCE94E5EB8B0412D25397E1E9AC[0]; $R69F05BD3024E3A18B29F11DF8A3E8C79->height = $R0E993BCE94E5EB8B0412D25397E1E9AC[1]; $R69F05BD3024E3A18B29F11DF8A3E8C79->status = 'new'; $R630F8C3F00ED4BE49091A902C671B200++; if (get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F3EC5FD80BBB0380830A5FDD537A22AB2($R69F05BD3024E3A18B29F11DF8A3E8C79); } $R69F05BD3024E3A18B29F11DF8A3E8C79->id = $wpdb->get_var("SELECT id FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid' LIMIT 1"); if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { if (F8D7A841BE2BAF925673E60D5753C8806() === true) F5F9EB2BD2DA652CBF122EEF75C2BE581($R69F05BD3024E3A18B29F11DF8A3E8C79->id, 'publish', true); } if ($R7EEF19FC5649E7794F922BF96203A43C && get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F45F5711588CBBE95A6882D30A6F8183B($R69F05BD3024E3A18B29F11DF8A3E8C79); } } } if ($R7EEF19FC5649E7794F922BF96203A43C) { if ($R630F8C3F00ED4BE49091A902C671B200 > 0) { echo '<p class="mabp_info"><strong>'.sprintf(__("Found %s new game(s).", MYARCADE_TEXT_DOMAIN), $R630F8C3F00ED4BE49091A902C671B200).'</strong></p>'; echo '<p class="mabp_info">'.__("Now, you can publish new games on your site.", MYARCADE_TEXT_DOMAIN).'</p>'; } else { echo '<p class="mabp_error">'.__("No new games found!", MYARCADE_TEXT_DOMAIN).'</p>'; } } } function F19DCF3B7D05EBDC31C734CA02562E662($RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $RFB8E5BFE7DAE6EF247076501F0556277 = array()) { global $wpdb, $RB0B67211D8336990FD66EAF68E92E9BA; $R630F8C3F00ED4BE49091A902C671B200 = 0; $R7E48A94D08652CE34DE703DF9E891458 = false; if ( $RACEAEA5FB4937A8FADB6ECEAB1DB128A == true ) { $R7EEF19FC5649E7794F922BF96203A43C = false; } else { $R7EEF19FC5649E7794F922BF96203A43C = true; } $R1874C4FD0AB7BED727B8901FEAEB9770 = get_option('myarcade_spilgames'); $R281A0F7BC3D849F3386A5AC36FB35807 = get_option('myarcade_categories'); if ( empty($RFB8E5BFE7DAE6EF247076501F0556277) ) { $RFB8E5BFE7DAE6EF247076501F0556277 = $R1874C4FD0AB7BED727B8901FEAEB9770; } $RAD6D6ADD59F91C690CE029D064278711 ='?format=json'; if ( empty($RFB8E5BFE7DAE6EF247076501F0556277['limit']) || ($RFB8E5BFE7DAE6EF247076501F0556277['limit'] == 'all') ) { $RFED47D15719EF82BD3F83B580230DA5B = ''; } else $RFED47D15719EF82BD3F83B580230DA5B = '&limit='.$RFB8E5BFE7DAE6EF247076501F0556277['limit']; if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { $RFED47D15719EF82BD3F83B580230DA5B = '&limit=1'; } $R6A39AF2A2BC3EA151BD12B1462BA22E9 = '&tsize='.$R1874C4FD0AB7BED727B8901FEAEB9770['thumbsize']; if ( $R1874C4FD0AB7BED727B8901FEAEB9770['language'] == 'default' ) { $R739F6542BB76E1DDEC494F839F85A06E = ''; } else { $R739F6542BB76E1DDEC494F839F85A06E = '&lang='.$R1874C4FD0AB7BED727B8901FEAEB9770['language']; } if ( empty($RFB8E5BFE7DAE6EF247076501F0556277['search']) ) { $R8C2578958C407E0D2623B3F10C9A860A = ''; } else { $R8C2578958C407E0D2623B3F10C9A860A = '&q='.$RFB8E5BFE7DAE6EF247076501F0556277['search']; } $RF0EAC6DAF5B3AF677609338C1E10A2F4 = trim($R1874C4FD0AB7BED727B8901FEAEB9770['feed']).$RAD6D6ADD59F91C690CE029D064278711.$R8C2578958C407E0D2623B3F10C9A860A.$RFED47D15719EF82BD3F83B580230DA5B.$R6A39AF2A2BC3EA151BD12B1462BA22E9.$R739F6542BB76E1DDEC494F839F85A06E; $RC12AC9F8ECF1A75EF50F5C500668B033 = F720E8C77506CFC05F85A08A7EF8F1D41($RF0EAC6DAF5B3AF677609338C1E10A2F4, 'spilgames' , $R7EEF19FC5649E7794F922BF96203A43C); if ( !empty($RC12AC9F8ECF1A75EF50F5C500668B033) ) foreach ($RC12AC9F8ECF1A75EF50F5C500668B033->entries as $R69F05BD3024E3A18B29F11DF8A3E8C79) { $R69F05BD3024E3A18B29F11DF8A3E8C79->uuid = $R69F05BD3024E3A18B29F11DF8A3E8C79->id . '_spilgames'; $R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag = md5($R69F05BD3024E3A18B29F11DF8A3E8C79->id.'spilgames'); $RDCBA1FB18821F3574224A0E0B2E8C017 = $wpdb->get_var("SELECT uuid FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid'"); $RA6B610A19706344D5E105EFEAE8E8E44 = $wpdb->get_var("SELECT game_tag FROM ".MYARCADE_GAME_TABLE." WHERE game_tag = '$R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag'"); if (!$RDCBA1FB18821F3574224A0E0B2E8C017 && !$RA6B610A19706344D5E105EFEAE8E8E44) { $R7E48A94D08652CE34DE703DF9E891458 = false; $R30E38C1F8EC85F8EE8DF620FF3267157 = explode(',', $R69F05BD3024E3A18B29F11DF8A3E8C79->category); foreach($R30E38C1F8EC85F8EE8DF620FF3267157 as $R7697B8C9FB68C249A0DBC0C50B6CFD55) { foreach ($R281A0F7BC3D849F3386A5AC36FB35807 as $RAE9A4476893066B7B92C648E9F0FDEE8) { if ( is_array( $RAE9A4476893066B7B92C648E9F0FDEE8['Spilgames'] ) ) { if ( $RAE9A4476893066B7B92C648E9F0FDEE8['Status'] == 'checked') { if ( strpos($RAE9A4476893066B7B92C648E9F0FDEE8['Spilgames']['name'], $R7697B8C9FB68C249A0DBC0C50B6CFD55) !== false ) { $R7E48A94D08652CE34DE703DF9E891458 = true; $R294E407FFD0BBD22EA24DD907D5DDE58 = $RAE9A4476893066B7B92C648E9F0FDEE8['Name']; break; } } } } if ($R7E48A94D08652CE34DE703DF9E891458 == true) break; } if (!$R7E48A94D08652CE34DE703DF9E891458) continue; switch ($R1874C4FD0AB7BED727B8901FEAEB9770['thumbsize']) { case '3': $R2DDE0731A571E9A7BA651E79C5025426 = $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnails['2']->url; break; case '2': $R2DDE0731A571E9A7BA651E79C5025426 = $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnails['1']->url; break; case '1': default: $R2DDE0731A571E9A7BA651E79C5025426 = $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnails['0']->url; break; } $R2252F0B678213A3B6BEDD89C503EC635 = pathinfo($R2DDE0731A571E9A7BA651E79C5025426); if ( empty($R2252F0B678213A3B6BEDD89C503EC635['filename']) ) $R2DDE0731A571E9A7BA651E79C5025426 = MYARCADE_URL . "/images/noimage.png"; $R69F05BD3024E3A18B29F11DF8A3E8C79->type = 'spilgames'; $R69F05BD3024E3A18B29F11DF8A3E8C79->name = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->slug = F64A2F46BC8BAFD9163DD9691D1207278($R69F05BD3024E3A18B29F11DF8A3E8C79->title); $R69F05BD3024E3A18B29F11DF8A3E8C79->created = $R69F05BD3024E3A18B29F11DF8A3E8C79->published; $R69F05BD3024E3A18B29F11DF8A3E8C79->description = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->description); $R69F05BD3024E3A18B29F11DF8A3E8C79->instructions = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->rating = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->categs = $R294E407FFD0BBD22EA24DD907D5DDE58; $R69F05BD3024E3A18B29F11DF8A3E8C79->control = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = mysql_escape_string($R2DDE0731A571E9A7BA651E79C5025426); $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->player->url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->video_url = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->highscore_type = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->tags = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->width = $R69F05BD3024E3A18B29F11DF8A3E8C79->player->width; $R69F05BD3024E3A18B29F11DF8A3E8C79->height = $R69F05BD3024E3A18B29F11DF8A3E8C79->player->height; $R69F05BD3024E3A18B29F11DF8A3E8C79->status = 'new'; $R630F8C3F00ED4BE49091A902C671B200++; unset($R69F05BD3024E3A18B29F11DF8A3E8C79->summary); unset($R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnails); unset($R69F05BD3024E3A18B29F11DF8A3E8C79->player); if (get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F3EC5FD80BBB0380830A5FDD537A22AB2($R69F05BD3024E3A18B29F11DF8A3E8C79); } $R69F05BD3024E3A18B29F11DF8A3E8C79->id = $wpdb->get_var("SELECT id FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid' LIMIT 1"); if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { if (F8D7A841BE2BAF925673E60D5753C8806() === true) F5F9EB2BD2DA652CBF122EEF75C2BE581($R69F05BD3024E3A18B29F11DF8A3E8C79->id, 'publish', true); } if ($R7EEF19FC5649E7794F922BF96203A43C && get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F45F5711588CBBE95A6882D30A6F8183B($R69F05BD3024E3A18B29F11DF8A3E8C79); } } } if ($R7EEF19FC5649E7794F922BF96203A43C) { if ($R630F8C3F00ED4BE49091A902C671B200 > 0) { echo '<p class="mabp_info"><strong>'.sprintf(__("Found %s new game(s).", MYARCADE_TEXT_DOMAIN), $R630F8C3F00ED4BE49091A902C671B200).'</strong></p>'; echo '<p class="mabp_info">'.__("Now, you can publish new games on your site.", MYARCADE_TEXT_DOMAIN).'</p>'; } else { echo '<p class="mabp_error">'.__("No new games found!", MYARCADE_TEXT_DOMAIN).'</p>'; } } } function F04C3DB74EC945EC2A608768A1E0A0B66($R66C2807EFAF05185264630A1C291013C = '', $RACEAEA5FB4937A8FADB6ECEAB1DB128A = false, $RFB8E5BFE7DAE6EF247076501F0556277 = array()) { global $wpdb, $RB0B67211D8336990FD66EAF68E92E9BA; $R630F8C3F00ED4BE49091A902C671B200 = 0; $R7E48A94D08652CE34DE703DF9E891458 = false; $R7B047B1F72F109F9014E4EC7D823FE83 = ''; if ( !empty($R66C2807EFAF05185264630A1C291013C) || ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) ) { $R7EEF19FC5649E7794F922BF96203A43C = false; } else { $R7EEF19FC5649E7794F922BF96203A43C = true; } $R19D8D91C3A4693A3128752A2FBE7FD40 = get_option('myarcade_mochi'); $R281A0F7BC3D849F3386A5AC36FB35807 = get_option('myarcade_categories'); if ( empty($RFB8E5BFE7DAE6EF247076501F0556277) ) { $RFB8E5BFE7DAE6EF247076501F0556277 = $R19D8D91C3A4693A3128752A2FBE7FD40; $RFB8E5BFE7DAE6EF247076501F0556277['method'] = 'latest'; $RFB8E5BFE7DAE6EF247076501F0556277['feedversion'] = 'old'; } $RAD6D6ADD59F91C690CE029D064278711 ='?format=json'; if ($RFB8E5BFE7DAE6EF247076501F0556277['limit'] > 0) { $RFED47D15719EF82BD3F83B580230DA5B = '&limit='.$RFB8E5BFE7DAE6EF247076501F0556277['limit']; } else $RFED47D15719EF82BD3F83B580230DA5B = ''; if ( !empty($R66C2807EFAF05185264630A1C291013C) ) { $R135F0927A29F19713FE5A4CB974369ED = get_option( $RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA==') ); if ( $R66C2807EFAF05185264630A1C291013C == md5( $R135F0927A29F19713FE5A4CB974369ED.urlencode( get_bloginfo('url') ) ) ) { update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfcHJ1ZWY='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfaGFzaA=='), ''); update_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc3RhdHVz'), 0); die(); } $RFB8E5BFE7DAE6EF247076501F0556277['special'] = $R66C2807EFAF05185264630A1C291013C; $RFED47D15719EF82BD3F83B580230DA5B = ''; } if ( $RFB8E5BFE7DAE6EF247076501F0556277['feedversion'] == 'old' ) { if ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) { $RFED47D15719EF82BD3F83B580230DA5B = '&limit=1'; } $R21D2FF6532680118302411CA69147BF1 = ''; if ( $RFB8E5BFE7DAE6EF247076501F0556277['method'] == 'offset' ) { $R21D2FF6532680118302411CA69147BF1 = '&offset='.intval($RFB8E5BFE7DAE6EF247076501F0556277['offset']); } if ( !empty($RFB8E5BFE7DAE6EF247076501F0556277['tag']) ) { $R7B047B1F72F109F9014E4EC7D823FE83 = '&tag='.$RFB8E5BFE7DAE6EF247076501F0556277['tag']; } if ( !empty($RFB8E5BFE7DAE6EF247076501F0556277['special']) ) { $RFB8E5BFE7DAE6EF247076501F0556277['special'] = '/'. $RFB8E5BFE7DAE6EF247076501F0556277['special'].'/'; } $R24A2802C29F680B6CE3DB94B82E12BB9 = trim($RFB8E5BFE7DAE6EF247076501F0556277['feed']) . trim($RFB8E5BFE7DAE6EF247076501F0556277['publisher_id']) . $RFB8E5BFE7DAE6EF247076501F0556277['special'] . $RAD6D6ADD59F91C690CE029D064278711 . $RFED47D15719EF82BD3F83B580230DA5B . $R21D2FF6532680118302411CA69147BF1 . $R7B047B1F72F109F9014E4EC7D823FE83; } else { if ( !empty($RFB8E5BFE7DAE6EF247076501F0556277['feed_save']) ) { $R24A2802C29F680B6CE3DB94B82E12BB9 = $RFB8E5BFE7DAE6EF247076501F0556277['feed_save']; } else { if ($R7EEF19FC5649E7794F922BF96203A43C) echo '<p class="mabp_error">'.__("No Feed URL provided!", MYARCADE_TEXT_DOMAIN).'</p>'; } } $RC12AC9F8ECF1A75EF50F5C500668B033 = F720E8C77506CFC05F85A08A7EF8F1D41($R24A2802C29F680B6CE3DB94B82E12BB9, 'mochi' , $R7EEF19FC5649E7794F922BF96203A43C); if ( !empty($RC12AC9F8ECF1A75EF50F5C500668B033) ) foreach ($RC12AC9F8ECF1A75EF50F5C500668B033->games as $R69F05BD3024E3A18B29F11DF8A3E8C79) { $RDCBA1FB18821F3574224A0E0B2E8C017 = $wpdb->get_var("SELECT uuid FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid'"); $RA6B610A19706344D5E105EFEAE8E8E44 = $wpdb->get_var("SELECT game_tag FROM ".MYARCADE_GAME_TABLE." WHERE game_tag = '$R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag'"); if (!$RDCBA1FB18821F3574224A0E0B2E8C017 && !$RA6B610A19706344D5E105EFEAE8E8E44) { $R7E48A94D08652CE34DE703DF9E891458 = false; $R30E38C1F8EC85F8EE8DF620FF3267157 = ''; foreach($R69F05BD3024E3A18B29F11DF8A3E8C79->categories as $R7697B8C9FB68C249A0DBC0C50B6CFD55) { foreach ($R281A0F7BC3D849F3386A5AC36FB35807 as $RAE9A4476893066B7B92C648E9F0FDEE8) { if ( ($RAE9A4476893066B7B92C648E9F0FDEE8['Name'] == $R7697B8C9FB68C249A0DBC0C50B6CFD55) && ($RAE9A4476893066B7B92C648E9F0FDEE8['Status'] == 'checked') ) { $R7E48A94D08652CE34DE703DF9E891458 = true; break; } } if ($R7E48A94D08652CE34DE703DF9E891458 == true) break; } if ($R7E48A94D08652CE34DE703DF9E891458 == true) { $R30E38C1F8EC85F8EE8DF620FF3267157 = implode(",", $R69F05BD3024E3A18B29F11DF8A3E8C79->categories); } else continue; $R3FA8DA3402B9B24298B2CE820E453C70 = implode(",", $R69F05BD3024E3A18B29F11DF8A3E8C79->tags); $RE5B8C2D8531BA9CA0A007932147AA57D = ''; foreach ($R69F05BD3024E3A18B29F11DF8A3E8C79->controls as $R339273C4301F699319F83CD7B37B3721) { $RE5B8C2D8531BA9CA0A007932147AA57D .= implode(" = ", $R339273C4301F699319F83CD7B37B3721) . ";"; } $R69F05BD3024E3A18B29F11DF8A3E8C79->type = 'mochi'; $R69F05BD3024E3A18B29F11DF8A3E8C79->name = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->name); $R69F05BD3024E3A18B29F11DF8A3E8C79->description = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->description); $R69F05BD3024E3A18B29F11DF8A3E8C79->instructions = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->instructions); $R69F05BD3024E3A18B29F11DF8A3E8C79->rating = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->rating); $R69F05BD3024E3A18B29F11DF8A3E8C79->categs = $R30E38C1F8EC85F8EE8DF620FF3267157; $R69F05BD3024E3A18B29F11DF8A3E8C79->control = $RE5B8C2D8531BA9CA0A007932147AA57D; $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->video_url = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->video_url); $R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled); $R69F05BD3024E3A18B29F11DF8A3E8C79->highscore_type = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled = mysql_escape_string($R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled); $R69F05BD3024E3A18B29F11DF8A3E8C79->tags = mysql_escape_string($R3FA8DA3402B9B24298B2CE820E453C70); $R69F05BD3024E3A18B29F11DF8A3E8C79->status = 'new'; $R630F8C3F00ED4BE49091A902C671B200++; if (get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F3EC5FD80BBB0380830A5FDD537A22AB2($R69F05BD3024E3A18B29F11DF8A3E8C79); } $R69F05BD3024E3A18B29F11DF8A3E8C79->id = $wpdb->get_var("SELECT id FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid' LIMIT 1"); if ( !empty($R66C2807EFAF05185264630A1C291013C) || ($RACEAEA5FB4937A8FADB6ECEAB1DB128A == true) ) { if ( $R19D8D91C3A4693A3128752A2FBE7FD40['status'] != 'add') { if (F8D7A841BE2BAF925673E60D5753C8806() === true) F5F9EB2BD2DA652CBF122EEF75C2BE581($R69F05BD3024E3A18B29F11DF8A3E8C79->id, $R19D8D91C3A4693A3128752A2FBE7FD40['status'], true); } } if ($R7EEF19FC5649E7794F922BF96203A43C && get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { F45F5711588CBBE95A6882D30A6F8183B($R69F05BD3024E3A18B29F11DF8A3E8C79); } } } if ($R7EEF19FC5649E7794F922BF96203A43C) { if ($R630F8C3F00ED4BE49091A902C671B200 > 0) { echo '<p class="mabp_info"><strong>'.sprintf(__("Found %s new game(s).", MYARCADE_TEXT_DOMAIN), $R630F8C3F00ED4BE49091A902C671B200).'</strong></p>'; echo '<p class="mabp_info">'.__("Now, you can publish new games on your site.", MYARCADE_TEXT_DOMAIN).'</p>'; } else { echo '<p class="mabp_error">'.__("No new games found!", MYARCADE_TEXT_DOMAIN).'<br />'.__("Try to increase the number of 'Feed Games' at the settings page or wait until Mochi updates the feed.", MYARCADE_TEXT_DOMAIN).'</p>'; } } } ?>