Index: trunk/admin/head.php
===================================================================
diff -u -r2853 -r3846
--- trunk/admin/head.php (.../head.php) (revision 2853)
+++ trunk/admin/head.php (.../head.php) (revision 3846)
@@ -1,68 +1,143 @@
Init();
- $userid= $objSession->Get("PortalUserId");
- if($userid!=-1)
- {
- $userobj=$objUsers->GetItem($userid);
- $loginname= $userobj->Get("Login");
- }
- else
- $loginname = "root";
-
- $logout = $rootURL."admin/";
- $mainpage = $rootURL."admin/subitems.php?"."env=".BuildEnv()."§ion=in-portal:root";
- $objLang = $objLanguages->GetItem($m_var_list["lang"]);
- $charset = GetRegionalOption('Charset');
+ if ($application->GetVar('check_server')) {
+ echo 'PING: '.date('d/m/Y H:i:s');
+ exit;
+ }
+
+
+ $user = $application->recallObject('u');
+ $loginname = ($user->GetID() != -1) ? $user->GetDBField('Login') : 'root';
+
+ $logout = $application->HREF('', '', Array('logout' => 1, '__URLENCODE__' => 1), 'index.php');
+ $mainpage = $application->HREF('', '', Array('section' => 'in-portal:root', '__URLENCODE__' => 1), 'subitems.php');
+ $xmlhttp_url = $application->HREF('', '', Array('check_server' => 1, '__URLENCODE__' => 1));
+
+ $language =& $application->recallObject('lang.current');
+
+ $use_xml = $application->isDebugMode() && dbg_ConstOn('DBG_SHOW_EXPIRATION');
?>
-HEAD
-
-
-
+ HEAD
+
+
+
+
+
+
- ![In-portal](images/globe.gif) |
- ![In-portal](images/logo.gif) |
- |
- ![](images/blocks.gif) |
+
+
+ |
+
+
+ |
+
+ ' : ' ';
+ ?>
+ |
+
+
+ |
+
-
-
-
- ![](images/blue_bar_logout.gif) |
+
+
+ Phrase('la_Logged_in_as').' '.$loginname.' '; ?>
+
+ |
+
![](images/blocks2.gif) |
-
+
+
+
![](images/spacer.gif) |
|
+
+
+
-
\ No newline at end of file
+