Created
August 7, 2010 19:43
-
-
Save anonymous/513113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require './conf/dbconf.php'; | |
require './conf/opendb.php'; | |
//echo "<pre>".print_r($_REQUEST,true)."</pre>"; | |
session_start(); | |
if (!isset($_SESSION['leo']) || $_SESSION['leo'] != true) { | |
header('Location: login.php'); | |
exit; | |
} | |
$ulvl = $_SESSION['usrlvl']; | |
$uname = $_SESSION['usrname']; | |
$uuid = $_SESSION['uuid']; | |
$mtr = $_POST['name']; | |
$N = count($mtr); | |
echo " | |
<html> | |
<head> | |
<title> | |
MemoServ Brought to you by Xray-Hope | |
</title> | |
</head> | |
<body bgcolor=\"000000\" text=\"FFFFFF\"> | |
<br> | |
<br> | |
<center> | |
<a href=\"index.php\">Home</a> <a href=\"delmemo.php\">Delete Memo</a> <a href=\"alt.php\">Request Alt</a> <a href=\"logout.php\">Logout</a> | |
</center> | |
<br> | |
<br> | |
"; | |
for($i=0; $i < $N; $i++){ | |
echo " | |
<center> | |
<table width=\"1200px\" border=\"1px\"> | |
<tr> | |
<td> | |
<b> | |
<center> | |
"; | |
echo $mtr[$i]; | |
echo " | |
</center> | |
</b> | |
</td> | |
</tr> | |
</table> | |
<table width=\"1200px\" border=\"1px\"> | |
<tr height=\"10px\"> | |
<td width=\"20px\"> | |
<center> | |
<b> | |
ID | |
</b> | |
</center> | |
</td> | |
<td width=\"40px\"> | |
<center> | |
<b> | |
Chan | |
</b> | |
</center> | |
</td> | |
<td width=\"150px\"> | |
<center> | |
<b> | |
From | |
</b> | |
</center> | |
</td> | |
<td width=\"150px\"> | |
<center> | |
<b> | |
To | |
</b> | |
</center> | |
</td> | |
<td width=\"60px\"> | |
<center> | |
<b> | |
Date | |
</b> | |
</center> | |
</td> | |
<td width=\"60px\"> | |
<center> | |
<b> | |
Time | |
</b> | |
</center> | |
</td> | |
<td> | |
<center> | |
<b> | |
Message | |
</b> | |
</center> | |
</td> | |
</tr> | |
"; | |
$result = ''; | |
$result = mysql_query("SELECT * FROM memos WHERE nickto='".mysql_real_escape_string($mtr[$i])."'"); | |
//if (!$result) echo mysql_error(); | |
while ($row = mysql_fetch_array($result)) { | |
echo " | |
<tr > | |
<td width=\"20px\"> | |
"; | |
echo $row['id']; | |
echo " | |
</td> | |
<td width=\"40px\"> | |
"; | |
echo $row['chan']; | |
echo " | |
</td> | |
<td width=\"150px\"> | |
"; | |
echo $row['nickfrom']; | |
echo " | |
</td> | |
<td width=\"150px\"> | |
"; | |
echo $row['nickto']; | |
echo " | |
</td> | |
<td width=\"60px\"> | |
"; | |
echo $row['date']; | |
echo " | |
</td> | |
<td width=\"60px\"> | |
"; | |
echo $row['time']; | |
echo " | |
</td> | |
<td> | |
"; | |
echo $row['message']; | |
echo " | |
</td> | |
</tr> | |
"; | |
} | |
echo " | |
</table> | |
</center> | |
<br> | |
<br> | |
<br> | |
<br> | |
"; | |
} | |
echo " | |
</body> | |
</html> | |
"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment