As pasidariau LT data bet kazkodel man naujienose meta ne data, o newdate uzraso ( www.unical.wu.lt ).
Kitur raso normaliai (pvz http://www.unical.wu.lt/profile.... )
Mano maincore.php kur pakeiciau:
// Format the date & time accordingly
function ltdate($op) {
$rights = array("January" => "Sausio", "February" => "Vasario", "March" => "Kovo",
"April" => "Balandžio", "May" => "Gegužes", "June" => "Birželio", "July" => "Liepos",
"August" => "Rugpjučio", "September" => "Rugsėjo", "October" => "Spalio",
"November" => "Lapkričio", "December" => "Gruodžio");
foreach($rights as $key=>$rightsg) $op = str_replace($key, $rightsg, $op);
return $op;
}
function showdate($format, $val) {
global $settings;
if ($format == "shortdate" || $format == "longdate" || $format == "forumdate") {
return ltdate(strftime($settings[$format], $val+($settings['timeoffset']*3600)));
} else {
return ltdate(strftime($format, $val+($settings['timeoffset']*3600)));
}
}
Gall jums bus taip patogiau:
// Format the date & time accordingly
function ltdate($op) {
$rights = array("January" => "Sausio", "February" => "Vasario", "March" => "Kovo",
"April" => "Balandžio", "May" => "Gegužes", "June" => "Birželio", "July" => "Liepos",
"August" => "Rugpjučio", "September" => "Rugsėjo", "October" => "Spalio",
"November" => "Lapkričio", "December" => "Gruodžio");
foreach($rights as $key=>$rightsg) $op = str_replace($key, $rightsg, $op);
return $op;
}
function showdate($format, $val) {
global $settings;
if ($format == "shortdate" || $format == "longdate" || $format == "forumdate") {
return ltdate(strftime($settings[$format], $val+($settings['timeoffset']*3600)));
} else {
return ltdate(strftime($format, $val+($settings['timeoffset']*3600)));
}
}
Prasau padeti labai...
Be to as pakeiciau lt raides kodais kad ??? nemestu...
Del visa ko pridedu maincore.php
https://github.com/KiraLT Python, PHP, JavaScript
Redagavo KiraLT 2010 Spa. 4 14:10:13 |