mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Merge pull request #2283 from MikeyGMT/20170114a
Deprecated Lans Sort Files in Order and Move Help To top Row #2278
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* 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
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
@@ -1091,7 +1091,7 @@ class lanDeveloper
|
||||
|
||||
function disableUnused($data)
|
||||
{
|
||||
$data = str_replace("2008-2010","2008-2013", $data);
|
||||
$data = str_replace("2008-2010","2008-2017", $data);
|
||||
$data = str_replace(' * $URL$
|
||||
* $Revision$
|
||||
* $Id$
|
||||
@@ -1166,21 +1166,29 @@ class lanDeveloper
|
||||
// print_a($_SESSION['languageTools_lanFileList']);
|
||||
|
||||
|
||||
$text .= "
|
||||
<tr>
|
||||
<td><div class='alert-info alert alert-block'>".e107::getParser()->toHTML(LANG_LAN_140, true)."</div></td>
|
||||
<td class='form-inline'>
|
||||
<select name='deprecatedLans[]' multiple style='height:200px'>
|
||||
<option value=''>".LANG_LAN_141."</option>";
|
||||
$text .= " <tr>
|
||||
<td><div class='alert-info alert alert-block'>".e107::getParser()->toHTML(LANG_LAN_140, true)."</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='form-inline'>
|
||||
<select name='deprecatedLans[]' multiple style='height:200px'>
|
||||
<option value=''>".LANG_LAN_141."</option>";
|
||||
|
||||
|
||||
$omit = array('languages','\.png','\.gif','handlers');
|
||||
$lans = $fl->get_files(e_ADMIN,'.php','standard',0);
|
||||
asort($lans);
|
||||
|
||||
$fl->setFileFilter(array("^e_"));
|
||||
$root = $fl->get_files(e_BASE,'.*?/?.*?\.php',$omit,0);
|
||||
asort($root);
|
||||
|
||||
$templates = $fl->get_files(e_CORE."templates",'.*?/?.*?\.php',$omit,0);
|
||||
asort($templates);
|
||||
|
||||
$shortcodes = $fl->get_files(e_CORE."shortcodes",'.*?/?.*?\.php',$omit,1);
|
||||
asort($shortcodes);
|
||||
|
||||
$exclude = array('lan_admin.php');
|
||||
|
||||
$srch = array(e_ADMIN,e_PLUGIN, e_CORE, e_BASE );
|
||||
@@ -1261,7 +1269,7 @@ class lanDeveloper
|
||||
|
||||
$selected = ($_POST['deprecatedLanFile'][0] == 'auto') ? "selected='selected'" :"";
|
||||
$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)
|
||||
{
|
||||
if(strstr($val,e_SYSTEM))
|
||||
|
@@ -61,6 +61,8 @@ define("LANG_LAN_141", "Select Script...");
|
||||
define("LANG_LAN_142", "Auto-Detect");
|
||||
define("LANG_LAN_143", "Specific LAN file:");
|
||||
define("LANG_LAN_144", "Must be re-enabled");
|
||||
|
||||
define("LANG_LAN_148", "Normal Mode");
|
||||
define("LANG_LAN_149", "Value");
|
||||
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