diff --git a/e107_admin/admin_log.php b/e107_admin/admin_log.php index 5c2f2c88a..0b6599a1f 100644 --- a/e107_admin/admin_log.php +++ b/e107_admin/admin_log.php @@ -1112,7 +1112,7 @@ function headerjs() //add required core lan - delete confirm message (".e_jshelper::toString(LAN_JSCONFIRM).").addModLan('core', 'delete_confirm'); - + "; return $ret; diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index 2029cc290..c670ccf6d 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -203,7 +203,7 @@ class page_admin_ui extends e_admin_ui protected $fields = array( 'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'), 'page_id' => array('title'=> 'ID', 'width'=>'5%', 'forced'=> TRUE), - 'page_title' => array('title'=> CUSLAN_1, 'type' => 'method', 'width'=>'auto'), + 'page_title' => array('title'=> LAN_TITLE, 'type' => 'method', 'width'=>'auto'), 'page_theme' => array('title'=> CUSLAN_2, 'type' => 'text', 'width' => 'auto','nolist'=>true), 'page_template' => array('title'=> 'Template', 'type' => 'text', 'width' => 'auto'), 'page_author' => array('title'=> LAN_AUTHOR, 'type' => 'user', 'width' => 'auto', 'thclass' => 'left'), @@ -936,7 +936,7 @@ class page $this->fields = array( 'page_id' => array('title'=> 'ID', 'width'=>'5%', 'forced'=> TRUE), - 'page_title' => array('title'=> CUSLAN_1, 'type' => 'text', 'width'=>'auto'), + 'page_title' => array('title'=> LAN_TITLE, 'type' => 'text', 'width'=>'auto'), 'page_theme' => array('title'=> CUSLAN_2, 'type' => 'text', 'width' => 'auto','nolist'=>true), 'page_template' => array('title'=> 'Template', 'type' => 'text', 'width' => 'auto'), 'page_author' => array('title'=> LAN_AUTHOR, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left'), diff --git a/e107_admin/db.php b/e107_admin/db.php index 66ba8a2b0..cd89f6a9a 100644 --- a/e107_admin/db.php +++ b/e107_admin/db.php @@ -1450,30 +1450,4 @@ function verify_sql_record() // deprecated by db_verify.php ( i think). } - -/** - * Handle page DOM within the page header - * - * @return string JS source - */ -function headerjs() -{ - require_once (e_HANDLER.'js_helper.php'); - $ret = " - - - "; - - return $ret; -} ?> \ No newline at end of file diff --git a/e107_admin/filemanager.php b/e107_admin/filemanager.php index 36b6f2a9f..352acd97f 100644 --- a/e107_admin/filemanager.php +++ b/e107_admin/filemanager.php @@ -451,31 +451,5 @@ function dirsize($dir) require_once("footer.php"); -/** - * Handle page DOM within the page header - * - * @return string JS source - */ -function headerjs() -{ - require_once(e_HANDLER.'js_helper.php'); - $ret = " - - - "; - - return $ret; -} ?> \ No newline at end of file diff --git a/e107_admin/header.php b/e107_admin/header.php index 1ac4d440e..0d83a88ed 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -29,6 +29,9 @@ e107::getDb()->db_Mark_Time('(Header Top)'); e107::js('core', 'colorbox/jquery.colorbox-min.js', 'jquery', 2); e107::css('core', 'colorbox/colorbox.css', 'jquery'); +e107::js('core', 'fancybox/jquery.fancybox-1.3.4.js', 'jquery', 2); +e107::css('core', 'fancybox/jquery.fancybox-1.3.4.css', 'jquery'); + e107::js('core', 'jquery.elastic.js', 'jquery', 2); e107::js('core', 'jquery-ui-timepicker-addon.js', 'jquery', 2); @@ -58,6 +61,12 @@ e107::css('core', 'core/all.jquery.css', 'jquery'); e107::js("core", "core/admin.jquery.js","jquery",4); // Load all default functions. e107::js("core", "core/all.jquery.js","jquery",4); // Load all default functions. + + + +e107::js("core", "core/admin.js","prototype",3); // Load all default functions. + + // // *** Code sequence for headers *** // IMPORTANT: These items are in a carefully constructed order. DO NOT REARRANGE diff --git a/e107_admin/image.php b/e107_admin/image.php index 6626a67c3..28fb58513 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -1896,42 +1896,8 @@ if (isset($_POST['check_avatar_sizes'])) //Just in case... -if(!e_AJAX_REQUEST) require_once("footer.php"); +if(!e_AJAX_REQUEST) require_once("footer.php"); - - - - - - - - - - - - - - - -/** - * Handle page DOM within the page header - * - * @return string JS source - */ -//function headerjs() -//{ -// require_once(e_HANDLER.'js_helper.php'); -// //FIXME - how exactly to auto-call JS lan? This and more should be solved in Stage II. -// $ret = " -// -// -// "; -// -// return $ret; -//} ?> \ No newline at end of file diff --git a/e107_admin/language.php b/e107_admin/language.php index b28c9c9ac..887c8a1e1 100644 --- a/e107_admin/language.php +++ b/e107_admin/language.php @@ -923,8 +923,11 @@ function unused($lanfile,$script) } $text .= ""; + + + $mes->addInfo("Pink is unused LAN"); - $ret['text'] = $text; + $ret['text'] = $mes->render().$text; $ret['caption'] = "Deprecated LAN Check (experimental!)"; return $ret; @@ -962,6 +965,9 @@ function compareit($needle,$haystack,$value='',$disabled=FALSE){ $commonPhrases = file_get_contents(e_LANGUAGEDIR."English/admin/lan_admin.php"); $commonLines = explode("\n",$commonPhrases); + $foundSimilar = FALSE; + $foundCommon = FALSE; + foreach($commonLines as $line) { if($match = getDefined($line)) @@ -974,12 +980,20 @@ function compareit($needle,$haystack,$value='',$disabled=FALSE){ // Check if a common phrases was used. foreach($ar as $def=>$common) { + similar_text($value, $common, $p); + if(strtoupper(trim($value)) == strtoupper($common)) { //$text .= "