<?php
 if ( ! defined( 'ABSPATH' ) ) { exit; } function FD024B19046AC13DD27057269DBAEF188() { global $REC43CE978463AAD8D91F93AE43393035; myarcade_header(); ?>
  <div class="icon32" id="icon-plugins"><br/></div>
  <h2><?php _e("Fetch Games", 'myarcadeplugin'); ?></h2>

  <?php
 $RF2C19B8FD4603199A1CE492F4E6DA311 = filter_input( INPUT_POST, 'distr', FILTER_SANITIZE_STRING, array( "options" => array( "default" => 'fgd') ) ); $REC43CE978463AAD8D91F93AE43393035 = apply_filters( 'myarcade_distributors_can_fetch', $REC43CE978463AAD8D91F93AE43393035 ); ?>
  <style type="text/css">.hide{display:none}</style>
  <br />
  <form method="post" class="myarcade_form">
    <input type="hidden" name="fetch" value="start" />
    <fieldset>
      <div class="myarcade_border grey" style="width:685px">
        <label for="distr"><?php _e("Select a game distributor", 'myarcadeplugin'); ?>: </label>
        <select name="distr" id="distr">
          <?php foreach ( $REC43CE978463AAD8D91F93AE43393035 as $R7C60D7E1C05E3B82EF26F41346F5D850 => $R9B395079675C6A66FF23EA9C6C4A668E ) : ?>
          <option value="<?php echo $R7C60D7E1C05E3B82EF26F41346F5D850; ?>" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF( $RF2C19B8FD4603199A1CE492F4E6DA311, $R7C60D7E1C05E3B82EF26F41346F5D850 ); ?>><?php echo $R9B395079675C6A66FF23EA9C6C4A668E; ?></option>
          <?php endforeach; ?>
        </select>
      </div>

      <?php $RD494520350C754C4142D046A0E78ED22 = filter_input( INPUT_POST, 'keyword_filter' ); ?>
      <div class="myarcade_border white mabp_680">
        <label for="keyword_filter"><?php _e("Keyword", 'myarcadeplugin'); ?>: </label>
        <input type="text" name="keyword_filter" id="keyword_filter" value="<?php echo $RD494520350C754C4142D046A0E78ED22; ?>" /> <i><?php _e("Add only games that contain the given keyword in title or description.", 'myarcadeplugin'); ?></i>
      </div>

      <?php
 foreach ($REC43CE978463AAD8D91F93AE43393035 as $RF413F06AEBBCEF5E1C8B1019DEE6FE6B => $R9B395079675C6A66FF23EA9C6C4A668E) { $R334477AA3842871C0ABDBA0571193B9C = 'myarcade_fetch_settings_' . $RF413F06AEBBCEF5E1C8B1019DEE6FE6B; F8AD83AFABCCBE75000C8153F4292790B( $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ); if ( function_exists( $R334477AA3842871C0ABDBA0571193B9C ) ) { $R334477AA3842871C0ABDBA0571193B9C(); } else { FA4093F5916BFC323AA7AFAB57EBB6AD2( $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ); } } ?>
    </fieldset>

    <?php
 $R32F144AFDE1C2D9946787129495E372C = get_option('myarcade_categories'); if ( empty( $R32F144AFDE1C2D9946787129495E372C ) ) { echo '<p class="mabp_error mabp_800">'.__("You will not be able to fetch games!", 'myarcadeplugin').' '.__('Navigate to "General Settings" and activate some game categories!', 'myarcadeplugin').'</p>'; } else { echo '<input class="button-primary" id="submit" type="submit" name="submit" value="'. __("Fetch Games", 'myarcadeplugin').'" />'; } ?>
  </form>

  <br />

  <?php
 if ( 'start' == filter_input( INPUT_POST, 'fetch' ) ) { if ( $RF2C19B8FD4603199A1CE492F4E6DA311 ) { F27CA820034C3FB0E279A5518739B60BC(); $R4124B06B18676E18FC99FDAD0AB592DD = 'myarcade_feed_' . $RF2C19B8FD4603199A1CE492F4E6DA311; F8AD83AFABCCBE75000C8153F4292790B( $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ); $R1A41735B533921F417E987902B631DAE = array_map( 'trim', explode(',', strtolower( $RD494520350C754C4142D046A0E78ED22 ) ) ); $R1DD288014A4DB47D1D475344526959BE = implode( '|', $R1A41735B533921F417E987902B631DAE ); if ( $R1DD288014A4DB47D1D475344526959BE ) { $settings['keyword_filter'] = '[' . $R1DD288014A4DB47D1D475344526959BE . ']'; } else { $settings['keyword_filter'] = false; } $R9FE302BDF914868081913A22F58F9E7E = array( 'echo' => true, 'settings' => $settings ); if ( function_exists( $R4124B06B18676E18FC99FDAD0AB592DD ) ) { $R4124B06B18676E18FC99FDAD0AB592DD($R9FE302BDF914868081913A22F58F9E7E); } else { ?>
        <p class="mabp_error mabp_680">
          <?php printf( __("ERROR: Required distributor file can't be found: %s!", 'myarcadeplugin'), $RF2C19B8FD4603199A1CE492F4E6DA311); ?>
        </p>
        <?php
 } } else { ?>
      <p class="mabp_error">
        <?php _e("ERROR: Unknown game distributor!", 'myarcadeplugin'); ?>
      </p>
      <?php
 } } F011F5FA6950FDD84A7242122BC8934C3(); } function FA4093F5916BFC323AA7AFAB57EBB6AD2( $RF413F06AEBBCEF5E1C8B1019DEE6FE6B ) { ?>
  <div class="myarcade_border white hide mabp_680" id="<?php echo $RF413F06AEBBCEF5E1C8B1019DEE6FE6B; ?>">
    <p class="mabp_info">
      <?php _e("There are no specific settings available. Just Fetch the games :)", 'myarcadeplugin');?>
    </p>
  </div>
  <?php
} function myarcade_distributors_can_fetch( $RE054F7AA879B5BC82B1D74578162D95F = array() ) { unset( $RE054F7AA879B5BC82B1D74578162D95F['mochi'] ); unset( $RE054F7AA879B5BC82B1D74578162D95F['gamefeed'] ); unset( $RE054F7AA879B5BC82B1D74578162D95F['unityfeeds'] ); return $RE054F7AA879B5BC82B1D74578162D95F; } add_filter( 'myarcade_distributors_can_fetch', 'myarcade_distributors_can_fetch' ); ?>