mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
parent
a8fa383180
commit
f360c32a8c
@ -87,7 +87,7 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
|
||||
printText('Connect to: '.$ssl.$row['domain']);
|
||||
while (!isset($left) or $left>0) {
|
||||
$getRequest='/'. $row['file'].'?passwordToken='.urlencode($row['token']).'&start='.urlencode($start).'&chunkSize='.urlencode($row['chunkSize']).'&lastID='.urlencode($row['lastID']).'&updateTime='.urlencode($row['lastCheck']);
|
||||
$rawResponse=webhostRequest($row['domain'],'http://easy-wi.com user importer',$getRequest, null,$port);
|
||||
$rawResponse=webhostRequest($row['domain'], 'http://easy-wi.com user importer',$getRequest, null,$port);
|
||||
$response=cleanFsockOpenRequest($rawResponse,'{','}');
|
||||
$decoded=json_decode($response);
|
||||
unset($response);
|
||||
|
@ -75,7 +75,7 @@ if ($ui->st('w','get') == 'ms' and $ui->username('shorten','50','get')) {
|
||||
$query = $sql->prepare("SELECT `mail_backup` FROM `userdata` WHERE `mail_backup`='Y' AND `id`=? LIMIT 1");
|
||||
$query->execute(array($row['userid']));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
sendmail('emailbackup', $row['userid'], $row['server'],'');
|
||||
sendmail('emailbackup', $row['userid'], $row['server'], '');
|
||||
}
|
||||
}
|
||||
echo 'ok';
|
||||
|
@ -60,12 +60,12 @@ $query = $sql->prepare("SELECT language FROM settings LIMIT 1");
|
||||
$query->execute();
|
||||
$default_language=$query->fetchColumn();
|
||||
|
||||
if (is_file(EASYWIDIR."/languages/$template_to_use/$default_language/login.xml")) {
|
||||
$sprache=simplexml_load_file(EASYWIDIR."/languages/$template_to_use/$default_language/login.xml");
|
||||
} else if (is_file(EASYWIDIR."/languages/default/$default_language/login.xml")) {
|
||||
$sprache=simplexml_load_file(EASYWIDIR."/languages/default/$default_language/login.xml");
|
||||
if (is_file(EASYWIDIR . "/languages/$template_to_use/$default_language/login.xml")) {
|
||||
$sprache=simplexml_load_file(EASYWIDIR . "/languages/$template_to_use/$default_language/login.xml");
|
||||
} else if (is_file(EASYWIDIR . "/languages/default/$default_language/login.xml")) {
|
||||
$sprache=simplexml_load_file(EASYWIDIR . "/languages/default/$default_language/login.xml");
|
||||
} else {
|
||||
$sprache=simplexml_load_file(EASYWIDIR."/languages/$default_language/login.xml");
|
||||
$sprache=simplexml_load_file(EASYWIDIR . "/languages/$default_language/login.xml");
|
||||
}
|
||||
if ($w == 'lo') {
|
||||
if (isset($ui->server['HTTP_REFERER'])) {
|
||||
@ -200,12 +200,12 @@ if ($w == 'lo') {
|
||||
} else if (!$ui->ismail('mail','post')) {
|
||||
$text='Error: E-Mail';
|
||||
}
|
||||
if (is_file(EASYWIDIR."/languages/$template_to_use/$default_language/voice.xml")) {
|
||||
$vosprache=simplexml_load_file(EASYWIDIR."/languages/$template_to_use/$default_language/voice.xml");
|
||||
} else if (is_file(EASYWIDIR."/languages/default/$default_language/voice.xml")) {
|
||||
$vosprache=simplexml_load_file(EASYWIDIR."/languages/default/$default_language/voice.xml");
|
||||
if (is_file(EASYWIDIR . "/languages/$template_to_use/$default_language/voice.xml")) {
|
||||
$vosprache=simplexml_load_file(EASYWIDIR . "/languages/$template_to_use/$default_language/voice.xml");
|
||||
} else if (is_file(EASYWIDIR . "/languages/default/$default_language/voice.xml")) {
|
||||
$vosprache=simplexml_load_file(EASYWIDIR . "/languages/default/$default_language/voice.xml");
|
||||
} else {
|
||||
$vosprache=simplexml_load_file(EASYWIDIR."/languages/$default_language/voice.xml");
|
||||
$vosprache=simplexml_load_file(EASYWIDIR . "/languages/$default_language/voice.xml");
|
||||
}
|
||||
$include='passwordrecovery_vo.tpl';
|
||||
} else {
|
||||
@ -398,12 +398,12 @@ XML;
|
||||
}
|
||||
}
|
||||
if (isset($include)) {
|
||||
if (is_file(EASYWIDIR."/template/$template_to_use/$include")) {
|
||||
include(EASYWIDIR."/template/$template_to_use/$include");
|
||||
} else if (is_file(EASYWIDIR."/template/default/$include")) {
|
||||
include(EASYWIDIR."/template/default/$include");
|
||||
if (is_file(EASYWIDIR . "/template/$template_to_use/$include")) {
|
||||
include(EASYWIDIR . "/template/$template_to_use/$include");
|
||||
} else if (is_file(EASYWIDIR . "/template/default/$include")) {
|
||||
include(EASYWIDIR . "/template/default/$include");
|
||||
} else {
|
||||
include(EASYWIDIR."/template/$include");
|
||||
include(EASYWIDIR . "/template/$include");
|
||||
}
|
||||
}
|
||||
$sql=null;
|
@ -41,7 +41,7 @@ if (isset($page_include)) {
|
||||
$protection_link= ($seo == 'N') ? $page_url . '/protectioncheck.php' : $page_url . '/' . $user_language . '/' . $page_category . '/';
|
||||
} else {
|
||||
define('EASYWIDIR', dirname(__FILE__));
|
||||
if (is_dir(EASYWIDIR."/install")) {
|
||||
if (is_dir(EASYWIDIR . '/install')) {
|
||||
die('Please remove the "install" folder');
|
||||
}
|
||||
$logininclude = true;
|
||||
|
@ -329,11 +329,11 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
|
||||
if ($resetTraffic==true and $serverCreated != null) {
|
||||
$query4 = $sql->prepare("UPDATE `voice_server` SET `filetraffic`=0,`lastfiletraffic`=0 WHERE `id`=? LIMIT 1");
|
||||
$query4->execute(array($ts3id));
|
||||
$connection->ImportModServer($localserverid, $row3['slots'], $row3['ip'], $row3['port'], array('virtualserver_max_download_total_bandwidth' => $row3['max_download_total_bandwidth'],'virtualserver_max_upload_total_bandwidth' => $row3['max_upload_total_bandwidth']));
|
||||
$connection->ImportModServer($localserverid, $row3['slots'], $row3['ip'], $row3['port'], array('virtualserver_max_download_total_bandwidth' => $row3['max_download_total_bandwidth'], 'virtualserver_max_upload_total_bandwidth' => $row3['max_upload_total_bandwidth']));
|
||||
} else if ($serverCreated==null) {
|
||||
$query4 = $sql->prepare("UPDATE `voice_server` SET `filetraffic`=0,`lastfiletraffic`=0,`serverCreated`=NOW() WHERE `id`=? LIMIT 1");
|
||||
$query4->execute(array($ts3id));
|
||||
$connection->ImportModServer($localserverid, $row3['slots'], $row3['ip'], $row3['port'], array('virtualserver_max_download_total_bandwidth' => $row3['max_download_total_bandwidth'],'virtualserver_max_upload_total_bandwidth' => $row3['max_upload_total_bandwidth']));
|
||||
$connection->ImportModServer($localserverid, $row3['slots'], $row3['ip'], $row3['port'], array('virtualserver_max_download_total_bandwidth' => $row3['max_download_total_bandwidth'], 'virtualserver_max_upload_total_bandwidth' => $row3['max_upload_total_bandwidth']));
|
||||
}
|
||||
}
|
||||
if ($voice_autobackup == 'Y' and $stunde == '5' and $row3['active'] == 'Y' and $row3['backup'] == 'Y') {
|
||||
|
@ -480,7 +480,7 @@ if ($ui->smallletters('w',5,'get') == 'check') {
|
||||
$topic=$pselect3->fetchColumn();
|
||||
}
|
||||
if (empty($topic)) $topic=$row['topic'];
|
||||
$table[]=array('id' => $row['id'],'topic' => $topic);
|
||||
$table[] = array('id' => $row['id'], 'topic' => $topic);
|
||||
}
|
||||
$ticketTemplate=($ui->id('r',1,'get')!=1) ? 'ajax_userpanel_ticket_category.tpl' : 'ajax_admin_reseller_ticket_category.tpl';
|
||||
require_once IncludeTemplate($template_to_use, $ticketTemplate);
|
||||
|
@ -61,7 +61,7 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
|
||||
$currentMinute=(int)date('i');
|
||||
$query = $sql->prepare("SELECT `lastUpdateRun` FROM `settings` WHERE `resellerid`=0 LIMIT 1");
|
||||
$query->execute();
|
||||
$lastUpdateRun=(int)$query->fetchColumn();
|
||||
$lastUpdateRun= (int) $query->fetchColumn();
|
||||
$query = $sql->prepare("UPDATE `settings` SET `lastUpdateRun`=? WHERE `resellerid`=0 LIMIT 1");
|
||||
$query->execute(array($currentMinute));
|
||||
echo "Checking for servers to be updated and or synced at hour ${currentHour} and between minutes ${lastUpdateRun} and ${currentMinute}\r\n";
|
||||
|
@ -42,7 +42,7 @@ ini_set('display_errors',1);
|
||||
error_reporting(E_ALL|E_STRICT);
|
||||
if (isset($_SERVER['REMOTE_ADDR'])) {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
$timelimit=(isset($_GET['timeout']) and is_numeric($_GET['timeout'])) ? (int)$_GET['timeout'] : ini_get('max_execution_time')-10;
|
||||
$timelimit=(isset($_GET['timeout']) and is_numeric($_GET['timeout'])) ? (int) $_GET['timeout'] : ini_get('max_execution_time')-10;
|
||||
} else {
|
||||
$timelimit=600;
|
||||
}
|
||||
@ -96,7 +96,7 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
|
||||
$firstcheck='00-00-'.round(2*(strtotime($row2['lastcheck'])-strtotime($row2['oldcheck']))/60);
|
||||
$firstchecktime=date('d-G-i');
|
||||
}
|
||||
if (isset($active)) $resellersettings[$resellerid] = array('active' => $active,'shutdownempty' => $shutdownempty,'shutdownemptytime' => $shutdownemptytime,'firstchecktime' => $firstchecktime,'firstcheck' => $firstcheck,'brandname' => $row['brandname'],'noservertag' => $row['noservertag'],'nopassword' => $row['nopassword'],'tohighslots' => $row['tohighslots'],'down_checks' => $row['down_checks']);
|
||||
if (isset($active)) $resellersettings[$resellerid] = array('active' => $active,'shutdownempty' => $shutdownempty,'shutdownemptytime' => $shutdownemptytime,'firstchecktime' => $firstchecktime,'firstcheck' => $firstcheck,'brandname' => $row['brandname'], 'noservertag' => $row['noservertag'], 'nopassword' => $row['nopassword'], 'tohighslots' => $row['tohighslots'], 'down_checks' => $row['down_checks']);
|
||||
}
|
||||
$query=$sql->prepare("UPDATE `lendsettings` SET `oldcheck`=`lastcheck`,`lastcheck`=NOW()");
|
||||
$query->execute();
|
||||
@ -254,7 +254,7 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
|
||||
$timeleft = round($row['lendtime'] - (strtotime('now') - strtotime($row['started'])) / 60);
|
||||
if ($timeleft <= 0) {
|
||||
$query2->execute(array($serverid));
|
||||
$rootID=(int)$query2->fetchColumn();
|
||||
$rootID= (int) $query2->fetchColumn();
|
||||
$tmp = gsrestart($serverid,'so', $aeskey, $resellerid);
|
||||
if (is_array($tmp)) foreach($tmp as $t) $rtmp[$rootID][] = $t;
|
||||
$query2 = $sql->prepare("DELETE FROM `lendedserver` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
@ -337,7 +337,7 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
|
||||
ob_end_clean();
|
||||
$badxml=simplexml_load_string($badquerystring);
|
||||
foreach ($badxml as $badxml2) {
|
||||
if (isset($badxml2['address']) and isip($badxml2['address'],'ipx')) {
|
||||
if (isset($badxml2['address']) and isip($badxml2['address'], 'ipx')) {
|
||||
$address = $badxml2['address'];
|
||||
$status = $badxml2['status'];
|
||||
$badstatus[$address] = array('status' => $status);
|
||||
@ -661,7 +661,7 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
|
||||
$tsdown = false;
|
||||
$tsdnsdown = false;
|
||||
$defaultwelcome = $vrow['defaultwelcome'];
|
||||
$default=array('virtualserver_hostbanner_url' => $vrow['defaulthostbanner_url'],'virtualserver_hostbanner_gfx_url' => $vrow['defaulthostbanner_gfx_url'],'virtualserver_hostbutton_tooltip' => $vrow['defaulthostbutton_tooltip'],'virtualserver_hostbutton_url' => $vrow['defaulthostbutton_url'],'virtualserver_hostbutton_gfx_url' => $vrow['defaulthostbutton_gfx_url'],'defaultwelcome' => $vrow['defaultwelcome']);
|
||||
$default=array('virtualserver_hostbanner_url' => $vrow['defaulthostbanner_url'], 'virtualserver_hostbanner_gfx_url' => $vrow['defaulthostbanner_gfx_url'], 'virtualserver_hostbutton_tooltip' => $vrow['defaulthostbutton_tooltip'], 'virtualserver_hostbutton_url' => $vrow['defaulthostbutton_url'], 'virtualserver_hostbutton_gfx_url' => $vrow['defaulthostbutton_gfx_url'], 'defaultwelcome' => $vrow['defaultwelcome']);
|
||||
print "Connecting to TS3 server $queryip\r\n";
|
||||
$connection=new TS3($queryip, $queryport,'serveradmin', $querypassword,(isset($args['tsDebug']) and $args['tsDebug'] == 1) ? true : false);
|
||||
$errorcode = $connection->errorcode;
|
||||
|
@ -182,7 +182,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT `shorten`,`description` FROM `servertypes` WHERE `resellerid`=?");
|
||||
$query->execute(array($reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[]=array('shorten' => $row['shorten'],'description' => $row['description']);
|
||||
$table[] = array('shorten' => $row['shorten'], 'description' => $row['description']);
|
||||
}
|
||||
$query = $sql->prepare("SELECT `qstat`,`description` FROM `qstatshorten`");
|
||||
$query->execute();
|
||||
@ -192,7 +192,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query2 = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `servertypes` WHERE `qstat`=? AND `resellerid`=? LIMIT 1");
|
||||
$query2->execute(array($exist,$reseller_id));
|
||||
if ($query2->fetchColumn()>0) {
|
||||
$table2[]=array('qstat' => $row['qstat'],'description' => $row['description']);
|
||||
$table2[] = array('qstat' => $row['qstat'], 'description' => $row['description']);
|
||||
}
|
||||
}
|
||||
$foundlanguages = array();
|
||||
@ -207,7 +207,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$displayNone='display_none';
|
||||
$checkbox='<input type="checkbox" name="language[]" value="'.$row.'" onclick="textdrop('."'".$row."'".');" /> ';
|
||||
}
|
||||
$foundlanguages[]=array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'display' => $displayNone);
|
||||
$foundlanguages[] = array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'display' => $displayNone);
|
||||
}
|
||||
}
|
||||
$dependings = array();
|
||||
@ -287,7 +287,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT `shorten`,`description` FROM `servertypes` WHERE `resellerid`=?");
|
||||
$query->execute(array($reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[]=array('shorten' => $row['shorten'],'description' => $row['description']);
|
||||
$table[] = array('shorten' => $row['shorten'], 'description' => $row['description']);
|
||||
}
|
||||
$query = $sql->prepare("SELECT `qstat`,`description` FROM `qstatshorten`");
|
||||
$countp=$sql->prepare("SELECT `id` FROM `servertypes` WHERE `qstat`=? AND `resellerid`=? LIMIT 1");
|
||||
@ -297,7 +297,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$countp->execute(array($exist,$reseller_id));
|
||||
$exnum=$countp->rowCount();
|
||||
if ($exnum>=1) {
|
||||
$table2[]=array('qstat' => $row['qstat'],'description' => $row['description']);
|
||||
$table2[] = array('qstat' => $row['qstat'], 'description' => $row['description']);
|
||||
}
|
||||
}
|
||||
$query = $sql->prepare("SELECT * FROM `addons` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
@ -336,7 +336,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$style="style=\"display: none;\"";
|
||||
$checkbox="<input type=\"checkbox\" name=\"language[]\" value=\"$row\" onclick=\"textdrop('$row');\" /> ";
|
||||
}
|
||||
$foundlanguages[]=array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'description' => $description,'display' => $displayNone);
|
||||
$foundlanguages[] = array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'description' => $description,'display' => $displayNone);
|
||||
}
|
||||
}
|
||||
$dependings = array();
|
||||
@ -469,7 +469,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$type=$sprache->tool;
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'active' => $row['active'],'img' => $imgName,'alt' => $imgAlt,'gametype' => "${gtype} (${atype})",'description' => $row['menudescription'],'type' => $type);
|
||||
$table[] = array('id' => $row['id'], 'active' => $row['active'], 'img' => $imgName,'alt' => $imgAlt,'gametype' => "${gtype} (${atype})",'description' => $row['menudescription'], 'type' => $type);
|
||||
}
|
||||
$table2 = array();
|
||||
$pselect2=$sql->prepare("SELECT DISTINCT(`shorten`) FROM `addons` WHERE `resellerid`=:reseller_id");
|
||||
@ -489,7 +489,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$gtype=$shorten;
|
||||
}
|
||||
$gametype="$gtype ($atype)";
|
||||
$table2[]=array('shorten' => $shorten,'description' => $gametype);
|
||||
$table2[] = array('shorten' => $shorten,'description' => $gametype);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$countp=$sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `addons` $where");
|
||||
|
@ -114,7 +114,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($id,$reseller_id));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$adIDs[] = $id;
|
||||
$results["ad-${id}"]=array('type' => $gsprache->addon,'id' => $id,'name' => $row['menudescription'],'owner' => '','edit' => '?w=ad&d=md&id='.$id,'delete' => '?w=ad&d=dl&id='.$id);
|
||||
$results["ad-${id}"] = array('type' => $gsprache->addon,'id' => $id,'name' => $row['menudescription'], 'owner' => '','edit' => '?w=ad&d=md&id='.$id,'delete' => '?w=ad&d=dl&id='.$id);
|
||||
}
|
||||
}
|
||||
if ($im==true) {
|
||||
@ -122,7 +122,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($id,$reseller_id));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$imIDs[] = $id;
|
||||
$results["im-${id}"]=array('type' => $gsprache->gameserver . ' ' . $gsprache->templates,'id' => $id,'name' => $row['description'],'owner' => '','edit' => '?w=im&d=md&id='.$id,'delete' => '?w=im&d=dl&id='.$id);
|
||||
$results["im-${id}"] = array('type' => $gsprache->gameserver . ' ' . $gsprache->templates,'id' => $id,'name' => $row['description'], 'owner' => '','edit' => '?w=im&d=md&id='.$id,'delete' => '?w=im&d=dl&id='.$id);
|
||||
}
|
||||
}
|
||||
if ($us==true) {
|
||||
@ -139,7 +139,7 @@ if (isset($ui->get['q'])) {
|
||||
}
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$usIDs[] = $id;
|
||||
$results["us-${id}"]=array('type' => $gsprache->gameserver,'id' => $id,'name' => theName($row['username'], $row['cname']),'owner' => '','edit' => '?w=us&d=md&id='.$id,'delete' => '?w=us&d=dl&id='.$id);
|
||||
$results["us-${id}"] = array('type' => $gsprache->gameserver,'id' => $id,'name' => theName($row['username'], $row['cname']),'owner' => '','edit' => '?w=us&d=md&id='.$id,'delete' => '?w=us&d=dl&id='.$id);
|
||||
}
|
||||
}
|
||||
if ($gs==true) {
|
||||
@ -147,7 +147,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($id,$id,$reseller_id));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$gsIDs[] = $id;
|
||||
$results["gs-${id}"]=array('type' => $gsprache->gameserver,'id' => $id,'name' => $row['serverip'] . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$id,'delete' => '?w=gs&d=dl&id='.$id);
|
||||
$results["gs-${id}"] = array('type' => $gsprache->gameserver,'id' => $id,'name' => $row['serverip'] . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$id,'delete' => '?w=gs&d=dl&id='.$id);
|
||||
}
|
||||
}
|
||||
if ($vo==true) {
|
||||
@ -155,7 +155,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($id,$id,$reseller_id));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$voIDs[] = $id;
|
||||
$results["vo-${id}"]=array('type' => $gsprache->voiceserver,'id' => $id,'name' => $row['ip'] . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$id,'delete' => '?w=vo&d=dl&id='.$id);
|
||||
$results["vo-${id}"] = array('type' => $gsprache->voiceserver,'id' => $id,'name' => $row['ip'] . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$id,'delete' => '?w=vo&d=dl&id='.$id);
|
||||
}
|
||||
}
|
||||
if ($ro==true) {
|
||||
@ -169,7 +169,7 @@ if (isset($ui->get['q'])) {
|
||||
}
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$roIDs[] = $id;
|
||||
$results["ro-${id}"]=array('type' => $gsprache->root,'id' => $id,'name' => $row['ip'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$id,'delete' => '?w=ro&d=dl&id='.$id);
|
||||
$results["ro-${id}"] = array('type' => $gsprache->root,'id' => $id,'name' => $row['ip'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$id,'delete' => '?w=ro&d=dl&id='.$id);
|
||||
}
|
||||
}
|
||||
if ($vs==true) {
|
||||
@ -186,7 +186,7 @@ if (isset($ui->get['q'])) {
|
||||
}
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$vsIDs[] = $id;
|
||||
$results["vs-${id}"]=array('type' => $gsprache->virtual,'id' => $id,'name' => $row['id'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$id,'delete' => '?w=ro&d=dl&id='.$id);
|
||||
$results["vs-${id}"] = array('type' => $gsprache->virtual,'id' => $id,'name' => $row['id'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$id,'delete' => '?w=ro&d=dl&id='.$id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -196,7 +196,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($reseller_id,$ip));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$gsIDs[] = $row['id'];
|
||||
$results["gs-${row['id']}"]=array('type' => $gsprache->gameserver,'id' => $row['id'],'name' => $ip . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$row['id'],'delete' => '?w=gs&d=dl&id='.$row['id']);
|
||||
$results["gs-${row['id']}"] = array('type' => $gsprache->gameserver,'id' => $row['id'], 'name' => $ip . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$row['id'], 'delete' => '?w=gs&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
if ($vo==true) {
|
||||
@ -204,7 +204,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($reseller_id,$ip));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$voIDs[] = $row['id'];
|
||||
$results["vo-${row['id']}"]=array('type' => $gsprache->voiceserver,'id' => $row['id'],'name' => $ip . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$row['id'],'delete' => '?w=vo&d=dl&id='.$row['id']);
|
||||
$results["vo-${row['id']}"] = array('type' => $gsprache->voiceserver,'id' => $row['id'], 'name' => $ip . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$row['id'], 'delete' => '?w=vo&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
if ($ro==true) {
|
||||
@ -218,7 +218,7 @@ if (isset($ui->get['q'])) {
|
||||
}
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$roIDs[] = $row['id'];
|
||||
$results["ro-${row['id']}"]=array('type' => $gsprache->root,'id' => $row['id'],'name' => $ip,'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$row['id'],'delete' => '?w=ro&d=dl&id='.$row['id']);
|
||||
$results["ro-${row['id']}"] = array('type' => $gsprache->root,'id' => $row['id'], 'name' => $ip,'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$row['id'], 'delete' => '?w=ro&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
if ($vs==true) {
|
||||
@ -235,7 +235,7 @@ if (isset($ui->get['q'])) {
|
||||
}
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$vsIDs[] = $row['id'];
|
||||
$results["ro-${row['id']}"]=array('type' => $gsprache->virtual,'id' => $row['id'],'name' => $ip,'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$row['id'],'delete' => '?w=ro&d=dl&id='.$row['id']);
|
||||
$results["ro-${row['id']}"] = array('type' => $gsprache->virtual,'id' => $row['id'], 'name' => $ip,'owner' => theName($row['username'], $row['cname']),'edit' => '?w=ro&d=md&id='.$row['id'], 'delete' => '?w=ro&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -245,7 +245,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array(':id' => $reseller_id,':port' => $port));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$gsIDs[] = $row['id'];
|
||||
$results["gs-${row['id']}"]=array('type' => $gsprache->gameserver,'id' => $row['id'],'name' => $row['serverip'] . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$row['id'],'delete' => '?w=gs&d=dl&id='.$row['id']);
|
||||
$results["gs-${row['id']}"] = array('type' => $gsprache->gameserver,'id' => $row['id'], 'name' => $row['serverip'] . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$row['id'], 'delete' => '?w=gs&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
if ($vo==true) {
|
||||
@ -253,7 +253,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($reseller_id,$port));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$voIDs[] = $row['id'];
|
||||
$results["vo-${row['id']}"]=array('type' => $gsprache->voiceserver,'id' => $row['id'],'name' => $row['ip'] . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$row['id'],'delete' => '?w=vo&d=dl&id='.$row['id']);
|
||||
$results["vo-${row['id']}"] = array('type' => $gsprache->voiceserver,'id' => $row['id'], 'name' => $row['ip'] . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$row['id'], 'delete' => '?w=vo&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -264,7 +264,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($reseller_id,$ip,$port));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$gsIDs[] = $row['id'];
|
||||
$results["gs-${row['id']}"]=array('type' => $gsprache->gameserver,'id' => $row['id'],'name' => $ip . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$row['id'],'delete' => '?w=gs&d=dl&id='.$row['id']);
|
||||
$results["gs-${row['id']}"] = array('type' => $gsprache->gameserver,'id' => $row['id'], 'name' => $ip . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=gs&d=md&id='.$row['id'], 'delete' => '?w=gs&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
if ($vo==true) {
|
||||
@ -272,7 +272,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($reseller_id,$ip,$port));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$voIDs[] = $row['id'];
|
||||
$results["vo-${row['id']}"]=array('type' => $gsprache->voiceserver,'id' => $row['id'],'name' => $ip . ':' . $row['port'],'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$row['id'],'delete' => '?w=vo&d=dl&id='.$row['id']);
|
||||
$results["vo-${row['id']}"] = array('type' => $gsprache->voiceserver,'id' => $row['id'], 'name' => $ip . ':' . $row['port'], 'owner' => theName($row['username'], $row['cname']),'edit' => '?w=vo&d=md&id='.$row['id'], 'delete' => '?w=vo&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -283,7 +283,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($reseller_id,$word,$word));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$adIDs[] = $row['id'];
|
||||
$results["ad-${row['id']}"]=array('type' => $gsprache->addon,'id' => $row['id'],'name' => $row['menudescription'],'owner' => '','edit' => '?w=ad&d=md&id='.$row['id'],'delete' => '?w=ad&d=dl&id='.$row['id']);
|
||||
$results["ad-${row['id']}"] = array('type' => $gsprache->addon,'id' => $row['id'], 'name' => $row['menudescription'], 'owner' => '','edit' => '?w=ad&d=md&id='.$row['id'], 'delete' => '?w=ad&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
if ($im==true) {
|
||||
@ -291,7 +291,7 @@ if (isset($ui->get['q'])) {
|
||||
$query->execute(array($reseller_id,$word,$word));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$imIDs[] = $row['id'];
|
||||
$results["im-${row['id']}"]=array('type' => $gsprache->gameserver . ' ' . $gsprache->templates,'id' => $row['id'],'name' => $row['description'],'owner' => '','edit' => '?w=im&d=md&id='.$row['id'],'delete' => '?w=im&d=dl&id='.$row['id']);
|
||||
$results["im-${row['id']}"] = array('type' => $gsprache->gameserver . ' ' . $gsprache->templates,'id' => $row['id'], 'name' => $row['description'], 'owner' => '','edit' => '?w=im&d=md&id='.$row['id'], 'delete' => '?w=im&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
if ($us==true) {
|
||||
@ -309,7 +309,7 @@ if (isset($ui->get['q'])) {
|
||||
}
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$usIDs[] = $row['id'];
|
||||
$results["us-${row['id']}"]=array('type' => $gsprache->user,'id' => $row['id'],'name' => theName($row['username'], $row['cname']),'owner' => '','edit' => '?w=us&d=md&id='.$row['id'],'delete' => '?w=us&d=dl&id='.$row['id']);
|
||||
$results["us-${row['id']}"] = array('type' => $gsprache->user,'id' => $row['id'], 'name' => theName($row['username'], $row['cname']),'owner' => '','edit' => '?w=us&d=md&id='.$row['id'], 'delete' => '?w=us&d=dl&id='.$row['id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ if (!isset($success['false']) and array_value_exists('action','add',$data) and 1
|
||||
}
|
||||
$typeIDList[] = $row['id'];
|
||||
$shortenToID[$row['id']] = $singleShorten;
|
||||
$typeIDs[$singleShorten]=array('id' => $row['id'],'map' => $row['map'],'mapGroup' => $row['mapGroup'],'tic' => $row['tic'],'cmd' => $row['cmd'],'gamemod' => $row['gamemod'],'gamemod2' => $row['gamemod2']);
|
||||
$typeIDs[$singleShorten] = array('id' => $row['id'], 'map' => $row['map'], 'mapGroup' => $row['mapGroup'], 'tic' => $row['tic'], 'cmd' => $row['cmd'], 'gamemod' => $row['gamemod'], 'gamemod2' => $row['gamemod2']);
|
||||
}
|
||||
if (!isset($typeIDs[$singleShorten])) {
|
||||
$success['false'][] = 'image with the shorten '.$singleShorten.' does not exists';
|
||||
|
@ -260,7 +260,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$ssl='http://';
|
||||
}
|
||||
$table[]=array('id' => $row['importID'],'img' => $imgName,'alt' => $imgAlt,'domain' => $ssl.$row['domain']. '/' . $row['file'],'lastID' => $row['lastID'],'lastCheck' => $row['lastCheck'],'active' => $row['active']);
|
||||
$table[] = array('id' => $row['importID'], 'img' => $imgName,'alt' => $imgAlt,'domain' => $ssl.$row['domain']. '/' . $row['file'], 'lastID' => $row['lastID'], 'lastCheck' => $row['lastCheck'], 'active' => $row['active']);
|
||||
}
|
||||
$pageamount = ceil($colcount / $amount);
|
||||
$link='<a href="admin.php?w=ui&o='.$o.'&a=';
|
||||
|
@ -134,7 +134,7 @@ class rootServer {
|
||||
$hostID=$row['hostid'];
|
||||
$userID=$row['userid'];
|
||||
$resellerID=$row['resellerid'];
|
||||
$this->vmwareHosts[$row['hostID']]['actions'][]=array('action' => $action,'id' => $ID);
|
||||
$this->vmwareHosts[$row['hostID']]['actions'][] = array('action' => $action,'id' => $ID);
|
||||
}
|
||||
}
|
||||
if (!isset($row['ip'])) return 'Database Error: Could not find VM or ESX(i) host for ID: '.$this->tempID;
|
||||
@ -168,7 +168,7 @@ class rootServer {
|
||||
$this->dhcpData[$row['id']]['dhcpFile'] = $row['dhcpFile'];
|
||||
$this->dhcpData[$row['id']]['subnetOptions'] = $row['subnetOptions'];
|
||||
}
|
||||
$this->dhcpData[$row['id']]['actions'][]=array('action' => $action,'id' => $ID,'type' => $type,'imageID' => $imageID,'hostID' => $hostID,'userID' => $userID,'resellerID' => $resellerID);
|
||||
$this->dhcpData[$row['id']]['actions'][] = array('action' => $action,'id' => $ID,'type' => $type,'imageID' => $imageID,'hostID' => $hostID,'userID' => $userID,'resellerID' => $resellerID);
|
||||
$modID=$row['id'];
|
||||
}
|
||||
}
|
||||
@ -191,7 +191,7 @@ class rootServer {
|
||||
$this->dhcpData[$row['id']]['dhcpFile'] = $row['dhcpFile'];
|
||||
$this->dhcpData[$row['id']]['subnetOptions'] = $row['subnetOptions'];
|
||||
}
|
||||
if (isset($modID) and $modID != $row['id']) $this->dhcpData[$row['id']]['actions'][]=array('action' => 'del','id' => $ID,'type' => $type,'imageID' => $imageID,'hostID' => $hostID,'userID' => $userID,'resellerID' => $resellerID);
|
||||
if (isset($modID) and $modID != $row['id']) $this->dhcpData[$row['id']]['actions'][] = array('action' => 'del','id' => $ID,'type' => $type,'imageID' => $imageID,'hostID' => $hostID,'userID' => $userID,'resellerID' => $resellerID);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -216,7 +216,7 @@ class rootServer {
|
||||
$this->PXEData[$row['id']]['PXEFolder'] = $row['PXEFolder'];
|
||||
}
|
||||
$foundPXE = true;
|
||||
$this->PXEData[$row['id']]['actions'][]=array('action' => $action,'id' => $ID,'type' => $type,'imageID' => $imageID);
|
||||
$this->PXEData[$row['id']]['actions'][] = array('action' => $action,'id' => $ID,'type' => $type,'imageID' => $imageID);
|
||||
$this->ID[$type][$ID]['pxeIP'] = $row['ip'];
|
||||
$this->ID[$type][$ID]['pxeID'] = $row['id'];
|
||||
}
|
||||
@ -235,7 +235,7 @@ class rootServer {
|
||||
$this->PXEData[$row['id']]['PXEFolder'] = $row['PXEFolder'];
|
||||
}
|
||||
$foundPXE = true;
|
||||
$this->PXEData[$row['id']]['actions'][]=array('action' => $action,'id' => $ID,'type' => $type,'imageID' => $imageID);
|
||||
$this->PXEData[$row['id']]['actions'][] = array('action' => $action,'id' => $ID,'type' => $type,'imageID' => $imageID);
|
||||
$this->ID[$type][$ID]['pxeIP'] = $row['ip'];
|
||||
$this->ID[$type][$ID]['pxeID'] = $row['id'];
|
||||
}
|
||||
@ -246,7 +246,7 @@ class rootServer {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($this->ID[$type][$ID]['restart'] == 'A' and $this->type == 'dedicated' and $action!='rp') $this->startStop[]=array('action' => ((isset($this->extraData['oldactive']) and $this->extraData['oldactive'] == 'Y') or in_array($action, array('ad','st','dl'))) ? 'st' : 're','id' => $ID and $action!='rp');
|
||||
if ($this->ID[$type][$ID]['restart'] == 'A' and $this->type == 'dedicated' and $action!='rp') $this->startStop[] = array('action' => ((isset($this->extraData['oldactive']) and $this->extraData['oldactive'] == 'Y') or in_array($action, array('ad','st','dl'))) ? 'st' : 're','id' => $ID and $action!='rp');
|
||||
else if ($this->type == 'dedicated' and $action!='rp') return 'Restart not allowed for Server with ID: '.$this->tempID;
|
||||
return true;
|
||||
}
|
||||
@ -287,7 +287,7 @@ class rootServer {
|
||||
$config['subnet'][$this->ID[$a['type']][$a['id']]['subnet']][$this->ID[$a['type']][$a['id']]['hostname']]['hardware ethernet'] = $this->ID[$a['type']][$a['id']]['mac'].';';
|
||||
$config['subnet'][$this->ID[$a['type']][$a['id']]['subnet']][$this->ID[$a['type']][$a['id']]['hostname']]['fixed-address'] = $this->ID[$a['type']][$a['id']]['ip'].';';
|
||||
if ($this->ID[$a['type']][$a['id']]['usePXE'] == 'Y' and (in_array($a['action'], array('ad','ri','rc')))) {
|
||||
$removeArray[]=array('type' => ($a['type'] == 'dedicated') ? 'de' : 'vs','affectedID' => $a['id'],'name' => $this->ID[$a['type']][$a['id']]['ip'],'imageID' => $a['imageID'],'hostID' => $a['hostID'],'userID' => $a['userID'],'resellerID' => $a['resellerID'],'extraData' => array('runAt' => strtotime("+5 minutes")));
|
||||
$removeArray[] = array('type' => ($a['type'] == 'dedicated') ? 'de' : 'vs','affectedID' => $a['id'], 'name' => $this->ID[$a['type']][$a['id']]['ip'], 'imageID' => $a['imageID'], 'hostID' => $a['hostID'], 'userID' => $a['userID'], 'resellerID' => $a['resellerID'], 'extraData' => array('runAt' => strtotime("+5 minutes")));
|
||||
$config['subnet'][$this->ID[$a['type']][$a['id']]['subnet']][$this->ID[$a['type']][$a['id']]['hostname']]['filename'] = 'pxelinux.0;';
|
||||
$config['subnet'][$this->ID[$a['type']][$a['id']]['subnet']][$this->ID[$a['type']][$a['id']]['hostname']]['next-server'] = $this->ID[$a['type']][$a['id']]['pxeIP'].';';
|
||||
} else {
|
||||
|
@ -372,7 +372,7 @@ class ValidateUserinput {
|
||||
function id ($value,$length,$type,$object=false){
|
||||
$check=$this->if_obj_or_str($value,$type,$object);
|
||||
if ($check and is_string($check) and preg_match('/^[\d+]{1,'.$length.'}$/',$check)) {
|
||||
return (int)$check;
|
||||
return (int) $check;
|
||||
} else if ($check) {
|
||||
return $this->loop($check,'id',$type,$length);
|
||||
}
|
||||
|
@ -284,14 +284,14 @@ class TS3 {
|
||||
}
|
||||
$useserver=$this->UseServer($virtualserver_id);
|
||||
if (isset($useserver[0]['msg']) and strtolower($useserver[0]['msg'])==strtolower('ok')) {
|
||||
$virtualserver_ip=(isset($serverdetails_query[0]['virtualserver_ip']) and isip($serverdetails_query[0]['virtualserver_ip'],'all')) ? $serverdetails_query[0]['virtualserver_ip'] : $this->ip;
|
||||
$virtualserver_ip=(isset($serverdetails_query[0]['virtualserver_ip']) and isip($serverdetails_query[0]['virtualserver_ip'], 'all')) ? $serverdetails_query[0]['virtualserver_ip'] : $this->ip;
|
||||
$serverdetails_query=$this->SendCommand('serverinfo');
|
||||
$virtualserver_server=$virtualserver_ip . ':' . $server['virtualserver_port'];
|
||||
$virtualserver_dns=(array_key_exists($virtualserver_server,$dnsarray)) ? $dnsarray[$virtualserver_server] : '';
|
||||
|
||||
//https://github.com/easy-wi/developer/issues/74 check if array keys exists
|
||||
if (isset($serverdetails_query[0]) and ($serverdetails_query[0]['virtualserver_maxclients'])) {
|
||||
$serverdetails[$virtualserver_id]=array(
|
||||
$serverdetails[$virtualserver_id] = array(
|
||||
'virtualserver_ip' => $virtualserver_ip,
|
||||
'virtualserver_maxclients' => $serverdetails_query[0]['virtualserver_maxclients'],
|
||||
'virtualserver_port' => $server['virtualserver_port'],
|
||||
@ -308,7 +308,7 @@ class TS3 {
|
||||
'virtualserver_hostbutton_gfx_url' => $serverdetails_query[0]['virtualserver_hostbutton_gfx_url']
|
||||
);
|
||||
} else {
|
||||
$serverdetails[$virtualserver_id]=array(
|
||||
$serverdetails[$virtualserver_id] = array(
|
||||
'virtualserver_ip' => $virtualserver_ip,
|
||||
'virtualserver_maxclients' => $serverdetails_query[0]['virtualserver_maxclients'],
|
||||
'virtualserver_port' => $server['virtualserver_port'],
|
||||
@ -332,7 +332,7 @@ class TS3 {
|
||||
if (!isset($serverdetails[$virtualserver_id])) {
|
||||
$virtualserver_ip=(isset($virtualserver_ip)) ? $virtualserver_ip :'';
|
||||
$virtualserver_dns=(isset($virtualserver_dns)) ? $virtualserver_dns :'';
|
||||
$serverdetails[$virtualserver_id]=array(
|
||||
$serverdetails[$virtualserver_id] = array(
|
||||
'virtualserver_ip' => $virtualserver_ip,
|
||||
'virtualserver_maxclients' => $server['virtualserver_maxclients'],
|
||||
'virtualserver_port' => $server['virtualserver_port'],
|
||||
@ -477,7 +477,7 @@ class TS3 {
|
||||
}
|
||||
$this->SendCommand("privilegekeylist");
|
||||
foreach ($this->SendCommand("privilegekeylist") as $key) {
|
||||
if (isset($key['token_type']) and $key['token_type']==0 and isset($admingroupid)) $return[]=array('token' => $key['token'],'groupname' => $this->ReplaceFromTS3($admingroupid[$key['token_id1']]));
|
||||
if (isset($key['token_type']) and $key['token_type']==0 and isset($admingroupid)) $return[] = array('token' => $key['token'], 'groupname' => $this->ReplaceFromTS3($admingroupid[$key['token_id1']]));
|
||||
}
|
||||
} else {
|
||||
$return=$useserver[0]['msg'];
|
||||
@ -538,7 +538,7 @@ class TS3 {
|
||||
if (isset($useserver[0]['msg']) and strtolower($useserver[0]['msg'])==strtolower('ok')) {
|
||||
$servergroups=$this->SendCommand('servergrouplist');
|
||||
foreach ($servergroups as $servergroup) {
|
||||
$return[]=array('id' => $servergroup['sgid'],'name' => $this->ReplaceFromTS3($servergroup['name']),'type' => $servergroup['type']);
|
||||
$return[] = array('id' => $servergroup['sgid'], 'name' => $this->ReplaceFromTS3($servergroup['name']),'type' => $servergroup['type']);
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
@ -662,7 +662,7 @@ function tsbackup ($action,$sship,$sshport,$sshuser,$keyuse,$sshkey,$sshpw,$noti
|
||||
}
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['mail_serverdown'] == 'Y') {
|
||||
sendmail('emaildown', $row['id'],'TS3 Master '.$sship.' ( '.$bad.' )','');
|
||||
sendmail('emaildown', $row['id'], 'TS3 Master '.$sship.' ( '.$bad.' )','');
|
||||
}
|
||||
}
|
||||
$query = $sql->prepare("UPDATE `voice_masterserver` SET `notified`='Y' WHERE `ssh2ip`=? AND `resellerid`=? LIMIT 1");
|
||||
@ -674,8 +674,8 @@ function tsbackup ($action,$sship,$sshport,$sshuser,$keyuse,$sshkey,$sshpw,$noti
|
||||
}
|
||||
function tsdns ($action,$sship,$sshport,$sshuser,$keyuse,$sshkey,$sshpw,$notified,$path,$bitversion,$tsip,$tsport,$tsdns,$reseller_id,$sql,$maxnotified=2) {
|
||||
if ($keyuse=="Y") {
|
||||
$pubkey=EASYWIDIR."/keys/".$sshkey.".pub";
|
||||
$key=EASYWIDIR."/keys/".$sshkey;
|
||||
$pubkey=EASYWIDIR . "/keys/".$sshkey.".pub";
|
||||
$key=EASYWIDIR . "/keys/".$sshkey;
|
||||
if (file_exists($pubkey) and file_exists($key)) {
|
||||
$ssh2= @ssh2_connect($sship,$sshport, array('hostkey' => 'ssh-rsa'));
|
||||
} else {
|
||||
@ -803,7 +803,7 @@ function tsdns ($action,$sship,$sshport,$sshuser,$keyuse,$sshkey,$sshpw,$notifie
|
||||
if ($configLine!='' and !preg_match('/^#(|\s+)(.*)$/',$configLine)) {
|
||||
$splittedLine=preg_split('/\=/',$configLine,-1,PREG_SPLIT_NO_EMPTY);
|
||||
if (isset($splittedLine[1])) {
|
||||
$usedIPs[]=array('dns' => $splittedLine[0],'address' => $splittedLine[1]);
|
||||
$usedIPs[] = array('dns' => $splittedLine[0],'address' => $splittedLine[1]);
|
||||
} else {
|
||||
$usedIPs[] = $configLine;
|
||||
}
|
||||
@ -814,7 +814,7 @@ function tsdns ($action,$sship,$sshport,$sshuser,$keyuse,$sshkey,$sshpw,$notifie
|
||||
foreach ($tsip as $newLine) {
|
||||
$splittedLine=preg_split('/\=/',strtolower($newLine),-1,PREG_SPLIT_NO_EMPTY);
|
||||
if (isset($splittedLine[1]) and !array_key_exists($splittedLine[1],$usedIPs)) {
|
||||
$usedIPs[]=array('dns' => $splittedLine[0],'address' => $splittedLine[1]);
|
||||
$usedIPs[] = array('dns' => $splittedLine[0],'address' => $splittedLine[1]);
|
||||
}
|
||||
}
|
||||
function array_multi_dimensional_unique($multi){
|
||||
@ -871,7 +871,7 @@ function tsdns ($action,$sship,$sshport,$sshuser,$keyuse,$sshkey,$sshpw,$notifie
|
||||
}
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['mail_serverdown'] == 'Y') {
|
||||
sendmail('emaildown', $row['id'],'TS3 Master '.$sship.' ( '.$bad.' )','');
|
||||
sendmail('emaildown', $row['id'], 'TS3 Master '.$sship.' ( '.$bad.' )','');
|
||||
}
|
||||
}
|
||||
$query = $sql->prepare("UPDATE `voice_masterserver` SET `notified`=`notified`+1 WHERE `ssh2ip`=? AND `resellerid`=? LIMIT 1");
|
||||
|
@ -269,7 +269,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgAlt='Inactive';
|
||||
}
|
||||
$twitter=($row['twitter'] == 'Y') ? $gsprache->yes : $gsprache->no;
|
||||
$table[]=array('id' => $row['feedID'],'img' => $imgName,'alt' => $imgAlt,'twitter' => $twitter,'feedUrl' => $row['feedUrl'],'active' => $row['active']);
|
||||
$table[] = array('id' => $row['feedID'], 'img' => $imgName,'alt' => $imgAlt,'twitter' => $twitter,'feedUrl' => $row['feedUrl'], 'active' => $row['active']);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$countp=$sql->prepare("SELECT COUNT(`feedID`) AS `amount` FROM `feeds_url` WHERE `resellerID`=?");
|
||||
|
@ -112,7 +112,7 @@ if ($ui->st('d','get') == 'ud') {
|
||||
$twitter=($row['twitter'] == 'Y') ? $gsprache->yes : $gsprache->no;
|
||||
$title=$row['title'];
|
||||
if (strlen($row['title'])<=1) $title=$row['link'];
|
||||
$table[]=array('id' => $row['newsID'],'active' => $row['active'],'img' => $imgName,'alt' => $imgAlt,'pubDate' => $row['pubDate'],'twitter' => $twitter,'title' => $title,'link' => $row['link'],'feedUrl' => $row['feedUrl']);
|
||||
$table[] = array('id' => $row['newsID'], 'active' => $row['active'], 'img' => $imgName,'alt' => $imgAlt,'pubDate' => $row['pubDate'], 'twitter' => $twitter,'title' => $title,'link' => $row['link'], 'feedUrl' => $row['feedUrl']);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$query = $sql->prepare("SELECT COUNT(`newsID`) AS `amount` FROM `feeds_news` WHERE `resellerID`=?");
|
||||
|
@ -66,7 +66,7 @@ if (isset($newsInclude) and $newsInclude==true) {
|
||||
$theCount = 0;
|
||||
foreach ($json->appnews->newsitems as $item) {
|
||||
if ($item->is_external_url==false and $theCount<$newsAmount) {
|
||||
$steamNews[$lookUpAppID][]=array('title' => $item->title,'description' => $item->contents,'link' => $item->url,'pubDate' => date('Y-m-d H:i:s',$item->date),'content' => $lookUpAppID,'author' => $item->author,'creator' => $item->author);
|
||||
$steamNews[$lookUpAppID][] = array('title' => $item->title,'description' => $item->contents,'link' => $item->url,'pubDate' => date('Y-m-d H:i:s',$item->date),'content' => $lookUpAppID,'author' => $item->author,'creator' => $item->author);
|
||||
$theCount++;
|
||||
}
|
||||
}
|
||||
@ -111,7 +111,7 @@ if (isset($newsInclude) and $newsInclude==true) {
|
||||
$theCount = 0;
|
||||
foreach ($json->appnews->newsitems as $item) {
|
||||
if ($item->is_external_url==false and $theCount<$newsAmount) {
|
||||
$feedsArray[0][]=array('title' => $item->title,'description' => $item->contents,'link' => $item->url,'pubDate' => date('Y-m-d H:i:s',$item->date),'content' => $lookUpAppID,'author' => $item->author,'creator' => $item->author);
|
||||
$feedsArray[0][] = array('title' => $item->title,'description' => $item->contents,'link' => $item->url,'pubDate' => date('Y-m-d H:i:s',$item->date),'content' => $lookUpAppID,'author' => $item->author,'creator' => $item->author);
|
||||
$theCount++;
|
||||
}
|
||||
}
|
||||
@ -140,13 +140,13 @@ if (isset($newsInclude) and $newsInclude==true) {
|
||||
$content = '';
|
||||
$author=$tweet->user->name;
|
||||
$creator=$tweet->user->name;
|
||||
$feedsArray[$feedID][]=array('title' => $feedTitle,'description' => $description,'link' => $link,'pubDate' => $pubDate,'content' => $content,'author' => $author,'creator' => $creator);
|
||||
$feedsArray[$feedID][] = array('title' => $feedTitle,'description' => $description,'link' => $link,'pubDate' => $pubDate,'content' => $content,'author' => $author,'creator' => $creator);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (isset($printToConsole)) print "Getting Feed Updates for Feed ${row2['feedUrl']}\r\n";
|
||||
$port=80;
|
||||
if (strpos($row2['feedUrl'],'https://')) $port=443;
|
||||
if (strpos($row2['feedUrl'], 'https://')) $port=443;
|
||||
$domain=str_replace(array('https://','http://'),'', $row2['feedUrl']);
|
||||
$ex=explode('/',$domain);
|
||||
$domain=$ex[0];
|
||||
@ -162,9 +162,9 @@ if (isset($newsInclude) and $newsInclude==true) {
|
||||
if (!empty($row2['feedUrl']) and extension_loaded('zlib')) {
|
||||
$opts=array('http' => array('header' => "Accept-Encoding: gzip\r\n"));
|
||||
$context=stream_context_create($opts);
|
||||
$feed=fopen($row2['feedUrl'],'r', false,$context);
|
||||
$feed=fopen($row2['feedUrl'], 'r', false,$context);
|
||||
} else if (!empty($row2['feedUrl'])) {
|
||||
$feed=fopen($row2['feedUrl'],'r');
|
||||
$feed=fopen($row2['feedUrl'], 'r');
|
||||
}
|
||||
if ($feed) {
|
||||
$lastModified = true;
|
||||
@ -259,7 +259,7 @@ if (isset($newsInclude) and $newsInclude==true) {
|
||||
$description=base64_decode($description);
|
||||
}
|
||||
if($theCount<$newsAmount) {
|
||||
$feedsArray[$feedID][]=array('title' => $feedTitle,'description' => $description,'link' => $link,'pubDate' => $pubDate,'content' => $content,'author' => $author,'creator' => $creator);
|
||||
$feedsArray[$feedID][] = array('title' => $feedTitle,'description' => $description,'link' => $link,'pubDate' => $pubDate,'content' => $content,'author' => $author,'creator' => $creator);
|
||||
}
|
||||
$theCount++;
|
||||
}
|
||||
|
@ -1578,16 +1578,16 @@ if (!function_exists('passwordgenerate')) {
|
||||
$tokenLifeTime = '+40 minutes';
|
||||
|
||||
if ($ui->id('id', 10, 'get') and $ui->smallletters('d', 10, 'get')) {
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')][$ui->smallletters('d', 10, 'get')][$ui->id('id', 10, 'get')]=array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')][$ui->smallletters('d', 10, 'get')][$ui->id('id', 10, 'get')] = array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
|
||||
} else if (!$ui->id('id', 10, 'get') and $ui->smallletters('d', 10, 'get')) {
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')][$ui->smallletters('d', 10, 'get')]=array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')][$ui->smallletters('d', 10, 'get')] = array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
|
||||
} else if ($ui->id('id', 10, 'get') and !$ui->smallletters('d', 10, 'get')) {
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')][$ui->id('id', 10, 'get')]=array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')][$ui->id('id', 10, 'get')] = array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
|
||||
} else {
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')]=array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
$_SESSION[$ui->smallletters('w', 10, 'get')] = array('t' => $token,'d' => strtotime($tokenLifeTime));
|
||||
}
|
||||
|
||||
return $token;
|
||||
|
@ -100,21 +100,21 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
} else {
|
||||
$percenserver = 0;
|
||||
}
|
||||
$serverusage[$rootid]=array('slots' => $percentslots,'server' => $percenserver);
|
||||
$serverusage[$rootid] = array('slots' => $percentslots,'server' => $percenserver);
|
||||
if (!isset($i)) $i = 0;
|
||||
if (!isset($available)) $available = 0;
|
||||
$ips=array($row['ip']);
|
||||
foreach (ipstoarray($row['altips']) as $ip) {
|
||||
$ips[] = $ip;
|
||||
}
|
||||
$table2[]=array('id' => $rootid,'ip' => implode(' / ', array_unique($ips)));
|
||||
$table2[] = array('id' => $rootid,'ip' => implode(' / ', array_unique($ips)));
|
||||
}
|
||||
|
||||
$query = $sql->prepare("SELECT s.`description`,s.`shorten` FROM `servertypes` s WHERE s.`resellerid`=? AND EXISTS (SELECT m.`id` FROM `rservermasterg` m WHERE m.`servertypeid`=s.`id` LIMIT 1) ORDER BY s.`description` ASC");
|
||||
$query->execute(array($reseller_id));
|
||||
$table3 = array();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table3[]=array('shorten' => $row['shorten'],'description' => $row['description']);
|
||||
$table3[] = array('shorten' => $row['shorten'], 'description' => $row['description']);
|
||||
}
|
||||
|
||||
$installedserver = 0;
|
||||
@ -189,11 +189,11 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
} else {
|
||||
$upload = 0;
|
||||
}
|
||||
$table[]=array('description' => $row['description'],'id' => $row['id'],'steamgame' => $row['steamgame'],'shorten' => $shorten,'gamebinary' => $row['gamebinary'],'binarydir' => $row['binarydir'],'modfolder' => $row['modfolder'],'fps' => $row['fps'],'slots' => $row['slots'],'map' => $row['map'],'mapGroup' => $row['mapGroup'],'cmd' => $cmd,'tic' => $row['tic'],'upload' => $upload,'qstat' => $qstat,'installing' => $installing);
|
||||
$table[] = array('description' => $row['description'], 'id' => $row['id'], 'steamgame' => $row['steamgame'], 'shorten' => $shorten,'gamebinary' => $row['gamebinary'], 'binarydir' => $row['binarydir'], 'modfolder' => $row['modfolder'], 'fps' => $row['fps'], 'slots' => $row['slots'], 'map' => $row['map'], 'mapGroup' => $row['mapGroup'], 'cmd' => $cmd,'tic' => $row['tic'], 'upload' => $upload,'qstat' => $qstat,'installing' => $installing);
|
||||
$i++;
|
||||
}
|
||||
if ($query->rowcount()==0) {
|
||||
$table[]=array('installing' => true);
|
||||
$table[] = array('installing' => true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -527,7 +527,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
$query = $sql->prepare("SELECT s.`id`,t.`description`,t.`shorten` FROM `serverlist` s LEFT JOIN `servertypes` t ON s.`servertype`=t.`id` WHERE s.`switchID`=? AND s.`resellerid`=?");
|
||||
$query->execute(array($server_id,$reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[]=array('id' => $row['id'],'description' => $row['description'],'shorten' => $row['shorten']);
|
||||
$table[] = array('id' => $row['id'], 'description' => $row['description'], 'shorten' => $row['shorten']);
|
||||
}
|
||||
if (isset($serverip) and isset($port)) {
|
||||
$template_file = 'admin_gserver_dl.tpl';
|
||||
@ -535,7 +535,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
$template_file = 'admin_404.tpl';
|
||||
}
|
||||
} else if ($action == 'dl') {
|
||||
if ($ui->w('safeDelete',1,'post') != 'D') include(EASYWIDIR."/stuff/ssh_exec.php");
|
||||
if ($ui->w('safeDelete',1,'post') != 'D') include(EASYWIDIR . "/stuff/ssh_exec.php");
|
||||
$query = $sql->prepare("SELECT `newlayout`,`serverip`,`port`,`userid`,`rootID`,AES_DECRYPT(`ppassword`,?) AS `protectedpw`,AES_DECRYPT(`ftppassword`,?) AS `ftpPWD` FROM `gsswitch` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$query->execute(array($aeskey,$aeskey,$server_id,$reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
@ -691,7 +691,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
}
|
||||
$gamestringtemp .= "_$shorten";
|
||||
$cmd=stripslashes($row2['cmd']);
|
||||
$table[]=array('id' => $row2['id'],'shorten' => $row2['shorten'],'description' => $row2['description'],'gamebinary' => $row2['gamebinary'],'binarydir' => $row2['binarydir'],'modfolder' => $row2['modfolder'],'fps' => $row2['fps'],'map' => $row2['map'],'mapGroup' => $row2['mapGroup'],'cmd' => $cmd,'tic' => $row2['tic'],'qstat' => $qstat,'upload' => $upload,'uploaddir' => $uploaddir,'userfps' => $row2['userfps'],'usertick' => $row2['usertick'],'usermap' => $row2['usermap'],'user_uploaddir' => $row2['user_uploaddir'],'owncmd' => $row2['owncmd'],'style' => $style);
|
||||
$table[] = array('id' => $row2['id'], 'shorten' => $row2['shorten'], 'description' => $row2['description'], 'gamebinary' => $row2['gamebinary'], 'binarydir' => $row2['binarydir'], 'modfolder' => $row2['modfolder'], 'fps' => $row2['fps'], 'map' => $row2['map'], 'mapGroup' => $row2['mapGroup'], 'cmd' => $cmd,'tic' => $row2['tic'], 'qstat' => $qstat,'upload' => $upload,'uploaddir' => $uploaddir,'userfps' => $row2['userfps'], 'usertick' => $row2['usertick'], 'usermap' => $row2['usermap'], 'user_uploaddir' => $row2['user_uploaddir'], 'owncmd' => $row2['owncmd'], 'style' => $style);
|
||||
$i++;
|
||||
}
|
||||
$gamestring = $i.$gamestringtemp;
|
||||
@ -979,7 +979,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
$query2->execute(array($server_id,$reseller_id));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$servertemplate=($row['serverid'] == $row2['id']) ? $row2['servertemplate'] : '';
|
||||
$table[]=array('id' => $row2['id'],'description' => $row2['description'],'shorten' => $row2['shorten'],'servertemplate' => $servertemplate);
|
||||
$table[] = array('id' => $row2['id'], 'description' => $row2['description'], 'shorten' => $row2['shorten'], 'servertemplate' => $servertemplate);
|
||||
}
|
||||
}
|
||||
if (isset($serverip) and isset($port)) {
|
||||
@ -1037,7 +1037,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
$ftppass = $row['cftppass'];
|
||||
if ($row['newlayout'] == 'Y') $customer = $customer . '-' . $row['id'];
|
||||
if ($ui->active('type','post') == 'Y') {
|
||||
$cmds=gsrestart($row['id'],'so',$aeskey,$reseller_id);
|
||||
$cmds=gsrestart($row['id'], 'so',$aeskey,$reseller_id);
|
||||
$cmds[]="./control.sh add ${customer} ${ftppass} ${sshuser} ".passwordgenerate(10);
|
||||
$cmds[]="sudo -u ${customer} ./control.sh reinstserver ${customer} ${gamestring} ${gsfolder} \"".implode(' ',$template).'"';
|
||||
$loguseraction="%reinstall% %gserver% ${serverip}:${port}";
|
||||
@ -1187,7 +1187,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lG']) and $licenc
|
||||
$nameremoved="<div class=\"error\">".$sprache->nameremoved."</div>";
|
||||
}
|
||||
}
|
||||
$table[]=array('serveractive' => $serveractive,'shorten' => $row['shorten'],'useractive' => $row['useractive'],'cname' => $row['cname'],'names' => trim($row['name'] . ' ' . $row['vname']),'img' => $imgName,'alt' => $imgAlt,'premoved' => $premoved,'nameremoved' => $nameremoved,'server' => $server,'serverid' => $serverid,'name' => $name,'type' => $type,'map' => $map,'numplayers' => $numplayers,'maxplayers' => $maxplayers,'id' => $userid,'lendserver' => $lendserver,'active' => $row['active'],'jobPending' => $jobPending);
|
||||
$table[] = array('serveractive' => $serveractive,'shorten' => $row['shorten'], 'useractive' => $row['useractive'], 'cname' => $row['cname'], 'names' => trim($row['name'] . ' ' . $row['vname']),'img' => $imgName,'alt' => $imgAlt,'premoved' => $premoved,'nameremoved' => $nameremoved,'server' => $server,'serverid' => $serverid,'name' => $name,'type' => $type,'map' => $map,'numplayers' => $numplayers,'maxplayers' => $maxplayers,'id' => $userid,'lendserver' => $lendserver,'active' => $row['active'], 'jobPending' => $jobPending);
|
||||
}
|
||||
$next = $start+$amount;
|
||||
$vor=($colcount>$next) ? $start+$amount : $start;
|
||||
|
@ -84,8 +84,8 @@ if (isset($action) and $action == 'dl') {
|
||||
$pselect->execute();
|
||||
foreach ($pselect->fetchall() as $row) {
|
||||
$logdate=explode(' ', $row['bantime']);
|
||||
if (isset($row['id']) and isid($row['id'],'30') and isset($logdate[1])) {
|
||||
$table[]=array('id' => $row['id'],'logday' => $logdate[0],'loghour' => $logdate[0],'badip' => $row['badip'],'failcount' => $row['failcount'],'reason' => $row['reason']);
|
||||
if (isset($row['id']) and isid($row['id'], '30') and isset($logdate[1])) {
|
||||
$table[] = array('id' => $row['id'], 'logday' => $logdate[0],'loghour' => $logdate[0],'badip' => $row['badip'], 'failcount' => $row['failcount'], 'reason' => $row['reason']);
|
||||
}
|
||||
}
|
||||
$pselect=$sql->prepare("SELECT `faillogins` FROM `settings` WHERE `resellerid`='0' LIMIT 1");
|
||||
|
@ -85,7 +85,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
|
||||
$query4 = $sql->prepare("DELETE FROM `gsswitch` WHERE `id`=? LIMIT 1");
|
||||
$query4->execute(array($row2['affectedID']));
|
||||
customColumns('G', $row2['affectedID'],'del');
|
||||
customColumns('G', $row2['affectedID'], 'del');
|
||||
$query4 = $sql->prepare("DELETE s.* FROM `serverlist` s LEFT JOIN `gsswitch` g ON s.`switchID`=g.`id` WHERE g.`id` IS NULL");
|
||||
$query4->execute();
|
||||
$query4 = $sql->prepare("DELETE a.* FROM `addons_installed` a LEFT JOIN `serverlist` s ON a.`serverid`=s.`id` WHERE s.`id` IS NULL");
|
||||
@ -111,7 +111,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($active != $newActive and $newActive == 'N') {
|
||||
$ftppass=passwordgenerate(15);
|
||||
$ftppass2=passwordgenerate(15);
|
||||
$tmp = gsrestart($row2['affectedID'],'so',$aeskey, $row['resellerID']);
|
||||
$tmp = gsrestart($row2['affectedID'], 'so',$aeskey, $row['resellerID']);
|
||||
if (is_array($tmp)) {
|
||||
foreach($tmp as $t) {
|
||||
$cmds[] = $t;
|
||||
@ -129,7 +129,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$query4->execute(array($row2['jobID']));
|
||||
$command=$gsprache->mod.' gsswitchID: '.$row2['affectedID'].' name: '.$row2['name'].' gsswitchID:'.$row2['affectedID'];
|
||||
} else if (isset($i) and $row2['action'] == 're' and isset($customer)) {
|
||||
$tmp = gsrestart($row2['affectedID'],'re',$aeskey, $row2['resellerID']);
|
||||
$tmp = gsrestart($row2['affectedID'], 're',$aeskey, $row2['resellerID']);
|
||||
if (is_array($tmp)) {
|
||||
foreach($tmp as $t) {
|
||||
$cmds[] = $t;
|
||||
@ -139,7 +139,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$query4->execute(array($row2['jobID']));
|
||||
$command='(Re)Start gsswitchID: '.$row2['affectedID'].' name: '.$row2['name'];
|
||||
} else if (isset($i) and $row2['action'] == 'st' and isset($customer)) {
|
||||
$tmp = gsrestart($row2['affectedID'],'so',$aeskey, $row2['resellerID']);
|
||||
$tmp = gsrestart($row2['affectedID'], 'so',$aeskey, $row2['resellerID']);
|
||||
if (is_array($tmp)) foreach($tmp as $t) $cmds[] = $t;
|
||||
$query4 = $sql->prepare("UPDATE `jobs` SET `status`='3' WHERE `jobID`=? AND `type`='gs' LIMIT 1");
|
||||
$query4->execute(array($row2['jobID']));
|
||||
|
@ -162,7 +162,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
else if ($row['action'] == 'ri') $action='(Re)Install';
|
||||
else if ($row['action'] == 'rc') $action='Recovery Mode';
|
||||
else $action = '';
|
||||
$table[]=array('jobID' => $row['jobID'],'date' => $date,'name' => $row['name'],'api' => $api,'status' => $row['status'],'img' => $imgName,'alt' => $imgAlt,'userID' => $row['userID'],'type' => $type[$row['type']],'action' => $action);
|
||||
$table[] = array('jobID' => $row['jobID'], 'date' => $date,'name' => $row['name'], 'api' => $api,'status' => $row['status'], 'img' => $imgName,'alt' => $imgAlt,'userID' => $row['userID'], 'type' => $type[$row['type']],'action' => $action);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
if ($reseller_id==0) {
|
||||
|
@ -74,7 +74,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$remotesql->DelDB($dbname);
|
||||
$delete=$sql->prepare("DELETE FROM `mysql_external_dbs` WHERE `id`=? LIMIT 1");
|
||||
$delete->execute(array($row2['affectedID']));
|
||||
customColumns('M', $row2['affectedID'],'del');
|
||||
customColumns('M', $row2['affectedID'], 'del');
|
||||
} else if ($row2['action'] == 'ad') {
|
||||
$command=$gsprache->add.' MYSQLDBID: '.$row2['affectedID'].' DBName: '.$row['dbname'];
|
||||
$remotesql->AddDB($dbname,$password,$ips,$max_queries_per_hour,$max_connections_per_hour,$max_updates_per_hour,$max_userconnections_per_hour);
|
||||
|
@ -47,7 +47,7 @@ $query6 = $sql->prepare("UPDATE `jobs` SET `status`='3' WHERE `jobID`=? AND `typ
|
||||
$query7 = $sql->prepare("UPDATE `voice_dns` SET `active`=?,`jobPending`='N' WHERE `dnsID`=? LIMIT 1");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$query2->execute(array(':aeskey' => $aeskey,':id' => $row['hostID'],':reseller_id' => $row['resellerID']));
|
||||
$query2->execute(array(':aeskey' => $aeskey,':id' => $row['hostID'], ':reseller_id' => $row['resellerID']));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$publickey=$row2['publickey'];
|
||||
$queryip=$row2['ssh2ip'];
|
||||
@ -70,7 +70,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row3['action'] == 'dl') {
|
||||
$command=$gsprache->del.' TS DNS ID: '.$row3['affectedID'].' name:'.$row4['dns'];
|
||||
$query5->execute(array($row3['affectedID'], $row['resellerID']));
|
||||
customColumns('T', $row3['affectedID'],'del');
|
||||
customColumns('T', $row3['affectedID'], 'del');
|
||||
$dnsAction='dl';
|
||||
} else if ($row3['action'] == 'ad') {
|
||||
$command=$gsprache->add.' TS DNS ID: '.$row3['affectedID'].' name:'.$row4['dns'];
|
||||
|
@ -73,7 +73,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
}
|
||||
}
|
||||
}
|
||||
customColumns('U', $row['affectedID'],'del');
|
||||
customColumns('U', $row['affectedID'], 'del');
|
||||
$query2 = $sql->prepare("DELETE FROM `userdata` WHERE `id`=? LIMIT 1");
|
||||
$query2->execute(array($row['affectedID']));
|
||||
$command=$gsprache->del.' userID: '.$row['affectedID'].' name:'.$row['name'];
|
||||
|
@ -41,7 +41,7 @@ $query = $sql->prepare("SELECT `hostID`,`resellerID` FROM `jobs` WHERE (`status`
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$query2 = $sql->prepare("SELECT `active`,`usedns`,`defaultdns`,`bitversion`,`defaultname`,`defaultwelcome`,`defaulthostbanner_url`,`defaulthostbanner_gfx_url`,`defaulthostbutton_tooltip`,`defaulthostbutton_url`,`defaulthostbutton_gfx_url`,`queryport`,AES_DECRYPT(`querypassword`,:aeskey) AS `decryptedquerypassword`,`maxserver`,`maxslots`,`rootid`,`addedby`,`publickey`,`ssh2ip`,AES_DECRYPT(`ssh2port`,:aeskey) AS `decryptedssh2port`,AES_DECRYPT(`ssh2user`,:aeskey) AS `decryptedssh2user`,AES_DECRYPT(`ssh2password`,:aeskey) AS `decryptedssh2password`,`serverdir`,`keyname`,`notified` FROM `voice_masterserver` WHERE `id`=:id AND `resellerid`=:reseller_id LIMIT 1");
|
||||
$query2->execute(array(':aeskey' => $aeskey,':id' => $row['hostID'],':reseller_id' => $row['resellerID']));
|
||||
$query2->execute(array(':aeskey' => $aeskey,':id' => $row['hostID'], ':reseller_id' => $row['resellerID']));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$active=$row2['active'];
|
||||
$addedby=$row2['addedby'];
|
||||
@ -114,7 +114,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$connection->DelServer($localserverid);
|
||||
$pdelete=$sql->prepare("DELETE FROM `voice_server` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
$pdelete->execute(array($row2['affectedID'], $row['resellerID']));
|
||||
customColumns('T', $row2['affectedID'],'del');
|
||||
customColumns('T', $row2['affectedID'], 'del');
|
||||
$update=$sql->prepare("UPDATE `jobs` SET `status`='3' WHERE `jobID`=? AND `type`='vo' LIMIT 1");
|
||||
$update->execute(array($row2['jobID']));
|
||||
$template_file = $spracheResponse->table_del;
|
||||
|
@ -68,30 +68,30 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$active=$row['active'];
|
||||
$activeGS=$row['activeGS'];
|
||||
$activeVS=$row['activeVS'];
|
||||
$mintime=(int)$row['mintime'];
|
||||
$maxtime=(int)$row['maxtime'];
|
||||
$timesteps=(int)$row['timesteps'];
|
||||
$minplayer=(int)$row['minplayer'];
|
||||
$maxplayer=(int)$row['maxplayer'];
|
||||
$playersteps=(int)$row['playersteps'];
|
||||
$mintimeRegistered=(int)$row['mintimeRegistered'];
|
||||
$maxtimeRegistered=(int)$row['maxtimeRegistered'];
|
||||
$timestepsRegistered=(int)$row['timestepsRegistered'];
|
||||
$minplayerRegistered=(int)$row['minplayerRegistered'];
|
||||
$maxplayerRegistered=(int)$row['maxplayerRegistered'];
|
||||
$playerstepsRegistered=(int)$row['playerstepsRegistered'];
|
||||
$vomintime=(int)$row['vomintime'];
|
||||
$vomaxtime=(int)$row['vomaxtime'];
|
||||
$votimesteps=(int)$row['votimesteps'];
|
||||
$vominplayer=(int)$row['vominplayer'];
|
||||
$vomaxplayer=(int)$row['vomaxplayer'];
|
||||
$voplayersteps=(int)$row['voplayersteps'];
|
||||
$vomintimeRegistered=(int)$row['vomintimeRegistered'];
|
||||
$vomaxtimeRegistered=(int)$row['vomaxtimeRegistered'];
|
||||
$votimestepsRegistered=(int)$row['votimestepsRegistered'];
|
||||
$vominplayerRegistered=(int)$row['vominplayerRegistered'];
|
||||
$vomaxplayerRegistered=(int)$row['vomaxplayerRegistered'];
|
||||
$voplayerstepsRegistered=(int)$row['voplayerstepsRegistered'];
|
||||
$mintime= (int) $row['mintime'];
|
||||
$maxtime= (int) $row['maxtime'];
|
||||
$timesteps= (int) $row['timesteps'];
|
||||
$minplayer= (int) $row['minplayer'];
|
||||
$maxplayer= (int) $row['maxplayer'];
|
||||
$playersteps= (int) $row['playersteps'];
|
||||
$mintimeRegistered= (int) $row['mintimeRegistered'];
|
||||
$maxtimeRegistered= (int) $row['maxtimeRegistered'];
|
||||
$timestepsRegistered= (int) $row['timestepsRegistered'];
|
||||
$minplayerRegistered= (int) $row['minplayerRegistered'];
|
||||
$maxplayerRegistered= (int) $row['maxplayerRegistered'];
|
||||
$playerstepsRegistered= (int) $row['playerstepsRegistered'];
|
||||
$vomintime= (int) $row['vomintime'];
|
||||
$vomaxtime= (int) $row['vomaxtime'];
|
||||
$votimesteps= (int) $row['votimesteps'];
|
||||
$vominplayer= (int) $row['vominplayer'];
|
||||
$vomaxplayer= (int) $row['vomaxplayer'];
|
||||
$voplayersteps= (int) $row['voplayersteps'];
|
||||
$vomintimeRegistered= (int) $row['vomintimeRegistered'];
|
||||
$vomaxtimeRegistered= (int) $row['vomaxtimeRegistered'];
|
||||
$votimestepsRegistered= (int) $row['votimestepsRegistered'];
|
||||
$vominplayerRegistered= (int) $row['vominplayerRegistered'];
|
||||
$vomaxplayerRegistered= (int) $row['vomaxplayerRegistered'];
|
||||
$voplayerstepsRegistered= (int) $row['voplayerstepsRegistered'];
|
||||
$shutdownempty=$row['shutdownempty'];
|
||||
$shutdownemptytime=$row['shutdownemptytime'];
|
||||
$ftpupload=$row['ftpupload'];
|
||||
@ -134,7 +134,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT s.`switchID`,g.`rootID` FROM `serverlist` s INNER JOIN `gsswitch` g ON s.`switchID`=g.`id` WHERE s.`id`=? AND s.`resellerid`=? LIMIT 1");
|
||||
$query->execute(array($id,$reseller_id));
|
||||
foreach($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$cmds=gsrestart($row['switchID'],'so',$aeskey,$reseller_id);
|
||||
$cmds=gsrestart($row['switchID'], 'so',$aeskey,$reseller_id);
|
||||
ssh2_execute('gs', $row['rootID'],$cmds);
|
||||
}
|
||||
} else if ($servertype == 'v') {
|
||||
@ -216,7 +216,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
if ($servertype == 'g') {
|
||||
$query2->execute(array($serverid,$reseller_id));
|
||||
foreach($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$cmds=gsrestart($row2['switchID'],'so',$aeskey,$reseller_id);
|
||||
$cmds=gsrestart($row2['switchID'], 'so',$aeskey,$reseller_id);
|
||||
ssh2_execute('gs', $row['rootID'],$cmds);
|
||||
}
|
||||
} else if ($servertype == 'v') {
|
||||
@ -270,7 +270,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$shorten=$row2['type'];
|
||||
}
|
||||
}
|
||||
$table[]=array('id' => $id,'servertype' => $servertype,'server' => $server,'shorten' => $shorten,'password' => $password,'rcon' => $rcon,'slots' => $slots,'lenderip' => $lenderip,'lendtime' => $lendtime,'timeleft' => $timeleft);
|
||||
$table[] = array('id' => $id,'servertype' => $servertype,'server' => $server,'shorten' => $shorten,'password' => $password,'rcon' => $rcon,'slots' => $slots,'lenderip' => $lenderip,'lendtime' => $lendtime,'timeleft' => $timeleft);
|
||||
}
|
||||
}
|
||||
if (!isset($nextfree) or (isset($nextfree) and $gscount>0))$nextfree = 0;
|
||||
|
@ -111,7 +111,7 @@ foreach ($pselect->fetchall() as $row) {
|
||||
$replace=array($gsprache->modules,$gsprache->voiceserver,$gsprache->gameserver,$gsprache->user,$gsprache->groups,$gsprache->fastdownload,$gsprache->master,$gsprache->user,$gsprache->root,$gsprache->addon2,$gsprache->settings,$gsprache->virtual,$gsprache->support,$gsprache->reseller,$gsprache->hostsystem,'Easy Anti Cheat',$gssprache->resync,$gsprache->virtual . ' ' . $gsprache->template,$gsprache->template,$gsprache->voiceserver,'E-Mail '.$gsprache->settings,'TSDNS','TSDNS',$gssprache->protect,$gsprache->comments);
|
||||
$replacedwords=str_replace($placeholders,$replace,$replacedpics);
|
||||
$logdate=explode(' ', $row['logdate']);
|
||||
$table[]=array('logday' => $logdate[0],'loghour' => $logdate[1],'ip' => $ip,'hostname' => $hostname,'username' => $username,'useraction' => $replacedwords);
|
||||
$table[] = array('logday' => $logdate[0],'loghour' => $logdate[1],'ip' => $ip,'hostname' => $hostname,'username' => $username,'useraction' => $replacedwords);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
if ($reseller_id==0) {
|
||||
|
@ -91,8 +91,8 @@ if (isset($action) and $action == 'dl' and $ui->id('id',30,'post')) {
|
||||
$username=$row['cname'].' ('.$row['mail'].')';
|
||||
}
|
||||
$logdate=explode(' ', $row['date']);
|
||||
if (isset($row['id']) and isid($row['id'],'30') and isset($logdate[1])) {
|
||||
$table[]=array('id' => $row['id'],'logday' => $logdate[0],'loghour' => $logdate[1],'username' => $username,'topic' => $row['topic']);
|
||||
if (isset($row['id']) and isid($row['id'], '30') and isset($logdate[1])) {
|
||||
$table[] = array('id' => $row['id'], 'logday' => $logdate[0],'loghour' => $logdate[1],'username' => $username,'topic' => $row['topic']);
|
||||
}
|
||||
}
|
||||
$next=$start+$amount;
|
||||
|
@ -105,7 +105,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT r.`id` FROM `rservermasterg` r INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` WHERE r.`serverid`=? AND r.`resellerid`=? AND s.`shorten`=?");
|
||||
$query->execute(array($id,$reseller_id,$shorten));
|
||||
if ($query->rowCount()<1) {
|
||||
$table[]=array('id' => $gameid,'shorten' => $shorten,'description' => $description);
|
||||
$table[] = array('id' => $gameid,'shorten' => $shorten,'description' => $description);
|
||||
}
|
||||
}
|
||||
$template_file = "admin_master_add.tpl";
|
||||
@ -155,7 +155,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT r.`id`,s.`shorten`,s.`description` FROM `rservermasterg` r INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` WHERE r.`serverid`=? AND r.`resellerid`=? ORDER BY `description`");
|
||||
$query->execute(array($id,$reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[]=array('id' => $row['id'],'shorten' => $row['shorten'],'description' => $row['description']);
|
||||
$table[] = array('id' => $row['id'], 'shorten' => $row['shorten'], 'description' => $row['description']);
|
||||
}
|
||||
if (count($table)>0) {
|
||||
$template_file = "admin_master_dl.tpl";
|
||||
@ -254,7 +254,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$statusList[$shorten] = '16_installing';
|
||||
}
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'img' => $imgName,'alt' => $imgAlt,'ip' => $row['ip'],'os' => $row['os'],'bit' => $row['bitversion'],'description' => $description,'statusList' => $statusList,'active' => $row['active']);
|
||||
$table[] = array('id' => $row['id'], 'img' => $imgName,'alt' => $imgAlt,'ip' => $row['ip'], 'os' => $row['os'], 'bit' => $row['bitversion'], 'description' => $description,'statusList' => $statusList,'active' => $row['active']);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$countp=$sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `rserverdata` WHERE `resellerid`=?");
|
||||
@ -319,14 +319,14 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$table = array();
|
||||
$i = 0;
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[$i]['game']=array('shorten' => $row['shorten'],'description' => $row['description']);
|
||||
$table[$i]['game'] = array('shorten' => $row['shorten'], 'description' => $row['description']);
|
||||
$i++;
|
||||
}
|
||||
$query = $sql->prepare("SELECT d.`id`,d.`ip` FROM `rservermasterg` r INNER JOIN `rserverdata` d ON r.`serverid`=d.`id` INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` $where GROUP BY d.`id` ASC");
|
||||
$query->execute(array(':reseller_id' => $reseller_id));
|
||||
$i2 = 0;
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[$i2]['server']=array('id' => $row['id'],'ip' => $row['ip']);
|
||||
$table[$i2]['server'] = array('id' => $row['id'], 'ip' => $row['ip']);
|
||||
$i2++;
|
||||
}
|
||||
$query5 = $sql->prepare("SELECT s.`shorten` FROM `rservermasterg` r INNER JOIN `servertypes` s ON r.`servertypeid`=s.`id` WHERE r.`resellerid`=? GROUP BY s.`shorten` ORDER BY s.`shorten` ASC");
|
||||
|
@ -102,10 +102,10 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$ds = array();
|
||||
$query2->execute(array($row['id'],$reseller_id));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$ds[]=array('id' => $row2['id'],'address' => $row2['dbname'],'status' => ($row2['active'] == 'N') ? 2 : 1);
|
||||
$ds[] = array('id' => $row2['id'], 'address' => $row2['dbname'], 'status' => ($row2['active'] == 'N') ? 2 : 1);
|
||||
$i++;
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'img' => $imgName,'alt' => $imgAlt,'max_databases' => $row['max_databases'],'dbcount' => $i,'ip' => $row['ip'],'interface' => $row['interface'],'active' => $row['active'],'server' => $ds);
|
||||
$table[] = array('id' => $row['id'], 'img' => $imgName,'alt' => $imgAlt,'max_databases' => $row['max_databases'], 'dbcount' => $i,'ip' => $row['ip'], 'interface' => $row['interface'], 'active' => $row['active'], 'server' => $ds);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$vor=($colcount>$next) ? $start+$amount : $start;
|
||||
@ -245,7 +245,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$max_connections_per_hour=$row2['max_connections_per_hour'];
|
||||
$max_userconnections_per_hour=$row2['max_userconnections_per_hour'];
|
||||
}
|
||||
$table2[]=array('id' => $row2['id'],'ip' => $row2['ip']);
|
||||
$table2[] = array('id' => $row2['id'], 'ip' => $row2['ip']);
|
||||
}
|
||||
if (!isset($installed)) {
|
||||
$installed = 0;
|
||||
@ -507,7 +507,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$dbname=$row['dbname'];
|
||||
$jobPending=($row['jobPending'] == 'Y') ? $gsprache->yes: $gsprache->no;
|
||||
#https://github.com/easy-wi/developer/issues/42 column description added
|
||||
$table[]=array('id' => $row['id'],'uid' => $row['uid'],'img' => $imgName,'description' => $row['description'],'alt' => $imgAlt,'dbname' => $dbname,'cname' => $row['cname'],'names' => trim($row['name'] . ' ' . $row['vname']),'ip' => $row['ip'],'interface' => $row['interface'],'jobPending' => $jobPending,'active' => $row['active']);
|
||||
$table[] = array('id' => $row['id'], 'uid' => $row['uid'], 'img' => $imgName,'description' => $row['description'], 'alt' => $imgAlt,'dbname' => $dbname,'cname' => $row['cname'], 'names' => trim($row['name'] . ' ' . $row['vname']),'ip' => $row['ip'], 'interface' => $row['interface'], 'jobPending' => $jobPending,'active' => $row['active']);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$countp=$sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `mysql_external_dbs` WHERE `resellerid`=?");
|
||||
|
@ -184,7 +184,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query->execute(array($reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if(!isset($titleLanguages[$row['language']])) {
|
||||
$titleLanguages[$row['language']]=array('page' => getlanguagefile('page', $row['language'],0),'general' => getlanguagefile('general', $row['language'],0));
|
||||
$titleLanguages[$row['language']] = array('page' => getlanguagefile('page', $row['language'],0),'general' => getlanguagefile('general', $row['language'],0));
|
||||
}
|
||||
$commentDate='m.d.Y H:i';
|
||||
if ($user_language == 'de') $commentDate='d.m.Y H:i';
|
||||
@ -197,7 +197,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$link=$page_url. '/' . $row['language'] . '/' . szrp($titleLanguages[$row['language']]['general']->news) . '/' . szrp($row['title']).'/';
|
||||
}
|
||||
$table[]=array('pageid' => $row['pageid'],'title' => htmlentities($row['title']),'comment' => htmlentities($row['comment']),'commentID' => $row['commentID'],'date' => date($commentDate,strtotime($row['date'])),'authorname' => htmlentities($row['authorname']),'moderated' => $moderated,'spam' => $spam,'spamReason' => $row['spamReason'],'link' => $link);
|
||||
$table[] = array('pageid' => $row['pageid'], 'title' => htmlentities($row['title']),'comment' => htmlentities($row['comment']),'commentID' => $row['commentID'], 'date' => date($commentDate,strtotime($row['date'])),'authorname' => htmlentities($row['authorname']),'moderated' => $moderated,'spam' => $spam,'spamReason' => $row['spamReason'], 'link' => $link);
|
||||
}
|
||||
$pageamount = ceil($colcount / $amount);
|
||||
$link='<a href="admin.php?w=pc&o='.$o.'&a=';
|
||||
|
@ -43,9 +43,9 @@ if (!isset($page_include)) {
|
||||
die;
|
||||
}
|
||||
if (isset($page_name) and isid($page_name,10)) {
|
||||
$downloadID=(int)$page_name;
|
||||
$downloadID= (int) $page_name;
|
||||
} else if (isset($page_count) and isid($page_count,10)) {
|
||||
$downloadID=(int)$page_count;
|
||||
$downloadID= (int) $page_count;
|
||||
} else if ($ui->id('id', 10, 'get')) {
|
||||
$downloadID=$ui->id('id', 10, 'get');
|
||||
}
|
||||
@ -55,9 +55,9 @@ if (isset($downloadID)) {
|
||||
$query = $sql->prepare("SELECT d.*,t.`text` FROM `page_downloads` d LEFT JOIN `translations` t ON t.`type`='pd' AND t.`transID`=d.`fileID` AND t.`lang`=? WHERE d.`fileID`=? LIMIT 1");
|
||||
$query->execute(array($user_language,$downloadID));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if (($row['show'] == 'E' or ($row['show'] == 'A' and isset($admin_id)) or ($row['show'] == 'R' and (isset($user_id) or isset($admin_id)))) and file_exists(EASYWIDIR."/downloads/${row['fileID']}.${row['fileExtension']}")) {
|
||||
if (($row['show'] == 'E' or ($row['show'] == 'A' and isset($admin_id)) or ($row['show'] == 'R' and (isset($user_id) or isset($admin_id)))) and file_exists(EASYWIDIR . "/downloads/${row['fileID']}.${row['fileExtension']}")) {
|
||||
if (isset($startDownload)) {
|
||||
$fileWithPath=EASYWIDIR."/downloads/${row['fileID']}.${row['fileExtension']}";
|
||||
$fileWithPath=EASYWIDIR . "/downloads/${row['fileID']}.${row['fileExtension']}";
|
||||
$finfo=finfo_open(FILEINFO_MIME_TYPE);
|
||||
$contentType=finfo_file($finfo,$fileWithPath);
|
||||
finfo_close($finfo);
|
||||
@ -72,7 +72,7 @@ if (isset($downloadID)) {
|
||||
} else {
|
||||
header("Content-Disposition: attachment; filename=\"${row['fileName']}.${row['fileExtension']}\"");
|
||||
set_time_limit(0);
|
||||
$fp=@fopen(EASYWIDIR."/downloads/${row['fileID']}.${row['fileExtension']}","rb");
|
||||
$fp=@fopen(EASYWIDIR . "/downloads/${row['fileID']}.${row['fileExtension']}","rb");
|
||||
while(!feof($fp)) {
|
||||
print(@fread($fp,1024));
|
||||
ob_flush();
|
||||
@ -95,8 +95,8 @@ if (isset($downloadID)) {
|
||||
$query = $sql->prepare("SELECT d.*,t.`text` FROM `page_downloads` d LEFT JOIN `translations` t ON t.`type`='pd' AND t.`transID`=d.`fileID` AND t.`lang`=? ORDER BY d.`order`,d.`fileID`");
|
||||
$query->execute(array($user_language));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if (($row['show'] == 'E' or ($row['show'] == 'A' and isset($admin_id)) or ($row['show'] == 'R' and (isset($user_id) or isset($admin_id)))) and file_exists(EASYWIDIR."/downloads/${row['fileID']}.${row['fileExtension']}")) {
|
||||
$table[]=array('id' => $row['fileID'],'description' => $row['description'],'link' => (isset($seo) and $seo== 'Y') ? $page_data->pages['downloads']['link'].'get/'.$row['fileID'].'/' : $page_data->pages['downloads']['link'].'&action=get&id='.$row['fileID'],'text' => $row['text']);
|
||||
if (($row['show'] == 'E' or ($row['show'] == 'A' and isset($admin_id)) or ($row['show'] == 'R' and (isset($user_id) or isset($admin_id)))) and file_exists(EASYWIDIR . "/downloads/${row['fileID']}.${row['fileExtension']}")) {
|
||||
$table[] = array('id' => $row['fileID'], 'description' => $row['description'], 'link' => (isset($seo) and $seo== 'Y') ? $page_data->pages['downloads']['link'].'get/'.$row['fileID'].'/' : $page_data->pages['downloads']['link'].'&action=get&id='.$row['fileID'], 'text' => $row['text']);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$displayNone='display_none';
|
||||
$checkbox='<input type="checkbox" name="language[]" value="'.$row.'" onclick="textdrop('."'".$row."'".');" /> ';
|
||||
}
|
||||
$foundLanguages[]=array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'description' => $description,'display' => $displayNone);
|
||||
$foundLanguages[] = array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'description' => $description,'display' => $displayNone);
|
||||
}
|
||||
}
|
||||
if (!$ui->st('action','post') and $ui->st('d','get') == 'ad') {
|
||||
@ -176,7 +176,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$template_file = ($query->rowCount()>0) ? $spracheResponse->table_del : 'admin_404.tpl';
|
||||
$query = $sql->prepare("DELETE FROM `translations` WHERE `type`='pd' AND `transID`=? AND `resellerID`=?");
|
||||
$query->execute(array($id,$reseller_id));
|
||||
unlink(EASYWIDIR."/downloads/${id}/${fileExtension}");
|
||||
unlink(EASYWIDIR . "/downloads/${id}/${fileExtension}");
|
||||
$template_file = $spracheResponse->table_del;
|
||||
}
|
||||
} else {
|
||||
@ -218,7 +218,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT `fileID`,`description`,`order`,`count` FROM `page_downloads` WHERE `resellerID`=? ORDER BY ${orderby}");
|
||||
$query->execute(array($reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[]=array('id' => $row['fileID'],'description' => $row['description'],'order' => $row['order'],'count' => $row['count']);
|
||||
$table[] = array('id' => $row['fileID'], 'description' => $row['description'], 'order' => $row['order'], 'count' => $row['count']);
|
||||
}
|
||||
$template_file = 'admin_page_downloads_list.tpl';
|
||||
}
|
@ -75,9 +75,9 @@ if ((isset($page_name) and $page_name!=szrp($page_sprache->older) and isset($pag
|
||||
$categoryLink=$page_url.'/index.php?site=categories&tag='.szrp($row2['name']);
|
||||
}
|
||||
if ($row2['type'] == 'tag') {
|
||||
$allTags[]=array('name' => $row2['name'],'link' => $tagLink,'href' => '<a href="'.$tagLink.'">'.$row2['name'].'</a>');
|
||||
$allTags[] = array('name' => $row2['name'], 'link' => $tagLink,'href' => '<a href="'.$tagLink.'">'.$row2['name'].'</a>');
|
||||
} else if ($row2['type'] == 'category') {
|
||||
$allCategories[]=array('name' => $row2['name'],'link' => $categoryLink,'href' => '<a href="'.$categoryLink.'">'.$row2['name'].'</a>');
|
||||
$allCategories[] = array('name' => $row2['name'], 'link' => $categoryLink,'href' => '<a href="'.$categoryLink.'">'.$row2['name'].'</a>');
|
||||
}
|
||||
}
|
||||
$pageLanguage=$row['language'];
|
||||
@ -176,7 +176,7 @@ if ((isset($page_name) and $page_name!=szrp($page_sprache->older) and isset($pag
|
||||
} else {
|
||||
$commentDate=date('m.d.Y H:i',strtotime($row['date']));
|
||||
}
|
||||
$commentArray[]=array('commentID' => $row['commentID'],'replyTo' => $row['replyTo'],'homepage' => $row['homepage'],'date' => $commentDate,'author' => htmlentities($row['authorname']),'comment' => htmlentities($row['comment']));
|
||||
$commentArray[] = array('commentID' => $row['commentID'], 'replyTo' => $row['replyTo'], 'homepage' => $row['homepage'], 'date' => $commentDate,'author' => htmlentities($row['authorname']),'comment' => htmlentities($row['comment']));
|
||||
}
|
||||
}
|
||||
$page_data->setCanonicalUrl($s,$textID);
|
||||
@ -259,11 +259,11 @@ if ((isset($page_name) and $page_name!=szrp($page_sprache->older) and isset($pag
|
||||
}
|
||||
$page_data->AddData('keywords', $row2['name']);
|
||||
if ($row2['type'] == 'tag') {
|
||||
$allTags[]=array('name' => $row2['name'],'link' => $tagLink,'href' => '<a href="'.$tagLink.'">'.$row2['name'].'</a>');
|
||||
$tag_tags[]=array('name' => $row2['name'],'link' => $tagLink,'href' => '<a href="'.$tagLink.'">'.$row2['name'].'</a>');
|
||||
$allTags[] = array('name' => $row2['name'], 'link' => $tagLink,'href' => '<a href="'.$tagLink.'">'.$row2['name'].'</a>');
|
||||
$tag_tags[] = array('name' => $row2['name'], 'link' => $tagLink,'href' => '<a href="'.$tagLink.'">'.$row2['name'].'</a>');
|
||||
} else if ($row2['type'] == 'category') {
|
||||
$allCategories[]=array('name' => $row2['name'],'link' => $categoryLink,'href' => '<a href="'.$categoryLink.'">'.$row2['name'].'</a>');
|
||||
$category_tags[]=array('name' => $row2['name'],'link' => $categoryLink,'href' => '<a href="'.$categoryLink.'">'.$row2['name'].'</a>');
|
||||
$allCategories[] = array('name' => $row2['name'], 'link' => $categoryLink,'href' => '<a href="'.$categoryLink.'">'.$row2['name'].'</a>');
|
||||
$category_tags[] = array('name' => $row2['name'], 'link' => $categoryLink,'href' => '<a href="'.$categoryLink.'">'.$row2['name'].'</a>');
|
||||
}
|
||||
}
|
||||
if ($row['language'] == 'de') {
|
||||
@ -277,7 +277,7 @@ if ((isset($page_name) and $page_name!=szrp($page_sprache->older) and isset($pag
|
||||
} else {
|
||||
$commentCount = 0;
|
||||
}
|
||||
$news[]=array('date' => $date,'title' => $page_title,'text' => $page_text,'href' => $href,'link' => $link,'tags' => $tag_tags,'categories' => $category_tags,'comments' => $row['comments'],'commentCount' => $commentCount,'authorname' => $row['authorname']);
|
||||
$news[] = array('date' => $date,'title' => $page_title,'text' => $page_text,'href' => $href,'link' => $link,'tags' => $tag_tags,'categories' => $category_tags,'comments' => $row['comments'], 'commentCount' => $commentCount,'authorname' => $row['authorname']);
|
||||
}
|
||||
if ($seo== 'Y') {
|
||||
$paginationLink=$page_url. '/' . $user_language . '/' . szrp($gsprache->news) . '/' . szrp($page_sprache->older).'/';
|
||||
|
@ -95,11 +95,11 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query2->execute(array($pageid,$lg,$ui->htmlcode('title','post',$lg),$ui->escaped('text','post',$lg),$reseller_id));
|
||||
$newpageid=$sql->lastInsertId();
|
||||
foreach (preg_split('/\,/',$ui->escaped('keywords','post',$lg),-1,PREG_SPLIT_NO_EMPTY) as $keyword) {
|
||||
$addterms[$lg][]=array('lid' => $newpageid,'keyword' => $keyword,'termtype' => 'tag');
|
||||
$addterms[$lg][] = array('lid' => $newpageid,'keyword' => $keyword,'termtype' => 'tag');
|
||||
}
|
||||
if (is_object($ui->escaped('categories','post',$lg))) {
|
||||
foreach ($ui->escaped('categories','post',$lg) as $category) {
|
||||
$addterms[$lg][]=array('lid' => $newpageid,'keyword' => $category,'termtype' => 'category');
|
||||
$addterms[$lg][] = array('lid' => $newpageid,'keyword' => $category,'termtype' => 'category');
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -195,7 +195,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$id=$ui->id('id',19,'get');
|
||||
$table = array();
|
||||
foreach ($lang_avail as $lg) {
|
||||
$table[$lg]=array('title' => false,'keywords' => false,'text' => false,'categories' => array());
|
||||
$table[$lg] = array('title' => false,'keywords' => false,'text' => false,'categories' => array());
|
||||
$keywords_used[$lg] = array();
|
||||
$categories_used[$lg] = array();
|
||||
}
|
||||
@ -217,7 +217,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$categories_used[$row2['language']][] = $row3['name'];
|
||||
}
|
||||
}
|
||||
$table[$row2['language']]=array('title' => $row2['title'],'keywords' => implode(', ',$keywords_used[$row2['language']]),'categories' => (is_array($categories_used[$row2['language']])) ? $categories_used[$row2['language']] : array(),'text' => $row2['text']);
|
||||
$table[$row2['language']] = array('title' => $row2['title'], 'keywords' => implode(', ',$keywords_used[$row2['language']]),'categories' => (is_array($categories_used[$row2['language']])) ? $categories_used[$row2['language']] : array(),'text' => $row2['text']);
|
||||
}
|
||||
}
|
||||
$subpages = array();
|
||||
@ -315,12 +315,12 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
}
|
||||
foreach ($keywords as $keyword) {
|
||||
if (!in_array($keyword,$keyword_exist)) {
|
||||
$addterms[$row['language']][]=array('lid' => $row['id'],'keyword' => $keyword,'termtype' => 'tag');
|
||||
$addterms[$row['language']][] = array('lid' => $row['id'], 'keyword' => $keyword,'termtype' => 'tag');
|
||||
}
|
||||
}
|
||||
foreach ($categories as $category) {
|
||||
if (!in_array($category,$category_exist)) {
|
||||
$addterms[$row['language']][]=array('lid' => $row['id'],'keyword' => $category,'termtype' => 'category');
|
||||
$addterms[$row['language']][] = array('lid' => $row['id'], 'keyword' => $category,'termtype' => 'category');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -337,10 +337,10 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query2->execute(array($id,$lg,$reseller_id));
|
||||
$newpageid=$query6->fetchColumn();
|
||||
foreach (preg_split('/\,/',$ui->escaped('keywords','post',$lg),-1,PREG_SPLIT_NO_EMPTY) as $keyword) {
|
||||
$addterms[$lg][]=array('lid' => $newpageid,'keyword' => $keyword,'termtype' => 'tag');
|
||||
$addterms[$lg][] = array('lid' => $newpageid,'keyword' => $keyword,'termtype' => 'tag');
|
||||
}
|
||||
foreach ($ui->escaped('categories','post',$lg) as $category) {
|
||||
$addterms[$lg][]=array('lid' => $newpageid,'category' => $category,'termtype' => 'category');
|
||||
$addterms[$lg][] = array('lid' => $newpageid,'category' => $category,'termtype' => 'category');
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -427,7 +427,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$table = array();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if(!isset($titleLanguages[$row['language']])) {
|
||||
$titleLanguages[$row['language']]=array('page' => getlanguagefile('page', $row['language'],0),'general' => getlanguagefile('general', $row['language'],0));
|
||||
$titleLanguages[$row['language']] = array('page' => getlanguagefile('page', $row['language'],0),'general' => getlanguagefile('general', $row['language'],0));
|
||||
}
|
||||
if ($row['released'] == '1') {
|
||||
$released=$gsprache->yes;
|
||||
@ -477,7 +477,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$date=$explodedtime2[1] . '.' . $explodedtime2[2] . '.' . $explodedtime2[0] . ' ' . $explodedtime[1];
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'author' => $author,'date' => $date,'released' => $released,'title' => $page_title,'link' => $link,'languages' => $p_languages);
|
||||
$table[] = array('id' => $row['id'], 'author' => $author,'date' => $date,'released' => $released,'title' => $page_title,'link' => $link,'languages' => $p_languages);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `page_pages` WHERE `resellerid`=?");
|
||||
|
@ -74,7 +74,7 @@ if (isset($page_id) and is_numeric($page_id)) {
|
||||
unset($breadcrumbID);
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$link=(isset($seo) and $seo== 'Y') ? $page_data->pageurl. '/' . $user_language . '/' . szrp($row['title']).'/' : $page_data->pageurl.'?s=page&l='.$user_language.'&id='.$row['id'];
|
||||
$breadcrumbs[]=array('href' => '<a href="'.$link.'">'.$row['title'].'</a>','link' => $link);
|
||||
$breadcrumbs[] = array('href' => '<a href="'.$link.'">'.$row['title'].'</a>','link' => $link);
|
||||
$breadcrumbID=$row['subpage'];
|
||||
$breadcrumbPageID=$row['id'];
|
||||
}
|
||||
@ -114,15 +114,15 @@ if (isset($page_id) and is_numeric($page_id)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
$searchFor['exact']=array_unique($searchFor['exact']);
|
||||
$searchFor['general']=array_unique($searchFor['general']);
|
||||
$searchFor['exact'] = array_unique($searchFor['exact']);
|
||||
$searchFor['general'] = array_unique($searchFor['general']);
|
||||
function returnRating ($value,$exact=false) {
|
||||
global $sql,$newssidebar_textlength,$page_data,$results,$seo;
|
||||
$query = $sql->prepare("SELECT t.`id`,p.`id` AS `pageID`,p.`type`,t.`shortlink`,t.`title`,t.`text`,t.`language` FROM `page_pages` p LEFT JOIN `page_pages_text` t ON p.`id`=t.`pageid` WHERE p.`released`=1 AND p.`resellerid`=0 AND (LOWER(t.`shortlink`) LIKE :search OR LOWER(t.`title`) LIKE :search OR LOWER(t.`text`) LIKE :search)");
|
||||
$query->execute(array(':search' => '%'.$value.'%'));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if(!isset($titleLanguages[$row['language']])) {
|
||||
$titleLanguages[$row['language']]=array('page' => getlanguagefile('page', $row['language'],0),'general' => getlanguagefile('general', $row['language'],0));
|
||||
$titleLanguages[$row['language']] = array('page' => getlanguagefile('page', $row['language'],0),'general' => getlanguagefile('general', $row['language'],0));
|
||||
}
|
||||
if (strlen($row['text'])<=$newssidebar_textlength) {
|
||||
$text=$row['text'];
|
||||
@ -172,7 +172,7 @@ if (isset($page_id) and is_numeric($page_id)) {
|
||||
} else {
|
||||
$hits=array($value);
|
||||
}
|
||||
$results[$row['id']]=array('textID' => $row['id'],'pageID' => $row['pageID'],'language' => $row['language'],'type' => $type,'worth' => $worth,'href' => $href,'title' => $title,'link' => $link,'text' => str_replace('%url%',$page_data->pageurl,$text),'hits' => $hits);
|
||||
$results[$row['id']] = array('textID' => $row['id'], 'pageID' => $row['pageID'], 'language' => $row['language'], 'type' => $type,'worth' => $worth,'href' => $href,'title' => $title,'link' => $link,'text' => str_replace('%url%',$page_data->pageurl,$text),'hits' => $hits);
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$newpageid=$row3['id'];
|
||||
}
|
||||
foreach (preg_split('/\,/',$ui->escaped('keywords','post',$lg),-1,PREG_SPLIT_NO_EMPTY) as $keyword) {
|
||||
$addkeywords[]=array('lid' => $newpageid,'keyword' => $keyword);
|
||||
$addkeywords[] = array('lid' => $newpageid,'keyword' => $keyword);
|
||||
}
|
||||
}
|
||||
$query = $sql->prepare("SELECT `id` FROM `page_terms` WHERE `type`='tag' AND `name`=? AND `resellerid`=? LIMIT 1");
|
||||
@ -202,7 +202,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$lang_avail=getlanguages($template_to_use);
|
||||
$table = array();
|
||||
foreach ($lang_avail as $lg) {
|
||||
$table[$lg]=array('title' => false,'keywords' => false,'text' => false);
|
||||
$table[$lg] = array('title' => false,'keywords' => false,'text' => false);
|
||||
$keywords_used[$lg] = array();
|
||||
}
|
||||
$query = $sql->prepare("SELECT `released`,`subpage`,`naviDisplay` FROM `page_pages` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
@ -221,7 +221,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$keywords[] = $row3['name'];
|
||||
$keywords_used[$row2['language']][] = $row3['name'];
|
||||
}
|
||||
$table[$row2['language']]=array('title' => $row2['title'],'keywords' => implode(', ',$keywords),'text' => $row2['text']);
|
||||
$table[$row2['language']] = array('title' => $row2['title'], 'keywords' => implode(', ',$keywords),'text' => $row2['text']);
|
||||
}
|
||||
}
|
||||
$subpages = array();
|
||||
@ -295,7 +295,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
}
|
||||
foreach ($keywords as $keyword) {
|
||||
if (!in_array($keyword,$keyword_exist)) {
|
||||
$addkeywords[]=array('lid' => $row['id'],'keyword' => $keyword);
|
||||
$addkeywords[] = array('lid' => $row['id'], 'keyword' => $keyword);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -316,7 +316,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$newpageid=$row['id'];
|
||||
}
|
||||
foreach (preg_split('/\,/',$ui->escaped('keywords','post',$lg),-1,PREG_SPLIT_NO_EMPTY) as $keyword) {
|
||||
$addkeywords[]=array('lid' => $newpageid,'keyword' => $keyword);
|
||||
$addkeywords[] = array('lid' => $newpageid,'keyword' => $keyword);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -457,7 +457,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$date=$explodedtime2[1] . '.' . $explodedtime2[2] . '.' . $explodedtime2[0] . ' ' . $explodedtime[1];
|
||||
}
|
||||
array_push($table, array('id' => $row['id'],'author' => $author,'date' => $date,'released' => $released,'title' => $page_title,'link' => $link,'languages' => $p_languages,'sort' => $row['sort']));
|
||||
array_push($table, array('id' => $row['id'], 'author' => $author,'date' => $date,'released' => $released,'title' => $page_title,'link' => $link,'languages' => $p_languages,'sort' => $row['sort']));
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$countp=$sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `page_pages` WHERE `resellerid`=?");
|
||||
|
@ -101,7 +101,7 @@ if (isset($search_tag) and $search_tag != '' and $search_tag != null) {
|
||||
} else {
|
||||
$row_link=$page_url.'/index.php?site='.$row['type'].'&id='.$row['id'];
|
||||
}
|
||||
$table[]=array('title' => $row['title'],'text' => nl2br($row['text']),'link' => $row_link,'date' => $row['date']);
|
||||
$table[] = array('title' => $row['title'], 'text' => nl2br($row['text']),'link' => $row_link,'date' => $row['date']);
|
||||
}
|
||||
$template_file = 'page_tag.tpl';
|
||||
}
|
||||
|
@ -183,7 +183,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$lastCronWarnCloud=$row['lastCronWarnCloud'];
|
||||
$servertime=date('Y-m-d H:i:s');
|
||||
$templates = array();
|
||||
$dir=EASYWIDIR."/template/";
|
||||
$dir=EASYWIDIR . "/template/";
|
||||
if (is_dir($dir)){
|
||||
$dirs=scandir($dir);
|
||||
foreach ($dirs as $row) {
|
||||
@ -201,7 +201,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$imprint=$row['imprint'];
|
||||
}
|
||||
$foundlanguages[]=array('style' => $query->rowCount(),'lang' => $langrow2,'imprint' => $imprint);
|
||||
$foundlanguages[] = array('style' => $query->rowCount(),'lang' => $langrow2,'imprint' => $imprint);
|
||||
}
|
||||
$template_file = "admin_settings.tpl";
|
||||
}
|
@ -118,7 +118,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$style='class="display_none"';
|
||||
$checkbox='<input id="inputCheckbox'.$row.'" type="checkbox" name="language[]" value="'.$row.'" onclick="textdrop('."'".$row."'".');" /> ';
|
||||
}
|
||||
$foundlanguages[]=array('style' => $style,'class' => $class,'lang' => $row,'checkbox' => $checkbox);
|
||||
$foundlanguages[] = array('style' => $style,'class' => $class,'lang' => $row,'checkbox' => $checkbox);
|
||||
}
|
||||
}
|
||||
$template_file = 'admin_settings_columns_add.tpl';
|
||||
@ -150,7 +150,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$class = '';
|
||||
$checkbox="<input id=\"inputCheckbox$ln\" type=\"checkbox\" name=\"language[]\" value=\"$ln\" onclick=\"textdrop('$ln');\" checked /> ";
|
||||
}
|
||||
$foundlanguages[]=array('style' => $style,'class' => $class,'lang' => $ln,'checkbox' => $checkbox,'text' => $text);
|
||||
$foundlanguages[] = array('style' => $style,'class' => $class,'lang' => $ln,'checkbox' => $checkbox,'text' => $text);
|
||||
}
|
||||
$template_file = (isset($active)) ? 'admin_settings_columns_md.tpl' : 'admin_404.tpl';
|
||||
}
|
||||
@ -233,7 +233,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgAlt='Inactive';
|
||||
}
|
||||
$type=($row['type'] == 'I') ? $sprache->int : $sprache->var;
|
||||
$table[]=array('id' => $row['customID'],'img' => $imgName,'alt' => $imgAlt,'name' => $row['name'],'type' => $type,'active' => $row['active']);
|
||||
$table[] = array('id' => $row['customID'], 'img' => $imgName,'alt' => $imgAlt,'name' => $row['name'], 'type' => $type,'active' => $row['active']);
|
||||
}
|
||||
$pageamount = ceil($colcount / $amount);
|
||||
$link='<a href="admin.php?w=cc&o='.$o.'&a=';
|
||||
|
@ -150,7 +150,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lDs']) and $licen
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['active'] != $active or $row['ip'] != $ip or $row['mac'] != $mac or $row['useDHCP'] != $useDHCP or $row['usePXE'] != $usePXE) {
|
||||
$query = $sql->prepare("INSERT INTO `jobs` (`api`,`type`,`hostID`,`invoicedByID`,`affectedID`,`userID`,`name`,`status`,`date`,`action`,`extraData`,`resellerid`) VALUES ('D','de',NULL,?,?,?,?,NULL,NOW(),'md',?,?)");
|
||||
$query->execute(array($admin_id,$id,$userID,$ip,json_encode(array('oldactive' => $row['active'],'oldip' => $row['ip'],'oldmac' => $row['mac'])),$reseller_id));
|
||||
$query->execute(array($admin_id,$id,$userID,$ip,json_encode(array('oldactive' => $row['active'], 'oldip' => $row['ip'], 'oldmac' => $row['mac'])),$reseller_id));
|
||||
}
|
||||
}
|
||||
$query = $sql->prepare("UPDATE `rootsDedicated` SET `active`=?,`userID`=?,`description`=?,`ip`=?,`ips`=?,`restart`=?,`apiRequestType`=?,`apiRequestRestart`=?,`apiRequestStop`=?,`apiURL`=?,`https`=?,`mac`=?,`useDHCP`=?,`usePXE`=?,`externalID`=?,`jobPending`='Y' WHERE `dedicatedID`=? AND `resellerID`=?");
|
||||
@ -277,7 +277,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lDs']) and $licen
|
||||
$query = $sql->prepare("SELECT `id`,`description`,`bitversion` FROM `resellerimages` WHERE `description` NOT IN ('Rescue 32bit','Rescue 64bit') ORDER BY `distro`,`bitversion`,`description`");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['description'] != 'Rescue 32bit' and $row['description'] != 'Rescue 64bit') $templates[]=array('id' => $row['id'],'description' => $row['description']);
|
||||
if ($row['description'] != 'Rescue 32bit' and $row['description'] != 'Rescue 64bit') $templates[] = array('id' => $row['id'], 'description' => $row['description']);
|
||||
}
|
||||
$template_file = (isset($ip)) ? 'admin_root_dedicated_ri.tpl' : 'admin_404.tpl';
|
||||
} else if (in_array($ui->st('action','post'), array('ri','rc','rs','st'))) {
|
||||
@ -387,7 +387,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lDs']) and $licen
|
||||
} else {
|
||||
$status=$sprache->ok;
|
||||
}
|
||||
$table[]=array('id' => $row['dedicatedID'],'ip' => $row['ip'],'description' => $row['description'],'status' => $status,'img' => $imgName,'alt' => $imgAlt,'userID' => $row['userID'],'cname' => $row['cname'],'names' => trim($row['name'] . ' ' . $row['vname']),'active' => $active,'jobPending' => $jobPending);
|
||||
$table[] = array('id' => $row['dedicatedID'], 'ip' => $row['ip'], 'description' => $row['description'], 'status' => $status,'img' => $imgName,'alt' => $imgAlt,'userID' => $row['userID'], 'cname' => $row['cname'], 'names' => trim($row['name'] . ' ' . $row['vname']),'active' => $active,'jobPending' => $jobPending);
|
||||
}
|
||||
$pageamount = ceil($colcount / $amount);
|
||||
$link='<a href="admin.php?w=rp&o='.$o.'&a=';
|
||||
|
@ -192,7 +192,7 @@ if (in_array($ui->st('d','get'), array('md','ad'))){
|
||||
$imgName='16_bad';
|
||||
$imgAlt='Inactive';
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'active' => $row['active'],'ip' => $row['ip'],'description' => $row['description'],'img' => $imgName,'alt' => $imgAlt);
|
||||
$table[] = array('id' => $row['id'], 'active' => $row['active'], 'ip' => $row['ip'], 'description' => $row['description'], 'img' => $imgName,'alt' => $imgAlt);
|
||||
}
|
||||
$template_file = 'admin_root_dhcp_list.tpl';
|
||||
}
|
@ -188,7 +188,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgName='16_bad';
|
||||
$imgAlt='Inactive';
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'ip' => $row['ip'],'description' => $row['description'],'img' => $imgName,'alt' => $imgAlt,'active' => $row['active']);
|
||||
$table[] = array('id' => $row['id'], 'ip' => $row['ip'], 'description' => $row['description'], 'img' => $imgName,'alt' => $imgAlt,'active' => $row['active']);
|
||||
}
|
||||
$template_file = 'admin_root_pxe_list.tpl';
|
||||
}
|
@ -377,7 +377,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgAlt='Deactivated';
|
||||
}
|
||||
$installedserver=$i2. '/' . $row['maxserver'];
|
||||
$table[]=array('id' => $id,'img' => $imgName,'alt' => $imgAlt,'ip' => $row['ip'],'active' => $row['active'],'description' => $row['description'],'cores' => $cores,'mhz' => $mhz,'cpus' => $cpucore,'hdd' => $hdd,'ram' => $ram,'ramused' => $ramused,'mountsize' => $mountsize,'mountunused' => $mountunused,'installedserver' => $installedserver);
|
||||
$table[] = array('id' => $id,'img' => $imgName,'alt' => $imgAlt,'ip' => $row['ip'], 'active' => $row['active'], 'description' => $row['description'], 'cores' => $cores,'mhz' => $mhz,'cpus' => $cpucore,'hdd' => $hdd,'ram' => $ram,'ramused' => $ramused,'mountsize' => $mountsize,'mountunused' => $mountunused,'installedserver' => $installedserver);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$countp=$sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `virtualhosts`");
|
||||
|
@ -150,12 +150,12 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
}
|
||||
natsort($freespace);
|
||||
$freespace=array_reverse($freespace);
|
||||
$serverused[$id]=array('ram' => $ramused,'cpu' => $cpucore,'server' => $i2,'hdd' => $mountunused,'freespace' => $freespace);
|
||||
$serverused[$id] = array('ram' => $ramused,'cpu' => $cpucore,'server' => $i2,'hdd' => $mountunused,'freespace' => $freespace);
|
||||
if ($resellerid==$reseller_id) {
|
||||
$serverusage[$id]=array('ram' => $percentusedram,'cpu' => $percentusedcpu,'server' => $percentserver,'hdd' => $percentusedhdd,'freespace' => $freespace);
|
||||
$table[]=array('id' => $id,'ip' => $row['ip']);
|
||||
$serverusage[$id] = array('ram' => $percentusedram,'cpu' => $percentusedcpu,'server' => $percentserver,'hdd' => $percentusedhdd,'freespace' => $freespace);
|
||||
$table[] = array('id' => $id,'ip' => $row['ip']);
|
||||
} else {
|
||||
$serverusage2[$id]=array('ram' => $percentusedram,'cpu' => $percentusedcpu,'server' => $percentserver,'hdd' => $percentusedhdd,'freespace' => $freespace);
|
||||
$serverusage2[$id] = array('ram' => $percentusedram,'cpu' => $percentusedcpu,'server' => $percentserver,'hdd' => $percentusedhdd,'freespace' => $freespace);
|
||||
}
|
||||
}
|
||||
if (isset($serverusage) and is_array($serverusage)) {
|
||||
@ -247,7 +247,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
}
|
||||
}
|
||||
$firstpoint=$hdd[0];
|
||||
$table[]=array('id' => $bestserver,'ip' => $row['ip']);
|
||||
$table[] = array('id' => $bestserver,'ip' => $row['ip']);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -256,7 +256,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
$maxserver = '';
|
||||
$core = array();
|
||||
$hdd = array();
|
||||
$serverused[1]=array('ram' => "",'cpu' => "",'server' => "",'hdd' => "");
|
||||
$serverused[1] = array('ram' => "",'cpu' => "",'server' => "",'hdd' => "");
|
||||
$bestserver = 1;
|
||||
}
|
||||
$reseller = array();
|
||||
@ -305,7 +305,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
$query = $sql->prepare("SELECT `id`,`description`,`bitversion` FROM `resellerimages` ORDER BY `distro`,`bitversion`,`description`");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$templates[]=array('id' => $row['id'],'description' => $row['description'] . ' ' . $row['bitversion']." Bit");
|
||||
$templates[] = array('id' => $row['id'], 'description' => $row['description'] . ' ' . $row['bitversion']." Bit");
|
||||
}
|
||||
$template_file = "admin_root_vserver_add.tpl";
|
||||
} else if ($ui->smallletters('action',2,'post') == 'ad'){
|
||||
@ -712,7 +712,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
$template_file .="Reseller Limits";
|
||||
}
|
||||
}
|
||||
if (isip($ui->post['ip'],'all') and isset($oldip)) {
|
||||
if (isip($ui->post['ip'], 'all') and isset($oldip)) {
|
||||
$freeips=($reseller_id==0) ? freeips($reseller_id) : freeips($userid);
|
||||
$checked_ips = array();
|
||||
if (isips($ui->post['ips'])) {
|
||||
@ -770,7 +770,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
}
|
||||
if ($oldmac != $mac or $oldcores != $cores or $oldminmhz != $minmhz or $oldmaxmhz != $maxmhz or $oldhddsize != $hddsize or $oldram != $ram or $oldminram != $minram or $oldmaxram != $maxram or $oldactive != $active) {
|
||||
$query = $sql->prepare("INSERT INTO `jobs` (`api`,`type`,`hostID`,`invoicedByID`,`affectedID`,`userID`,`name`,`status`,`date`,`action`,`extraData`,`resellerid`) VALUES ('D','vs',NULL,?,?,?,?,NULL,NOW(),'md',?,?)");
|
||||
$query->execute(array($admin_id,$id,$userid,$ip,json_encode(array('oldactive' => $row['active'],'oldip' => $row['ip'],'oldmac' => $row['mac'])),$reseller_id));
|
||||
$query->execute(array($admin_id,$id,$userid,$ip,json_encode(array('oldactive' => $row['active'], 'oldip' => $row['ip'], 'oldmac' => $row['mac'])),$reseller_id));
|
||||
}
|
||||
if ($query->rowCount()>0) {
|
||||
$loguseraction="%mod% %vserver% $ip Ram: $ram; MinRam: $minram; MaxRam: $maxram; Cores: $cores; MinMhz: $minmhz; MaxMhz: $maxmhz; HDD: $hddsize";
|
||||
@ -823,7 +823,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
$query = $sql->prepare("SELECT `id`,`description`,`bitversion` FROM `resellerimages` ORDER BY `distro`,`bitversion`,`description`");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['description'] != 'Rescue 32bit' and $row['description'] != 'Rescue 64bit') $templates[]=array('id' => $row['id'],'description' => $row['description']);
|
||||
if ($row['description'] != 'Rescue 32bit' and $row['description'] != 'Rescue 64bit') $templates[] = array('id' => $row['id'], 'description' => $row['description']);
|
||||
}
|
||||
$template_file = "admin_root_vserver_re.tpl";
|
||||
} else if (in_array($ui->st('action','post'), array('ri','rc','rs','st'))) {
|
||||
@ -927,7 +927,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVs']) and $licen
|
||||
} else if ($row['active'] == 'N') {
|
||||
$active = 'N';
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'active' => $active,'cip' => $row['ip'],'cores' => $row['cores'],'minmhz' => $row['minmhz'],'maxmhz' => $row['maxmhz'],'hddsize' => $row['hddsize'],'ram' => $row['ram'],'minram' => $row['minram'],'maxram' => $row['maxram'],'status' => $status,'idescription' => $row['idescription'],'bitversion' => $row['bitversion'],'hip' => $row['hip'],'hid' => $row['hid'],'hdescription' => $row['hdescription'],'cname' => $row['cname'],'userid' => $row['userid'],'jobPending' => $jobPending);
|
||||
$table[] = array('id' => $row['id'], 'active' => $active,'cip' => $row['ip'], 'cores' => $row['cores'], 'minmhz' => $row['minmhz'], 'maxmhz' => $row['maxmhz'], 'hddsize' => $row['hddsize'], 'ram' => $row['ram'], 'minram' => $row['minram'], 'maxram' => $row['maxram'], 'status' => $status,'idescription' => $row['idescription'], 'bitversion' => $row['bitversion'], 'hip' => $row['hip'], 'hid' => $row['hid'], 'hdescription' => $row['hdescription'], 'cname' => $row['cname'], 'userid' => $row['userid'], 'jobPending' => $jobPending);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
if ($reseller_id==0) {
|
||||
|
@ -155,7 +155,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT * FROM `resellerimages` ORDER BY $orderby");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[]=array('id' => $row['id'],'distro' => $row['distro'],'description' => $row['description'],'bitversion' => $row['bitversion']);
|
||||
$table[] = array('id' => $row['id'], 'distro' => $row['distro'], 'description' => $row['description'], 'bitversion' => $row['bitversion']);
|
||||
}
|
||||
$template_file = 'admin_root_templates_list.tpl';
|
||||
}
|
@ -42,7 +42,7 @@ if (!isset($admin_id) or $main!=1 or $reseller_id != 0) {
|
||||
die('No acces');
|
||||
}
|
||||
|
||||
$defined['addons']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['addons'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'paddon' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'shorten' => array("Type"=>"varchar(20)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -57,7 +57,7 @@ $defined['addons']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['addons_installed']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['addons_installed'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'userid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'addonid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'serverid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
@ -66,11 +66,11 @@ $defined['addons_installed']=array('id' => array("Type"=>"int(10) unsigned","Nul
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['api_ips']=array('ip' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['api_ips'] = array('ip' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['api_settings']=array('resellerID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['api_settings'] = array('resellerID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'userID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'user' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -78,7 +78,7 @@ $defined['api_settings']=array('resellerID' => array("Type"=>"int(10) unsigned",
|
||||
'pwd' => array("Type"=>"blob","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['api_external_auth']=array(
|
||||
$defined['api_external_auth'] = array(
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'ssl' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'user' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -88,7 +88,7 @@ $defined['api_external_auth']=array(
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['api_import']=array('importID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['api_import'] = array('importID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'fetchUpdates' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'token' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -102,19 +102,19 @@ $defined['api_import']=array('importID' => array("Type"=>"int(10) unsigned","Nul
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['badips']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['badips'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'badip' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'bantime' => array("Type"=>"datetime","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'failcount' => array("Type"=>"smallint(2) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>""),
|
||||
'reason' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['custom_columns']=array('customID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['custom_columns'] = array('customID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'itemID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'var' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['custom_columns_settings']=array('customID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['custom_columns_settings'] = array('customID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'item' => array("Type"=>"enum('D','G','S','T','U','V')","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'type' => array("Type"=>"enum('I','V')","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -122,7 +122,7 @@ $defined['custom_columns_settings']=array('customID' => array("Type"=>"int(10) u
|
||||
'name' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['rootsDedicated']=array('dedicatedID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['rootsDedicated'] = array('dedicatedID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'status' => array("Type"=>"smallint(1) unsigned","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'userID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
@ -148,7 +148,7 @@ $defined['rootsDedicated']=array('dedicatedID' => array("Type"=>"int(10) unsigne
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['rootsDHCP']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['rootsDHCP'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'port' => array("Type"=>"blob","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -166,7 +166,7 @@ $defined['rootsDHCP']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['rootsPXE']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['rootsPXE'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'port' => array("Type"=>"blob","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -181,7 +181,7 @@ $defined['rootsPXE']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO"
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['eac']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['eac'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'port' => array("Type"=>"blob","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -200,13 +200,13 @@ $defined['eac']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['easywi_version']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['easywi_version'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'version' => array("Type"=>"decimal(4,2)","Null"=>"NO","Key"=>"","Default"=>"3.30","Extra"=>""),
|
||||
'de' => array("Type"=>"text","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'en' => array("Type"=>"text","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['feeds_news']=array('newsID' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['feeds_news'] = array('newsID' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'feedID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"0","Extra"=>""),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'title' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -218,7 +218,7 @@ $defined['feeds_news']=array('newsID' => array("Type"=>"bigint(19) unsigned","Nu
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['feeds_settings']=array('settingsID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['feeds_settings'] = array('settingsID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'merge' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'displayContent' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
@ -234,7 +234,7 @@ $defined['feeds_settings']=array('settingsID' => array("Type"=>"int(10) unsigned
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['feeds_url']=array('feedID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['feeds_url'] = array('feedID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'twitter' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'feedUrl' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
@ -243,7 +243,7 @@ $defined['feeds_url']=array('feedID' => array("Type"=>"int(10) unsigned","Null"=
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['gserver_restarts']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['gserver_restarts'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'template' => array("Type"=>"smallint(1) unsigned","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'anticheat' => array("Type"=>"smallint(1) unsigned","Null"=>"YES","Key"=>"","Default"=>"1","Extra"=>""),
|
||||
'protected' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
@ -260,7 +260,7 @@ $defined['gserver_restarts']=array('id' => array("Type"=>"bigint(19) unsigned","
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['gsswitch']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['gsswitch'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'autoRestart' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'userid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>""),
|
||||
@ -306,13 +306,13 @@ $defined['gsswitch']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO"
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['imprints']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['imprints'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'language' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'imprint' => array("Type"=>"text","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['jobs']=array('jobID' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['jobs'] = array('jobID' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'hostID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>""),
|
||||
'affectedID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>""),
|
||||
'userID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>""),
|
||||
@ -327,7 +327,7 @@ $defined['jobs']=array('jobID' => array("Type"=>"bigint(19) unsigned","Null"=>"N
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['lendedserver']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['lendedserver'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'serverid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'servertype' => array("Type"=>"varchar(1)","Null"=>"NO","Key"=>"","Default"=>"g","Extra"=>""),
|
||||
'rcon' => array("Type"=>"varchar(60)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -340,7 +340,7 @@ $defined['lendedserver']=array('id' => array("Type"=>"bigint(19) unsigned","Null
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['lendsettings']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['lendsettings'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'activeGS' => array("Type"=>"enum('A','R','B','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'activeVS' => array("Type"=>"enum('A','R','B','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
@ -380,7 +380,7 @@ $defined['lendsettings']=array('id' => array("Type"=>"int(10) unsigned","Null"=>
|
||||
'oldcheck' => array("Type"=>"datetime","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['lendstats']=array('lendDate' => array("Type"=>"datetime","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['lendstats'] = array('lendDate' => array("Type"=>"datetime","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'serverID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'serverType' => array("Type"=>"enum('v','g')","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'lendtime' => array("Type"=>"smallint(3) unsigned","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -388,7 +388,7 @@ $defined['lendstats']=array('lendDate' => array("Type"=>"datetime","Null"=>"NO",
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['mail_log']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['mail_log'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'uid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'topic' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'date' => array("Type"=>"datetime","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -396,7 +396,7 @@ $defined['mail_log']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"
|
||||
);
|
||||
|
||||
#https://github.com/easy-wi/developer/issues/61 add module management
|
||||
$defined['modules']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['modules'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'get' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'file' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'sub' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -405,7 +405,7 @@ $defined['modules']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO",
|
||||
);
|
||||
|
||||
#https://github.com/easy-wi/developer/issues/42 column description added
|
||||
$defined['mysql_external_dbs']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['mysql_external_dbs'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'sid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'uid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
@ -424,7 +424,7 @@ $defined['mysql_external_dbs']=array('id' => array("Type"=>"int(10) unsigned","N
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['mysql_external_servers']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['mysql_external_servers'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'port' => array("Type"=>"smallint(5) unsigned","Null"=>"YES","Key"=>"","Default"=>"3306","Extra"=>""),
|
||||
@ -439,7 +439,7 @@ $defined['mysql_external_servers']=array('id' => array("Type"=>"int(10) unsigned
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_comments']=array('commentID' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['page_comments'] = array('commentID' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'pageTextID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'replyTo' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'date' => array("Type"=>"datetime","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -455,7 +455,7 @@ $defined['page_comments']=array('commentID' => array("Type"=>"bigint(19) unsigne
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_downloads']=array('fileID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['page_downloads'] = array('fileID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'show' => array("Type"=>"enum('A','R','N','E')","Null"=>"YES","Key"=>"","Default"=>"E","Extra"=>""),
|
||||
'order' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'count' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -466,14 +466,14 @@ $defined['page_downloads']=array('fileID' => array("Type"=>"int(10) unsigned","N
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_downloads_log']=array('fileID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
$defined['page_downloads_log'] = array('fileID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'date' => array("Type"=>"datetime","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'hostname' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_pages']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['page_pages'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'subpage' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'released' => array("Type"=>"smallint(1) unsigned","Null"=>"YES","Key"=>"","Default"=>"1","Extra"=>""),
|
||||
'sort' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -487,7 +487,7 @@ $defined['page_pages']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"N
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_pages_text']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['page_pages_text'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'pageid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'language' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'title' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -496,12 +496,12 @@ $defined['page_pages_text']=array('id' => array("Type"=>"int(10) unsigned","Null
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_register_questions']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['page_register_questions'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'question' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'answer' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_settings']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['page_settings'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'seo' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'rssfeed' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
@ -529,7 +529,7 @@ $defined['page_settings']=array('id' => array("Type"=>"int(10) unsigned","Null"=
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_terms']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['page_terms'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'language' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'name' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'search_name' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -539,18 +539,18 @@ $defined['page_terms']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"N
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['page_terms_used']=array('page_id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"0","Extra"=>""),
|
||||
$defined['page_terms_used'] = array('page_id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"0","Extra"=>""),
|
||||
'term_id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"0","Extra"=>""),
|
||||
'language_id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"0","Extra"=>""),
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['qstatshorten']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['qstatshorten'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'qstat' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'description' => array("Type"=>"varchar(50)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['resellerdata']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['resellerdata'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'useractive' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'ips' => array("Type"=>"text","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'maxuser' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -564,7 +564,7 @@ $defined['resellerdata']=array('id' => array("Type"=>"int(10) unsigned","Null"=>
|
||||
'resellersid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['resellerimages']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['resellerimages'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'distro' => array("Type"=>"varchar(50)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'description' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -572,7 +572,7 @@ $defined['resellerimages']=array('id' => array("Type"=>"int(10) unsigned","Null"
|
||||
'pxelinux' => array("Type"=>"text","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['rserverdata']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['rserverdata'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'hyperthreading' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'cores' => array("Type"=>"smallint(3) unsigned","Null"=>"YES","Key"=>"","Default"=>"4","Extra"=>""),
|
||||
@ -601,7 +601,7 @@ $defined['rserverdata']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['rservermasterg']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['rservermasterg'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'serverid' => array("Type"=>"varchar(11)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'servertypeid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'localVersion' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -611,7 +611,7 @@ $defined['rservermasterg']=array('id' => array("Type"=>"int(10) unsigned","Null"
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['serverlist']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['serverlist'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'switchID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'servertype' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'anticheat' => array("Type"=>"smallint(1) unsigned","Null"=>"YES","Key"=>"","Default"=>"1","Extra"=>""),
|
||||
@ -636,7 +636,7 @@ $defined['serverlist']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"N
|
||||
'uploaddir' => array("Type"=>"blob","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
$defined['servertypes']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['servertypes'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'steamgame' => array("Type"=>"enum('Y','N','S')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'appID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'steamVersion' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -674,7 +674,7 @@ $defined['servertypes']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['settings']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['settings'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'version' => array("Type"=>"decimal(4,2)","Null"=>"YES","Key"=>"","Default"=>"3.30","Extra"=>""),
|
||||
'releasenotesDE' => array("Type"=>"int(11) unsigned","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'releasenotesEN' => array("Type"=>"int(11) unsigned","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -732,7 +732,7 @@ $defined['settings']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO"
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['tickets']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['tickets'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'writedate' => array("Type"=>"datetime","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'topic' => array("Type"=>"varchar(30)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'userid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
@ -745,21 +745,21 @@ $defined['tickets']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"N
|
||||
'resellerid' => array("Type"=>"int(11) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['tickets_text']=array('ticketID' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
$defined['tickets_text'] = array('ticketID' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'writeDate' => array("Type"=>"datetime","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'userID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'message' => array("Type"=>"text","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(11) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['ticket_topics']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['ticket_topics'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'topic' => array("Type"=>"varchar(30)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'maintopic' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'priority' => array("Type"=>"smallint(1) unsigned","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['traffic_data']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['traffic_data'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'serverid' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'in' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>""),
|
||||
@ -769,7 +769,7 @@ $defined['traffic_data']=array('id' => array("Type"=>"bigint(19) unsigned","Null
|
||||
'resellerid' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['traffic_data_day']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['traffic_data_day'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'serverid' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'in' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>""),
|
||||
@ -779,7 +779,7 @@ $defined['traffic_data_day']=array('id' => array("Type"=>"bigint(19) unsigned","
|
||||
'resellerid' => array("Type"=>"bigint(19) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['traffic_settings']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['traffic_settings'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'type' => array("Type"=>"varchar(30)","Null"=>"NO","Key"=>"","Default"=>"mysql","Extra"=>""),
|
||||
'statip' => array("Type"=>"varchar(50)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'dbname' => array("Type"=>"blob","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -814,14 +814,14 @@ $defined['traffic_settings']=array('id' => array("Type"=>"int(10) unsigned","Nul
|
||||
'line_colour_3' => array("Type"=>"smallint(3) unsigned","Null"=>"YES","Key"=>"","Default"=>"220","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['translations']=array('type' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['translations'] = array('type' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'lang' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'transID' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"0","Extra"=>""),
|
||||
'text' => array("Type"=>"text","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['userdata']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['userdata'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'creationTime' => array("Type"=>"datetime","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'updateTime' => array("Type"=>"datetime","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'active' => array("Type"=>"enum('Y','N','R')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
@ -861,14 +861,14 @@ $defined['userdata']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO"
|
||||
);
|
||||
|
||||
#https://github.com/easy-wi/developer/issues/5
|
||||
$defined['userdata_value_log']=array('userID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
$defined['userdata_value_log'] = array('userID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'date' => array("Type"=>"datetime","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'json' => array("Type"=>"text","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
#https://github.com/easy-wi/developer/issues/2
|
||||
$defined['userdata_substitutes']=array('sID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['userdata_substitutes'] = array('sID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'userID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'loginName' => array("Type"=>"varchar(255)","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
@ -881,18 +881,18 @@ $defined['userdata_substitutes']=array('sID' => array("Type"=>"int(10) unsigned"
|
||||
'logintime' => array("Type"=>"datetime","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
$defined['userdata_substitutes_servers']=array('sID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['userdata_substitutes_servers'] = array('sID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'oType' => array("Type"=>"varchar(2)","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'oID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['userdata_groups']=array('userID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['userdata_groups'] = array('userID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'groupID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'resellerID' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['usergroups']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['usergroups'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'defaultgroup' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'name' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -953,7 +953,7 @@ $defined['usergroups']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"N
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['userlog']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['userlog'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'userid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'subuser' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'reseller' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
@ -966,7 +966,7 @@ $defined['userlog']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"N
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['userpermissions']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['userpermissions'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'userid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'root' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'miniroot' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
@ -1022,7 +1022,7 @@ $defined['userpermissions']=array('id' => array("Type"=>"int(10) unsigned","Null
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['virtualcontainer']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['virtualcontainer'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'imageid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'userid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'hostid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
@ -1049,7 +1049,7 @@ $defined['virtualcontainer']=array('id' => array("Type"=>"int(10) unsigned","Nul
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['virtualhosts']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['virtualhosts'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"NO","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'esxi' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"N","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -1072,7 +1072,7 @@ $defined['virtualhosts']=array('id' => array("Type"=>"int(10) unsigned","Null"=>
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['voice_dns']=array('dnsID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['voice_dns'] = array('dnsID' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'dns' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'ip' => array("Type"=>"varchar(15)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -1085,7 +1085,7 @@ $defined['voice_dns']=array('dnsID' => array("Type"=>"int(10) unsigned","Null"=>
|
||||
);
|
||||
|
||||
// https://github.com/easy-wi/developer/issues/36 managedServer,managedForID added
|
||||
$defined['voice_masterserver']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['voice_masterserver'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'type' => array("Type"=>"varchar(30)","Null"=>"NO","Key"=>"","Default"=>"ts3","Extra"=>""),
|
||||
'usedns' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
@ -1125,7 +1125,7 @@ $defined['voice_masterserver']=array('id' => array("Type"=>"int(10) unsigned","N
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['voice_server']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['voice_server'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'autoRestart' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'backup' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
@ -1166,7 +1166,7 @@ $defined['voice_server']=array('id' => array("Type"=>"int(10) unsigned","Null"=>
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['voice_server_backup']=array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['voice_server_backup'] = array('id' => array("Type"=>"bigint(19) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'sid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'uid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'name' => array("Type"=>"varchar(50)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -1176,7 +1176,7 @@ $defined['voice_server_backup']=array('id' => array("Type"=>"bigint(19) unsigned
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['voice_server_stats']=array('sid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['voice_server_stats'] = array('sid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'date' => array("Type"=>"datetime","Null"=>"NO","Key"=>"PRI","Default"=>"0000-00-00 00:00:00","Extra"=>""),
|
||||
'mid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'installed' => array("Type"=>"decimal(6,2) unsigned","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -1186,7 +1186,7 @@ $defined['voice_server_stats']=array('sid' => array("Type"=>"int(10) unsigned","
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['voice_server_stats_hours']=array('sid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
$defined['voice_server_stats_hours'] = array('sid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>""),
|
||||
'date' => array("Type"=>"datetime","Null"=>"NO","Key"=>"PRI","Default"=>"0000-00-00 00:00:00","Extra"=>""),
|
||||
'mid' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
'installed' => array("Type"=>"decimal(6,2) unsigned","Null"=>"NO","Key"=>"","Default"=>"","Extra"=>""),
|
||||
@ -1196,7 +1196,7 @@ $defined['voice_server_stats_hours']=array('sid' => array("Type"=>"int(10) unsig
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['voice_stats_settings']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['voice_stats_settings'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'text_colour_1' => array("Type"=>"smallint(3) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>""),
|
||||
'text_colour_2' => array("Type"=>"smallint(3) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>""),
|
||||
'text_colour_3' => array("Type"=>"smallint(3) unsigned","Null"=>"YES","Key"=>"","Default"=>"0","Extra"=>""),
|
||||
@ -1218,7 +1218,7 @@ $defined['voice_stats_settings']=array('id' => array("Type"=>"int(10) unsigned",
|
||||
'resellerid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"0","Extra"=>"")
|
||||
);
|
||||
|
||||
$defined['voice_tsdns']=array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
$defined['voice_tsdns'] = array('id' => array("Type"=>"int(10) unsigned","Null"=>"NO","Key"=>"PRI","Default"=>"","Extra"=>"auto_increment"),
|
||||
'active' => array("Type"=>"enum('Y','N')","Null"=>"YES","Key"=>"","Default"=>"Y","Extra"=>""),
|
||||
'defaultdns' => array("Type"=>"varchar(255)","Null"=>"YES","Key"=>"","Default"=>"","Extra"=>""),
|
||||
'rootid' => array("Type"=>"int(10) unsigned","Null"=>"YES","Key"=>"MUL","Default"=>"","Extra"=>""),
|
||||
|
@ -65,7 +65,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$style='display_none';
|
||||
$checkbox="<input type=\"checkbox\" name=\"language[]\" value=\"$row\" onclick=\"textdrop('$row');\" /> ";
|
||||
}
|
||||
$foundlanguages[]=array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'checked' => $checked);
|
||||
$foundlanguages[] = array('style' => $style,'lang' => $row,'checkbox' => $checkbox,'checked' => $checked);
|
||||
}
|
||||
$query = $sql->prepare("SELECT `id`,`topic` FROM `ticket_topics` WHERE `id`=maintopic AND `resellerid`=?");
|
||||
$query2 = $sql->prepare("SELECT `text` FROM `translations` WHERE `type`='ti' AND `lang`=? AND `transID`=? AND `resellerID`=? LIMIT 1");
|
||||
@ -209,7 +209,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$checked = '';
|
||||
$checkbox="<input type=\"checkbox\" name=\"language[]\" value=\"$langrow2\" onclick=\"textdrop('$langrow2');\" /> ";
|
||||
}
|
||||
$foundlanguages[]=array('style' => $style,'lang' => $langrow2,'checkbox' => $checkbox,'checked' => $checked,'subject' => stripslashes($subject));
|
||||
$foundlanguages[] = array('style' => $style,'lang' => $langrow2,'checkbox' => $checkbox,'checked' => $checked,'subject' => stripslashes($subject));
|
||||
}
|
||||
$template_file = "admin_ticket_topic_md.tpl";
|
||||
} else if ($ui->smallletters('action',2,'post') == 'md' and $ui->id('id',19,'get')){
|
||||
@ -308,7 +308,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
}
|
||||
$maintopic=' - ';
|
||||
}
|
||||
$table[]=array('id' => $row2['id'],'topic' => $topic,'maintopic' => $maintopic,'mTopic' => $mTopic,'priority' => $priority);
|
||||
$table[] = array('id' => $row2['id'], 'topic' => $topic,'maintopic' => $maintopic,'mTopic' => $mTopic,'priority' => $priority);
|
||||
}
|
||||
$next = $start+$amount;
|
||||
$countp = $sql->prepare("SELECT `id` FROM `ticket_topics` WHERE `resellerid`=?");
|
||||
@ -374,7 +374,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$state = $row['state'];
|
||||
$query2->execute(array($id,$reseller_id));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$table[]=array('writedate' => ($user_language == 'de') ? date('d.m.Y H:i:s',strtotime($row2['writeDate'])) : $row2['writeDate'],'ticket' => nl2br(htmlspecialchars(stripslashes($row2['message']))),'writer' => (trim($row2['vname'] . ' ' . $row2['name']) != '') ? trim($row2['vname'] . ' ' . $row2['name']) : $row2['cname']);
|
||||
$table[] = array('writedate' => ($user_language == 'de') ? date('d.m.Y H:i:s',strtotime($row2['writeDate'])) : $row2['writeDate'], 'ticket' => nl2br(htmlspecialchars(stripslashes($row2['message']))),'writer' => (trim($row2['vname'] . ' ' . $row2['name']) != '') ? trim($row2['vname'] . ' ' . $row2['name']) : $row2['cname']);
|
||||
}
|
||||
if ($row['priority']==1) $priority = $sprache->priority_low;
|
||||
else if ($row['priority']==2) $priority = $sprache->priority_medium;
|
||||
@ -584,7 +584,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$status = $sprache->status_reopen;
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'priority' => $priority,'userPriority' => $userPriority,'writedate' => $writedate,'supporter' => (trim($row['supportername']) != '') ? trim($row['supportername']) : $row['supporter'],'user' => (trim($row['username']) != '') ? trim($row['username']) : $row['cname'],'subject' => $topic,'status' => $status,'rawState' => $row['state'],'statusClass' => $statusClass);
|
||||
$table[] = array('id' => $row['id'], 'priority' => $priority,'userPriority' => $userPriority,'writedate' => $writedate,'supporter' => (trim($row['supportername']) != '') ? trim($row['supportername']) : $row['supporter'], 'user' => (trim($row['username']) != '') ? trim($row['username']) : $row['cname'], 'subject' => $topic,'status' => $status,'rawState' => $row['state'], 'statusClass' => $statusClass);
|
||||
}
|
||||
$template_file = "admin_tickets_list.tpl";
|
||||
}
|
@ -80,7 +80,7 @@ if ($ui->st('d','get') == 'ad') {
|
||||
if (empty($topic)) {
|
||||
$topic=$row['topic'];
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'topic' => $topic);
|
||||
$table[] = array('id' => $row['id'], 'topic' => $topic);
|
||||
if ($i==1) {
|
||||
$query2 = $sql->prepare("SELECT * FROM `ticket_topics` WHERE `maintopic`=? AND `maintopic`!=`id` AND `resellerid`=? ORDER BY `id`");
|
||||
$query2->execute(array($row['id'],$resellerid));
|
||||
@ -95,7 +95,7 @@ if ($ui->st('d','get') == 'ad') {
|
||||
if (empty($topic)) {
|
||||
$topic=$row2['topic'];
|
||||
}
|
||||
$table2[]=array('id' => $row2['id'],'topic' => $topic);
|
||||
$table2[] = array('id' => $row2['id'], 'topic' => $topic);
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
@ -146,7 +146,7 @@ if ($ui->st('d','get') == 'ad') {
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$query2->execute(array($id,$resellerid));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$table[]=array('writedate' => ($user_language == 'de') ? date('d.m.Y H:i:s',strtotime($row2['writeDate'])) : $row2['writeDate'],'ticket' => nl2br(htmlspecialchars(stripslashes($row2['message']))),'writer' => getusername($row2['userID']));
|
||||
$table[] = array('writedate' => ($user_language == 'de') ? date('d.m.Y H:i:s',strtotime($row2['writeDate'])) : $row2['writeDate'], 'ticket' => nl2br(htmlspecialchars(stripslashes($row2['message']))),'writer' => getusername($row2['userID']));
|
||||
}
|
||||
if ($row['userPriority']==1) $priority=$sprache->priority_low;
|
||||
else if ($row['userPriority']==2) $priority=$sprache->priority_medium;
|
||||
@ -348,7 +348,7 @@ if ($ui->st('d','get') == 'ad') {
|
||||
} else {
|
||||
$status=$sprache->status_reopen;
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'priority' => $priority,'writedate' => $writedate,'supporter' => $row['supporter'],'subject' => $topic,'status' => $status,'rawState' => $row['state'],'statusClass' => $statusClass);
|
||||
$table[] = array('id' => $row['id'], 'priority' => $priority,'writedate' => $writedate,'supporter' => $row['supporter'], 'subject' => $topic,'status' => $status,'rawState' => $row['state'], 'statusClass' => $statusClass);
|
||||
}
|
||||
$template_file = "admin_reseller_tickets_list.tpl";
|
||||
}
|
@ -47,8 +47,8 @@ if ($d== 'se' and $reseller_id==0) {
|
||||
$template_file = $spracheResponse->token;
|
||||
} else if (isset($ui->post['type']) and $ui->w('action', 4, 'post') == 'md') {
|
||||
$error = 0;
|
||||
if (!isset($ui->post['type']) or (!small_letters_check($ui->post['type'],'30'))) $error = 1;
|
||||
if (!isset($ui->post['statip']) or (!isip($ui->post['statip'],'all') and !isurl($ui->post['statip']))) $error = 1;
|
||||
if (!isset($ui->post['type']) or (!small_letters_check($ui->post['type'], '30'))) $error = 1;
|
||||
if (!isset($ui->post['statip']) or (!isip($ui->post['statip'], 'all') and !isurl($ui->post['statip']))) $error = 1;
|
||||
if (!isset($ui->post['dbname']) or (!gamestring($ui->post['dbname']))) $error = 1;
|
||||
if (!isset($ui->post['dbuser']) or (!gamestring($ui->post['dbuser']))) $error = 1;
|
||||
if (!isset($ui->post['dbpassword']) or (!gamestring($ui->post['dbpassword']))) $error = 1;
|
||||
@ -81,7 +81,7 @@ if ($d== 'se' and $reseller_id==0) {
|
||||
if (!isset($ui->post['line_colour_3']) or (!validate_int($ui->post['line_colour_3'], 0 , 255) and $ui->post['line_colour_3'] != 0)) $error = 1;
|
||||
if ($error==0) {
|
||||
$query = $sql->prepare("UPDATE `traffic_settings` SET `type`=:type,`statip`=:statip,`dbname`=AES_ENCRYPT(:dbname,:aeskey),`dbuser`=AES_ENCRYPT(:dbuser,:aeskey),`dbpassword`=AES_ENCRYPT(:dbpassword,:aeskey),`multiplier`=:multiplier,`table_name`=:table_name,`column_sourceip`=:column_sourceip,`column_destip`=:column_destip,`column_byte`=:column_byte,`column_date`=:column_date,`text_colour_1`=:text_colour_1,`text_colour_2`=:text_colour_2,`text_colour_3`=:text_colour_3,`barin_colour_1`=:barin_colour_1,`barin_colour_2`=:barin_colour_2,`barin_colour_3`=:barin_colour_3,`barout_colour_1`=:barout_colour_1,`barout_colour_2`=:barout_colour_2,`barout_colour_3`=:barout_colour_3,`bartotal_colour_1`=:bartotal_colour_1,`bartotal_colour_2`=:bartotal_colour_2,`bartotal_colour_3`=:bartotal_colour_3,`bg_colour_1`=:bg_colour_1,`bg_colour_2`=:bg_colour_2,`bg_colour_3`=:bg_colour_3,`border_colour_1`=:border_colour_1,`border_colour_2`=:border_colour_2,`border_colour_3`=:border_colour_3,`line_colour_1`=:line_colour_1,`line_colour_2`=:line_colour_2,`line_colour_3`=:line_colour_3 LIMIT 1");
|
||||
$query->execute(array(':aeskey' => $aeskey,':type' => $ui->post['type'],':statip' => $ui->post['statip'],':dbname' => $ui->post['dbname'],':dbuser' => $ui->post['dbuser'],':dbpassword' => $ui->post['dbpassword'],':table_name' => $ui->post['table_name'],':multiplier' => $ui->post['multiplier'],':column_sourceip' => $ui->post['column_sourceip'],':column_destip' => $ui->post['column_destip'],':column_byte' => $ui->post['column_byte'],':column_date' => $ui->post['column_date'],':text_colour_1' => $ui->post['text_colour_1'],':text_colour_2' => $ui->post['text_colour_2'],':text_colour_3' => $ui->post['text_colour_3'],':barin_colour_1' => $ui->post['barin_colour_1'],':barin_colour_2' => $ui->post['barin_colour_2'],':barin_colour_3' => $ui->post['barin_colour_3'],':barout_colour_1' => $ui->post['barout_colour_1'],':barout_colour_2' => $ui->post['barout_colour_2'],':barout_colour_3' => $ui->post['barout_colour_3'],':bartotal_colour_1' => $ui->post['bartotal_colour_1'],':bartotal_colour_2' => $ui->post['bartotal_colour_2'],':bartotal_colour_3' => $ui->post['bartotal_colour_3'],':bg_colour_1' => $ui->post['bg_colour_1'],':bg_colour_2' => $ui->post['bg_colour_2'],':bg_colour_3' => $ui->post['bg_colour_3'],':border_colour_1' => $ui->post['border_colour_1'],':border_colour_2' => $ui->post['border_colour_2'],':border_colour_3' => $ui->post['border_colour_3'],':line_colour_1' => $ui->post['line_colour_1'],':line_colour_2' => $ui->post['line_colour_2'],':line_colour_3' => $ui->post['line_colour_3']));
|
||||
$query->execute(array(':aeskey' => $aeskey,':type' => $ui->post['type'], ':statip' => $ui->post['statip'], ':dbname' => $ui->post['dbname'], ':dbuser' => $ui->post['dbuser'], ':dbpassword' => $ui->post['dbpassword'], ':table_name' => $ui->post['table_name'], ':multiplier' => $ui->post['multiplier'], ':column_sourceip' => $ui->post['column_sourceip'], ':column_destip' => $ui->post['column_destip'], ':column_byte' => $ui->post['column_byte'], ':column_date' => $ui->post['column_date'], ':text_colour_1' => $ui->post['text_colour_1'], ':text_colour_2' => $ui->post['text_colour_2'], ':text_colour_3' => $ui->post['text_colour_3'], ':barin_colour_1' => $ui->post['barin_colour_1'], ':barin_colour_2' => $ui->post['barin_colour_2'], ':barin_colour_3' => $ui->post['barin_colour_3'], ':barout_colour_1' => $ui->post['barout_colour_1'], ':barout_colour_2' => $ui->post['barout_colour_2'], ':barout_colour_3' => $ui->post['barout_colour_3'], ':bartotal_colour_1' => $ui->post['bartotal_colour_1'], ':bartotal_colour_2' => $ui->post['bartotal_colour_2'], ':bartotal_colour_3' => $ui->post['bartotal_colour_3'], ':bg_colour_1' => $ui->post['bg_colour_1'], ':bg_colour_2' => $ui->post['bg_colour_2'], ':bg_colour_3' => $ui->post['bg_colour_3'], ':border_colour_1' => $ui->post['border_colour_1'], ':border_colour_2' => $ui->post['border_colour_2'], ':border_colour_3' => $ui->post['border_colour_3'], ':line_colour_1' => $ui->post['line_colour_1'], ':line_colour_2' => $ui->post['line_colour_2'], ':line_colour_3' => $ui->post['line_colour_3']));
|
||||
$template_file = $spracheResponse->table_add;
|
||||
} else {
|
||||
$template_file = 'Error';
|
||||
@ -179,7 +179,7 @@ if ($d== 'se' and $reseller_id==0) {
|
||||
}
|
||||
}
|
||||
} else if ($ui->post['kind']=="rs" or $ui->post['kind']=="us") {
|
||||
if (isid($ui->post['what'],'30') and $ui->post['kind']=="rs") {
|
||||
if (isid($ui->post['what'], '30') and $ui->post['kind']=="rs") {
|
||||
$kind="rs";
|
||||
$whichdata="&short=".$ui->post['what'];
|
||||
$extra=$gsprache->reseller;
|
||||
@ -194,7 +194,7 @@ if ($d== 'se' and $reseller_id==0) {
|
||||
$data[] = '<option value='.$row['id'].'>'.$row['cname'].'</option>';
|
||||
}
|
||||
}
|
||||
} else if (isid($ui->post['what'],'30') and $ui->post['kind']=="us") {
|
||||
} else if (isid($ui->post['what'], '30') and $ui->post['kind']=="us") {
|
||||
$kind="us";
|
||||
$whichdata="&distro=".$ui->post['what'];
|
||||
$extra=$sprache->user;
|
||||
@ -218,14 +218,14 @@ if ($d== 'se' and $reseller_id==0) {
|
||||
$pselect->execute(array(':id' => $ui->post['what']));
|
||||
} else if ($reseller_id==$admin_id) {
|
||||
$pselect=$sql->prepare("SELECT `cname` FROM `userdata` WHERE `accounttype`='r' AND `id`=:id AND `resellerid`=:reseller_id LIMIT 1");
|
||||
$pselect->execute(array(':id' => $ui->post['what'],':reseller_id' => $reseller_id));
|
||||
$pselect->execute(array(':id' => $ui->post['what'], ':reseller_id' => $reseller_id));
|
||||
}
|
||||
foreach ($pselect->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$display=$extra . ' ' . $row['cname'];
|
||||
}
|
||||
} else if ($ui->post['kind']=="se") {
|
||||
$kind="se";
|
||||
if (isid($ui->post['what'],'30')) {
|
||||
if (isid($ui->post['what'], '30')) {
|
||||
$whichdata="&shorten=".$ui->post['what'];
|
||||
}
|
||||
if ($reseller_id==0) {
|
||||
@ -233,10 +233,10 @@ if ($d== 'se' and $reseller_id==0) {
|
||||
$pselect->execute(array(':id' =>$ui->post['what']));
|
||||
} else if ($reseller_id==$admin_id){
|
||||
$pselect=$sql->prepare("SELECT u.`cname` FROM `virtualcontainer` c LEFT JOIN `userdata` u ON c.`userid`=u.`id` WHERE c.`id`=:id AND c.`resellerid`=:reseller_id ORDER BY u.`id`,c.`id` LIMIT 1");
|
||||
$pselect->execute(array(':id' =>$ui->post['what'],':reseller_id' => $reseller_id));
|
||||
$pselect->execute(array(':id' =>$ui->post['what'], ':reseller_id' => $reseller_id));
|
||||
} else {
|
||||
$pselect=$sql->prepare("SELECT u.`cname` FROM `virtualcontainer` c LEFT JOIN `userdata` u ON c.`userid`=u.`id` WHERE c.`id`=:id AND c.`userid`=:admin_id AND c.`resellerid`=:reseller_id ORDER BY u.`id`,c.`id` LIMIT 1");
|
||||
$pselect->execute(array(':id' =>$ui->post['what'],':admin_id' => $admin_id,':reseller_id' => $reseller_id));
|
||||
$pselect->execute(array(':id' =>$ui->post['what'], ':admin_id' => $admin_id,':reseller_id' => $reseller_id));
|
||||
}
|
||||
foreach ($pselect->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$display=$sprache->server . ' ' . $row['cname'] . '-' . $ui->post['what'];
|
||||
@ -260,7 +260,7 @@ if ($d== 'se' and $reseller_id==0) {
|
||||
}
|
||||
} else if ($ui->post['kind']=="ip") {
|
||||
$kind="ip";
|
||||
if (isip($ui->post['what'],'all')) {
|
||||
if (isip($ui->post['what'], 'all')) {
|
||||
$whichdata="&ip=".$ui->post['what'];
|
||||
$display=$sprache->ip . ' ' . $ui->post['what'];
|
||||
}
|
||||
|
@ -718,7 +718,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgName='16_bad';
|
||||
$imgAlt='Inactive';
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'img' => $imgName,'alt' => $imgAlt,'adminaccount' => $adminaccount,'accounttype' => $accounttype,'cname' => $row['cname'],'name' => $row['name'],'jobPending' => $jobPending,'active' => $row['active']);
|
||||
$table[] = array('id' => $row['id'], 'img' => $imgName,'alt' => $imgAlt,'adminaccount' => $adminaccount,'accounttype' => $accounttype,'cname' => $row['cname'], 'name' => $row['name'], 'jobPending' => $jobPending,'active' => $row['active']);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
if ($reseller_id==0) {
|
||||
|
@ -423,7 +423,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$defaultgroup=$gsprache->no;
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'img' => $imgName,'alt' => $imgAlt,'grouptype' => $grouptype,'defaultgroup' => $defaultgroup,'name' => $row['name'],'active' => $row['active']);
|
||||
$table[] = array('id' => $row['id'], 'img' => $imgName,'alt' => $imgAlt,'grouptype' => $grouptype,'defaultgroup' => $defaultgroup,'name' => $row['name'], 'active' => $row['active']);
|
||||
}
|
||||
$template_file = 'admin_user_groups_list.tpl';
|
||||
}
|
@ -244,9 +244,9 @@ if ($ui->id('id', 10, 'get') and $ui->id('adid',10,'get') and in_array($ui->smal
|
||||
}
|
||||
$link='userpanel.php?w=ao&id='.$switchID.'&adid='.$adid.'&action='.$action.$delete.'&r=gs';
|
||||
if ($row2['type'] == 'tool') {
|
||||
$table2[]=array('adid' => $adid,'menudescription' => $menudescription,'addescription' => $addescription,'installedid' => $installedid,'img' => $imgName,'bootstrap' => $bootstrap,'alt' => $imgAlt,'link' => $link);
|
||||
$table2[] = array('adid' => $adid,'menudescription' => $menudescription,'addescription' => $addescription,'installedid' => $installedid,'img' => $imgName,'bootstrap' => $bootstrap,'alt' => $imgAlt,'link' => $link);
|
||||
} else if ($row2['type'] == 'map') {
|
||||
$table3[]=array('adid' => $adid,'menudescription' => $menudescription,'addescription' => $addescription,'installedid' => $installedid,'img' => $imgName,'bootstrap' => $bootstrap,'alt' => $imgAlt,'link' => $link);
|
||||
$table3[] = array('adid' => $adid,'menudescription' => $menudescription,'addescription' => $addescription,'installedid' => $installedid,'img' => $imgName,'bootstrap' => $bootstrap,'alt' => $imgAlt,'link' => $link);
|
||||
}
|
||||
}
|
||||
$table=array('id' => $switchID,'serverip' => $serverip,'port' => $serverport,'tools' => $table2,'maps' => $table3,'name' => $description);
|
||||
|
@ -46,7 +46,7 @@ if (isset($admin_id) and $reseller_id != 0 and $admin_id != $reseller_id) {
|
||||
$customer=getusername($user_id);
|
||||
include(EASYWIDIR . '/stuff/keyphrasefile.php');
|
||||
if ($ui->id('id', 10, 'get') and (!isset($_SESSION['sID']) or in_array($ui->id('id', 10, 'get'),$substituteAccess['gs']))) {
|
||||
$id=(int)$ui->id('id', 10, 'get');
|
||||
$id= (int) $ui->id('id', 10, 'get');
|
||||
$query = $sql->prepare("SELECT g.`serverip`,g.`port`,g.`rootID`,g.`newlayout`,s.`map`,t.`shorten`,AES_DECRYPT(g.`ftppassword`,?) AS `dftppassword`,u.`cname`,AES_DECRYPT(u.`ftpbackup`,?) AS `ftp` FROM `gsswitch` g LEFT JOIN `serverlist` s ON g.`serverid`=s.`id` LEFT JOIN `servertypes` t ON s.`servertype`=t.`id` LEFT JOIN `userdata` u ON g.`userid`=u.`id` WHERE g.`id`=? AND g.`userid`=? AND g.`resellerid`=? LIMIT 1");
|
||||
$query->execute(array($aeskey,$aeskey,$id,$user_id,$reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
|
@ -111,7 +111,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT `id`,`description`,`bitversion` FROM `resellerimages` WHERE `description` NOT IN ('Rescue 32bit','Rescue 64bit') ORDER BY `distro`,`bitversion`,`description`");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$templates[]=array('id' => $row['id'],'description' => $row['description']);
|
||||
$templates[] = array('id' => $row['id'], 'description' => $row['description']);
|
||||
}
|
||||
$template_file = (isset($ip)) ? 'userpanel_root_dedicated_ri.tpl' : 'admin_404.tpl';
|
||||
} else if (in_array($ui->st('action','post'), array('ri','rc','rs','st'))) {
|
||||
@ -179,7 +179,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgAlt='Inactive';
|
||||
$active = 'N';
|
||||
}
|
||||
$table[]=array('id' => $row['dedicatedID'],'ip' => $row['ip'],'description' => $row['description'],'img' => $imgName,'alt' => $imgAlt,'active' => $active,'jobPending' => $jobPending);
|
||||
$table[] = array('id' => $row['dedicatedID'], 'ip' => $row['ip'], 'description' => $row['description'], 'img' => $imgName,'alt' => $imgAlt,'active' => $active,'jobPending' => $jobPending);
|
||||
}
|
||||
}
|
||||
$template_file = 'userpanel_root_dedicated_list.tpl';
|
||||
|
@ -55,7 +55,7 @@ if (isset($admin_id)) {
|
||||
}
|
||||
|
||||
if ($ui->st('d','get') == 'ud' and $ui->id('id',19,'get') and (!isset($_SESSION['sID']) or in_array($ui->id('id', 10, 'get'),$substituteAccess['gs']))) {
|
||||
$serverid=(int)$ui->id('id',19,'get');
|
||||
$serverid= (int) $ui->id('id',19,'get');
|
||||
require_once(EASYWIDIR . '/stuff/keyphrasefile.php');
|
||||
$query = $sql->prepare("SELECT g.`rootID`,g.`masterfdl`,g.`mfdldata`,g.`serverip`,g.`port`,g.`newlayout`,s.`servertemplate`,t.`modfolder`,t.`shorten`,u.`fdlpath`,u.`cname` FROM `gsswitch` g LEFT JOIN `serverlist` s ON g.`serverid`=s.`id` LEFT JOIN `servertypes` t ON s.`servertype`=t.`id` LEFT JOIN `userdata` u ON g.`userid`=u.`id` WHERE g.`active`='Y' AND g.`id`=? AND g.`resellerid`=? LIMIT 1");
|
||||
$query->execute(array($serverid,$reseller_id));
|
||||
@ -65,7 +65,7 @@ if ($ui->st('d','get') == 'ud' and $ui->id('id',19,'get') and (!isset($_SESSION[
|
||||
if ($row['protected'] == 'Y') $customer=$customer.'-p';
|
||||
$ftpupload=($row['masterfdl'] == 'Y') ? $row['fdlpath'] : $row['mfdldata'];
|
||||
if ($ftpupload!='') {
|
||||
include(EASYWIDIR."/stuff/ssh_exec.php");
|
||||
include(EASYWIDIR . "/stuff/ssh_exec.php");
|
||||
$serverfolder="${row['serverip']}_${row['port']}/${shorten}";
|
||||
if(ssh2_execute('gs', $row['rootID'],"sudo -u ${customer} ./control.sh fastdl ${customer} ${serverfolder} \"${ftpupload}\" ${row['modfolder']}")===false) {
|
||||
$template_file = $spracheResponse->error_server;
|
||||
@ -146,7 +146,7 @@ if ($ui->st('d','get') == 'ud' and $ui->id('id',19,'get') and (!isset($_SESSION[
|
||||
$query = $sql->prepare("SELECT `id`,`serverip`,`port` FROM `gsswitch` WHERE `active`='Y' AND `userid`=? AND `resellerid`=?");
|
||||
$query->execute(array($user_id,$reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if (!isset($_SESSION['sID']) or in_array($row['id'],$substituteAccess['gs'])) $table[]=array('id' => $row['id'],'serverip' => $row['serverip'],'port' => $row['port']);
|
||||
if (!isset($_SESSION['sID']) or in_array($row['id'],$substituteAccess['gs'])) $table[] = array('id' => $row['id'], 'serverip' => $row['serverip'], 'port' => $row['port']);
|
||||
}
|
||||
$template_file = "userpanel_gserver_fdl_list.tpl";
|
||||
}
|
@ -127,7 +127,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query->execute(array($id,$reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$servertemplate=($currentID==$row['id']) ? $row['servertemplate'] : '';
|
||||
$table[]=array('id' => $row['id'],'description' => $row['description'],'shorten' => $row['shorten'],'servertemplate' => $servertemplate);
|
||||
$table[] = array('id' => $row['id'], 'description' => $row['description'], 'shorten' => $row['shorten'], 'servertemplate' => $servertemplate);
|
||||
}
|
||||
if (count($table)>0) {
|
||||
$template_file = "userpanel_gserver_reinstall.tpl";
|
||||
@ -266,7 +266,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$workshopCollection=$row['workshopCollection'];
|
||||
}
|
||||
$map=(!in_array($row['defaultmap'], array('', null))) ? $row['map'] : null;
|
||||
$table[]=array('id' => $row['id'],'cmd' => $row['cmd'],'fps' =>$row['fps'],'tic' => $row['tic'],'map' => $map,'workshopCollection' => $workshopCollection,'webapiAuthkey' => $row['dwebapiAuthkey'],'mapGroup' => $row['mapGroup'],'defaultMapGroup' => $row['defaultMapGroup'],'servertemplate' => $row['servertemplate'],'userfps' => $row['userfps'],'usertick' => $row['usertick'],'usermap' => $row['usermap'],'description' => $row['description'],'option' => $option,'qstat' => $qstat,'upload' => $upload,'uploaddir' => $uploaddir,'anticheat' => $anticheat,'anticheatsoft' => $anticheatsoft,'eac' => $eac,'shorten' => $gshorten,'mod' => $mod,'mods' => $mods,'displayNone' => $displayNone,'displayNoneBoot' => $displayNoneBoot);
|
||||
$table[] = array('id' => $row['id'], 'cmd' => $row['cmd'], 'fps' =>$row['fps'], 'tic' => $row['tic'], 'map' => $map,'workshopCollection' => $workshopCollection,'webapiAuthkey' => $row['dwebapiAuthkey'], 'mapGroup' => $row['mapGroup'], 'defaultMapGroup' => $row['defaultMapGroup'], 'servertemplate' => $row['servertemplate'], 'userfps' => $row['userfps'], 'usertick' => $row['usertick'], 'usermap' => $row['usermap'], 'description' => $row['description'], 'option' => $option,'qstat' => $qstat,'upload' => $upload,'uploaddir' => $uploaddir,'anticheat' => $anticheat,'anticheatsoft' => $anticheatsoft,'eac' => $eac,'shorten' => $gshorten,'mod' => $mod,'mods' => $mods,'displayNone' => $displayNone,'displayNoneBoot' => $displayNoneBoot);
|
||||
$i++;
|
||||
}
|
||||
if ($i>0) {
|
||||
@ -420,7 +420,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$data_explode=explode(" ", $configline);
|
||||
$permission=(isset($data_explode[1])) ? $data_explode[1] : 'full';
|
||||
if ($data_explode[0] != '') {
|
||||
$configs[]=array('permission' => $permission,'line' => $data_explode[0]);
|
||||
$configs[] = array('permission' => $permission,'line' => $data_explode[0]);
|
||||
$configCheck[] = $data_explode[0];
|
||||
}
|
||||
}
|
||||
@ -434,7 +434,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$data_explode=explode(" ", $configline);
|
||||
$permission=(isset($data_explode[1])) ? $data_explode[1] : 'full';
|
||||
if ($data_explode[0] != '') {
|
||||
$configs[]=array('permission' => $permission,'line' => $data_explode[0]);
|
||||
$configs[] = array('permission' => $permission,'line' => $data_explode[0]);
|
||||
$configCheck[] = $data_explode[0];
|
||||
}
|
||||
}
|
||||
@ -570,7 +570,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
if ($ui->smallletters('type',4,'get')=="easy") {
|
||||
fwrite($temp, $newconfig);
|
||||
} else if ($ui->smallletters('type',4,'get')=="full") {
|
||||
if (mb_strlen($ui->post['cleanedconfig'],'UTF-8')<=16384) {
|
||||
if (mb_strlen($ui->post['cleanedconfig'], 'UTF-8')<=16384) {
|
||||
fwrite($temp, stripslashes($ui->post['cleanedconfig']),16384);
|
||||
} else {
|
||||
$post_lines=explode("<br />",nl2br(stripslashes($ui->post['cleanedconfig'])));
|
||||
@ -775,7 +775,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$initalize[] = $gameserverid.'-addons';
|
||||
$initalize[] = $gameserverid.'-protect';
|
||||
$initalize[] = $gameserverid.'-sourcetv';
|
||||
$table[]=array('id' => $gameserverid,'premoved' => $premoved,'nameremoved' => $nameremoved,'server' => $address,'name' => $name,'img' => $imgName,'alt' => $imgAlt,'imgp' => $imgNameP,'altp' => $imgAltP,'numplayers' => $numplayers,'maxplayers' => $maxplayers,'map' => $map,'cname' => $cname,'cftppass' => $cftppass,'ip' => $ip,'ftpport' => $ftpport,'port' => $port,'shorten' => $currentTemplate,'gameShorten' => $shorten,'ftpdata' => $ftpdata,'updatetime' => $updatetime,'stopped' => $stopped,'pro' => $pro,'upload' => $upload,'minram' => $row['minram'],'maxram' => $row['maxram'],'taskset' => $row['taskset'],'coreCount' => $coreCount,'cores' => $cores);
|
||||
$table[] = array('id' => $gameserverid,'premoved' => $premoved,'nameremoved' => $nameremoved,'server' => $address,'name' => $name,'img' => $imgName,'alt' => $imgAlt,'imgp' => $imgNameP,'altp' => $imgAltP,'numplayers' => $numplayers,'maxplayers' => $maxplayers,'map' => $map,'cname' => $cname,'cftppass' => $cftppass,'ip' => $ip,'ftpport' => $ftpport,'port' => $port,'shorten' => $currentTemplate,'gameShorten' => $shorten,'ftpdata' => $ftpdata,'updatetime' => $updatetime,'stopped' => $stopped,'pro' => $pro,'upload' => $upload,'minram' => $row['minram'], 'maxram' => $row['maxram'], 'taskset' => $row['taskset'], 'coreCount' => $coreCount,'cores' => $cores);
|
||||
}
|
||||
}
|
||||
$template_file = "userpanel_gserver_list.tpl";
|
||||
|
@ -66,16 +66,16 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$name=$row['queryName'];
|
||||
|
||||
if ($name != 'OFFLINE' and $row['stopped'] == 'N' and $war == 'Y' and $password == 'N') {
|
||||
$pwd_removed[] = array('userid' => $row['userid'],'address' => $row['server']);
|
||||
$pwd_removed[] = array('userid' => $row['userid'], 'address' => $row['server']);
|
||||
$i_removed++;
|
||||
$crashedArray['gsPWD']++;
|
||||
} else if ($name == 'OFFLINE' and $row['stopped'] == 'N') {
|
||||
$crashed[] = array('userid' => $row['userid'],'address' => $row['server']);
|
||||
$crashed[] = array('userid' => $row['userid'], 'address' => $row['server']);
|
||||
$i_crashed++;
|
||||
$crashedArray['gsCrashed']++;
|
||||
}
|
||||
if ($name != '' and $row['stopped'] == 'N' and $name != 'OFFLINE' and $brandname == 'Y' and isset($reseller_brandname) and $reseller_brandname != '' and strpos(strtolower($name), strtolower($reseller_brandname)) === false) {
|
||||
$tag_removed[] = array('userid' => $row['userid'],'username' => getusername($row['userid']),'address' => $row['server']);
|
||||
$tag_removed[] = array('userid' => $row['userid'], 'username' => getusername($row['userid']),'address' => $row['server']);
|
||||
$i_tag_removed++;
|
||||
$crashedArray['gsTag']++;
|
||||
}
|
||||
@ -158,7 +158,7 @@ if($ui->smallletters('w',2,'get') == 'da' or (!$ui->smallletters('w',2,'get') an
|
||||
} else {
|
||||
$url='https://twitter.com/'.$row2['loginName'];
|
||||
}
|
||||
$theNews = array('title' => $row3['title'],'link' => $row3['link'],'text' => $text,'url' => $url);
|
||||
$theNews = array('title' => $row3['title'], 'link' => $row3['link'], 'text' => $text,'url' => $url);
|
||||
if ($row['merge'] == 'Y'){
|
||||
$feedArray['News'][] = $theNews;
|
||||
} else {
|
||||
@ -193,7 +193,7 @@ if($ui->smallletters('w',2,'get') == 'da' or (!$ui->smallletters('w',2,'get') an
|
||||
if (strlen($row2['title'])<=1) {
|
||||
$title=$row2['link'];
|
||||
}
|
||||
$theNews = array('title' => $title,'link' => $row2['link'],'text' => $text,'url' => $url);
|
||||
$theNews = array('title' => $title,'link' => $row2['link'], 'text' => $text,'url' => $url);
|
||||
$feedArray['News'][] = $theNews;
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$replace=array($gsprache->voiceserver,$gsprache->gameserver,$gsprache->user,$gsprache->fastdownload,$gsprache->master,$gsprache->user,$gsprache->root,$gsprache->addon2,$gsprache->settings,$gsprache->virtual,$gsprache->support,$gsprache->reseller,$gsprache->hostsystem,'Easy Anti Cheat',$gssprache->resync,$gsprache->virtual . ' ' . $gsprache->template,$gsprache->template,$gsprache->voiceserver,'E-Mail '.$gsprache->settings,'TSDNS','TSDNS',$gssprache->protect);
|
||||
$replacedwords=str_replace($placeholders,$replace,$replacedpics);
|
||||
$logdate=explode(' ', $row['logdate']);
|
||||
$table[]=array('logday' => $logdate[0],'loghour' => $logdate[1],'ip' => $ip,'username' => $username,'useraction' => $replacedwords);
|
||||
$table[] = array('logday' => $logdate[0],'loghour' => $logdate[1],'ip' => $ip,'username' => $username,'useraction' => $replacedwords);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$query = $sql->prepare("SELECT `id` FROM `userlog` WHERE `usertype`='user' AND `userid`=? AND `resellerid`=?");
|
||||
|
@ -84,9 +84,9 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
} else if ($row2['gamebinary'] == 'srcds_run' and $row2['appID']!=740 and $row2['appID']!=730) {
|
||||
$search='/'. $row2['binarydir']. '/' . $row2['modfolder'];
|
||||
}
|
||||
$temp[$row2['shorten']]=array('shorten' => $row2['shorten'],'description' => $row2['description'],'searchFor' => $search,'modfolder' => $row2['modfolder']);
|
||||
$temp[$row2['shorten']] = array('shorten' => $row2['shorten'], 'description' => $row2['description'], 'searchFor' => $search,'modfolder' => $row2['modfolder']);
|
||||
}
|
||||
$table[$row['id']]=array('id' => $row['id'],'address' => $row['serverip'] . ':' . $row['port'],'games' => $temp,'rootID' => $row['rootID'],'gsfolder' => $row['serverip'] . '_' . $row['port'],'customer' => $customer,'cftppass' => $row['cftppass']);
|
||||
$table[$row['id']] = array('id' => $row['id'], 'address' => $row['serverip'] . ':' . $row['port'], 'games' => $temp,'rootID' => $row['rootID'], 'gsfolder' => $row['serverip'] . '_' . $row['port'], 'customer' => $customer,'cftppass' => $row['cftppass']);
|
||||
}
|
||||
}
|
||||
if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
|
@ -146,7 +146,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$dbname .=' ( '.$row2['server'].' ) ';
|
||||
}
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'dbname' => $dbname,'ip' => $row['ip'],'interface' => $row['interface']);
|
||||
$table[] = array('id' => $row['id'], 'dbname' => $dbname,'ip' => $row['ip'], 'interface' => $row['interface']);
|
||||
}
|
||||
}
|
||||
$template_file = "userpanel_mysql_db_list.tpl";
|
||||
|
@ -99,7 +99,7 @@ if ($ui->smallletters('edit',4,'post') == 'edit' and isset($serverip) and isset(
|
||||
if (!isset($qstat)) {
|
||||
$qstat=$row['qstat'];
|
||||
}
|
||||
$table[$row['shorten']]=array('shorten' => $shorten,'description' => $row['description'],'defaultMapGroup' => $row['mapGroup']);
|
||||
$table[$row['shorten']] = array('shorten' => $shorten,'description' => $row['description'], 'defaultMapGroup' => $row['mapGroup']);
|
||||
}
|
||||
$template = '';
|
||||
$anticheat = '';
|
||||
@ -267,7 +267,7 @@ if ($ui->smallletters('edit',4,'post') == 'edit' and isset($serverip) and isset(
|
||||
} else if (isset($serverip) and isset($port)){
|
||||
$i = 0;
|
||||
while ($i<24) {
|
||||
$restarts[$i]=array('mon' => '','tue' => '','wed' => '','thu' => '','fri' => '','sat' => '','sun' => '');
|
||||
$restarts[$i] = array('mon' => '','tue' => '','wed' => '','thu' => '','fri' => '','sat' => '','sun' => '');
|
||||
$i++;
|
||||
}
|
||||
$query = $sql->prepare("SELECT t.`shorten`,t.`qstat` FROM `serverlist` s LEFT JOIN `servertypes` t ON s.`servertype`=t.`id` WHERE s.`switchID`=? AND s.`resellerid`=? GROUP BY t.`shorten`");
|
||||
@ -340,9 +340,9 @@ if ($ui->smallletters('edit',4,'post') == 'edit' and isset($serverip) and isset(
|
||||
$imgName='16_protected';
|
||||
$imgAlt='Protected';
|
||||
}
|
||||
$restarts[$hour][$day]=array('out' => $routput,'img' => $imgName,'alt' => $imgAlt);
|
||||
$restarts[$hour][$day] = array('out' => $routput,'img' => $imgName,'alt' => $imgAlt);
|
||||
} else {
|
||||
$restarts[$hour][$day]=array('out' => $routput);
|
||||
$restarts[$hour][$day] = array('out' => $routput);
|
||||
}
|
||||
}
|
||||
$template_file = "userpanel_gserver_calendar_list.tpl";
|
||||
|
@ -169,7 +169,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT `sID`,`loginName`,`active` FROM `userdata_substitutes` WHERE `userID`=? AND `resellerID`=?");
|
||||
$query->execute(array($user_id,$reseller_id));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$table[]=array('id' => $row['sID'],'loginName' => $row['loginName'],'active' => $row['active']);
|
||||
$table[] = array('id' => $row['sID'], 'loginName' => $row['loginName'], 'active' => $row['active']);
|
||||
}
|
||||
$template_file = 'userpanel_substitutes_list.tpl';
|
||||
}
|
@ -69,7 +69,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
if (empty($topic)) {
|
||||
$topic=$row['topic'];
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'topic' => $topic);
|
||||
$table[] = array('id' => $row['id'], 'topic' => $topic);
|
||||
if ($i==1) {
|
||||
$query2 = $sql->prepare("SELECT * FROM `ticket_topics` WHERE `maintopic`=? AND `maintopic`!=`id` AND `resellerid`=? ORDER BY `id`");
|
||||
$query2->execute(array($row['id'],$reseller_id));
|
||||
@ -84,7 +84,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
if (empty($topic)) {
|
||||
$topic=$row2['topic'];
|
||||
}
|
||||
$table2[]=array('id' => $row2['id'],'topic' => $topic);
|
||||
$table2[] = array('id' => $row2['id'], 'topic' => $topic);
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
@ -135,7 +135,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$query2->execute(array($id,$reseller_id));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
$table[]=array('writedate' => ($user_language == 'de') ? date('d.m.Y H:i:s',strtotime($row2['writeDate'])) : $row2['writeDate'],'ticket' => nl2br(htmlspecialchars(stripslashes($row2['message']))),'writer' => (trim($row2['vname'] . ' ' . $row2['name']) != '') ? trim($row2['vname'] . ' ' . $row2['name']) : $row2['cname']);
|
||||
$table[] = array('writedate' => ($user_language == 'de') ? date('d.m.Y H:i:s',strtotime($row2['writeDate'])) : $row2['writeDate'], 'ticket' => nl2br(htmlspecialchars(stripslashes($row2['message']))),'writer' => (trim($row2['vname'] . ' ' . $row2['name']) != '') ? trim($row2['vname'] . ' ' . $row2['name']) : $row2['cname']);
|
||||
}
|
||||
if ($row['userPriority']==1) $priority=$sprache->priority_low;
|
||||
else if ($row['userPriority']==2) $priority=$sprache->priority_medium;
|
||||
@ -342,7 +342,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
} else {
|
||||
$status=$sprache->status_reopen;
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'priority' => $priority,'writedate' => $writedate,'supporter' => (trim($row['vname'] . ' ' . $row['name']) != '') ? trim($row['vname'] . ' ' . $row['name']) : $row['cname'],'subject' => $topic,'status' => $status,'rawState' => $row['state'],'statusClass' => $statusClass);
|
||||
$table[] = array('id' => $row['id'], 'priority' => $priority,'writedate' => $writedate,'supporter' => (trim($row['vname'] . ' ' . $row['name']) != '') ? trim($row['vname'] . ' ' . $row['name']) : $row['cname'], 'subject' => $topic,'status' => $status,'rawState' => $row['state'], 'statusClass' => $statusClass);
|
||||
}
|
||||
$template_file = "userpanel_tickets_list.tpl";
|
||||
}
|
@ -112,7 +112,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT `id`,`description`,`bitversion` FROM `resellerimages` WHERE `description` NOT IN ('Rescue 32bit','Rescue 64bit') ORDER BY `distro`,`bitversion`,`description`");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$templates[]=array('id' => $row['id'],'description' => $row['description']);
|
||||
$templates[] = array('id' => $row['id'], 'description' => $row['description']);
|
||||
}
|
||||
$template_file = (isset($ip)) ? 'userpanel_root_virtual_ri.tpl' : 'admin_404.tpl';
|
||||
} else if (in_array($ui->st('action','post'), array('ri','rc','rs','st'))) {
|
||||
@ -180,7 +180,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgAlt='Inactive';
|
||||
$active = 'N';
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'ip' => $row['ip'],'img' => $imgName,'alt' => $imgAlt,'active' => $active,'jobPending' => $jobPending);
|
||||
$table[] = array('id' => $row['id'], 'ip' => $row['ip'], 'img' => $imgName,'alt' => $imgAlt,'active' => $active,'jobPending' => $jobPending);
|
||||
}
|
||||
}
|
||||
$template_file = 'userpanel_root_virtual_list.tpl';
|
||||
|
@ -94,7 +94,7 @@ if ($ui->st('d','get') == 'bu' and $ui->id('id', 10, 'get') and (!isset($_SESSIO
|
||||
$query2 = $sql->prepare("SELECT `id`,`name`,`date` FROM `voice_server_backup` WHERE `sid`=? AND `uid`=? AND `resellerid`=? ORDER BY `date` DESC");
|
||||
$query2->execute(array($id, $user_id, $reseller_id));
|
||||
foreach ($query2->fetchall(PDO::FETCH_ASSOC) as $row2) {
|
||||
$table[]=array('id' => $row2['id'],'date' => $row2['date'],'name' => $row2['name']);
|
||||
$table[] = array('id' => $row2['id'], 'date' => $row2['date'], 'name' => $row2['name']);
|
||||
}
|
||||
$template_file = "userpanel_voiceserver_backup_list.tpl";
|
||||
} else if (isset($server) and !$ui->smallletters('action',2,'post') and $ui->port('po', 'get') == 1) {
|
||||
@ -684,7 +684,7 @@ if ($ui->st('d','get') == 'bu' and $ui->id('id', 10, 'get') and (!isset($_SESSIO
|
||||
$initalize[] = $row['id'].'-token';
|
||||
$initalize[] = $row['id'].'-settings';
|
||||
}
|
||||
$table[]=array('id' => $row['id'],'virtual_id' => $row['localserverid'],'backup' => $row['backup'],'filetraffic' => $filetraffic,'maxtraffic' => $maxtraffic,'server' => $server,'address' => $address,'usage' => $usage,'uptime' => $uptime,'stopped' => $stopped,'img' => $imgName,'alt' => $imgAlt,'type' => $type);
|
||||
$table[] = array('id' => $row['id'], 'virtual_id' => $row['localserverid'], 'backup' => $row['backup'], 'filetraffic' => $filetraffic,'maxtraffic' => $maxtraffic,'server' => $server,'address' => $address,'usage' => $usage,'uptime' => $uptime,'stopped' => $stopped,'img' => $imgName,'alt' => $imgAlt,'type' => $type);
|
||||
}
|
||||
}
|
||||
$template_file = "userpanel_voiceserver_list.tpl";
|
||||
|
@ -146,7 +146,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$query = $sql->prepare("SELECT `dnsID`,`dns`,`ip`,`port` FROM `voice_dns` WHERE `active`='Y' AND `userID`=? AND `resellerID`=? ORDER BY $orderby");
|
||||
$query->execute(array($user_id,$reseller_id));
|
||||
foreach ($query->fetchall(PDO::FETCH_ASSOC) as $row) {
|
||||
if (!isset($_SESSION['sID']) or in_array($row['dnsID'],$substituteAccess['vd'])) $table[]=array('id' => $row['dnsID'],'dns' => $row['dns'],'address' => $row['ip'] . ':' . $row['port']);
|
||||
if (!isset($_SESSION['sID']) or in_array($row['dnsID'],$substituteAccess['vd'])) $table[] = array('id' => $row['dnsID'], 'dns' => $row['dns'], 'address' => $row['ip'] . ':' . $row['port']);
|
||||
}
|
||||
$template_file = 'userpanel_voiceserver_dns_list.tpl';
|
||||
}
|
@ -184,7 +184,7 @@ if ($ui->st('d','get') == 'ud' and $reseller_id==0 and $pa['updateEW'] and ($ewV
|
||||
$query = $sql->prepare("SELECT `version`,`$column` FROM `easywi_version` ORDER BY `id` DESC");
|
||||
$query->execute();
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row[$column] != null and $row[$column] != '') $table[]=array('version' => $row['version'],'text' => $row[$column]);
|
||||
if ($row[$column] != null and $row[$column] != '') $table[] = array('version' => $row['version'], 'text' => $row[$column]);
|
||||
}
|
||||
$update=($reseller_id==0 and isset($pa['updateEW']) and $pa['updateEW']==true) ? '<div class="right"><a href="admin.php?w=vc&d=ud">Update</a></div>' : '';
|
||||
if ($ewVersions['cVersion']<$ewVersions['version']) {
|
||||
|
@ -77,7 +77,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVo']) and $licen
|
||||
$installedserver=($row['installedserver'] == null) ? 0 : $row['installedserver'];
|
||||
$installedslots=($row['installedslots'] == null) ? 0 : $row['installedslots'];
|
||||
$uslots=($row['uslots'] == null) ? 0 : $row['uslots'];
|
||||
$table2[]=array('id' => $row['id'],'server' => implode('/', array_unique($ips)),'type' => $type,'maxserver' => $row['maxserver'],'maxslots' => $row['maxslots'],'installedserver' => $installedserver,'uslots' => $uslots,'installedslots' => $installedslots);
|
||||
$table2[] = array('id' => $row['id'], 'server' => implode('/', array_unique($ips)),'type' => $type,'maxserver' => $row['maxserver'], 'maxslots' => $row['maxslots'], 'installedserver' => $installedserver,'uslots' => $uslots,'installedslots' => $installedslots);
|
||||
}
|
||||
$template_file = "admin_voiceserver_add.tpl";
|
||||
} else if ($ui->w('action',3,'post') == 'ad' and $ui->id('masterserver',19,'post') and $ui->id('customer',19,'post')) {
|
||||
@ -148,7 +148,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVo']) and $licen
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if (is_numeric($row['port']))$ports[] = $row['port'];
|
||||
}
|
||||
$portsArray[count($ports)]=array('ip' => $serverIP,'ports' => $ports);
|
||||
$portsArray[count($ports)] = array('ip' => $serverIP,'ports' => $ports);
|
||||
}
|
||||
$bestIP=current($portsArray);
|
||||
$ip=$bestIP['ip'];
|
||||
@ -530,7 +530,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVo']) and $licen
|
||||
$localserverid=$row['localserverid'];
|
||||
$query2 = $sql->prepare("SELECT SUM(`slots`) AS `installedslots` FROM `voice_server` WHERE `masterserver`=? AND `resellerid`=? LIMIT 1");
|
||||
$query2->execute(array($masterserver,$reseller_id));
|
||||
$futureSlots=(int)$query2->fetchColumn()-$oldslots+$slots;
|
||||
$futureSlots= (int) $query2->fetchColumn()-$oldslots+$slots;
|
||||
}
|
||||
if (!isset($oldslots)) $errors[] = $gsprache->voiceserver.' ID';
|
||||
$query = $sql->prepare("SELECT *,AES_DECRYPT(`querypassword`,:aeskey) AS `decryptedquerypassword`,AES_DECRYPT(`ssh2port`,:aeskey) AS `decryptedssh2port`,AES_DECRYPT(`ssh2user`,:aeskey) AS `decryptedssh2user`,AES_DECRYPT(`ssh2password`,:aeskey) AS `decryptedssh2password` FROM `voice_masterserver` WHERE `id`=:id AND (`resellerid`=:reseller_id OR `managedForID`=:managedForID) LIMIT 1");
|
||||
@ -751,7 +751,7 @@ if ($ui->st('d','get') == 'ad' and is_numeric($licenceDetails['lVo']) and $licen
|
||||
$minutes=floor(($row['uptime']-($days*86400)-($hours*3600))/60);
|
||||
$uptime=$days.'D '.$hours.'H '.$minutes.'M';
|
||||
$userid=$row['userid'];
|
||||
$table[]=array('id' => $row['id'],'active' => $row['active'],'virtualID' => $row['localserverid'],'img' => $imgName,'alt' => $imgAlt,'usage' => $usage,'uptime' => $uptime,'server' => $server,'cname' => $row['cname'],'names' => trim($row['name'] . ' ' . $row['vname']),'userid' => $userid,'lendserver' => $lendserver,'type' => $type,'jobPending' => $jobPending);
|
||||
$table[] = array('id' => $row['id'], 'active' => $row['active'], 'virtualID' => $row['localserverid'], 'img' => $imgName,'alt' => $imgAlt,'usage' => $usage,'uptime' => $uptime,'server' => $server,'cname' => $row['cname'], 'names' => trim($row['name'] . ' ' . $row['vname']),'userid' => $userid,'lendserver' => $lendserver,'type' => $type,'jobPending' => $jobPending);
|
||||
}
|
||||
$query = $sql->prepare("SELECT COUNT(`id`) AS `amount` FROM `voice_server` WHERE `resellerid`=?");
|
||||
$query->execute(array($reseller_id));
|
||||
|
@ -874,9 +874,9 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
if ($row3['active'] == 'N' or $row3['uptime']==1) $vsStatus = 2;
|
||||
else if ($row3['active'] == 'Y' and $row3['uptime']<1) $vsStatus = 3;
|
||||
else $vsStatus = 1;
|
||||
$vs[]=array('id' => $row3['id'],'address' => $row3['address'],'name' => $row3['queryName'],'status' => $vsStatus);
|
||||
$vs[] = array('id' => $row3['id'], 'address' => $row3['address'], 'name' => $row3['queryName'], 'status' => $vsStatus);
|
||||
}
|
||||
$table[]=array('id' => $id,'active' => $row['active'],'managedServer' => $row['managedServer'],'img' => $imgName,'alt' => $imgAlt,'ip' => $ip,'type' => $type,'defaultdns' => $defaultdns,'installedserver' => $row['installedserver']. '/' . $row['maxserver'],'installedslots' => $uslots. '/' . $installedslots. '/' . $row['maxslots'],'server' => $vs);
|
||||
$table[] = array('id' => $id,'active' => $row['active'], 'managedServer' => $row['managedServer'], 'img' => $imgName,'alt' => $imgAlt,'ip' => $ip,'type' => $type,'defaultdns' => $defaultdns,'installedserver' => $row['installedserver']. '/' . $row['maxserver'], 'installedslots' => $uslots. '/' . $installedslots. '/' . $row['maxslots'], 'server' => $vs);
|
||||
}
|
||||
}
|
||||
$next=$start+$amount;
|
||||
|
@ -428,8 +428,8 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
}
|
||||
$ds = array();
|
||||
$query2->execute(array($row['id'],$reseller_id));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) $ds[]=array('id' => $row2['dnsID'],'address' => $row2['dns'],'status' => ($row2['active'] == 'N') ? 2 : 1);
|
||||
$table[]=array('id' => $row['id'],'active' => $row['active'],'img' => $imgName,'alt' => $imgAlt,'ip' => $row['ssh2ip'],'defaultdns' => $row['defaultdns'],'description' => $row['description'],'server' => $ds);
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) $ds[] = array('id' => $row2['dnsID'], 'address' => $row2['dns'], 'status' => ($row2['active'] == 'N') ? 2 : 1);
|
||||
$table[] = array('id' => $row['id'], 'active' => $row['active'], 'img' => $imgName,'alt' => $imgAlt,'ip' => $row['ssh2ip'], 'defaultdns' => $row['defaultdns'], 'description' => $row['description'], 'server' => $ds);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
$vor=($colcount>$next) ? $start+$amount : $start;
|
||||
|
@ -389,7 +389,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$imgName='16_bad';
|
||||
$imgAlt='inactive';
|
||||
}
|
||||
$table[]=array('id' => $row['dnsID'],'active' => $row['active'],'img' => $imgName,'alt' => $imgAlt,'dns' => $row['dns'],'address' => $row['ip'] . ':' . $row['port'],'masterip' => trim($row['ssh2ip'] . ' ' . $row['description']),'cname' => $row['cname'],'names' => trim($row['name'] . ' ' . $row['vname']),'userid' => $row['userID'],'jobPending' => $jobPending);
|
||||
$table[] = array('id' => $row['dnsID'], 'active' => $row['active'], 'img' => $imgName,'alt' => $imgAlt,'dns' => $row['dns'], 'address' => $row['ip'] . ':' . $row['port'], 'masterip' => trim($row['ssh2ip'] . ' ' . $row['description']),'cname' => $row['cname'], 'names' => trim($row['name'] . ' ' . $row['vname']),'userid' => $row['userID'], 'jobPending' => $jobPending);
|
||||
}
|
||||
$next=$start+$amount;
|
||||
if ($colcount>$next) {
|
||||
|
@ -119,7 +119,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
foreach ($pselect->fetchall(PDO::FETCH_ASSOC) as $row) {
|
||||
$display=$extra . ' ' . $row['cname'];
|
||||
}
|
||||
} else if (isid($ui->post['what'],'30') and $ui->st('kind','post')=="se") {
|
||||
} else if (isid($ui->post['what'], '30') and $ui->st('kind','post')=="se") {
|
||||
$kind='se';
|
||||
$whichdata="&shorten=".$ui->post['what'];
|
||||
$pselect=$sql->prepare("SELECT v.`id`,v.`ip`,v.`port`,v.`dns`,m.`usedns` FROM `voice_server` v INNER JOIN `voice_masterserver` m ON v.`masterserver`=m.`id` WHERE v.`id`=? AND v.`resellerid`=? LIMIT 1");
|
||||
@ -137,7 +137,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$data[] = '<option value='.$row['id'].'>'.$server.'</option>';
|
||||
}
|
||||
}
|
||||
} else if (isid($ui->post['what'],'30') and $ui->st('kind','post') == 'ma') {
|
||||
} else if (isid($ui->post['what'], '30') and $ui->st('kind','post') == 'ma') {
|
||||
$kind='ma';
|
||||
$whichdata="&short=".$ui->post['what'];
|
||||
$pselect=$sql->prepare("SELECT `ssh2ip` FROM `voice_masterserver` WHERE `id`=? AND `resellerid`=? LIMIT 1");
|
||||
|
Loading…
x
Reference in New Issue
Block a user