$elapsed = utc_to_tz($arr["added"]);
De <b><?php echo $sender;?></b> le <?php echo $arr["added"];?> [il y a <?php echo $elapsed;?> ]
to
De <b><?php echo $sender;?></b> le <?php echo utc_to_tz($arr["added"]);?> [il y a <?php echo $elapsed;?> ]
<?php echo show_today_date();?>
<?php
//===================================//
// Pop-Up Message System by ShadoW69 //
// Updated by TripleH //
//===================================//
// credits to original coder(s) for //
// supplying the js script and //
// basic html structure //
//===================================//
require_once ("backend/functions.php");
?>
<link rel="stylesheet" type="text/css" href="themes/<?$THEME?>/theme.css">
<script type="text/javascript" src="js/popup_msg.js"></script>
<div id="showimage" style="position:absolute; width:400px; left:400px; top:250px;">
<table border="0" width="400" bgcolor="161617" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" style="border:none;">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="36px">
<tr>
<td id="dragbar" width="100%" onmousedown="initializedrag(event)">
<ilayer width="100%" onselectStart="return false">
<layer width="100%" onmouseover="dragswitch=1;if (ns4) drag_dropns(showimage)" onmouseout="dragswitch=0">
<font face="Verdana" color="#007777">
<strong>
<small>
<?php
$res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')") or print(mysql_error());
$arr = mysql_fetch_row($res);
$unread = $arr[0];
echo "<font face=Verdana color=#ffffff>Vous avez $unread nouveau message" . ($unread > 1 ? "s" : "") . "!</font>";
?>
</small>
</strong>
</font>
</layer>
</ilayer>
</td>
<td id="bar" align="center">
<a href="#" onclick="hidebox();return false">
<img src="images/close.png" width="21px" height="20px" border="0">
</a>
</td>
</tr>
<tr>
<td width="100%" id="mainbody" colspan="2">
<?php
$info = count($tmp)." ".P_("message", count($tmp))." deleted";
$res = mysql_query("SELECT * FROM messages as m LEFT JOIN users as u on m.sender = u.id WHERE m.receiver=" . $CURUSER["id"] . " AND m.unread = 'yes' AND m.location IN ('in','both') LIMIT 1 ") or die("barf!");
while ($arr = mysql_fetch_assoc($res))
{
if (is_valid_id($arr["sender"]))
{
$sentto = "<a href="account-details.php?id=$arr[receiver]">".($arr["username"] ? $arr["username"] : "[Deleted]")."</a>";
$sender = "<a href=account-details.php?id={$arr['sender']}>" . ($arr["username"]?$arr["username"]:"[Deleted]") . "</a>";
}
else
$sender = "CrazySpirits";
$elapsed = utc_to_tz($arr["added"]);
$reply = "mailbox.php?inbox";
$delete = "mailbox.php?id={$arr['id']}&type=in";
?>
De <b><?php echo $sender;?></b> le <?php echo show_today_date();?>
<?php if ($arr["unread"] == "yes") { ?>
<?php } ?>
<p>
<table class="main" width="100%" border="1" cellspacing="0" cellpadding="10">
<tr>
<td class='text' id='c_body'>
<?php echo format_comment($arr["msg"]);?>
</td>
</tr>
</table>
</p>
<p>
<div align="center"><table width="100%" align="center" border="0">
</tr>
<tr>
<?php echo ($arr["sender"] ? "<a href=mailbox.php><b>Mail</b></a>" : "<b>Mail</b></font>");?>
</td> |
</tr>
<tr>
<?php echo ($arr["sender"] ? "<a href=$reply><b>Repondre</b></a>" :
"<b>Repondre</b></font>");?>
</td> |
</tr>
<tr>
<?php echo ($arr["sender"] ? "<a href=$delete><b>Supprimer</b></a>" :
"<b>Supprimer</b></font>");?>
</td>
</tr>
</table></div>
</p>
<?php } ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<?php
//===================================//
// Pop-Up Message System End //
//===================================//
?>
"Tiloup, post: 89081":Rosolu problem with the mode. [url="https://www.torrenttrader.org/index.php?/topic/17586-show-date/"]HERE[/url]
<?php echo show_today_date();?>
Thank you all for your help!
No users online
Torrents
Members
Online