mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Deprecated Lans Sort Files in Order and Move Help To top Row #2278
Deprecated Lans Sort Files in Order and Move Help To top Row #2278 Does not resolve missing handlers and for phrase in search all files.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* e107 website system
|
* e107 website system
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
* Copyright (C) 2008-2017 e107 Inc (e107.org)
|
||||||
* Released under the terms and conditions of the
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
*
|
*
|
||||||
@@ -1091,7 +1091,7 @@ class lanDeveloper
|
|||||||
|
|
||||||
function disableUnused($data)
|
function disableUnused($data)
|
||||||
{
|
{
|
||||||
$data = str_replace("2008-2010","2008-2013", $data);
|
$data = str_replace("2008-2010","2008-2017", $data);
|
||||||
$data = str_replace(' * $URL$
|
$data = str_replace(' * $URL$
|
||||||
* $Revision$
|
* $Revision$
|
||||||
* $Id$
|
* $Id$
|
||||||
@@ -1166,9 +1166,10 @@ class lanDeveloper
|
|||||||
// print_a($_SESSION['languageTools_lanFileList']);
|
// print_a($_SESSION['languageTools_lanFileList']);
|
||||||
|
|
||||||
|
|
||||||
$text .= "
|
$text .= " <tr>
|
||||||
<tr>
|
|
||||||
<td><div class='alert-info alert alert-block'>".e107::getParser()->toHTML(LANG_LAN_140, true)."</div></td>
|
<td><div class='alert-info alert alert-block'>".e107::getParser()->toHTML(LANG_LAN_140, true)."</div></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td class='form-inline'>
|
<td class='form-inline'>
|
||||||
<select name='deprecatedLans[]' multiple style='height:200px'>
|
<select name='deprecatedLans[]' multiple style='height:200px'>
|
||||||
<option value=''>".LANG_LAN_141."</option>";
|
<option value=''>".LANG_LAN_141."</option>";
|
||||||
@@ -1176,11 +1177,18 @@ class lanDeveloper
|
|||||||
|
|
||||||
$omit = array('languages','\.png','\.gif','handlers');
|
$omit = array('languages','\.png','\.gif','handlers');
|
||||||
$lans = $fl->get_files(e_ADMIN,'.php','standard',0);
|
$lans = $fl->get_files(e_ADMIN,'.php','standard',0);
|
||||||
|
asort($lans);
|
||||||
|
|
||||||
$fl->setFileFilter(array("^e_"));
|
$fl->setFileFilter(array("^e_"));
|
||||||
$root = $fl->get_files(e_BASE,'.*?/?.*?\.php',$omit,0);
|
$root = $fl->get_files(e_BASE,'.*?/?.*?\.php',$omit,0);
|
||||||
|
asort($root);
|
||||||
|
|
||||||
$templates = $fl->get_files(e_CORE."templates",'.*?/?.*?\.php',$omit,0);
|
$templates = $fl->get_files(e_CORE."templates",'.*?/?.*?\.php',$omit,0);
|
||||||
|
asort($templates);
|
||||||
|
|
||||||
$shortcodes = $fl->get_files(e_CORE."shortcodes",'.*?/?.*?\.php',$omit,1);
|
$shortcodes = $fl->get_files(e_CORE."shortcodes",'.*?/?.*?\.php',$omit,1);
|
||||||
|
asort($shortcodes);
|
||||||
|
|
||||||
$exclude = array('lan_admin.php');
|
$exclude = array('lan_admin.php');
|
||||||
|
|
||||||
$srch = array(e_ADMIN,e_PLUGIN, e_CORE, e_BASE );
|
$srch = array(e_ADMIN,e_PLUGIN, e_CORE, e_BASE );
|
||||||
@@ -1261,7 +1269,7 @@ class lanDeveloper
|
|||||||
|
|
||||||
$selected = ($_POST['deprecatedLanFile'][0] == 'auto') ? "selected='selected'" :"";
|
$selected = ($_POST['deprecatedLanFile'][0] == 'auto') ? "selected='selected'" :"";
|
||||||
$text .= "<option value='auto' {$selected}>".LANG_LAN_142."</option><optgroup label='".LANG_LAN_143."'>\n";//Auto-Detect
|
$text .= "<option value='auto' {$selected}>".LANG_LAN_142."</option><optgroup label='".LANG_LAN_143."'>\n";//Auto-Detect
|
||||||
|
asort($_SESSION['languageTools_lanFileList']);
|
||||||
foreach($_SESSION['languageTools_lanFileList'] as $val)
|
foreach($_SESSION['languageTools_lanFileList'] as $val)
|
||||||
{
|
{
|
||||||
if(strstr($val,e_SYSTEM))
|
if(strstr($val,e_SYSTEM))
|
||||||
|
@@ -61,6 +61,8 @@ define("LANG_LAN_141", "Select Script...");
|
|||||||
define("LANG_LAN_142", "Auto-Detect");
|
define("LANG_LAN_142", "Auto-Detect");
|
||||||
define("LANG_LAN_143", "Specific LAN file:");
|
define("LANG_LAN_143", "Specific LAN file:");
|
||||||
define("LANG_LAN_144", "Must be re-enabled");
|
define("LANG_LAN_144", "Must be re-enabled");
|
||||||
|
|
||||||
|
define("LANG_LAN_148", "Normal Mode");
|
||||||
define("LANG_LAN_149", "Value");
|
define("LANG_LAN_149", "Value");
|
||||||
define("LANG_LAN_150", "[b]Search ENTIRE core before commenting out ANY LAN from ANY language file.[/b]");
|
define("LANG_LAN_150", "[b]Search ENTIRE core before commenting out ANY LAN from ANY language file.[/b]");
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user