diff --git a/e107_admin/fileinspector.php b/e107_admin/fileinspector.php index c506fbdcb..07a96a4a1 100644 --- a/e107_admin/fileinspector.php +++ b/e107_admin/fileinspector.php @@ -191,7 +191,7 @@ class file_inspector { $this->setOptions($_GET); } - + $lang_short = array(); foreach($langs as $k=>$val) { if($val == "English") // Core release language, so ignore it. @@ -853,7 +853,8 @@ class file_inspector { $parent_expand = TRUE; } - if (!empty($this->opt('regex'))) + $regexOpt = $this->opt('regex'); + if (!empty($regexOpt)) { $file_content = file($dir.'/'.$readdir); if ($this -> files[$dir_id][$aid]['lines'] = preg_grep("#".$_POST['regex']."#".$_POST['mod'], $file_content)) @@ -1398,7 +1399,7 @@ class file_inspector { - echo "
+ echo "
"; $active = "active"; @@ -1428,7 +1429,7 @@ class file_inspector {
"; */ - + /* echo "
".$diz."
"; @@ -1440,7 +1441,7 @@ class file_inspector { echo "
"; - + */ } @@ -1585,26 +1586,107 @@ require_once(e_ADMIN.'footer.php'); function headerjs() { - $c = e_IMAGE_ABS . 'fileinspector/contract.png'; + /*$c = e_IMAGE_ABS . 'fileinspector/contract.png'; $e = e_IMAGE_ABS . 'fileinspector/expand.png'; $text = '';*/ + +/* + * // Start of rework +e107::js('footer-inline', " + +c = new Image(); +c = '".SITEURLBASE.e_IMAGE_ABS."fileinspector/contract.png'; +e = '".SITEURLBASE.e_IMAGE_ABS."fileinspector/expand.png'; + +function ec(ecid) { + icon = $('#e_' + ecid).src; + if (icon == e) { + $('#e_' + ecid).src = c; + } else { + $('#e_' + ecid).src = e; + } + div = $('#d_' + ecid).style; + if (div.display == 'none') + { + div.display = ''; + } + else + { + div.display = 'none'; + } } -function sh(element) { - $("#"+element).stop().animate({"height": "toggle"}, { duration: 500 }); +var hideid = 'initial'; +function sh(showid) +{ + if (hideid != showid) + { + show = $('#'+showid).style; + hide = $('#'+hideid).style; + show.display = ''; + hide.display = 'none'; + hideid = showid; + } } -'; - $text .= " + + + +");*/ + + +global $e107; +$text = ""; + +$text .= "