<?php
 $R157A6826A8BF1F36EBBE3DEC02351744 = filter_input( INPUT_POST, 'message' ); $RA272EED39CFB584BB555165E3C9AA882 = dirname( dirname( dirname( dirname( dirname(__FILE__) ) ) ) ); if ( file_exists($RA272EED39CFB584BB555165E3C9AA882 . '/wp-load.php') ) { define('MYARCADE_DOING_ACTION', true); require_once($RA272EED39CFB584BB555165E3C9AA882 . '/wp-load.php'); } else { die(); } $RC523FCD5B14FA22CF0751AB0543C1FE9 = filter_input( INPUT_POST, 'userID', FILTER_SANITIZE_NUMBER_INT ); $post_id = filter_input( INPUT_POST, 'gameID' ); $RA337D38989275B85567BAE0C78786D01 = filter_input( INPUT_POST, 'sessionID' ); $R157A6826A8BF1F36EBBE3DEC02351744 = filter_input( INPUT_POST, 'message' ); $RCA989102DF6E1022A5F790BB14EEFF54 = filter_input( INPUT_POST, 'hash' ); $R1A634B62E7FB6CBC3AD8309D17FDC73C = 'myarcadeplugin'; if ( ! $RC523FCD5B14FA22CF0751AB0543C1FE9 || ! $post_id || ! $RA337D38989275B85567BAE0C78786D01 || ! $R157A6826A8BF1F36EBBE3DEC02351744 || ! $RCA989102DF6E1022A5F790BB14EEFF54 ) { die(); } $R8412D954CFD8D38C03BD2212AF56750F = filter_input( INPUT_POST, 'extra' ); $RD94C2157798BCCE313068BF1BF25A119 = filter_input( INPUT_POST, 'score' ); $RE19E0CB2E6C8F99C8F80BC85CBF4A14E = filter_input( INPUT_POST, 'scoreboard_id' ); $RF506CCD853C0A60BD340208294F83FAA = filter_input( INPUT_POST, 'unregistered_user' ); $RC2D2567438B1F39DD71F78195B5F3DED = filter_input( INPUT_POST, 'params' ); $RB9B0B2842284269C3A4AEA7B917604CB = explode( ',', $RC2D2567438B1F39DD71F78195B5F3DED ); $RB9B0B2842284269C3A4AEA7B917604CB = array_map( 'trim', $RB9B0B2842284269C3A4AEA7B917604CB ); $RAC5A482F9C2FF7BA3A7DA31F8695F6B3 = $R1A634B62E7FB6CBC3AD8309D17FDC73C . $RC523FCD5B14FA22CF0751AB0543C1FE9 . $RA337D38989275B85567BAE0C78786D01 . $R157A6826A8BF1F36EBBE3DEC02351744; foreach ( $RB9B0B2842284269C3A4AEA7B917604CB as $RF413F06AEBBCEF5E1C8B1019DEE6FE6B => $R7D0596C36891967F3BB9D994B4A97C19) { $RAC5A482F9C2FF7BA3A7DA31F8695F6B3 .= (string) filter_input( INPUT_POST, $R7D0596C36891967F3BB9D994B4A97C19 ); } $R7AA3EC07E4B45AD6A5B5FA62C86F202D = sha1( $RAC5A482F9C2FF7BA3A7DA31F8695F6B3 ); if ( $RCA989102DF6E1022A5F790BB14EEFF54 != $R7AA3EC07E4B45AD6A5B5FA62C86F202D ) { die(); } switch ( $R157A6826A8BF1F36EBBE3DEC02351744 ) { case 'scoreboard_entry' : { $game_tag = get_post_meta( $post_id, 'mabp_game_tag', true ); if ( ! $game_tag ) { die(); } $score_order = get_post_meta( $post_id, 'mabp_score_order', true ); if ( ! $score_order ) { $RC9F656B13AFE3B8C7BD13705BC3230C3 = filter_input( INPUT_POST, 'display_ascending' ); if ( "true" == $RC9F656B13AFE3B8C7BD13705BC3230C3 ) { $score_order = 'ASC'; } else { $score_order = 'DESC'; } update_post_meta($post_id, 'mabp_score_order', $score_order ); } $R53740C11C1930560D0EC6A4938F16AD0 = array( 'session' => $RA337D38989275B85567BAE0C78786D01, 'date' => date('Y-m-d'), 'datatype' => 'number', 'game_tag' => $game_tag, 'user_id' => $RC523FCD5B14FA22CF0751AB0543C1FE9, 'score' => $RD94C2157798BCCE313068BF1BF25A119, 'sortorder' => $score_order, ); F007F675CEB78537E7BF8DAFCBBA7AEF0( $R53740C11C1930560D0EC6A4938F16AD0 ); } break; case 'achievement_info' : { } break; case 'achievement_awarded' : { $game_tag = get_post_meta( $post_id, 'mabp_game_tag', true ); if ( ! $game_tag ) { die(); } $R284E518B873DD39511291E58BBADE17D = array( 'date' => date('Y-m-d'), 'game_tag' => $game_tag, 'user_id' => $RC523FCD5B14FA22CF0751AB0543C1FE9, 'score' => filter_input( INPUT_POST, 'ach_id' ), 'name' => filter_input( INPUT_POST, 'title' ), 'description' => filter_input( INPUT_POST, 'description' ), 'thumbnail' => filter_input( INPUT_POST, 'icon_url' ), ); global $wpdb; $R3D45D505AD8EAB596A9BF41BDAE93040 = $wpdb->get_var( "SELECT id FROM ".$wpdb->prefix.'myarcademedals'." WHERE
      game_tag = '".$game_tag."' AND
      user_id = '".$RC523FCD5B14FA22CF0751AB0543C1FE9."'AND
      score = '".$R284E518B873DD39511291E58BBADE17D['score']."' LIMIT 1" ); if ( $R3D45D505AD8EAB596A9BF41BDAE93040 ) { die(); } $R5ACED229670AEE52CB99DF49B57E3C33 = pathinfo( $R284E518B873DD39511291E58BBADE17D['thumbnail'] ); $R32039D7412BC0106546758F229CB14D0 = F6F8EB9DF17613F857E74D2C8D503672D( $R284E518B873DD39511291E58BBADE17D['thumbnail'] ); $R2B3BBA533A94AC2479A9954BF36F4625 = F3DACEAC2AA958620BACA475E15A8207D( $R5ACED229670AEE52CB99DF49B57E3C33['filename'], 'custom' ); $R4C5B71D718D81A27800DE45FCEA33176 = wp_unique_filename( $R2B3BBA533A94AC2479A9954BF36F4625['thumbsdir'], $R5ACED229670AEE52CB99DF49B57E3C33['basename'] ); $R679E9B9234E2062F809DBD3325D37FB6 = file_put_contents( $R2B3BBA533A94AC2479A9954BF36F4625['thumbsdir'] . $R4C5B71D718D81A27800DE45FCEA33176, $R32039D7412BC0106546758F229CB14D0['response'] ); if ( $R679E9B9234E2062F809DBD3325D37FB6 == true) { $R284E518B873DD39511291E58BBADE17D['thumbnail'] = $R2B3BBA533A94AC2479A9954BF36F4625['thumbsurl'] . $R4C5B71D718D81A27800DE45FCEA33176; } do_action( 'myarcade_new_medal', $R284E518B873DD39511291E58BBADE17D ); $wpdb->insert( $wpdb->prefix.'myarcademedals', $R284E518B873DD39511291E58BBADE17D ); } break; case 'login' : { } break; case 'logout' : { } break; default : { } break; } $RC91035FD8512F06F108CEE51D9F7F62F = get_permalink( $post_id ); header( 'Location: ' . $RC91035FD8512F06F108CEE51D9F7F62F ); die(); ?>