diff --git a/e107_admin/auth.php b/e107_admin/auth.php index 1537c253c..05c6e4865 100644 --- a/e107_admin/auth.php +++ b/e107_admin/auth.php @@ -9,9 +9,9 @@ * Administration Area Authorization * * $Source: /cvs_backup/e107_0.8/e107_admin/auth.php,v $ - * $Revision: 1.7 $ - * $Date: 2009-01-07 15:40:06 $ - * $Author: secretr $ + * $Revision: 1.8 $ + * $Date: 2009-07-07 06:50:55 $ + * $Author: e107coders $ */ if (!defined('e107_INIT')) { exit; } @@ -135,7 +135,7 @@ class auth # - scope public */ - global $use_imagecode, $sec_img,$imode, $pref; + global $use_imagecode, $sec_img, $pref; $text = "
"; echo "Using directory structure from e107_config.php
"; } - $imode = 'nuvola_light'; +// $imode = 'nuvola_light'; $fi = new file_inspector(TRUE); // Needed to make everything work @@ -433,7 +433,7 @@ class file_inspector { // &$parent_expand function inspect($list, $deprecated, $level, $dir, &$tree_end, &$parent_expand) { - global $coredir, $imode; + global $coredir; unset ($childOut); $parent_expand = false; @@ -460,9 +460,9 @@ class file_inspector { if ((($dir == $this->BASE_PLUGIN_DIR) || ($dir == $this->BASE_THEMES_DIR)) && !is_readable($path)) { // Its one of the plugin or theme directories which doesn't exist - that could be OK // echo "Plugin or theme folder missing: {$path}
"; - $icon = ""; + $icon = ""; $text = "
"; - $text .= " ".$icon." ".$key." - ".FR_LAN_31; + $text .= " ".$icon." ".$key." - ".FR_LAN_31; $text .= "
"; $sub_text .= $text; $sub_id = dechex(crc32($path)); @@ -681,10 +681,10 @@ class file_inspector { } $dir_icon = $dir_icon ? $dir_icon : 'folder.png'; - $icon = ""; + $icon = ""; $hide = ($last_expand && $dir_icon != 'folder_core.png') ? "" : "style='display: none'"; $text = "
"; - $text .= $tree_end ? "" : ""; + $text .= $tree_end ? "" : ""; $text .= " ".$icon." ".$directory.""; $text .= $tree_end ? "" : "
".$sub_text."
"; $text .= "
"; @@ -696,7 +696,7 @@ class file_inspector { function scan_results() { - global $ns, $rs, $core_image, $deprecated_image, $imode, $tp, $e107; + global $ns, $rs, $core_image, $deprecated_image, $tp, $e107; $scan_text = $this -> inspect($core_image, $deprecated_image, 0, $this -> root_dir); // if ($_POST['type'] == 'tree') @@ -736,46 +736,46 @@ class file_inspector { if ($this->dotree) { $text .= " -  ".FR_LAN_3." +  ".FR_LAN_3." root_dir))."')\"> - "; + "; } else { $text .= " -  ".FR_LAN_3." +  ".FR_LAN_3." "; } if ($_POST['core'] != 'none') { - $text .= " ".FR_LAN_4.": ".($this -> count['core']['num'] ? $this -> count['core']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['core']['size'], 2).""; + $text .= " ".FR_LAN_4.": ".($this -> count['core']['num'] ? $this -> count['core']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['core']['size'], 2).""; } if ($_POST['missing']) { - $text .= " ".FR_LAN_22.": ".($this -> count['missing']['num'] ? $this -> count['missing']['num'] : FR_LAN_21)." "; + $text .= " ".FR_LAN_22.": ".($this -> count['missing']['num'] ? $this -> count['missing']['num'] : FR_LAN_21)." "; } if ($_POST['noncore']) { - $text .= " ".FR_LAN_5.": ".($this -> count['unknown']['num'] ? $this -> count['unknown']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['unknown']['size'], 2).""; + $text .= " ".FR_LAN_5.": ".($this -> count['unknown']['num'] ? $this -> count['unknown']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['unknown']['size'], 2).""; } if ($_POST['oldcore']) { - $text .= " ".FR_LAN_24.": ".($this -> count['deprecated']['num'] ? $this -> count['deprecated']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['deprecated']['size'], 2).""; + $text .= " ".FR_LAN_24.": ".($this -> count['deprecated']['num'] ? $this -> count['deprecated']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['deprecated']['size'], 2).""; } if ($_POST['core'] == 'all') { - $text .= " ".FR_LAN_6.": ".($this -> count['core']['num'] + $this -> count['unknown']['num'] + $this -> count['deprecated']['num'])." ".$e107->parseMemorySize($this -> count['core']['size'] + $this -> count['unknown']['size'] + $this -> count['deprecated']['size'], 2).""; + $text .= " ".FR_LAN_6.": ".($this -> count['core']['num'] + $this -> count['unknown']['num'] + $this -> count['deprecated']['num'])." ".$e107->parseMemorySize($this -> count['core']['size'] + $this -> count['unknown']['size'] + $this -> count['deprecated']['size'], 2).""; } if ($_POST['regex']) { - $text .= " ".FR_LAN_29.": ".($this -> results)."  "; - $text .= " ".FR_LAN_30.": ".($this -> line_results)."  "; + $text .= " ".FR_LAN_29.": ".($this -> results)."  "; + $text .= " ".FR_LAN_30.": ".($this -> line_results)."  "; } if ($this -> count['warning']['num']) { $text .= " "; $text .= " -  ".FR_LAN_26.""; +  ".FR_LAN_26.""; - $text .= " ".FR_LAN_28.": ".($this -> count['warning']['num'] ? $this -> count['warning']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['warning']['size'], 2).""; + $text .= " ".FR_LAN_28.": ".($this -> count['warning']['num'] ? $this -> count['warning']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['warning']['size'], 2).""; - $text .= " ".FR_LAN_27.""; + $text .= " ".FR_LAN_27.""; } if ($_POST['integrity'] && $_POST['core'] != 'none') { @@ -783,15 +783,15 @@ class file_inspector { $integrity_text = $this -> count['fail']['num'] ? '( '.$this -> count['fail']['num'].' '.FR_LAN_19.' )' : '( '.FR_LAN_20.' )'; $text .= " "; $text .= " -  ".FR_LAN_7." ".$integrity_text.""; +  ".FR_LAN_7." ".$integrity_text.""; - $text .= " ".FR_LAN_8.": ".($this -> count['pass']['num'] ? $this -> count['pass']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['pass']['size'], 2).""; - $text .= " ".FR_LAN_9.": ".($this -> count['fail']['num'] ? $this -> count['fail']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['fail']['size'], 2).""; - $text .= " ".FR_LAN_25.": ".($this -> count['uncalculable']['num'] ? $this -> count['uncalculable']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['uncalculable']['size'], 2).""; + $text .= " ".FR_LAN_8.": ".($this -> count['pass']['num'] ? $this -> count['pass']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['pass']['size'], 2).""; + $text .= " ".FR_LAN_9.": ".($this -> count['fail']['num'] ? $this -> count['fail']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['fail']['size'], 2).""; + $text .= " ".FR_LAN_25.": ".($this -> count['uncalculable']['num'] ? $this -> count['uncalculable']['num'] : FR_LAN_21)." ".$e107->parseMemorySize($this -> count['uncalculable']['size'], 2).""; $text .= " "; - $text .= " ".FR_LAN_10.": "; + $text .= " ".FR_LAN_10.": "; $text .= "