64 $actual_time = time();
68 if ( isset( $user_time ) && $user_time ===
true )
70 $sSystemDefault = date(DEFAULT_DATE_FORMAT, $actual_time).
' (';
75 $DATE_FORMATS = array(
76 'system_default' => $sSystemDefault,
77 'j.n.Y' => date(
'j.n.Y', $actual_time).
' (j.n.Y)',
78 'm/d/Y' => date(
'm/d/Y', $actual_time).
' (M/D/Y)',
79 'd/m/Y' => date(
'd/m/Y', $actual_time).
' (D/M/Y)',
80 'm.d.Y' => date(
'm.d.Y', $actual_time).
' (M.D.Y)',
81 'd.m.Y' => date(
'd.m.Y', $actual_time).
' (D.M.Y)',
82 'm-d-Y' => date(
'm-d-Y', $actual_time).
' (M-D-Y)',
83 'd-m-Y' => date(
'd-m-Y', $actual_time).
' (D-M-Y)',
84 'D M d, Y' => date(
'D M d, Y', $actual_time ),
85 'M d Y' => date(
'M d Y', $actual_time ),
86 'd M Y' => date(
'd M Y', $actual_time ),
87 'jS F, Y' => date(
'jS F, Y', $actual_time ),
88 'l, jS F, Y' => date(
'l, jS F, Y', $actual_time )
91 $oDateTool = lib_lepton::getToolInstance(
"datetools",
true);
92 $oDateTool->set_core_language( DEFAULT_LANGUAGE );
102 foreach ($aFormatList as &$format)
104 $DATE_FORMATS[ $format ] = $oDateTool->formatWithMySQL($format, $actual_time);
107 return $DATE_FORMATS;
225 global $TEXT, $THEME;
227 $sLanguagePath_user =
THEME_PATH.
"/languages/".LANGUAGE.
".php";
228 $sLanguagePath_default =
THEME_PATH.
"/languages/EN.php";
235 if (file_exists($sLanguagePath_user))
237 require_once $sLanguagePath_user;
239 elseif( file_exists( $sLanguagePath_default ) )
241 require_once $sLanguagePath_default;
250 if (isset($THEME[$sKey]))
252 return $THEME[$sKey];
254 elseif (isset($TEXT[$sKey]))
260 return "** ".$sKey.
" (Key not found in Languages!)";