<?php session_start(); date_default_timezone_set("Europe/Helsinki"); if ($_SESSION["captcha"] != $_POST["captcha"]) { print "<html><body>Invalid captcha!<br /><a href=\"" . $_POST["redirectBack"] . "\">Go back</a></body</html>"; die; } include "comments.php"; ConnectDB(); $timeSinceLastComment = FindLastCommentTime($_SERVER['REMOTE_ADDR']); if ($timeSinceLastComment < 60 * 5) { print "<html><body>You must wait 5 minutes between comments!<br /><a href=\"" . $_POST["redirectBack"] . "\">Go back</a></body</html>"; die; } $numComments = FindNumCommentsWithin(60); if ($numComments > 10) { print "<html><body>Too many comments posted in short time period!<br /><a href=\"" . $_POST["redirectBack"] . "\">Go back</a></body></html>"; die; } if (strlen($_POST["username"]) > 0 && strlen($_POST["comments"]) > 0 && strlen($_POST["context"]) > 0) { AddComment($_POST["username"], $_POST["comments"], $_POST["context"]); } else { print "<html><body>Must have both an username and comment to send!<br /><a href=\"" . $_POST["redirectBack"] . "\">Go back</a></body</html>"; die; } // PrintComments("all"); DisconnectDB(); header('Location: ' . $_POST["redirectBack"] . "#comments");
include_once "t_dbfunctions.php"; include_once "t_functions.php"; include_once "t_config.php"; if (isset($_POST['Deny']) && isset($_POST['RealmlistList']) && isset($_POST['GUID'])) { $ACCOUNT_ID = _GetCharacterAccountID(); $ID = $_POST['Deny']; $RealmID = $_POST['RealmlistList']; $GUID = $_POST['GUID']; $REASON = $_POST['REALSON']; if (!isset($REASON) || empty($REASON)) { $REASON = "Not meet requeriments."; } if (_CheckCharacterOnlineStatus(_HostDBSwitch($RealmID), $DBUser, $DBPassword, _CharacterDBSwitch($RealmID), $GUID)) { if (CheckTransferStatus($AccountDBHost, $DBUser, $DBPassword, $AccountDB, $ID) == 0) { if (_CheckGMAccess($AccountDBHost, $DBUser, $DBPassword, $AccountDB, $ACCOUNT_ID, $GMLevel)) { AddComment($AccountDBHost, $DBUser, $DBPassword, $AccountDB, $ID, $REASON); CancelORDenyCharacterTransfer(_HostDBSwitch($RealmID), $DBUser, $DBPassword, _CharacterDBSwitch($RealmID), $GUID, $STORAGE); UpdateDumpStatus($AccountDBHost, $DBUser, $DBPassword, $AccountDB, $ID, 2); } else { die("ACCESS DENIED"); } } else { die("NOT \"IN PROGRESS\" STATUS"); } } else { die("LOG OFF WITH THIS CHARACTER! BEFORE MAKE ANY ACTIONS!"); } } else { die("SHIT HAPPENS, ERROR 35"); } ob_end_flush();