function me($id = null) { if ($id) { return intval($id) == Privacy::getId(); } return Privacy::getId(); }
$u->supporter += floor($txn->amount); $u->save(); header('Location: support.php?e=4'); exit; } else { $t->err = "There was an error processing the transaction, please contact an admin in the forum with the following transaction ID: $txn->id"; } } else { $txn->time = time(); $txn->amount = $paymentAmount; $txn->userId = Privacy::getId(); if (!$filtered['support-userId']) { $txn->forId = Privacy::getId(); } else { $txn->forId = $filtered['support-userId']; } $txn->isAlliance = 0; $t->uid = $filteredG['uid']; if ($filtered['paypal-submit_x']) { $txnId = $txn->create(); $pp = new Paypal(); if(!$pp->step1And2($txn)) { //Redirecting to APIError.php to display errors. $error = 3; }
$save = array( 'time' => time(), 'METHOD' => $_SERVER['REQUEST_METHOD'], 'REFERRER' => $_SERVER['HTTP_REFERRER'], 'POST'=> $_POST, 'GET'=> $_GET, 'IP' => $_SERVER['REMOTE_ADDR'], 'REQUEST_URI' => $_SERVER['REQUEST_URI'], 'UA' => $_SERVER['HTTP_USER_AGENT'], 'RESTORE'=> $restore_string, 'SID' => session_id(), ); $s = serialize($save) . "\n"; unset($save); $userid = Privacy::getId(); $dir = BASEDIR . '/logger/' . GAME; $filename = "$userid.log." . LOGGER_V; if (is_dir($dir)) { $f = fopen("$dir/$filename", 'a'); fwrite($f, $s); fclose($f); } else { mkdir($dir, 666, true); $f = fopen("$dir/$filename", 'a');