mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Bugtracker #3655 - lancheck Will not longer try to redefine constants
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
+ ----------------------------------------------------------------------------+
|
+ ----------------------------------------------------------------------------+
|
||||||
| e107 website system
|
| e107 website system
|
||||||
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/lancheck.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/lancheck.php,v $
|
||||||
| $Revision: 1.5 $
|
| $Revision: 1.6 $
|
||||||
| $Date: 2007-05-01 19:50:55 $
|
| $Date: 2007-10-07 22:01:43 $
|
||||||
| $Author: lisa_ $
|
| $Author: mcfly_e107 $
|
||||||
| With code from Izydor and Lolo.
|
| With code from Izydor and Lolo.
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -22,13 +22,13 @@ if (!getperms("0")) {
|
|||||||
header("location:".e_BASE."index.php");
|
header("location:".e_BASE."index.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$e_sub_cat = 'language';
|
$e_sub_cat = 'language';
|
||||||
require_once("auth.php");
|
require_once("auth.php");
|
||||||
|
|
||||||
$qry = explode("|",e_QUERY);
|
$qry = explode("|",e_QUERY);
|
||||||
$f = $qry[0];
|
$f = $qry[0];
|
||||||
$lan = $qry[1];
|
$lan = $qry[1];
|
||||||
$mode = $qry[2];
|
$mode = $qry[2];
|
||||||
|
|
||||||
// Write the language file.
|
// Write the language file.
|
||||||
if(isset($_POST['submit']))
|
if(isset($_POST['submit']))
|
||||||
@@ -174,15 +174,15 @@ if($f != ""){
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
$core_plugins = array(
|
$core_plugins = array(
|
||||||
"alt_auth","banner_menu","blogcalendar_menu","calendar_menu","chatbox_menu",
|
"alt_auth","banner_menu","blogcalendar_menu","calendar_menu","chatbox_menu",
|
||||||
"clock_menu","comment_menu","content","featurebox","forum","gsitemap",
|
"clock_menu","comment_menu","content","featurebox","forum","gsitemap",
|
||||||
"links_page","linkwords","list_new","log","login_menu","newforumposts_main",
|
"links_page","linkwords","list_new","log","login_menu","newforumposts_main",
|
||||||
"newsfeed","newsletter","online","other_news_menu","pdf","pm","poll",
|
"newsfeed","newsletter","online","other_news_menu","pdf","pm","poll",
|
||||||
"rss_menu","search_menu","siteinfo_menu","trackback","tree_menu","user_menu"
|
"rss_menu","search_menu","siteinfo_menu","trackback","tree_menu","user_menu"
|
||||||
);
|
);
|
||||||
|
|
||||||
$core_themes = array("crahan","e107v4a","human_condition","interfectus","jayya",
|
$core_themes = array("crahan","e107v4a","human_condition","interfectus","jayya",
|
||||||
"khatru","kubrick","lamb","leaf","reline","sebes","vekna_blue");
|
"khatru","kubrick","lamb","leaf","reline","sebes","vekna_blue");
|
||||||
|
|
||||||
|
|
||||||
if(isset($_POST['language_sel']) && isset($_POST['language'])){
|
if(isset($_POST['language_sel']) && isset($_POST['language'])){
|
||||||
@@ -456,7 +456,7 @@ function check_lanfiles($mode,$comp_name,$base_lan="English",$target_lan){
|
|||||||
function edit_lanfiles($dir1,$dir2,$f1,$f2){
|
function edit_lanfiles($dir1,$dir2,$f1,$f2){
|
||||||
global $ns,$sql,$lan;
|
global $ns,$sql,$lan;
|
||||||
|
|
||||||
/* echo "<br />dir1 = $dir1";
|
/* echo "<br />dir1 = $dir1";
|
||||||
echo "<br />file1 = $f1";
|
echo "<br />file1 = $f1";
|
||||||
|
|
||||||
echo "<br />dir2 = $dir2";
|
echo "<br />dir2 = $dir2";
|
||||||
@@ -615,16 +615,20 @@ function fill_phrases_array($data,$type) {
|
|||||||
preg_match("#\"(.*?)\".*?\'(.*)\'#",$line,$matches) ||
|
preg_match("#\"(.*?)\".*?\'(.*)\'#",$line,$matches) ||
|
||||||
preg_match("#\'(.*?)\'.*?\'(.*)\'#",$line,$matches) ||
|
preg_match("#\'(.*?)\'.*?\'(.*)\'#",$line,$matches) ||
|
||||||
preg_match("#\((.*?)\,.*?\"(.*)\"#",$line,$matches) ||
|
preg_match("#\((.*?)\,.*?\"(.*)\"#",$line,$matches) ||
|
||||||
preg_match("#\((.*?)\,.*?\'(.*)\'#",$line,$matches)){
|
preg_match("#\((.*?)\,.*?\'(.*)\'#",$line,$matches))
|
||||||
|
{
|
||||||
//echo "get_lan -->".$matches[1]." :: ".$ndef.$matches[2]."<br />";
|
//echo "get_lan -->".$matches[1]." :: ".$ndef.$matches[2]."<br />";
|
||||||
|
if(!isset($retloc[$type][$matches[1]]))
|
||||||
|
{
|
||||||
$retloc[$type][$matches[1]]= $ndef.$matches[2];
|
$retloc[$type][$matches[1]]= $ndef.$matches[2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $retloc;
|
return $retloc;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -668,5 +672,3 @@ function lancheck_adminmenu() {
|
|||||||
|
|
||||||
show_admin_menu(ADLAN_132, $action, $var);
|
show_admin_menu(ADLAN_132, $action, $var);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
Reference in New Issue
Block a user