<?php
 if( !defined( 'ABSPATH' ) ) { die(); } if ( ! function_exists('is_game') ) { function is_game( $post_id = false ) { global $post; if ( ! $post_id ) { if ( isset( $post->ID ) ) { $post_id = $post->ID; } else { return false; } } if ( get_post_meta( $post_id, "mabp_swf_url", true ) ) { return true; } else { return false; } } } if ( ! function_exists( 'is_leaderboard_game' ) ) { function is_leaderboard_game( $post_id = false ) { global $post; if ( ! $post_id ) { if ( isset( $post->ID ) ) { $post_id = $post->ID; } else { return false; } } if ( get_post_meta( $post_id, 'mabp_leaderboard', true ) == '1' ) { return true; } return false; } } function myarcade_embed_handler( $RE82EE9B121F709895EF54EBA7FA6B78B ) { global $post; if ( is_single() && !is_feed() ) { $general = get_option('myarcade_general'); $RF4105941EE9F5052B678CABE23FE7CCE = get_post_meta($post->ID, "mabp_swf_url", true); if ( ($general['embed'] != 'manually') && !empty($RF4105941EE9F5052B678CABE23FE7CCE) ) { $RA63A8F34DD90F600A0C3D51DAA28CC56 = get_game($post->ID); if ( $general['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; } add_filter('the_content', 'myarcade_embed_handler', 99); function enabled_global_scores() { return false; } function myarcade_check_width( $RF5A90126DA0C510DA904566BD6C6CCE5 ) { $R679E9B9234E2062F809DBD3325D37FB6 = false; $general = get_option('myarcade_general'); $REDC007496C1445189AF037508BBA4E23 = intval($general['max_width']); $R1D3907CAD29A4EB21B34EA0F5BF1515B = intval(get_post_meta($RF5A90126DA0C510DA904566BD6C6CCE5, "mabp_width", true)); if ($R1D3907CAD29A4EB21B34EA0F5BF1515B > $REDC007496C1445189AF037508BBA4E23) { $R679E9B9234E2062F809DBD3325D37FB6 = true; } return $R679E9B9234E2062F809DBD3325D37FB6; } ?>