<?php
 if ( !function_exists('is_game') ) { function F02EEF2FE25A5318F517C1BB8AE6DCAEE() { global $post; if ( get_post_meta($post->ID, "mabp_swf_url", true) ) return true; else return false; } } function FF6F1189E3A929BC073FA78BF16A52B7F($RE82EE9B121F709895EF54EBA7FA6B78B) { global $post; if( is_single() && !is_feed() ) { $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $RF4105941EE9F5052B678CABE23FE7CCE = get_post_meta($post->ID, "mabp_swf_url", true); if ( ($R9C65084CFC54EB0D266E6D073B818630['embed'] != 'manually') && !empty($RF4105941EE9F5052B678CABE23FE7CCE) ) { $RA63A8F34DD90F600A0C3D51DAA28CC56 = get_game($post->ID); if ( $R9C65084CFC54EB0D266E6D073B818630['embed'] == 'top' ) { $RA63A8F34DD90F600A0C3D51DAA28CC56 = '<div style="margin: 10px 0;text-align:center;">'.$RA63A8F34DD90F600A0C3D51DAA28CC56.'</div>'; $RE82EE9B121F709895EF54EBA7FA6B78B = $RA63A8F34DD90F600A0C3D51DAA28CC56.myarcade_get_leaderboard_code().$RE82EE9B121F709895EF54EBA7FA6B78B; } else { $RA63A8F34DD90F600A0C3D51DAA28CC56 = '<div style="clear:both;margin: 10px 0;text-align:center;">'.$RA63A8F34DD90F600A0C3D51DAA28CC56.'</div>'; $RE82EE9B121F709895EF54EBA7FA6B78B = $RE82EE9B121F709895EF54EBA7FA6B78B.myarcade_get_leaderboard_code().$RA63A8F34DD90F600A0C3D51DAA28CC56; } } } return $RE82EE9B121F709895EF54EBA7FA6B78B; } function enabled_global_scores() { $R19D8D91C3A4693A3128752A2FBE7FD40 = get_option('myarcade_mochi'); if ( $R19D8D91C3A4693A3128752A2FBE7FD40['global_score'] ) return true; else return false; } function myarcade_get_leaderboard_code() { global $current_user, $user_ID, $mypostid, $post; $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $R19D8D91C3A4693A3128752A2FBE7FD40 = get_option('myarcade_mochi'); $R92233BA3777B95C9FCD314ACB68F6CAA = WP_PLUGIN_URL.'/myarcadeplugin/modules/highscores.php'; $R565F1DC7A84BB8F6B99CE63A8EE6E51E = ''; $R88A33D29429F80B24F150A7737FAA03B = ''; if ( isset($mypostid) ) { $R8075C221D14B29DAC02354B6CF6831A3 = $mypostid; } else if ( isset($post->ID) ) { $R8075C221D14B29DAC02354B6CF6831A3 = $post->ID; } else { $R8075C221D14B29DAC02354B6CF6831A3 = false; } if ( $R8075C221D14B29DAC02354B6CF6831A3 ) { $R88A33D29429F80B24F150A7737FAA03B = get_post_meta($post->ID, "mabp_game_type", true); } if ( ($R9C65084CFC54EB0D266E6D073B818630['scores'] || $R19D8D91C3A4693A3128752A2FBE7FD40['global_score']) && ($R88A33D29429F80B24F150A7737FAA03B == 'mochi') ) { get_currentuserinfo(); if ( !empty($user_ID) ) { $R92EB07A1F5BE8CC3D132DC38AF4FD0E7 = 'options.userID   = "'.$user_ID.'";'; $username = 'options.username = "'.$current_user->display_name.'";'; $RA337D38989275B85567BAE0C78786D01 = 'options.sessionID = "'.md5($R92EB07A1F5BE8CC3D132DC38AF4FD0E7.$current_user->display_name.time()).'";'; } else { $R92EB07A1F5BE8CC3D132DC38AF4FD0E7 = ''; $username = ''; $RA337D38989275B85567BAE0C78786D01 = ''; } if ( $R19D8D91C3A4693A3128752A2FBE7FD40['global_score'] ) { $R7F168C2ECCD83C9246856EBA42B321E3 = 'true'; } else { $R7F168C2ECCD83C9246856EBA42B321E3 = 'false'; } if ( defined('MNGL_PLUGIN_NAME') ) { global $R824CC6410032F9ED1283FCBD76F22660; $R07727BC09B2143A54FA79C961DF953AB = 'options.profileURL="'.get_permalink($R824CC6410032F9ED1283FCBD76F22660->profile_page_id).'";'; } elseif ( defined('BP_VERSION') ) { global $RAD7BAEB04AA39BA976C968AE16AD843A; $R07727BC09B2143A54FA79C961DF953AB = 'options.profileURL="'.$RAD7BAEB04AA39BA976C968AE16AD843A->loggedin_user->domain . BP_ACTIVITY_SLUG . '/'.'";'; } else { $R07727BC09B2143A54FA79C961DF953AB = ''; } $R565F1DC7A84BB8F6B99CE63A8EE6E51E = ''; if ($R9C65084CFC54EB0D266E6D073B818630['embed'] != 'manually') { $R565F1DC7A84BB8F6B99CE63A8EE6E51E = '<script src="http://xs.mochiads.com/static/pub/swf/leaderboard.js" type="text/javascript"></script>'; } $R565F1DC7A84BB8F6B99CE63A8EE6E51E .= '<div id="leaderboard_bridge"></div>
      <script type="text/javascript">
      var options = {partnerID: "'.$R19D8D91C3A4693A3128752A2FBE7FD40['publisher_id'].'", id: "leaderboard_bridge"};
      '.$RA337D38989275B85567BAE0C78786D01.'
      options.gateway = "'.$R92233BA3777B95C9FCD314ACB68F6CAA.'";
      options.postMedals = "true";
      options.siteName = "'.get_option('blogname').'";
      '.$R92EB07A1F5BE8CC3D132DC38AF4FD0E7.'
      '.$username.'
      '.$R07727BC09B2143A54FA79C961DF953AB.'
      Mochi.addLeaderboardIntegration(options);
      </script>'; } return $R565F1DC7A84BB8F6B99CE63A8EE6E51E; } function myarcade_check_width($RF5A90126DA0C510DA904566BD6C6CCE5) { global $wpdb, $post; $R679E9B9234E2062F809DBD3325D37FB6 = false; $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $REDC007496C1445189AF037508BBA4E23 = intval($R9C65084CFC54EB0D266E6D073B818630['max_width']); $R1D3907CAD29A4EB21B34EA0F5BF1515B = intval(get_post_meta($RF5A90126DA0C510DA904566BD6C6CCE5, "mabp_width", true)); if ($R1D3907CAD29A4EB21B34EA0F5BF1515B > $REDC007496C1445189AF037508BBA4E23) { $R679E9B9234E2062F809DBD3325D37FB6 = true; } return $R679E9B9234E2062F809DBD3325D37FB6; } function get_game($REAA6191C2FA9B633A100C34B5C0CFB41, $R9EB52A34FA735067731D9177E1BF3A8F = false, $R7DE5D4419F85F3A0DEDBA1898F7A945A = false, $R7C18B03BAD5F732F343370735CB83351 = false) { global $wpdb, $post, $RB0B67211D8336990FD66EAF68E92E9BA, $mypostid; $mypostid = $REAA6191C2FA9B633A100C34B5C0CFB41; if ($R7DE5D4419F85F3A0DEDBA1898F7A945A == false) { if ( $R7C18B03BAD5F732F343370735CB83351 == false ) { $R1D3907CAD29A4EB21B34EA0F5BF1515B = intval(get_post_meta($REAA6191C2FA9B633A100C34B5C0CFB41, "mabp_width", true)); $RF4C9555AE9AA18D6B28B32006134BDC5 = intval(get_post_meta($REAA6191C2FA9B633A100C34B5C0CFB41, "mabp_height", true)); } else { $R1D3907CAD29A4EB21B34EA0F5BF1515B = '93%'; $RF4C9555AE9AA18D6B28B32006134BDC5 = '93%'; } $RF4105941EE9F5052B678CABE23FE7CCE = get_post_meta($REAA6191C2FA9B633A100C34B5C0CFB41, "mabp_swf_url", true); $R3A9B5FE1338F108F332069C17708CA68 = get_post_meta($REAA6191C2FA9B633A100C34B5C0CFB41, "mabp_game_type", true); } else { $R69F05BD3024E3A18B29F11DF8A3E8C79 = $wpdb->get_row("SELECT * FROM ".MYARCADE_GAME_TABLE." WHERE id = '$REAA6191C2FA9B633A100C34B5C0CFB41'"); $RF4105941EE9F5052B678CABE23FE7CCE = $R69F05BD3024E3A18B29F11DF8A3E8C79->swf_url; $R3A9B5FE1338F108F332069C17708CA68 = $R69F05BD3024E3A18B29F11DF8A3E8C79->game_type; $R1D3907CAD29A4EB21B34EA0F5BF1515B = intval($R69F05BD3024E3A18B29F11DF8A3E8C79->width); $RF4C9555AE9AA18D6B28B32006134BDC5 = intval($R69F05BD3024E3A18B29F11DF8A3E8C79->height); } $R9C65084CFC54EB0D266E6D073B818630 = get_option('myarcade_general'); $R19D8D91C3A4693A3128752A2FBE7FD40 = get_option('myarcade_mochi'); $REDC007496C1445189AF037508BBA4E23 = intval($R9C65084CFC54EB0D266E6D073B818630['max_width']); if ( !empty( $R19D8D91C3A4693A3128752A2FBE7FD40['publisher_id'] ) && ($R3A9B5FE1338F108F332069C17708CA68 == 'mochi')) { $RF4105941EE9F5052B678CABE23FE7CCE .= '?affiliate_id='.$R19D8D91C3A4693A3128752A2FBE7FD40['publisher_id']; } if ( ($R9EB52A34FA735067731D9177E1BF3A8F == false) && $REDC007496C1445189AF037508BBA4E23 ) { if ($R1D3907CAD29A4EB21B34EA0F5BF1515B > $REDC007496C1445189AF037508BBA4E23) { $R1764F7A0ED2743F1C4EC0A57105C9685 = $REDC007496C1445189AF037508BBA4E23 / $R1D3907CAD29A4EB21B34EA0F5BF1515B; $R1D3907CAD29A4EB21B34EA0F5BF1515B = $REDC007496C1445189AF037508BBA4E23; $RF4C9555AE9AA18D6B28B32006134BDC5 = $RF4C9555AE9AA18D6B28B32006134BDC5 * $R1764F7A0ED2743F1C4EC0A57105C9685; } } if ($R7DE5D4419F85F3A0DEDBA1898F7A945A == true) { $RFC414A358502FCF73C357861910B2FC0 = true; } else { $RFC414A358502FCF73C357861910B2FC0 = F4FF66E6823645AF0042D28D82C57D6C0(); } if ($RFC414A358502FCF73C357861910B2FC0 == true) { if (get_option($RB0B67211D8336990FD66EAF68E92E9BA('bXlhcmNhZGVfc2NobHVlc3NlbA=='))) { if ($R3A9B5FE1338F108F332069C17708CA68 == 'embed') { $RE2A6348A524DA39F3A55BC3C1C4497F5 = stripcslashes($RF4105941EE9F5052B678CABE23FE7CCE); } elseif ($R3A9B5FE1338F108F332069C17708CA68 == 'dcr') { $RE2A6348A524DA39F3A55BC3C1C4497F5 = '<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://active.macromedia.com/director/cabs/sw.cab" width="'.$R1D3907CAD29A4EB21B34EA0F5BF1515B.'" height="'.$RF4C9555AE9AA18D6B28B32006134BDC5.'">
    <param name="src" value="'.$RF4105941EE9F5052B678CABE23FE7CCE.'">
    <param name="wmode" value="transparent">
    <param name="wmode" value="opaque" />
    <embed src="'.$RF4105941EE9F5052B678CABE23FE7CCE.'" width="'.$R1D3907CAD29A4EB21B34EA0F5BF1515B.'"  height="'.$RF4C9555AE9AA18D6B28B32006134BDC5.'">
  </object>'; } elseif ($R3A9B5FE1338F108F332069C17708CA68 == 'heyzap_embed') { $RE2A6348A524DA39F3A55BC3C1C4497F5 = $RF4105941EE9F5052B678CABE23FE7CCE; } else { $RE2A6348A524DA39F3A55BC3C1C4497F5 = '<embed src="'.$RF4105941EE9F5052B678CABE23FE7CCE.'" wmode="direct" menu="false" quality="high" width="'.$R1D3907CAD29A4EB21B34EA0F5BF1515B.'" height="'.$RF4C9555AE9AA18D6B28B32006134BDC5.'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'; } } else { $RE2A6348A524DA39F3A55BC3C1C4497F5 = $RB0B67211D8336990FD66EAF68E92E9BA('PHA+UGxlYXNlIGVudGVyIGEgdmFsaWQgbGljZW5zZSBrZXkgZm9yIDxzdHJvbmc+TXlBcmNhZGVCbG9nIFBybzwvc3Ryb25nPiB0byBiZSBhYmxlIHRvIHNob3cgZ2FtZXMhPC9wPg=='); } } else { $RE2A6348A524DA39F3A55BC3C1C4497F5 = ''; } return $RE2A6348A524DA39F3A55BC3C1C4497F5; } function get_gamevideo($REAA6191C2FA9B633A100C34B5C0CFB41) { return false; $RB97CC202CFC7297071C8B6471540F3DC = get_post_meta($REAA6191C2FA9B633A100C34B5C0CFB41, "mabp_video_url", true); if ( preg_match('|^http://(www)?\.?youtube.*|i', $RB97CC202CFC7297071C8B6471540F3DC) ) { echo '<iframe class="youtube-player" type="text/html" width="640" height="385" src="$RB97CC202CFC7297071C8B6471540F3DC" frameborder="0">
</iframe>'; } if ( preg_match('|^http://.*|i', $RB97CC202CFC7297071C8B6471540F3DC) ) { } } function F7BA2C08073DDA2904EF9A7DB46904088() { echo "\n"."<!-- Powered by MyArcadePlugin Pro - http://myarcadeplugin.com -->"."\n"; } function F94EBD7C16769D03E06E16136FFE5F944() { ?>
  <script type="text/javascript">
    jQuery(document).ready(function(){
      jQuery(".toggle_container").hide();
      //jQuery("#advanced_settings").hide();

      jQuery("h2.trigger").click(function(){
        jQuery(this).toggleClass("active").next().slideToggle("slow");
      });
    });
    
function thickboxResize() {

	var boundHeight = 450; // minimum height
	//var boundWidth = 750; // minimum width

	//var viewportWidth = (self.innerWidth || (document.documentElement.clientWidth || (document.body.clientWidth || 0)))
	var viewportHeight =(self.innerHeight || (document.documentElement.clientHeight || (document.body.clientHeight || 0)))

	jQuery('a.thickbox').each(function(){
		var text = jQuery(this).attr("href");

		if ( viewportHeight < boundHeight  /*|| viewportHeight < boundWidth*/)
		{
			// adjust the height
			text = text.replace(/height=[0-9]*/,'height=' + Math.round(viewportHeight * .8));
			// adjust the width
			//text = text.replace(/width=[0-9]*/,'width=' + Math.round(viewportWidth * .8));
		}
		else 
		{
			// constrain the height by defined bounds
			text = text.replace(/height=[0-9]*/,'height=' + boundHeight);
			// constrain the width by defined bounds
			//text = text.replace(/width=[0-9]*/,'width=' + boundWidth);
		}

		jQuery(this).attr("href", text);
	});
}

jQuery(window).bind('load', thickboxResize );
jQuery(window).bind('resize', thickboxResize );
</script>

<?php
 echo '<div class="wrap">'; ?><p style="margin-top: 10px"><img src="<?php echo MYARCADE_URL . '/images/logo.png'; ?>" alt="MyArcadePlugin Pro" /></p><?php
} function F011F5FA6950FDD84A7242122BC8934C3() { echo '</div>'; } ?>