release 1.2.3
This commit is contained in:
@@ -131,9 +131,9 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
<script>
|
||||
$("input[name='setontime_day']").TouchSpin({
|
||||
min: 0,
|
||||
max: 106751991167299,
|
||||
max: 24855,
|
||||
verticalbuttons: true,
|
||||
prefix: 'Day(s):'
|
||||
prefix: '<?PHP echo $lang['time_day']; ?>'
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
@@ -147,7 +147,7 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
min: 0,
|
||||
max: 23,
|
||||
verticalbuttons: true,
|
||||
prefix: 'Hour(s):'
|
||||
prefix: '<?PHP echo $lang['time_hour']; ?>'
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
@@ -161,7 +161,7 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
min: 0,
|
||||
max: 59,
|
||||
verticalbuttons: true,
|
||||
prefix: 'Min.:'
|
||||
prefix: '<?PHP echo $lang['time_min']; ?>'
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
@@ -175,7 +175,7 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
min: 0,
|
||||
max: 59,
|
||||
verticalbuttons: true,
|
||||
prefix: 'Sec:'
|
||||
prefix: '<?PHP echo $lang['time_sec']; ?>'
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
@@ -58,7 +58,8 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
$err_msg = print_r($mysqlcon->errorInfo(), true);
|
||||
$err_lvl = 3;
|
||||
} else {
|
||||
$err_msg = $lang['wisvsuc']." ".$lang['wisvres'];
|
||||
$err_msg = $lang['wisvsuc']." ".sprintf($lang['wisvres'], ' <form class="btn-group" name="restart" action="bot.php" method="POST"><button
|
||||
type="submit" class="btn btn-primary" name="restart"><i class="fa fa-fw fa-refresh"></i> '.$lang['wibot7'].'</button></form>');
|
||||
$err_lvl = NULL;
|
||||
}
|
||||
$config[0]['grouptime'] = $_POST['grouptime'];
|
||||
@@ -114,14 +115,14 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiexgrpdesc"><?php echo $lang['wiexgrp']; ?><i class="help-hover glyphicon glyphicon-question-sign"></i></label>
|
||||
<div class="col-sm-8">
|
||||
<textarea class="form-control" data-pattern="^([0-9]+,)*[0-9]+$" data-error="Only use digits separated with a comma! Also must the first and last value be digit!" rows="1" name="exceptgroup" maxlength="999"><?php echo $config[0]['exceptgroup']; ?></textarea>
|
||||
<textarea class="form-control" data-pattern="^([0-9]{1,9},)*[0-9]{1,9}$" data-error="Only use digits separated with a comma! Also must the first and last value be digit!" rows="1" name="exceptgroup" maxlength="999"><?php echo $config[0]['exceptgroup']; ?></textarea>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wiexciddesc"><?php echo $lang['wiexcid']; ?><i class="help-hover glyphicon glyphicon-question-sign"></i></label>
|
||||
<div class="col-sm-8">
|
||||
<textarea class="form-control" data-pattern="^([0-9]+,)*[0-9]+$" data-error="Only use digits separated with a comma! Also must the first and last value be digit!" rows="1" name="exceptcid" maxlength="999"><?php echo $config[0]['exceptcid']; ?></textarea>
|
||||
<textarea class="form-control" data-pattern="^([0-9]{1,9},)*[0-9]{1,9}$" data-error="Only use digits separated with a comma! Also must the first and last value be digit!" rows="1" name="exceptcid" maxlength="999"><?php echo $config[0]['exceptcid']; ?></textarea>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -131,7 +132,7 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
<div class="form-group required-field-block">
|
||||
<label class="col-sm-4 control-label" data-toggle="modal" data-target="#wigrptimedesc"><?php echo $lang['wigrptime']; ?><i class="help-hover glyphicon glyphicon-question-sign"></i></label>
|
||||
<div class="col-sm-8">
|
||||
<textarea class="form-control" data-pattern="^([0-9]+=>[0-9]+,)*[0-9]+=>[0-9]+$" data-error="Wrong definition, please look at description for more details. No comma at ending!" rows="5" name="grouptime" maxlength="5000" required><?php echo $config[0]['grouptime']; ?></textarea>
|
||||
<textarea class="form-control" data-pattern="^([0-9]{1,9}=>[0-9]{1,9},)*[0-9]{1,9}=>[0-9]{1,9}$" data-error="Wrong definition, please look at description for more details. No comma at ending!" rows="5" name="grouptime" maxlength="5000" required><?php echo $config[0]['grouptime']; ?></textarea>
|
||||
<div class="required-icon"><div class="text">*</div></div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,8 @@ $db[\'dbname\']="'.$_POST['dbname'].'";
|
||||
$err_msg = sprintf($lang['widbcfgerr']);
|
||||
$err_lvl = 3;
|
||||
} else {
|
||||
$err_msg = $lang['wisvsuc']." ".$lang['wisvres'];
|
||||
$err_msg = $lang['wisvsuc']." ".sprintf($lang['wisvres'], ' <form class="btn-group" name="restart" action="bot.php" method="POST"><button
|
||||
type="submit" class="btn btn-primary" name="restart"><i class="fa fa-fw fa-refresh"></i> '.$lang['wibot7'].'</button></form>');
|
||||
$err_lvl = 0;
|
||||
}
|
||||
fclose($handle);
|
||||
|
||||
@@ -54,7 +54,8 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
$err_msg = print_r($mysqlcon->errorInfo(), true);
|
||||
$err_lvl = 3;
|
||||
} else {
|
||||
$err_msg = $lang['wisvsuc']." ".$lang['wisvres'];
|
||||
$err_msg = $lang['wisvsuc']." ".sprintf($lang['wisvres'], ' <form class="btn-group" name="restart" action="bot.php" method="POST"><button
|
||||
type="submit" class="btn btn-primary" name="restart"><i class="fa fa-fw fa-refresh"></i> '.$lang['wibot7'].'</button></form>');
|
||||
$err_lvl = NULL;
|
||||
}
|
||||
$rankupmsg = $_POST['rankupmsg'];
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="<?PHP echo $language; ?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="version" content="<?PHP echo $currvers; ?>">
|
||||
<link rel="icon" href="../icons/rs.png">
|
||||
<link rel="icon" href="../tsicons/rs.png">
|
||||
<title>TS-N.NET Ranksystem</title>
|
||||
<link href="../libs/combined_wi.css?v=<?PHP echo $currvers; ?>" rel="stylesheet">
|
||||
<script src="../libs/combined_wi.js?v=<?PHP echo $currvers; ?>"></script>
|
||||
@@ -73,22 +73,25 @@
|
||||
<a href="?lang=de"><span class="flag-icon flag-icon-de"></span> DE - Deutsch</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?lang=en"><span class="flag-icon flag-icon-gb"></span> EN - english</a>
|
||||
<a href="?lang=en"><span class="flag-icon flag-icon-gb"></span> EN - English</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?lang=fr"><span class="flag-icon flag-icon-fr"></span> FR - français</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?lang=it"><span class="flag-icon flag-icon-it"></span> IT - italiano</a>
|
||||
<a href="?lang=it"><span class="flag-icon flag-icon-it"></span> IT - Italiano</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?lang=it"><span class="flag-icon flag-icon-nl"></span> NL - Nederlands</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?lang=ro"><span class="flag-icon flag-icon-ro"></span> RO - românesc</a>
|
||||
<a href="?lang=ro"><span class="flag-icon flag-icon-ro"></span> RO - Română</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?lang=ru"><span class="flag-icon flag-icon-ru"></span> RU - русский</a>
|
||||
<a href="?lang=ru"><span class="flag-icon flag-icon-ru"></span> RU - Pусский</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="?lang=pt"><span class="flag-icon flag-icon-ptbr"></span> PT - Português</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
@@ -44,18 +44,19 @@ require_once('nav.php');
|
||||
|
||||
if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['password'] == $webpass && $_SESSION['clientip'] == getclientip()) {
|
||||
$timezone = $_POST['timezone'];
|
||||
$dateformat = $_POST['dateformat'];
|
||||
$timeformat = $_POST['dateformat'];
|
||||
$logpath = addslashes($_POST['logpath']);
|
||||
$language = $_POST['languagedb'];
|
||||
if (isset($_POST['upcheck'])) $upcheck = 1; else $upcheck = 0;
|
||||
$updateinfotime = $_POST['updateinfotime'];
|
||||
$uniqueid = $_POST['uniqueid'];
|
||||
$adminuuid = $_POST['adminuuid'];
|
||||
if ($mysqlcon->exec("UPDATE $dbname.config set timezone='$timezone',dateformat='$dateformat',logpath='$logpath',language='$language',upcheck='$upcheck',updateinfotime='$updateinfotime',uniqueid='$uniqueid',adminuuid='$adminuuid'") === false) {
|
||||
if ($mysqlcon->exec("UPDATE $dbname.config set timezone='$timezone',dateformat='$timeformat',logpath='$logpath',language='$language',upcheck='$upcheck',updateinfotime='$updateinfotime',uniqueid='$uniqueid',adminuuid='$adminuuid'") === false) {
|
||||
$err_msg = print_r($mysqlcon->errorInfo(), true);
|
||||
$err_lvl = 3;
|
||||
} else {
|
||||
$err_msg = $lang['wisvsuc']." ".$lang['wisvres'];
|
||||
$err_msg = $lang['wisvsuc']." ".sprintf($lang['wisvres'], ' <form class="btn-group" name="restart" action="bot.php" method="POST"><button
|
||||
type="submit" class="btn btn-primary" name="restart"><i class="fa fa-fw fa-refresh"></i> '.$lang['wibot7'].'</button></form>');
|
||||
$err_lvl = NULL;
|
||||
}
|
||||
$logpath = $_POST['logpath'];
|
||||
@@ -113,12 +114,13 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
<?PHP
|
||||
echo '<option data-subtext="العربية" value="ar"'.($language === 'ar' ? ' selected="selected"' : '').'>AR</option>';
|
||||
echo '<option data-subtext="Deutsch" value="de"'.($language === 'de' ? ' selected="selected"' : '').'>DE</option>';
|
||||
echo '<option data-subtext="english" value="en"'.($language === 'en' ? ' selected="selected"' : '').'>EN</option>';
|
||||
echo '<option data-subtext="English" value="en"'.($language === 'en' ? ' selected="selected"' : '').'>EN</option>';
|
||||
echo '<option data-subtext="français" value="fr"'.($language === 'fr' ? ' selected="selected"' : '').'>FR</option>';
|
||||
echo '<option data-subtext="italiano" value="it"'.($language === 'it' ? ' selected="selected"' : '').'>IT</option>';
|
||||
echo '<option data-subtext="Italiano" value="it"'.($language === 'it' ? ' selected="selected"' : '').'>IT</option>';
|
||||
echo '<option data-subtext="Nederlands" value="nl"'.($language === 'nl' ? ' selected="selected"' : '').'>NL</option>';
|
||||
echo '<option data-subtext="românesc" value="ro"'.($language === 'ro' ? ' selected="selected"' : '').'>RO</option>';
|
||||
echo '<option data-subtext="русский" value="ru"'.($language === 'ru' ? ' selected="selected"' : '').'>RU</option>';
|
||||
echo '<option data-subtext="Română" value="ro"'.($language === 'ro' ? ' selected="selected"' : '').'>RO</option>';
|
||||
echo '<option data-subtext="Pусский" value="ru"'.($language === 'ru' ? ' selected="selected"' : '').'>RU</option>';
|
||||
echo '<option data-subtext="Português" value="pt"'.($language === 'pt' ? ' selected="selected"' : '').'>PT</option>';
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -57,7 +57,8 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
$err_msg = print_r($mysqlcon->errorInfo(), true);
|
||||
$err_lvl = 3;
|
||||
} else {
|
||||
$err_msg = $lang['wisvsuc']." ".$lang['wisvres'];
|
||||
$err_msg = $lang['wisvsuc']." ".sprintf($lang['wisvres'], ' <form class="btn-group" name="restart" action="bot.php" method="POST"><button
|
||||
type="submit" class="btn btn-primary" name="restart"><i class="fa fa-fw fa-refresh"></i> '.$lang['wibot7'].'</button></form>');
|
||||
$err_lvl = NULL;
|
||||
}
|
||||
$ts['host'] = $_POST['tshost'];
|
||||
@@ -168,7 +169,7 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
<script>
|
||||
$("input[name='defchid']").TouchSpin({
|
||||
min: 0,
|
||||
max: 9223372036854775807,
|
||||
max: 2147483647,
|
||||
verticalbuttons: true,
|
||||
prefix: 'ID:'
|
||||
});
|
||||
@@ -181,11 +182,13 @@ if (isset($_POST['update']) && $_SESSION['username'] == $webuser && $_SESSION['p
|
||||
<div class="col-sm-8">
|
||||
<select class="selectpicker show-tick form-control" id="basic" name="slowmode">
|
||||
<?PHP
|
||||
echo '<option data-subtext="[recommended]" value="0"'; if($slowmode=="0") echo ' selected="selected"'; echo '>Realtime (deactivated)</option>';
|
||||
echo '<option data-subtext="[recommended]" value="0"'; if($slowmode=="0") echo ' selected="selected"'; echo '>disabled (Realtime)</option>';
|
||||
echo '<option data-divider="true"> </option>';
|
||||
echo '<option data-subtext="(0,2 seconds)" value="200000"'; if($slowmode=="200000") echo ' selected="selected"'; echo '>Low delay</option>';
|
||||
echo '<option data-subtext="(0,5 seconds)" value="500000"'; if($slowmode=="500000") echo ' selected="selected"'; echo '>Middle delay</option>';
|
||||
echo '<option data-subtext="(1,0 seconds)" value="1000000"'; if($slowmode=="1000000") echo ' selected="selected"'; echo '>High delay</option>';
|
||||
echo '<option data-subtext="(2,0 seconds)" value="2000000"'; if($slowmode=="2000000") echo ' selected="selected"'; echo '>Huge delay</option>';
|
||||
echo '<option data-subtext="(5,0 seconds)" value="5000000"'; if($slowmode=="5000000") echo ' selected="selected"'; echo '>Ultra delay</option>';
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user