|
28.07.2011, 18:48
Вот:
в этой функции выводит 30.11.1999
PHP код:
function viewdownloaddetails($lid, $ttitle) {
global $prefix, $db, $admin, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $module_name;
include("header.php");
include("modules/$module_name/d_config.php");
menu(1);
$lid = intval($lid);
$result = $db->sql_query("SELECT * FROM ".$prefix."_downloads_downloads");
$cid = intval($cid);
$downloadratingsummary = number_format($downloadratingsummary, $mainvotedecimal, $title);
$hits = intval($hits);
$title = stripslashes(check_html($title, "nohtml"));
$totalvotes = intval($totalvotes);
$totalcomments = intval($totalcomments);
$description = stripslashes($description);
setlocale (LC_TIME, $locale);
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
$datetime = strftime(""._LINKSDATESTRING."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);
$transfertitle = ereg_replace ("_", " ", $ttitle);
$displaytitle = stripslashes($transfertitle);
$res = $db->sql_query("SELECT name, email, description, filesize, hits, version, homepage FROM ".$prefix."_downloads_downloads WHERE lid='$lid'");
list($auth_name, $email, $description, $filesize, $hits, $version, $homepage, $title) = $db->sql_fetchrow($res);
$hits = intval($hits);
$auth_name = stripslashes($auth_name);
$email = stripslashes($email);
$description = stripslashes($description);
$homepage = stripslashes($homepage);
echo "<br>";
OpenTable();
echo "<center><font class=\"option\"><b>"._DOWNLOADPROFILE.":<br> $displaytitle</b></font></center><br>";
echo "<font class=\"content\"><strong>Описание:</strong> $description<br>";
echo "<b>"._FILESIZE.":</b> ".CoolSize($filesize)."<br>";
echo "<b>"._ADDEDON.":</b> $datetime <br><b>"._UDOWNLOADS1."</b>: $hits <br>";
echo "<center><b><a href=\"modules.php?name=$module_name&d_op=getit&lid=$lid\ " target=\"_blank\"><img src=\"images/admin/Chelsea-icon.png\" border=\"0\"><br>"._DOWNLOADNOW."</a></b></center><br>";
downloadinfomenu($lid, $ttitle);
include("includes/social_button.html");
echo "<br><br>";
echo "</center>";
CloseTable();
include("footer.php");
}
|
|