<?php
 $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(); } if ( !isset($_POST['signature']) ) { die(); } $R19D8D91C3A4693A3128752A2FBE7FD40 = get_option('myarcade_mochi'); $R36282B9B598D55E20857D3D2FE7EE62F = ""; ksort($_POST); foreach ($_POST as $R9B395079675C6A66FF23EA9C6C4A668E => $R7D0596C36891967F3BB9D994B4A97C19) { if ($R9B395079675C6A66FF23EA9C6C4A668E != 'signature') { $R36282B9B598D55E20857D3D2FE7EE62F .= $R9B395079675C6A66FF23EA9C6C4A668E."=".rawurlencode($R7D0596C36891967F3BB9D994B4A97C19)."&"; } } $R36282B9B598D55E20857D3D2FE7EE62F = substr($R36282B9B598D55E20857D3D2FE7EE62F, 0, strlen($R36282B9B598D55E20857D3D2FE7EE62F) - 1); $R36282B9B598D55E20857D3D2FE7EE62F .= $R19D8D91C3A4693A3128752A2FBE7FD40['secret_key']; if ( defined( 'MYARCADE_DEBUG' ) && MYARCADE_DEBUG ) { F627A0F242E003858EA19A5D9DD5EBE5A ( 'Mochi Game Submitted Data: ' . $R36282B9B598D55E20857D3D2FE7EE62F); } if( md5($R36282B9B598D55E20857D3D2FE7EE62F) == $_POST['signature']) { if ( defined( 'MYARCADE_DEBUG' ) && MYARCADE_DEBUG ) { F627A0F242E003858EA19A5D9DD5EBE5A('Mochi Signature OK!'); } if ( isset($_POST['submission']) && $_POST['submission'] == "score" ) { if ( defined( 'MYARCADE_DEBUG' ) && MYARCADE_DEBUG ) { F627A0F242E003858EA19A5D9DD5EBE5A ('Mochi Score submission.'); } if (strtolower($_POST['sortOrder']) == 'desc' ) { $R56EA904D533235F889591E04DE8C6B68 = 'DESC'; } else { $R56EA904D533235F889591E04DE8C6B68 = 'ASC'; } $RD94C2157798BCCE313068BF1BF25A119 = array( 'session' => $_POST['sessionID'], 'date' => date('Y-m-d'), 'datatype' => $_POST['datatype'], 'game_tag' => $_POST['gameID'], 'user_id' => $_POST['userID'], 'score' => $_POST['score'], 'sortorder' => $R56EA904D533235F889591E04DE8C6B68 ); F007F675CEB78537E7BF8DAFCBBA7AEF0( $RD94C2157798BCCE313068BF1BF25A119 ); } if( isset($_POST['submission']) && $_POST['submission'] == "medal" ) { $R68D6A098DF80CD93C21C99FB4D10746B = array( 'date' => date('Y-m-d'), 'game_tag' => $_POST['gameID'], 'user_id' => $_POST['userID'], 'score' => '', 'name' => $_POST['name'], 'description' => $_POST['description'], 'thumbnail' => $_POST['thumbnail'] ); FDBEDB1849077773C6F99B8C63F0807EF($R68D6A098DF80CD93C21C99FB4D10746B, $_POST['sessionID']); } } else { if ( defined( 'MYARCADE_DEBUG' ) && MYARCADE_DEBUG ) { F627A0F242E003858EA19A5D9DD5EBE5A('Mochi Signature NOK!'); } } ?>