mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Fixed Language Issues in Installer and Error Messages regarding "var ${}"
This commit is contained in:
parent
78d98ca857
commit
22043e02aa
@ -31,12 +31,12 @@
|
||||
<error_system_fopen>fopen function cannot be used. please enable it.</error_system_fopen>
|
||||
<error_system_gd>gd extension is not installed, please install it.</error_system_gd>
|
||||
<error_system_hash>hash extension is not installed, please install it.</error_system_hash>
|
||||
<error_system_php_version>At least PHP 7.4 (outdated) is required. Your PHP version is to old and not Supported anymore: </error_system_php_version>
|
||||
<error_system_php_version>At least PHP 5.4 is required. Your PHP version is to old: </error_system_php_version>
|
||||
<error_system_json>json extension is not installed, please install it.</error_system_json>
|
||||
<error_system_openssl>openssl extension is not installed, please install it.</error_system_openssl>
|
||||
<error_system_PDO>PDO extension is not installed, please install it.</error_system_PDO>
|
||||
<error_system_pdo_mysql>pdo_mysql extension is not installed, please install it.</error_system_pdo_mysql>
|
||||
<error_system_php_version>At least PHP 7.4 (outdated) is required. Your PHP version is to old and not Supported anymore: </error_system_php_version>
|
||||
<error_system_php_version>Es wird mindestens PHP 5.4 benötigt. PHP Version zu alt: </error_system_php_version>
|
||||
<error_system_SimpleXML>SimpleXML extension is not installed, please install it.</error_system_SimpleXML>
|
||||
<error_system_zip>zip extension is not installed, please install it.</error_system_zip>
|
||||
<faillogins>Failed logins</faillogins>
|
||||
@ -93,7 +93,7 @@
|
||||
<system_ok_openssl>openssl extension is installed.</system_ok_openssl>
|
||||
<system_ok_PDO>PDO extension is installed.</system_ok_PDO>
|
||||
<system_ok_pdo_mysql>pdo_mysql extension is installed.</system_ok_pdo_mysql>
|
||||
<system_ok_php_version>At least PHP 7.4 (outdated) is required. Your PHP version is current enough: </system_ok_php_version>
|
||||
<system_ok_php_version>At least PHP 5.4 is required. Your PHP version is current enough: </system_ok_php_version>
|
||||
<system_ok_SimpleXML>Extension SimpleXML is installed.</system_ok_SimpleXML>
|
||||
<system_ok_zip>zip Extension is installed.</system_ok_zip>
|
||||
<timezone>Timezone</timezone>
|
||||
@ -104,4 +104,4 @@
|
||||
<welcome_old_version>Warning you are going to install an outdated version. The current is: </welcome_old_version>
|
||||
<welcome_text>At first we will run a system check that will ensure your webspace offers the required functionality. Afterwards database tables will be created and the initial data inserted and configured.</welcome_text>
|
||||
<yes>Yes</yes>
|
||||
</sprache>
|
||||
</sprache>
|
@ -1046,38 +1046,6 @@ if (!function_exists('passwordgenerate')) {
|
||||
}
|
||||
}
|
||||
|
||||
function CopyAdminTable ($tablename, $id, $reseller_id, $limit, $where='') {
|
||||
|
||||
global $sql;
|
||||
|
||||
$query = $sql->prepare("SELECT * FROM `$tablename` WHERE `resellerid`=? " . $where . " " .$limit);
|
||||
$query->execute(array($reseller_id));
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
$keys = array();
|
||||
$questionmarks = array();
|
||||
$intos = array();
|
||||
|
||||
foreach ($row as $key=>$value) {
|
||||
if ($key != 'id' and $key != 'resellerid'){
|
||||
$keys[]="`".$key."`";
|
||||
$questionmarks[] = '?';
|
||||
$intos[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
$keys[] = "`resellerid`";
|
||||
$intos[] = $id;
|
||||
$questionmarks[] = '?';
|
||||
$into = 'INSERT INTO `' . $tablename . '` (' . implode(',', $keys) . ') VALUES (' . implode(',', $questionmarks) . ')';
|
||||
$query2 = $sql->prepare("$into");
|
||||
$query2->execute($intos);
|
||||
}
|
||||
}
|
||||
|
||||
function dataExist ($value, $array) {
|
||||
return (isset($array[$value]) and isset($array[$array[$value]]) and !in_array($array[$array[$value]], array(false, null,''))) ? true : false;
|
||||
}
|
||||
|
||||
function webhostRequest ($domain, $useragent, $file, $postParams = '', $port = 80) {
|
||||
|
||||
@ -1155,6 +1123,42 @@ if (!function_exists('passwordgenerate')) {
|
||||
return 'Error: Could not connect to host ' . $domain . ' and port ' . $port . ' (' . $errstr . ')';
|
||||
}
|
||||
|
||||
|
||||
function CopyAdminTable ($tablename, $id, $reseller_id, $limit, $where='') {
|
||||
|
||||
global $sql;
|
||||
|
||||
$query = $sql->prepare("SELECT * FROM `$tablename` WHERE `resellerid`=? " . $where . " " .$limit);
|
||||
$query->execute(array($reseller_id));
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
$keys = array();
|
||||
$questionmarks = array();
|
||||
$intos = array();
|
||||
|
||||
foreach ($row as $key=>$value) {
|
||||
if ($key != 'id' and $key != 'resellerid'){
|
||||
$keys[]="`".$key."`";
|
||||
$questionmarks[] = '?';
|
||||
$intos[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
$keys[] = "`resellerid`";
|
||||
$intos[] = $id;
|
||||
$questionmarks[] = '?';
|
||||
$into = 'INSERT INTO `' . $tablename . '` (' . implode(',', $keys) . ') VALUES (' . implode(',', $questionmarks) . ')';
|
||||
$query2 = $sql->prepare("$into");
|
||||
$query2->execute($intos);
|
||||
}
|
||||
}
|
||||
|
||||
function dataExist ($value, $array) {
|
||||
return (isset($array[$value]) and isset($array[$array[$value]]) and !in_array($array[$array[$value]], array(false, null,''))) ? true : false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function checkPorts ($send, $used) {
|
||||
|
||||
foreach ($send as $port) {
|
||||
@ -1508,7 +1512,7 @@ if (!function_exists('passwordgenerate')) {
|
||||
}
|
||||
} else {
|
||||
|
||||
$mapping = array(510 => 500, 4020 => 4000, 4940 => 4920, 17505 => 17500, 17510 => 17515, 17570 => 17575, 111710 => 17710, 215350 => 1250, 215360 => 1250, 222860 => 550, 229830 => 440, 232250 => 440, 232290 => 300, 232330 => 240, 232370 => 320, 258550 => 252490, 259080 => 261140, 295230 => 265630, 317670 => 224260, 332670 => 234630, 376030 => 346110);
|
||||
$mapping = array(510 => 500, 740 => 730, 4020 => 4000, 4940 => 4920, 17505 => 17500, 17510 => 17515, 17570 => 17575, 111710 => 17710, 215350 => 1250, 215360 => 1250, 222860 => 550, 229830 => 440, 232250 => 440, 232290 => 300, 232330 => 240, 232370 => 320, 258550 => 252490, 259080 => 261140, 295230 => 265630, 317670 => 224260, 332670 => 234630, 376030 => 346110);
|
||||
|
||||
if (isset($mapping[$appID])) {
|
||||
return $mapping[$appID];
|
||||
@ -1524,7 +1528,7 @@ if (!function_exists('passwordgenerate')) {
|
||||
|
||||
} else {
|
||||
|
||||
$mapping = array(240 => 232330, 300 => 232290, 320 => 232370, 440 => 232250, 500 => 510, 550 => 222860, 1250 => 215360, 4000 => 4020, 4920 => 4940, 17500 => 17505, 17515 => 17510, 17575 => 17570, 17710 => 111710, 215350 => 215360, 224260 => 317670, 234630 => 332670, 252490 => 258550, 261140 => 259080, 265630 => 295230, 346110 => 376030);
|
||||
$mapping = array(240 => 232330, 300 => 232290, 320 => 232370, 440 => 232250, 500 => 510, 730 => 740, 550 => 222860, 1250 => 215360, 4000 => 4020, 4920 => 4940, 17500 => 17505, 17515 => 17510, 17575 => 17570, 17710 => 111710, 215350 => 215360, 224260 => 317670, 234630 => 332670, 252490 => 258550, 261140 => 259080, 265630 => 295230, 346110 => 376030);
|
||||
|
||||
if (isset($mapping[$appID])) {
|
||||
return $mapping[$appID];
|
||||
@ -1684,7 +1688,7 @@ $(function() {
|
||||
* @return string
|
||||
*/
|
||||
function getLoginHeader($valueOfTitle){
|
||||
return preg_replace('/(.+)[\s](.+)/i', '<b>{$1}</b> $2', $valueOfTitle, -1, $count);
|
||||
return preg_replace('/(.+)[\s](.+)/i', '<b>${1}</b> $2', $valueOfTitle, -1, $count);
|
||||
}
|
||||
|
||||
function parseHeaders($data)
|
||||
@ -1713,4 +1717,4 @@ $(function() {
|
||||
print_r($pre);
|
||||
echo "</pre>";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user