Fixed #11430: Performance improvement: use $GLOBALS['EXEC_TIME'] instead of time...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_superadmin.php
index 9d5bcc9..54e0dec 100644 (file)
@@ -222,8 +222,8 @@ class t3lib_superadmin {
                        case 'page':
 ?>
 <!DOCTYPE html
-     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
 <head>
        <style type="text/css">
@@ -254,8 +254,8 @@ class t3lib_superadmin {
        <title>TYPO3 Super Admin</title>
 </head>
 <frameset  cols="250,*">
-    <frame name="TSAmenu" src="superadmin.php?type=page&show=menu" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
-    <frame name="TSApage" src="superadmin.php?type=page" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
+       <frame name="TSAmenu" src="superadmin.php?type=page&show=menu" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
+       <frame name="TSApage" src="superadmin.php?type=page" marginwidth="10" marginheight="10" scrolling="auto" frameborder="0">
 </frameset>
 </html>
 <?php
@@ -445,8 +445,8 @@ class t3lib_superadmin {
                $content = '';
 
                foreach($this->parentDirs as $k => $v)  {
-                       $dir = ereg_replace('/$','',$v['dir']);
-                       $baseUrl=ereg_replace('/$','',$v['url']);
+                       $dir = rtrim($v['dir'], '/');
+                       $baseUrl=rtrim($v['url'], '/');
                        $content.='<br /><br /><br />';
                        $content.=$this->headerParentDir($dir);
                        if (@is_dir($dir))      {
@@ -1067,7 +1067,7 @@ class t3lib_superadmin {
                $query = $GLOBALS['TYPO3_DB']->SELECTquery(
                                                'sys_log.*, be_users.username  AS username, be_users.admin AS admin',
                                                'sys_log,be_users',
-                                               'be_users.uid=sys_log.userid AND sys_log.type=255 AND sys_log.tstamp > '.(time()-(60*60*24*30)),
+                                               'be_users.uid=sys_log.userid AND sys_log.type=255 AND sys_log.tstamp > ' . ($GLOBALS['EXEC_TIME'] - (60 * 60 * 24 * 30)),
                                                '',
                                                'sys_log.tstamp DESC'
                                        );
@@ -1173,7 +1173,7 @@ class t3lib_superadmin {
                                                        <b>'.htmlspecialchars($label).'</b> ('.htmlspecialchars(substr($all['siteInfo']['SA_PATH'],strlen($all['siteInfo']['MAIN_DIR'])+1)).')<br />';
 
                                                                // To avoid "visited links" display on next hit:
-                                                       $tempVal='&_someUniqueValue='.time();
+                                                       $tempVal='&_someUniqueValue=' . $GLOBALS['EXEC_TIME'];
 
                                                                // Add links for update:
                                                        $url = $this->scriptName.'?type=page&show=rmTempCached&exp='.$k.$tempVal;