What's new

skrypt na pokazywanie zbanowanych

Status
Not open for further replies.

vintetsuin

Active User
Joined
Jul 6, 2008
Messages
52
Reaction score
1
tutaj mam skrypt jak z neigo usunac te has?a zeby nie bylo zanych hasel tylko jak ktos wejdzie na acc to bedzie widzial liste zbanowanych
o to ten skrypt
<?
session_start();
?>
<?php
$password = "";
$password = $_SESSION['password'];
$error = 0;
if ($password != "" && $password != null) {

include("config.php");
$password = "";
$password = $_POST['password'];
$gmpass = $_POST['gmpass'];
$gmname = $_POST['gmname'];

echo "
<table border=\"2\" align=\"center\" width=\"70%\">
<tr>
<th>Reports:</th>
</tr>
</table>
<table border=\"2\" align=\"center\" width=\"70%\">
";
$file = "$datadir\logs\\reports.xml";
$f = @fopen($file, "r");
$contents = fread($f, filesize($file));
$tags = explode("<", $contents);
$found = 0;
foreach($tags as $tag){
if(substr($tag, 0, 6) == "report") {
if($temppos = stristr($tag, "name=\"")) {
$temp = explode("\"", $temppos);
$name = $temp[1];
$found = 1;
}
if($temppos = stristr($tag, "reason=\"")) {
$temp = explode("\"", $temppos);
$reason = $temp[1];
$found = 1;
}
if($temppos = stristr($tag, "action=\"")) {
$temp = explode("\"", $temppos);
$action = $temp[1];
$found = 1;
}
if($temppos = stristr($tag, "comment=\"")) {
$temp = explode("\"", $temppos);
$comment = $temp[1];
$found = 1;
}
if($temppos = stristr($tag, "time=\"")) {
$temp = explode("\"", $temppos);
$time = $temp[1];
$found = 1;
}



print("<tr><td align=\"left\"><b>Report: </b>$time - $name<br><br>$date<br><b>Banned because of:</b> $reason<br><b>Possible action:</b> $action<br><b>Comment:</b><br>$comment<br>
<br>");
}
}
}
?>
prosze o przerobienie go.

czy kto? umie to poprawi? albo napisa? nowy skrypt ?

mam skrypt ju? teraz mi pokazuje bany ?e kt?ry by? ostatni a ja chce ?eby ustawia?o si? date od najwcze?niejszej do najstarszej co zrobi? kto wie ?

//3 posty pod rz?d, sklejone
 
Status
Not open for further replies.
Top