* veroeffentlichten Version, weiterverbreiten und/oder modifizieren. * * Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber * OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite * Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK. * Siehe die GNU General Public License fuer weitere Details. * * Sie sollten eine Kopie der GNU General Public License zusammen mit diesem * Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>. */ if (!isset($admin_id) or !isset($reseller_id)) { header('Location: login.php'); die; } $adminInclude = true; $pa = User_Permissions($admin_id); if (!isanyadmin($admin_id) and count($pa) == 0) { redirect('login.php'); } $ewVersions['files'] = '5.10'; $vcsprache = getlanguagefile('versioncheck', $user_language, $reseller_id); $query = $sql->prepare("SELECT `version` FROM `easywi_version` ORDER BY `id` DESC LIMIT 1"); $query->execute(); $ewVersions['cVersion'] = $query->fetchColumn(); $query = $sql->prepare("SELECT `version`,`releasenotesDE`,`releasenotesEN` FROM `settings` WHERE `resellerid`=0 LIMIT 1"); $query->execute(); while ($row = $query->fetch(PDO::FETCH_ASSOC)) { $ewVersions['version'] = $row['version']; $ewVersions['releasenotesDE'] = $row['releasenotesDE']; $ewVersions['releasenotesEN'] = $row['releasenotesEN']; }
include EASYWIDIR . '/stuff/methods/functions.php'; include EASYWIDIR . '/stuff/methods/class_validator.php'; include EASYWIDIR . '/stuff/methods/class_ftp.php'; include EASYWIDIR . '/stuff/methods/class_app.php'; include EASYWIDIR . '/stuff/methods/class_ts3.php'; include EASYWIDIR . '/stuff/methods/functions_ts3.php'; include EASYWIDIR . '/stuff/methods/vorlage.php'; include EASYWIDIR . '/stuff/settings.php'; if (!isset($admin_id) and !isset($user_id)) { redirect('login.php'); } else { if (isset($admin_id)) { $pa = User_Permissions($admin_id); } else { if (isset($user_id)) { $pa = User_Permissions($user_id); } } } if ($ui->smallletters('w', 9, 'get') == 'datatable') { header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 1 Jan 1900 00:00:00 GMT'); header('Content-type: application/json'); $array = array('iTotalRecords' => 0, 'iTotalDisplayRecords' => 0, 'aaData' => array()); $iDisplayStart = $ui->isinteger('iDisplayStart', 'get') ? $ui->isinteger('iDisplayStart', 'get') : 0; $iDisplayLength = $ui->isinteger('iDisplayLength', 'get') ? $ui->isinteger('iDisplayLength', 'get') : 10; $iSortCol = $ui->isinteger('iSortCol_0', 'get') ? $ui->isinteger('iSortCol_0', 'get') : 0; $sSortDir = $ui->smallletters('sSortDir_0', 4, 'get') == 'desc' ? 'DESC' : 'ASC'; $sSearch = strlen($ui->escaped('sSearch', 'get')) > 0 ? $ui->escaped('sSearch', 'get') : false; // Userlog if ($ui->smallletters('d', 7, 'get') == 'userlog' and isset($user_id) or $ui->smallletters('d', 12, 'get') == 'adminuserlog' and isset($admin_id) and $pa['log']) {
* * Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber * OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite * Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK. * Siehe die GNU General Public License fuer weitere Details. * * Sie sollten eine Kopie der GNU General Public License zusammen mit diesem * Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>. */ define('EASYWIDIR', dirname(__FILE__)); include EASYWIDIR . '/stuff/methods/functions.php'; include EASYWIDIR . '/stuff/methods/class_validator.php'; include EASYWIDIR . '/stuff/methods/vorlage.php'; include EASYWIDIR . '/stuff/settings.php'; if ((isset($admin_id) and $ui->w('from', 5, 'get') == 'admin' or isset($user_id) and $ui->w('from', 5, 'get') == 'user') and $ui->st('img', 'get')) { $pa = User_Permissions((isset($user_id) and $ui->w('from', 5, 'get') == 'user') ? $user_id : $admin_id); $multiplier = 1; if ($ui->st('img', 'get') == 'tr' and ($pa['traffic'] or $pa['root']) and isset($admin_id)) { $values = array(); $query = $sql->prepare("SELECT `multiplier`,`text_colour_1`,`text_colour_2`,`text_colour_3`,`barin_colour_1`,`barin_colour_2`,`barin_colour_3`,`barout_colour_1`,`barout_colour_2`,`barout_colour_3`,`bartotal_colour_1`,`bartotal_colour_2`,`bartotal_colour_3`,`bg_colour_1`,`bg_colour_2`,`bg_colour_3`,`border_colour_1`,`border_colour_2`,`border_colour_3`,`line_colour_1`,`line_colour_2`,`line_colour_3` FROM `traffic_settings` LIMIT 1"); $query->execute(); while ($row = $query->fetch(PDO::FETCH_ASSOC)) { $multiplier = $row['multiplier']; $text_colour_1 = $row['text_colour_1']; $text_colour_2 = $row['text_colour_2']; $text_colour_3 = $row['text_colour_3']; $barin_colour_1 = $row['barin_colour_1']; $barin_colour_2 = $row['barin_colour_2']; $barin_colour_3 = $row['barin_colour_3']; $barout_colour_1 = $row['barout_colour_1']; $barout_colour_2 = $row['barout_colour_2'];