<?php
 defined('MYARCADE_VERSION') or die(); function F415314D4CA21D08BF57AB39A6A25DBCC() { F94EBD7C16769D03E06E16136FFE5F944(); $R69F05BD3024E3A18B29F11DF8A3E8C79 = new stdClass(); if ( isset($_POST['impcostgame']) && ($_POST['impcostgame'] == 'import') ) { if ( $_POST['importtype'] == 'embed' ) { $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = mysql_escape_string(urldecode($_POST['importgame'])); $R69F05BD3024E3A18B29F11DF8A3E8C79->width = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->height = ''; } else { $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url = $_POST['importgame']; $R69F05BD3024E3A18B29F11DF8A3E8C79->width = $_POST['gamewidth']; $R69F05BD3024E3A18B29F11DF8A3E8C79->height = $_POST['gameheight']; } if ( ($_POST['importtype'] == 'ibparcade') OR ($_POST['importtype'] == 'phpbb') ) { $R69F05BD3024E3A18B29F11DF8A3E8C79->slug = $_POST['slug']; } else { $R69F05BD3024E3A18B29F11DF8A3E8C79->slug = preg_replace("/[^a-zA-Z0-9 ]/", "", strtolower($_POST['gamename'])); $R69F05BD3024E3A18B29F11DF8A3E8C79->slug = str_replace(" ", "-", $R69F05BD3024E3A18B29F11DF8A3E8C79->slug); } if ( empty($_POST['highscoretype'])) { $_POST['highscoretype'] = 'high';} $R69F05BD3024E3A18B29F11DF8A3E8C79->name = $_POST['gamename']; $R69F05BD3024E3A18B29F11DF8A3E8C79->type = $_POST['importtype']; $R69F05BD3024E3A18B29F11DF8A3E8C79->uuid = md5($R69F05BD3024E3A18B29F11DF8A3E8C79->name.'import'); $R69F05BD3024E3A18B29F11DF8A3E8C79->game_tag = crc32($R69F05BD3024E3A18B29F11DF8A3E8C79->uuid); $R69F05BD3024E3A18B29F11DF8A3E8C79->thumbnail_url = $_POST['importthumb']; $R69F05BD3024E3A18B29F11DF8A3E8C79->description = addslashes($_POST['gamedescr']); $R69F05BD3024E3A18B29F11DF8A3E8C79->instructions = addslashes($_POST['gameinstr']); $R69F05BD3024E3A18B29F11DF8A3E8C79->control = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->rating = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->tags = $_POST['gametags']; $R69F05BD3024E3A18B29F11DF8A3E8C79->categs = implode(",", $_POST['gamecategs']); $R69F05BD3024E3A18B29F11DF8A3E8C79->created = gmdate( 'Y-m-d H:i:s', ( time() + (get_option( 'gmt_offset' ) * 3600 ) ) ); $R69F05BD3024E3A18B29F11DF8A3E8C79->leaderboard_enabled = $_POST['lbenabled']; $R69F05BD3024E3A18B29F11DF8A3E8C79->highscore_type = $_POST['highscoretype']; $R69F05BD3024E3A18B29F11DF8A3E8C79->coins_enabled = ''; $R69F05BD3024E3A18B29F11DF8A3E8C79->status = 'new'; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen1_url = $_POST['importscreen1']; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen2_url = $_POST['importscreen2']; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen3_url = $_POST['importscreen3']; $R69F05BD3024E3A18B29F11DF8A3E8C79->screen4_url = $_POST['importscreen4']; $R69F05BD3024E3A18B29F11DF8A3E8C79->video_url = ''; F3EC5FD80BBB0380830A5FDD537A22AB2($R69F05BD3024E3A18B29F11DF8A3E8C79); if ($_POST['publishstatus'] != 'add') { global $wpdb; $REAA6191C2FA9B633A100C34B5C0CFB41 = $wpdb->get_var("SELECT id FROM ".MYARCADE_GAME_TABLE." WHERE uuid = '$R69F05BD3024E3A18B29F11DF8A3E8C79->uuid'"); if ( !empty($REAA6191C2FA9B633A100C34B5C0CFB41) ) { F5F9EB2BD2DA652CBF122EEF75C2BE581($REAA6191C2FA9B633A100C34B5C0CFB41, $_POST['publishstatus']); echo '<p id="message" class="updated fade">'.sprintf(__("Import of '%s' was succsessful.", MYARCADE_TEXT_DOMAIN), $R69F05BD3024E3A18B29F11DF8A3E8C79->name).'</p>'; } else { echo '<p id="message" class="myerror fade">'.__("Can't import that game...", MYARCADE_TEXT_DOMAIN).'</p>'; } } } $R324992E1D908AE64E82FC7E5043BAFCC = get_all_category_ids(); ?>
<?php @include_once('myarcadeplugin_js.php'); ?>
<div id="myabp_import">
  <h2><?php _e("Import Individual Games", MYARCADE_TEXT_DOMAIN); ?></h2>

  <div class="container">
    <div class="block">
      <table class="optiontable" width="100%">
        <tr>
          <td><h3><?php _e("Import Method", MYARCADE_TEXT_DOMAIN); ?></h3></td>
        </tr>
        <tr>
          <td>
            <select size="1" name="importmethod" id="importmethod">
              <option value="importswfdcr"><?php _e("Upload / Grab SWF or DCR game", MYARCADE_TEXT_DOMAIN); ?>&nbsp;</option>
              <option value="importibparcade"><?php _e("Upload IBPArcade game", MYARCADE_TEXT_DOMAIN); ?></option>
              <option value="importphpbb"><?php _e("Upload PHPBB / ZIP game", MYARCADE_TEXT_DOMAIN); ?></option>
              <option value="importembedif"><?php _e("Import Embed / Iframe game", MYARCADE_TEXT_DOMAIN); ?></option>
            </select>
            <br />
            <i><?php _e("Choose a desired import method.", MYARCADE_TEXT_DOMAIN); ?></i>
          </td>
        </tr>
      </table>
    </div>
  </div>

  <?php @include_once('form-swfdcr.php'); ?>
</div><?php ?>
<div class="clear"></div>

 <?php
 F011F5FA6950FDD84A7242122BC8934C3(); } ?>