<FONT class="h2"><?Print $text_unban_request;?></FONT> <BR><BR> <? IF(IsSet($_POST['delete'])) { $query = "DELETE FROM va_unban WHERE nick LIKE '".$_POST['nick']."' AND ip = '".$_POST['ip']."'"; $DB_hub->Query($query); Header("Location: index.php?q=bantest"); Die(); } IF($_POST['send'] && $_POST['comment']) { $DB_hub->Query("INSERT ignore INTO va_unban (ip, nick, email, comment, time) VALUES ('".$_GET['ip']."', '".$_GET['nick']."', '".$_POST['email']."', '".$_POST['comment']."', UNIX_TIMESTAMP())"); VA_Alert($text_unban_inserted, "info32", "index.php?".$_SERVER['QUERY_STRING']); RETURN TRUE; } // Taulka banu /*IF(NickExist($_GET['nick'], $DB_hub)) $result = $DB_hub->Query("SELECT * FROM banlist WHERE nick LIKE '".$_GET['nick']."'"); ELSE*/ $result = $DB_hub->Query("SELECT * FROM banlist WHERE nick LIKE '".$_GET['nick']."' AND ip = '".$_GET['ip']."' AND (`date_limit` > UNIX_TIMESTAMP() OR `date_limit` IS NULL)"); IF($result->num_rows) {?> <TABLE class="b1 fs10px"> <? WHILE($ban = $result->Fetch_Assoc()) {?> <TR> <TD colspan=6 class="bg_light center b"> <? IF(StrToLower($_GET['nick']) == StrToLower($ban['nick']) && $_GET['ip'] == $ban['ip']) {
Die(VA_Message($err_msg_no_access, "error")); $DB_hub->Query("REPLACE INTO SetupList (file, var, val) VALUES ('".$file."', '".$var."', '".$val."')"); BREAK; //--------------------------------------------------------------------- CASE "!sql" : IF($debug[4] && USER_CLASS >= 10) $DB_hub->Query($param); ELSE { VA_Alert(SPrintF($err_msg_unknown_command, $command, $_POST['command']), "error", "index.php?".Change_URL_Query("q", $_GET['return'],"return", "")); $continue = FALSE; } BREAK; //--------------------------------------------------------------------- //Neznamy prikaz DEFAULT : VA_Alert(SPrintF($err_msg_unknown_command, $command, $_POST['command']), "error", "index.php?".Change_URL_Query("q", $_GET['return'],"return", "")); $continue = FALSE; BREAK; } IF($continue) { StoreQueries(); Header("Location: index.php?".Change_URL_Query("q", $_GET['return'], "return", "")); } ?>