47 lines
1.5 KiB
PHP
47 lines
1.5 KiB
PHP
<?php
|
|
|
|
/* $Id: help_tos.php 8 2009-01-11 06:02:53Z john $ */
|
|
|
|
$page = "admin_general1";
|
|
include "admin_header.php";
|
|
|
|
|
|
function general()
|
|
{
|
|
global $database, $user, $admin;
|
|
if(trim($_POST["description"])!="")
|
|
{
|
|
$database->database_query("INSERT INTO log SET addedby='".$database->database_real_escape_string($admin->admin_info["admin_username"])."', time='".time()."', description='".$database->database_real_escape_string($_POST["description"])."'");
|
|
}
|
|
|
|
|
|
$query=$database->database_query("SELECT * FROM log ORDER BY id desc LIMIT 500");
|
|
?>
|
|
<h1>Cometchat last updated: <?php echo date("F d, Y g:i A",filemtime ( "/home/bateworldcom/public_html/cometchat/VERSION.txt" ));?></h1>
|
|
<table style="width:100%;"><tr><td>User</td><td>Added</td><td>Description</td></tr><?php
|
|
while($row=$database->database_fetch_array($query))
|
|
{
|
|
?><tr><td><?php echo $row["addedby"];?></td><td><?php echo date("F d, Y g:i A", $row["time"]);?></td><td><?php echo $row["description"];?></td></tr><?php
|
|
}
|
|
?>
|
|
</table>
|
|
<br /><br />
|
|
<form action="changelog.php" method="post">
|
|
Add new:<br />
|
|
<textarea name="description" style="width:500px; height:250px;"></textarea><br />
|
|
<input type="submit">
|
|
</form>
|
|
|
|
<br /><br />
|
|
See something off? Check the current transfer log: <a href="transferlog.php">here</a>
|
|
<?php
|
|
}
|
|
|
|
|
|
// ASSIGN VARIABLES AND INCLUDE FOOTER
|
|
$smarty->assign('terms_of_service', htmlspecialchars_decode($terms_of_service, ENT_QUOTES));
|
|
$smarty->assign('seotitle', $seotitle);
|
|
$smarty->assign('seodesc', $seodesc);
|
|
|
|
include "admin_footer.php";
|
|
?>
|