1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Bugtracker #3655 - lancheck Will not longer try to redefine constants

This commit is contained in:
mcfly
2007-10-07 22:01:43 +00:00
parent e85537049f
commit b5f2af7886

View File

@@ -1,4 +1,4 @@
<?php
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/lancheck.php,v $
| $Revision: 1.5 $
| $Date: 2007-05-01 19:50:55 $
| $Author: lisa_ $
| $Revision: 1.6 $
| $Date: 2007-10-07 22:01:43 $
| $Author: mcfly_e107 $
| With code from Izydor and Lolo.
+----------------------------------------------------------------------------+
*/
@@ -22,13 +22,13 @@ if (!getperms("0")) {
header("location:".e_BASE."index.php");
exit;
}
$e_sub_cat = 'language';
require_once("auth.php");
$e_sub_cat = 'language';
require_once("auth.php");
$qry = explode("|",e_QUERY);
$f = $qry[0];
$lan = $qry[1];
$mode = $qry[2];
$qry = explode("|",e_QUERY);
$f = $qry[0];
$lan = $qry[1];
$mode = $qry[2];
// Write the language file.
if(isset($_POST['submit']))
@@ -174,15 +174,15 @@ if($f != ""){
// ===========================================================================
$core_plugins = array(
"alt_auth","banner_menu","blogcalendar_menu","calendar_menu","chatbox_menu",
"clock_menu","comment_menu","content","featurebox","forum","gsitemap",
"links_page","linkwords","list_new","log","login_menu","newforumposts_main",
"newsfeed","newsletter","online","other_news_menu","pdf","pm","poll",
"rss_menu","search_menu","siteinfo_menu","trackback","tree_menu","user_menu"
);
"alt_auth","banner_menu","blogcalendar_menu","calendar_menu","chatbox_menu",
"clock_menu","comment_menu","content","featurebox","forum","gsitemap",
"links_page","linkwords","list_new","log","login_menu","newforumposts_main",
"newsfeed","newsletter","online","other_news_menu","pdf","pm","poll",
"rss_menu","search_menu","siteinfo_menu","trackback","tree_menu","user_menu"
);
$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'])){
@@ -456,7 +456,7 @@ function check_lanfiles($mode,$comp_name,$base_lan="English",$target_lan){
function edit_lanfiles($dir1,$dir2,$f1,$f2){
global $ns,$sql,$lan;
/* echo "<br />dir1 = $dir1";
/* echo "<br />dir1 = $dir1";
echo "<br />file1 = $f1";
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))
{
//echo "get_lan -->".$matches[1]." :: ".$ndef.$matches[2]."<br />";
if(!isset($retloc[$type][$matches[1]]))
{
$retloc[$type][$matches[1]]= $ndef.$matches[2];
}
}
}
}
}
return $retloc;
}
}
//--------------------------------------------------------------------
@@ -668,5 +672,3 @@ function lancheck_adminmenu() {
show_admin_menu(ADLAN_132, $action, $var);
}
?>