#338 New folderstructure

This commit is contained in:
Ulrich Block 2014-02-23 13:13:48 +01:00
parent 9a831c0934
commit 0f9f7a81fb
388 changed files with 745 additions and 232 deletions

View File

@ -41,21 +41,25 @@ define('EASYWIDIR', dirname(__FILE__));
if (is_dir(EASYWIDIR . '/install')) { if (is_dir(EASYWIDIR . '/install')) {
die('Please remove the "install" folder'); die('Please remove the "install" folder');
} }
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/init_admin.php'); include(EASYWIDIR . '/stuff/admin/init_admin.php');
include(EASYWIDIR . '/stuff/adminhome.php'); include(EASYWIDIR . '/stuff/admin/adminhome.php');
if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]))) { if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/admin/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]))) {
include(EASYWIDIR . '/stuff/admin/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]);
} else if ($ui->smallletters('w', 255, 'get') and isset($what_to_be_included_array[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]))) {
include(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]); include(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$ui->smallletters('w', 255, 'get')]);
unset($dbConnect); } else if ($ui->smallletters('w', 255, 'get') and isset($customFiles[$ui->smallletters('w', 255, 'get')]) and is_file((EASYWIDIR . '/stuff/custom_modules/' . $customFiles[$ui->smallletters('w', 255, 'get')]))) {
include(EASYWIDIR . '/stuff/custom_modules/' . $customFiles[$ui->smallletters('w', 255, 'get')]);
} else { } else {
unset($dbConnect);
$template_file = 'admin_home.tpl'; $template_file = 'admin_home.tpl';
} }
unset($dbConnect);
if (!isset($template_to_use) or !isset($template_to_use) ) { if (!isset($template_to_use) or !isset($template_to_use) ) {
$template_to_use = 'default'; $template_to_use = 'default';
} }

View File

@ -40,9 +40,9 @@
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
if (is_dir(EASYWIDIR . '/install')) die('Please remove the "install" folder'); if (is_dir(EASYWIDIR . '/install')) die('Please remove the "install" folder');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/config.php'); include(EASYWIDIR . '/stuff/config.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
if (isset($admin_id)) { if (isset($admin_id)) {

View File

@ -46,9 +46,9 @@ if (is_dir(EASYWIDIR . '/install')) {
$logininclude = true; $logininclude = true;
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
if ($ui->ip4('REMOTE_ADDR', 'server') and $ui->names('user', 255, 'post')) { if ($ui->ip4('REMOTE_ADDR', 'server') and $ui->names('user', 255, 'post')) {
@ -136,13 +136,13 @@ if (isset($resellerIDs) and count($resellerIDs)==1 and passwordhash($ui->passwor
if ($type == 'user') { if ($type == 'user') {
include(EASYWIDIR . '/stuff/api_users.php'); include(EASYWIDIR . '/stuff/api/api_users.php');
} else if ($type == 'voice') { } else if ($type == 'voice') {
if ($voModule == true) { if ($voModule == true) {
include(EASYWIDIR . '/stuff/api_voice.php'); include(EASYWIDIR . '/stuff/api/api_voice.php');
} else { } else {
@ -153,13 +153,13 @@ if (isset($resellerIDs) and count($resellerIDs)==1 and passwordhash($ui->passwor
} else if ($type == 'mysql') { } else if ($type == 'mysql') {
include(EASYWIDIR . '/stuff/api_mysql.php'); include(EASYWIDIR . '/stuff/api/api_mysql.php');
} else if ($type == 'gserver') { } else if ($type == 'gserver') {
if ($gsModule == true) { if ($gsModule == true) {
include(EASYWIDIR . '/stuff/api_gserver.php'); include(EASYWIDIR . '/stuff/api/api_gserver.php');
} else { } else {

View File

@ -64,12 +64,12 @@ if (!isset($ip) or $_SERVER['SERVER_ADDR'] == $ip) {
printText('Cloud jobs started'); printText('Cloud jobs started');
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
printText('File include and parameters fetched. Start connecting to external systems.'); printText('File include and parameters fetched. Start connecting to external systems.');

View File

@ -8,18 +8,18 @@
.btn-github {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #78cb54;background-image: -moz-linear-gradient(top,#6cc644,#8bd26b);background-image: -webkit-gradient(linear,0 0,0 100%,from(#6cc644),to(#8bd26b));background-image: -webkit-linear-gradient(top,#6cc644,#8bd26b);background-image: -o-linear-gradient(top,#6cc644,#8bd26b);background-image: linear-gradient(to bottom,#6cc644,#8bd26b);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff6cc644',endColorstr='#ff8bd26b',GradientType=0);border-color: #8bd26b #8bd26b #60b838;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #8bd26b;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);} .btn-github {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #78cb54;background-image: -moz-linear-gradient(top,#6cc644,#8bd26b);background-image: -webkit-gradient(linear,0 0,0 100%,from(#6cc644),to(#8bd26b));background-image: -webkit-linear-gradient(top,#6cc644,#8bd26b);background-image: -o-linear-gradient(top,#6cc644,#8bd26b);background-image: linear-gradient(to bottom,#6cc644,#8bd26b);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff6cc644',endColorstr='#ff8bd26b',GradientType=0);border-color: #8bd26b #8bd26b #60b838;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #8bd26b;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);}
.btn-github:hover,.btn-github:focus,.btn-github:active,.btn-github.active,.btn-github.disabled,.btn-github[disabled] {color: #ffffff;background-color: #8bd26b;*background-color: #7bcc58;} .btn-github:hover,.btn-github:focus,.btn-github:active,.btn-github.active,.btn-github.disabled,.btn-github[disabled] {color: #ffffff;background-color: #8bd26b;*background-color: #7bcc58;}
.btn-github:active,.btn-github.active {background-color: #6cc644;} .btn-github:active,.btn-github.active {background-color: #6cc644;}
.btn-google.active {color: rgba(255,255,255,0.75);} .btn-google-plus.active {color: rgba(255,255,255,0.75);}
.btn-google {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #e05b4a;background-image: -moz-linear-gradient(top,#dd4b39,#e47365);background-image: -webkit-gradient(linear,0 0,0 100%,from(#dd4b39),to(#e47365));background-image: -webkit-linear-gradient(top,#dd4b39,#e47365);background-image: -o-linear-gradient(top,#dd4b39,#e47365);background-image: linear-gradient(to bottom,#dd4b39,#e47365);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdd4b39',endColorstr='#ffe47365',GradientType=0);border-color: #e47365 #e47365 #d73925;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #e47365;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);} .btn-google-plus {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #e05b4a;background-image: -moz-linear-gradient(top,#dd4b39,#e47365);background-image: -webkit-gradient(linear,0 0,0 100%,from(#dd4b39),to(#e47365));background-image: -webkit-linear-gradient(top,#dd4b39,#e47365);background-image: -o-linear-gradient(top,#dd4b39,#e47365);background-image: linear-gradient(to bottom,#dd4b39,#e47365);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdd4b39',endColorstr='#ffe47365',GradientType=0);border-color: #e47365 #e47365 #d73925;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #e47365;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);}
.btn-google:hover,.btn-google:focus,.btn-google:active,.btn-google.active,.btn-google.disabled,.btn-google[disabled] {color: #ffffff;background-color: #e47365;*background-color: #e15f4f;} .btn-google-plus:hover,.btn-google-plus:focus,.btn-google-plus:active,.btn-google-plus.active,.btn-google-plus.disabled,.btn-google-plus[disabled] {color: #ffffff;background-color: #e47365;*background-color: #e15f4f;}
.btn-google:active,.btn-google.active {background-color: #dd4b39;} .btn-google-plus:active,.btn-google-plus.active {background-color: #dd4b39;}
.btn-linkedin.active {color: rgba(255,255,255,0.75);} .btn-linkedin.active {color: rgba(255,255,255,0.75);}
.btn-linkedin {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #0089ca;background-image: -moz-linear-gradient(top,#007bb6,#009de9);background-image: -webkit-gradient(linear,0 0,0 100%,from(#007bb6),to(#009de9));background-image: -webkit-linear-gradient(top,#007bb6,#009de9);background-image: -o-linear-gradient(top,#007bb6,#009de9);background-image: linear-gradient(to bottom,#007bb6,#009de9);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff007bb6',endColorstr='#ff009de9',GradientType=0);border-color: #009de9 #009de9 #006a9d;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #009de9;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);} .btn-linkedin {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #0089ca;background-image: -moz-linear-gradient(top,#007bb6,#009de9);background-image: -webkit-gradient(linear,0 0,0 100%,from(#007bb6),to(#009de9));background-image: -webkit-linear-gradient(top,#007bb6,#009de9);background-image: -o-linear-gradient(top,#007bb6,#009de9);background-image: linear-gradient(to bottom,#007bb6,#009de9);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff007bb6',endColorstr='#ff009de9',GradientType=0);border-color: #009de9 #009de9 #006a9d;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #009de9;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);}
.btn-linkedin:hover,.btn-linkedin:focus,.btn-linkedin:active,.btn-linkedin.active,.btn-linkedin.disabled,.btn-linkedin[disabled] {color: #ffffff;background-color: #009de9;*background-color: #008cd0;} .btn-linkedin:hover,.btn-linkedin:focus,.btn-linkedin:active,.btn-linkedin.active,.btn-linkedin.disabled,.btn-linkedin[disabled] {color: #ffffff;background-color: #009de9;*background-color: #008cd0;}
.btn-linkedin:active,.btn-linkedin.active {background-color: #007bb6;} .btn-linkedin:active,.btn-linkedin.active {background-color: #007bb6;}
.btn-live.active {color: rgba(255,255,255,0.75);} .btn-windows.active {color: rgba(255,255,255,0.75);}
.btn-live {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #397eee;background-image: -moz-linear-gradient(top,#2672ec,#5590f0);background-image: -webkit-gradient(linear,0 0,0 100%,from(#2672ec),to(#5590f0));background-image: -webkit-linear-gradient(top,#2672ec,#5590f0);background-image: -o-linear-gradient(top,#2672ec,#5590f0);background-image: linear-gradient(to bottom,#2672ec,#5590f0);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2672ec',endColorstr='#ff5590f0',GradientType=0);border-color: #5590f0 #5590f0 #1464e4;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #5590f0;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);} .btn-windows {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #397eee;background-image: -moz-linear-gradient(top,#2672ec,#5590f0);background-image: -webkit-gradient(linear,0 0,0 100%,from(#2672ec),to(#5590f0));background-image: -webkit-linear-gradient(top,#2672ec,#5590f0);background-image: -o-linear-gradient(top,#2672ec,#5590f0);background-image: linear-gradient(to bottom,#2672ec,#5590f0);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2672ec',endColorstr='#ff5590f0',GradientType=0);border-color: #5590f0 #5590f0 #1464e4;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #5590f0;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);}
.btn-live:hover,.btn-live:focus,.btn-live:active,.btn-live.active,.btn-live.disabled,.btn-live[disabled] {color: #ffffff;background-color: #5590f0;*background-color: #3d81ee;} .btn-windows:hover,.btn-windows:focus,.btn-windows:active,.btn-windows.active,.btn-windows.disabled,.btn-windows[disabled] {color: #ffffff;background-color: #5590f0;*background-color: #3d81ee;}
.btn-live:active,.btn-live.active {background-color: #2672ec;} .btn-windows:active,.btn-windows.active {background-color: #2672ec;}
.btn-mailru.active {color: rgba(255,255,255,0.75);} .btn-mailru.active {color: rgba(255,255,255,0.75);}
.btn-mailru {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #0961b9;background-image: -moz-linear-gradient(top,#0857a6,#0a70d7);background-image: -webkit-gradient(linear,0 0,0 100%,from(#0857a6),to(#0a70d7));background-image: -webkit-linear-gradient(top,#0857a6,#0a70d7);background-image: -o-linear-gradient(top,#0857a6,#0a70d7);background-image: linear-gradient(to bottom,#0857a6,#0a70d7);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0857a6',endColorstr='#ff0a70d7',GradientType=0);border-color: #0a70d7 #0a70d7 #074a8e;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #0a70d7;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);} .btn-mailru {color: #ffffff;text-shadow: 0 -1px 0 rgba(0,0,0,0.25);background-color: #0961b9;background-image: -moz-linear-gradient(top,#0857a6,#0a70d7);background-image: -webkit-gradient(linear,0 0,0 100%,from(#0857a6),to(#0a70d7));background-image: -webkit-linear-gradient(top,#0857a6,#0a70d7);background-image: -o-linear-gradient(top,#0857a6,#0a70d7);background-image: linear-gradient(to bottom,#0857a6,#0a70d7);background-repeat: repeat-x;filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0857a6',endColorstr='#ff0a70d7',GradientType=0);border-color: #0a70d7 #0a70d7 #074a8e;border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color: #0a70d7;filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);}
.btn-mailru:hover,.btn-mailru:focus,.btn-mailru:active,.btn-mailru.active,.btn-mailru.disabled,.btn-mailru[disabled] {color: #ffffff;background-color: #0a70d7;*background-color: #0964be;} .btn-mailru:hover,.btn-mailru:focus,.btn-mailru:active,.btn-mailru.active,.btn-mailru.disabled,.btn-mailru[disabled] {color: #ffffff;background-color: #0a70d7;*background-color: #0964be;}

View File

@ -0,0 +1,319 @@
/* Global Styles */
/* ------------------------------- */
body {
background-color: #f8f8f8;
}
/* Wrappers */
/* ------------------------------- */
#wrapper {
width: 100%;
}
#page-wrapper {
padding: 0 15px;
min-height: 568px;
background-color: #fff;
}
@media(min-width:768px) {
#page-wrapper {
position: inherit;
margin: 0 0 0 250px;
padding: 0 30px;
min-height: 1300px;
border-left: 1px solid #e7e7e7;
}
}
.navbar-static-side ul li {
border-bottom: 1px solid #e7e7e7;
}
/* Navigation */
/* ------------------------------- */
/* Top Right Navigation Dropdown Styles */
.navbar-top-links li {
display: inline-block;
}
.navbar-top-links li:last-child {
margin-right: 15px;
}
.navbar-top-links li a {
padding: 15px;
min-height: 50px;
}
.navbar-top-links .dropdown-menu li {
display: block;
}
.navbar-top-links .dropdown-menu li:last-child {
margin-right: 0;
}
.navbar-top-links .dropdown-menu li a {
padding: 3px 20px;
min-height: 0;
}
.navbar-top-links .dropdown-menu li a div {
white-space: normal;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
width: 310px;
min-width: 0;
}
.navbar-top-links .dropdown-messages {
margin-left: 5px;
}
.navbar-top-links .dropdown-tasks {
margin-left: -59px;
}
.navbar-top-links .dropdown-alerts {
margin-left: -123px;
}
.navbar-top-links .dropdown-user {
right: 0;
left: auto;
}
/* Sidebar Menu Styles */
.sidebar-search {
padding: 15px;
}
.arrow {
float: right;
}
.fa.arrow:before {
content: "\f104";
}
.active > a > .fa.arrow:before {
content: "\f107";
}
.arrow-active {
float: right;
}
.fa.arrow-active:before {
content: "\f107";
}
.active > a > .fa.arrow-active:before {
content: "\f104";
}
.nav-second-level li,
.nav-third-level li {
border-bottom: none !important;
}
.nav-second-level li a {
padding-left: 37px;
}
.nav-third-level li a {
padding-left: 52px;
}
@media(min-width:768px) {
.navbar-static-side {
z-index: 1;
position: absolute;
width: 250px;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
margin-left: auto;
}
}
/* Buttons */
/* ------------------------------- */
.btn-outline {
color: inherit;
background-color: transparent;
transition: all .5s;
}
.btn-primary.btn-outline {
color: #428bca;
}
.btn-success.btn-outline {
color: #5cb85c;
}
.btn-info.btn-outline {
color: #5bc0de;
}
.btn-warning.btn-outline {
color: #f0ad4e;
}
.btn-danger.btn-outline {
color: #d9534f;
}
.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
color: #fff;
}
/* Pages */
/* ------------------------------- */
/* Dashboard Chat */
.chat {
margin: 0;
padding: 0;
list-style: none;
}
.chat li {
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 1px dotted #B3A9A9;
}
.chat li.left .chat-body {
margin-left: 60px;
}
.chat li.right .chat-body {
margin-right: 60px;
}
.chat li .chat-body p {
margin: 0;
color: #777777;
}
.panel .slidedown .glyphicon,
.chat .glyphicon {
margin-right: 5px;
}
.chat-panel .panel-body {
height: 350px;
overflow-y: scroll;
}
/* Login Page */
.login-panel {
margin-top: 25%;
}
/* Flot Chart Containers */
.flot-chart {
display: block;
height: 400px;
}
.flot-chart-content {
width: 100%;
height: 100%;
}
/* DataTables Overrides */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
background: transparent;
}
table.dataTable thead .sorting_asc:after {
content: "\f0de";
float: right;
font-family: fontawesome;
}
table.dataTable thead .sorting_desc:after {
content: "\f0dd";
float: right;
font-family: fontawesome;
}
table.dataTable thead .sorting:after {
content: "\f0dc";
float: right;
font-family: fontawesome;
color: rgba(50,50,50,.5);
}
/* Circle Buttons */
.btn-circle {
width: 30px;
height: 30px;
padding: 6px 0;
border-radius: 15px;
text-align: center;
font-size: 12px;
line-height: 1.428571429;
}
.btn-circle.btn-lg {
width: 50px;
height: 50px;
padding: 10px 16px;
border-radius: 25px;
font-size: 18px;
line-height: 1.33;
}
.btn-circle.btn-xl {
width: 70px;
height: 70px;
padding: 10px 16px;
border-radius: 35px;
font-size: 24px;
line-height: 1.33;
}
.show-grid [class^="col-"] {
padding-top: 10px;
padding-bottom: 10px;
border: 1px solid #ddd;
background-color: #eee !important;
}
.show-grid {
margin: 15px 0;
}

View File

@ -41,10 +41,10 @@
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/config.php'); include(EASYWIDIR . '/stuff/config.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');

View File

@ -40,9 +40,9 @@
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
if (isset($admin_id) and $ui->st('img', 'get')) { if (isset($admin_id) and $ui->st('img', 'get')) {

View File

@ -43,26 +43,32 @@ define('EASYWIDIR', dirname(__FILE__));
$main = 1; $main = 1;
$page_include = 1; $page_include = 1;
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/class_page_settings.php'); include(EASYWIDIR . '/stuff/methods/class_page_settings.php');
include(EASYWIDIR . '/stuff/init_page.php'); include(EASYWIDIR . '/stuff/cms/init_page.php');
if (isset($page_active) and $page_active == 'Y') { if (isset($page_active) and $page_active == 'Y') {
if (isset($throw404)) { if (isset($throw404)) {
$template_file = 'page_404.tpl'; $template_file = 'page_404.tpl';
} else if (isset($what_to_be_included_array[$s]) and is_file(EASYWIDIR . '/stuff/cms/' . $what_to_be_included_array[$s])) {
include(EASYWIDIR . '/stuff/cms/' . $what_to_be_included_array[$s]);
} else if (isset($what_to_be_included_array[$s]) and is_file(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$s])) { } else if (isset($what_to_be_included_array[$s]) and is_file(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$s])) {
include(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$s]); include(EASYWIDIR . '/stuff/' . $what_to_be_included_array[$s]);
} else if (isset($what_to_be_included_array[$s]) and is_file(EASYWIDIR . '/' . $what_to_be_included_array[$s])) { } else if (isset($what_to_be_included_array[$s]) and is_file(EASYWIDIR . '/' . $what_to_be_included_array[$s])) {
include(EASYWIDIR . '/' . $what_to_be_included_array[$s]); include(EASYWIDIR . '/' . $what_to_be_included_array[$s]);
} else if (isset($customFiles[$s])) {
include(EASYWIDIR . '/stuff/custom_modules/' . $customFiles[$s]);
} else if (isset($s) and !isset($what_to_be_included_array[$s])) { } else if (isset($s) and !isset($what_to_be_included_array[$s])) {
$template_file = 'page_404.tpl'; $template_file = 'page_404.tpl';
} else { } else {
$template_file = 'page_home.tpl'; $template_file = 'page_home.tpl';
} }
unset($dbConnect); unset($dbConnect);
if (!isset($template_to_use) or !isset($template_to_use) ) { if (!isset($template_to_use) or !isset($template_to_use) ) {
@ -75,9 +81,9 @@ if (isset($page_active) and $page_active == 'Y') {
$template_file = (string) $template_file; $template_file = (string) $template_file;
} }
include(IncludeTemplate($template_to_use,'page_header.tpl')); include(IncludeTemplate($template_to_use, 'page_header.tpl', 'cms'));
include(IncludeTemplate($template_to_use,(preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'page_general.tpl')); include(IncludeTemplate($template_to_use, (preg_match('/^(.*)\.tpl$/', $template_file)) ? $template_file : 'page_general.tpl', 'cms'));
include(IncludeTemplate($template_to_use,'page_footer.tpl')); include(IncludeTemplate($template_to_use, 'page_footer.tpl', 'cms'));
} else { } else {
redirect($page_data->pageurl . '/login.php'); redirect($page_data->pageurl . '/login.php');

View File

@ -42,8 +42,8 @@ ini_set('display_errors', 1);
error_reporting(E_ALL|E_STRICT); error_reporting(E_ALL|E_STRICT);
define('EASYWIDIR', dirname(dirname(__FILE__))); define('EASYWIDIR', dirname(dirname(__FILE__)));
require_once(EASYWIDIR . '/stuff/functions.php'); require_once(EASYWIDIR . '/stuff/methods/functions.php');
require_once(EASYWIDIR . '/stuff/vorlage.php'); require_once(EASYWIDIR . '/stuff/methods/vorlage.php');
$currentStep = (isset($_GET['step']) and $_GET['step'] > 0 and $_GET['step'] < 10) ? (int) $_GET['step'] : 0; $currentStep = (isset($_GET['step']) and $_GET['step'] > 0 and $_GET['step'] < 10) ? (int) $_GET['step'] : 0;
$progressPercent = (100 / 9) * $currentStep ; $progressPercent = (100 / 9) * $currentStep ;
@ -153,6 +153,13 @@ if ($currentStep == 0) {
'languages/default/dk/', 'languages/default/dk/',
'languages/default/uk', 'languages/default/uk',
'stuff/', 'stuff/',
'stuff/admin/',
'stuff/api/',
'stuff/cms/',
'stuff/custom_modules/',
'stuff/jobs/',
'stuff/methods/',
'stuff/user/',
'template/', 'template/',
'template/default/', 'template/default/',
'third_party/', 'third_party/',
@ -360,7 +367,7 @@ if ($currentStep == 4 and count($systemCheckError) == 0) {
try { try {
require_once(EASYWIDIR . '/stuff/tables_add.php'); require_once(EASYWIDIR . '/stuff/methods/tables_add.php');
$displayToUser .= "<div class='alert alert-success'>{$languageObject->ok_db_tables_create}</div>"; $displayToUser .= "<div class='alert alert-success'>{$languageObject->ok_db_tables_create}</div>";
$displayToUser .= "<div class='pager'><a href='?step=5${languageGetParameter}' class='pull-right'><span class='btn btn-primary btn-lg'>{$languageObject->continue}</span></a></div>"; $displayToUser .= "<div class='pager'><a href='?step=5${languageGetParameter}' class='pull-right'><span class='btn btn-primary btn-lg'>{$languageObject->continue}</span></a></div>";
@ -391,7 +398,7 @@ if ($currentStep == 5 and count($systemCheckError) == 0) {
$response = new UpdateResponse(); $response = new UpdateResponse();
require_once(EASYWIDIR . '/stuff/tables_repair.php'); require_once(EASYWIDIR . '/stuff/methods/tables_repair.php');
if (strpos($response->response, 'Error: no such table:') !== false) { if (strpos($response->response, 'Error: no such table:') !== false) {
@ -811,7 +818,7 @@ if ($currentStep == 8 and count($systemCheckError) == 0) {
try { try {
require_once(EASYWIDIR . '/stuff/gameslist.php'); include(EASYWIDIR . '/stuff/methods/gameslist.php');
$displayToUser .= "<div class='pager'><a href='?step=9${languageGetParameter}' class='pull-right'><span class='btn btn-primary btn-lg'>{$languageObject->continue}</span></a></div>"; $displayToUser .= "<div class='pager'><a href='?step=9${languageGetParameter}' class='pull-right'><span class='btn btn-primary btn-lg'>{$languageObject->continue}</span></a></div>";
$displayToUser .= "<div class='alert alert-success'>{$languageObject->ok_gameserver_data}</div>"; $displayToUser .= "<div class='alert alert-success'>{$languageObject->ok_gameserver_data}</div>";

View File

@ -170,7 +170,7 @@ if (versioncheck ($version, '2.10', 'update_209-210.php', $response)) {
$version = '2.10'; $version = '2.10';
} }
include(EASYWIDIR . '/stuff/tables_add.php'); include(EASYWIDIR . '/stuff/methods/tables_add.php');
if (versioncheck ($version, '2.11', 'update_210-211.php', $response)) { if (versioncheck ($version, '2.11', 'update_210-211.php', $response)) {
$version = '2.11'; $version = '2.11';
@ -241,9 +241,9 @@ if (versioncheck ($version, '4.30', 'update_420-430.php', $response)) {
$response->add('Repairing tables if needed.'); $response->add('Repairing tables if needed.');
include(EASYWIDIR . '/stuff/tables_repair.php'); include(EASYWIDIR . '/stuff/methods/tables_repair.php');
include(EASYWIDIR . '/stuff/tables_entries_repair.php'); include(EASYWIDIR . '/stuff/methods/tables_entries_repair.php');
# Ende # Ende
if (!isset($updateinclude) or $updateinclude == false) { if (!isset($updateinclude) or $updateinclude == false) {

View File

@ -72,16 +72,16 @@ if (isset($argv)) {
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/class_rootserver.php'); include(EASYWIDIR . '/stuff/methods/class_rootserver.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/functions_gs.php'); include(EASYWIDIR . '/stuff/methods/functions_gs.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
include(EASYWIDIR . '/stuff/functions_ts3.php'); include(EASYWIDIR . '/stuff/methods/functions_ts3.php');
include(EASYWIDIR . '/stuff/mysql_functions.php'); include(EASYWIDIR . '/stuff/methods/mysql_functions.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) { if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) {
@ -177,49 +177,49 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
$theOutput = new runGraph($jobCount,$newLine); $theOutput = new runGraph($jobCount,$newLine);
# us > vo > gs > my > vs # us > vo > gs > my > vs
include(EASYWIDIR . '/stuff/jobs_user.php'); include(EASYWIDIR . '/stuff/jobs/jobs_user.php');
$counJobs->execute(); $counJobs->execute();
$jobCount = $counJobs->rowCount(); $jobCount = $counJobs->rowCount();
$theOutput->updateCount($jobCount); $theOutput->updateCount($jobCount);
print "\r\n" . 'Total jobs open after user cleanup jobs are done: ' . $jobCount . "\r\n"; print "\r\n" . 'Total jobs open after user cleanup jobs are done: ' . $jobCount . "\r\n";
print 'Executing voice jobs' . "\r\n"; print 'Executing voice jobs' . "\r\n";
include(EASYWIDIR . '/stuff/jobs_voice.php'); include(EASYWIDIR . '/stuff/jobs/jobs_voice.php');
$counJobs->execute(); $counJobs->execute();
$jobCount = $counJobs->rowCount(); $jobCount = $counJobs->rowCount();
$theOutput->updateCount($jobCount); $theOutput->updateCount($jobCount);
print "\r\n" . 'Total jobs open after voice jobs are done: ' . $jobCount . "\r\n"; print "\r\n" . 'Total jobs open after voice jobs are done: ' . $jobCount . "\r\n";
print 'Executing TS DNS jobs' . "\r\n"; print 'Executing TS DNS jobs' . "\r\n";
include(EASYWIDIR . '/stuff/jobs_tsdns.php'); include(EASYWIDIR . '/stuff/jobs/jobs_tsdns.php');
$counJobs->execute(); $counJobs->execute();
$jobCount = $counJobs->rowCount(); $jobCount = $counJobs->rowCount();
$theOutput->updateCount($jobCount); $theOutput->updateCount($jobCount);
print "\r\n" . 'Total jobs open after TS DNS jobs are done: ' . $jobCount . "\r\n"; print "\r\n" . 'Total jobs open after TS DNS jobs are done: ' . $jobCount . "\r\n";
print 'Executing mysql jobs' . "\r\n"; print 'Executing mysql jobs' . "\r\n";
include(EASYWIDIR . '/stuff/jobs_mysql.php'); include(EASYWIDIR . '/stuff/jobs/jobs_mysql.php');
$counJobs->execute(); $counJobs->execute();
$jobCount = $counJobs->rowCount(); $jobCount = $counJobs->rowCount();
$theOutput->updateCount($jobCount); $theOutput->updateCount($jobCount);
print "\r\n" . 'Total jobs open after mysql jobs are done: ' . $jobCount . "\r\n"; print "\r\n" . 'Total jobs open after mysql jobs are done: ' . $jobCount . "\r\n";
print 'Executing gameserver jobs' . "\r\n"; print 'Executing gameserver jobs' . "\r\n";
include(EASYWIDIR . '/stuff/jobs_gserver.php'); include(EASYWIDIR . '/stuff/jobs/jobs_gserver.php');
$counJobs->execute(); $counJobs->execute();
$jobCount = $counJobs->rowCount(); $jobCount = $counJobs->rowCount();
$theOutput->updateCount($jobCount); $theOutput->updateCount($jobCount);
print "\r\n" . 'Total jobs open after gameserver jobs are done: ' . $jobCount . "\r\n"; print "\r\n" . 'Total jobs open after gameserver jobs are done: ' . $jobCount . "\r\n";
print 'Executing root server jobs' . "\r\n"; print 'Executing root server jobs' . "\r\n";
include(EASYWIDIR . '/stuff/jobs_roots.php'); include(EASYWIDIR . '/stuff/jobs/jobs_roots.php');
$counJobs->execute(); $counJobs->execute();
$jobCount = $counJobs->rowCount(); $jobCount = $counJobs->rowCount();
$theOutput->updateCount($jobCount); $theOutput->updateCount($jobCount);
print "\r\n" . 'Total jobs open after root server jobs are done: ' . $jobCount . "\r\n"; print "\r\n" . 'Total jobs open after root server jobs are done: ' . $jobCount . "\r\n";
print 'Executing user remove jobs' . "\r\n"; print 'Executing user remove jobs' . "\r\n";
include(EASYWIDIR . '/stuff/jobs_user_rm.php'); include(EASYWIDIR . '/stuff/jobs/jobs_user_rm.php');
print "\n"; print "\n";
if ($deamon == true) { if ($deamon == true) {

View File

@ -0,0 +1,45 @@
;(function ($, window, document, undefined) {
var pluginName = "metisMenu",
defaults = {
toggle: true
};
function Plugin(element, options) {
this.element = element;
this.settings = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this.init();
}
Plugin.prototype = {
init: function () {
var $this = $(this.element),
$toggle = this.settings.toggle;
$this.find('li.active').has('ul').children('ul').addClass('collapse in');
$this.find('li').not('.active').has('ul').children('ul').addClass('collapse');
$this.find('li').has('ul').children('a').on('click', function (e) {
e.preventDefault();
$(this).parent('li').toggleClass('active').children('ul').collapse('toggle');
if ($toggle) {
$(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide');
}
});
}
};
$.fn[ pluginName ] = function (options) {
return this.each(function () {
if (!$.data(this, "plugin_" + pluginName)) {
$.data(this, "plugin_" + pluginName, new Plugin(this, options));
}
});
};
})(jQuery, window, document);

View File

@ -0,0 +1,31 @@
$(function() {
$('#side-menu').metisMenu();
});
//Loads the correct sidebar on window load
$(function() {
$(window).bind("load", function() {
console.log($(this).width())
if ($(this).width() < 768) {
$('div.sidebar-collapse').addClass('collapse')
} else {
$('div.sidebar-collapse').removeClass('collapse')
}
})
})
//Collapses the sidebar on window resize
$(function() {
$(window).bind("resize", function() {
console.log($(this).width())
if ($(this).width() < 768) {
$('div.sidebar-collapse').addClass('collapse')
} else {
$('div.sidebar-collapse').removeClass('collapse')
}
})
})

View File

@ -50,9 +50,9 @@ if (isset($page_include)) {
$logininclude = 1; $logininclude = 1;
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
$query = $sql->prepare("SELECT `language` FROM `settings` WHERE `resellerid`=0 LIMIT 1"); $query = $sql->prepare("SELECT `language` FROM `settings` WHERE `resellerid`=0 LIMIT 1");
@ -65,9 +65,9 @@ if (isset($page_include)) {
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/functions_gs.php'); include(EASYWIDIR . '/stuff/methods/functions_gs.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
$validacces = false; $validacces = false;
@ -425,7 +425,9 @@ if (isset($servertype)) {
$tFile = (isset($lendIPBlock)) ? 'lenddata_ipblock.tpl' : 'lenddata.tpl'; $tFile = (isset($lendIPBlock)) ? 'lenddata_ipblock.tpl' : 'lenddata.tpl';
if (isset($template_to_use) and is_file(EASYWIDIR . '/template/' . $template_to_use . '/' . $tFile)) { if (isset($template_to_use) and is_file(EASYWIDIR . '/template/' . $template_to_use . '/cms/' . $tFile)) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/' . $tFile);
} else if (isset($template_to_use) and is_file(EASYWIDIR . '/template/' . $template_to_use . '/' . $tFile)) {
include(EASYWIDIR . '/template/' . $template_to_use . '/' . $tFile); include(EASYWIDIR . '/template/' . $template_to_use . '/' . $tFile);
} else if (is_file(EASYWIDIR . '/template/default/' . $tFile)) { } else if (is_file(EASYWIDIR . '/template/default/' . $tFile)) {
include(EASYWIDIR . '/template/default/' . $tFile); include(EASYWIDIR . '/template/default/' . $tFile);
@ -908,7 +910,10 @@ if (!isset($template_file) and ((!isset($servertype) and isset($page_include) an
} else { } else {
if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl')) { if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/cms/lenddata.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/lenddata.tpl');
} else if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl'); include(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl');
} else if (is_file(EASYWIDIR . '/template/default/lenddata.tpl')) { } else if (is_file(EASYWIDIR . '/template/default/lenddata.tpl')) {
@ -953,7 +958,12 @@ if (!isset($template_file) and ((!isset($servertype) and isset($page_include) an
$template_file = 'page_lend.tpl'; $template_file = 'page_lend.tpl';
} else { } else {
if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl')) {
if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/cms/lend.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/lend.tpl');
} else if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl'); include(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl');
} else if (is_file(EASYWIDIR . '/template/default/lend.tpl')) { } else if (is_file(EASYWIDIR . '/template/default/lend.tpl')) {
@ -1302,7 +1312,10 @@ if (!isset($template_file) and ((!isset($servertype) and isset($page_include) an
} else { } else {
if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl')) { if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/cms/lenddata.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/lenddata.tpl');
} else if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl'); include(EASYWIDIR . '/template/' . $template_to_use . '/lenddata.tpl');
} else if (is_file(EASYWIDIR . '/template/default/lenddata.tpl')) { } else if (is_file(EASYWIDIR . '/template/default/lenddata.tpl')) {
@ -1341,7 +1354,10 @@ if (!isset($template_file) and ((!isset($servertype) and isset($page_include) an
} else { } else {
if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl')) { if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/cms/lend.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/lend.tpl');
} else if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl'); include(EASYWIDIR . '/template/' . $template_to_use . '/lend.tpl');
} else if (is_file(EASYWIDIR . '/template/default/lend.tpl')) { } else if (is_file(EASYWIDIR . '/template/default/lend.tpl')) {

View File

@ -48,10 +48,10 @@ if (is_dir(EASYWIDIR . '/install')) {
die('Please remove the "install" folder'); die('Please remove the "install" folder');
} }
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/third_party/password_compat/password.php'); include(EASYWIDIR . '/third_party/password_compat/password.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
@ -422,7 +422,17 @@ if ($ui->st('w', 'get') == 'lo') {
$query = $sql->prepare("SELECT `filename` FROM `userdata_social_providers` WHERE `resellerID`=0 AND `active`='Y'"); $query = $sql->prepare("SELECT `filename` FROM `userdata_social_providers` WHERE `resellerID`=0 AND `active`='Y'");
$query->execute(); $query->execute();
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
$serviceProviders[$row['filename']] = strtolower($row['filename']);
$cssIcon = strtolower($row['filename']);
if ($cssIcon == 'google') {
$cssIcon = 'google-plus';
} else if ($cssIcon == 'live') {
$cssIcon = 'windows';
}
$serviceProviders[$row['filename']] = strtolower($cssIcon);
} }
if (count($serviceProviders) > 0) { if (count($serviceProviders) > 0) {
@ -446,10 +456,21 @@ if ($ui->st('w', 'get') == 'lo') {
if (!isset($include) and !isset($passwordCorrect) and !$ui->username('username', 255, 'post') and !$ui->ismail('username', 255, 'post') and !$ui->password('password', 255, 'post') and !isset($_SESSION['sessionid'])) { if (!isset($include) and !isset($passwordCorrect) and !$ui->username('username', 255, 'post') and !$ui->ismail('username', 255, 'post') and !$ui->password('password', 255, 'post') and !isset($_SESSION['sessionid'])) {
$serviceProviders = array(); $serviceProviders = array();
$query = $sql->prepare("SELECT `filename` FROM `userdata_social_providers` WHERE `resellerID`=0 AND `active`='Y'"); $query = $sql->prepare("SELECT `filename` FROM `userdata_social_providers` WHERE `resellerID`=0 AND `active`='Y'");
$query->execute(); $query->execute();
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
$serviceProviders[$row['filename']] = strtolower($row['filename']);
$cssIcon = strtolower($row['filename']);
if ($cssIcon == 'google') {
$cssIcon = 'google-plus';
} else if ($cssIcon == 'live') {
$cssIcon = 'windows';
}
$serviceProviders[$row['filename']] = strtolower($cssIcon);
} }
if (count($serviceProviders) > 0) { if (count($serviceProviders) > 0) {
@ -737,7 +758,9 @@ if ($ui->st('w', 'get') == 'lo') {
} }
if (isset($include) and isset($template_to_use)) { if (isset($include) and isset($template_to_use)) {
if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/' . $include)) { if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/cms/' . $include)) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/' . $include);
} else if (is_file(EASYWIDIR . '/template/' . $template_to_use . '/' . $include)) {
include(EASYWIDIR . '/template/' . $template_to_use . '/' . $include); include(EASYWIDIR . '/template/' . $template_to_use . '/' . $include);
} else if (is_file(EASYWIDIR . '/template/default/' . $include)) { } else if (is_file(EASYWIDIR . '/template/default/' . $include)) {
include(EASYWIDIR . '/template/default/' . $include); include(EASYWIDIR . '/template/default/' . $include);

View File

@ -53,9 +53,9 @@ if (isset($page_include)) {
$logininclude = true; $logininclude = true;
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
if (!isset($user_language)) { if (!isset($user_language)) {
@ -147,10 +147,16 @@ if (!isset($protected)) {
$imgAlt = 'protected'; $imgAlt = 'protected';
} }
if ($ui->ipport('serveraddress', 'post')) { if ($ui->ipport('serveraddress', 'post')) {
if (isset($page_include)) { if (isset($page_include)) {
$template_file = 'page_protectioncheck.tpl'; $template_file = 'page_protectioncheck.tpl';
} else { } else {
if (file_exists(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl')) {
if (file_exists(EASYWIDIR . '/template/' . $template_to_use . '/cms/protectioncheck.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/protectioncheck.tpl');
} else if (file_exists(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl'); include(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl');
} else if (file_exists(EASYWIDIR . '/template/default/protectioncheck.tpl')) { } else if (file_exists(EASYWIDIR . '/template/default/protectioncheck.tpl')) {
include(EASYWIDIR . '/template/default/protectioncheck.tpl'); include(EASYWIDIR . '/template/default/protectioncheck.tpl');
@ -158,7 +164,8 @@ if ($ui->ipport('serveraddress', 'post')) {
include(EASYWIDIR . '/template/protectioncheck.tpl'); include(EASYWIDIR . '/template/protectioncheck.tpl');
} }
} }
} else if (!isset($page_include) and $ui->ip('ip', 'get') and $ui->port('po', 'get')) {
} else if (!isset($page_include) and $ui->ip('ip', 'get') and $ui->port('po', 'get')) {
if ($ui->username('gamestring', 50, 'get') == 'xml') { if ($ui->username('gamestring', 50, 'get') == 'xml') {
if (!isset($protected)) { if (!isset($protected)) {
echo 'unknown'; echo 'unknown';
@ -225,8 +232,11 @@ XML;
$page_data->langLinks($langLinks); $page_data->langLinks($langLinks);
$template_file = 'page_protectioncheck.tpl'; $template_file = 'page_protectioncheck.tpl';
} else { } else {
if (file_exists(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl')) { if (file_exists(EASYWIDIR . '/template/' . $template_to_use . '/cms/protectioncheck.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/cms/protectioncheck.tpl');
} else if (file_exists(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl')) {
include(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl'); include(EASYWIDIR . '/template/' . $template_to_use . '/protectioncheck.tpl');
} else if (file_exists(EASYWIDIR . '/template/default/protectioncheck.tpl')) { } else if (file_exists(EASYWIDIR . '/template/default/protectioncheck.tpl')) {
include(EASYWIDIR . '/template/default/protectioncheck.tpl'); include(EASYWIDIR . '/template/default/protectioncheck.tpl');

View File

@ -47,15 +47,15 @@ if (isset($_SERVER['REMOTE_ADDR'])) {
set_time_limit($timelimit); set_time_limit($timelimit);
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/functions_gs.php'); include(EASYWIDIR . '/stuff/methods/functions_gs.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/class_masterserver.php'); include(EASYWIDIR . '/stuff/methods/class_masterserver.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
include(EASYWIDIR . '/stuff/queries_updates.php'); include(EASYWIDIR . '/stuff/methods/queries_updates.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) { if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) {
@ -576,7 +576,7 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
$newsInclude = true; $newsInclude = true;
$printToConsole = true; $printToConsole = true;
print "Check for new news feeds\r\n"; print "Check for new news feeds\r\n";
include(EASYWIDIR . '/stuff/feeds_function.php'); include(EASYWIDIR . '/stuff/methods/feeds_function.php');
if (isset($template_file)) { if (isset($template_file)) {
print $template_file."\r\n"; print $template_file."\r\n";
} }

View File

@ -37,9 +37,9 @@
*/ */
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/config.php'); include(EASYWIDIR . '/stuff/config.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
@ -78,7 +78,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
if ($row['mapGroup'] != null) { if ($row['mapGroup'] != null) {
$mapGroup = $row['mapGroup']; $mapGroup = $row['mapGroup'];
require_once IncludeTemplate($template_to_use,'ajax_userpanel_mapgroup.tpl'); require_once IncludeTemplate($template_to_use,'ajax_userpanel_mapgroup.tpl', 'ajax');
} }
} }
@ -169,7 +169,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
$best_hdd[] = $mountpoint; $best_hdd[] = $mountpoint;
} }
} }
require_once IncludeTemplate($template_to_use,'ajax_admin_vserver_allocation.tpl'); require_once IncludeTemplate($template_to_use,'ajax_admin_vserver_allocation.tpl', 'ajax');
} else if ($ui->st('d', 'get')=="ui" and $ui->id('id',19, 'get')) { } else if ($ui->st('d', 'get')=="ui" and $ui->id('id',19, 'get')) {
foreach (freeips($ui->id('id',19, 'get')) as $ip) echo $ip."<br />"; foreach (freeips($ui->id('id',19, 'get')) as $ip) echo $ip."<br />";
@ -185,7 +185,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
$installed = 0; $installed = 0;
$max_databases = 0; $max_databases = 0;
} }
require_once IncludeTemplate($template_to_use,'ajax_admin_mysql_server.tpl'); require_once IncludeTemplate($template_to_use,'ajax_admin_mysql_server.tpl', 'ajax');
} else if ($ui->st('d', 'get')=="tr" and $ui->st('w', 'get')) { } else if ($ui->st('d', 'get')=="tr" and $ui->st('w', 'get')) {
if ($ui->st('w', 'get')=="su") { if ($ui->st('w', 'get')=="su") {
@ -263,7 +263,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
natsort($ips); natsort($ips);
foreach ($ips as $ip) $data[] = '<option>'.$ip.'</option>'; foreach ($ips as $ip) $data[] = '<option>'.$ip.'</option>';
} }
require_once IncludeTemplate($template_to_use,'ajax_admin_traffic.tpl'); require_once IncludeTemplate($template_to_use,'ajax_admin_traffic.tpl', 'ajax');
} else if ($ui->st('d', 'get')=="vu" and $ui->st('w', 'get')) { } else if ($ui->st('d', 'get')=="vu" and $ui->st('w', 'get')) {
if ($ui->st('w', 'get')=="us") { if ($ui->st('w', 'get')=="us") {
$query = $sql->prepare("SELECT u.`id`,u.`cname`,u.`vname`,u.`name` FROM `userdata` u INNER JOIN `voice_server` v ON u.`id`=v.`userid` AND v.`active`='Y' WHERE u.`resellerid`=? GROUP BY u.`id`"); $query = $sql->prepare("SELECT u.`id`,u.`cname`,u.`vname`,u.`name` FROM `userdata` u INNER JOIN `voice_server` v ON u.`id`=v.`userid` AND v.`active`='Y' WHERE u.`resellerid`=? GROUP BY u.`id`");
@ -281,7 +281,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
$query->execute(array($reseller_id)); $query->execute(array($reseller_id));
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) $data[] = '<option value='.$row['id'].'>'.$row['ssh2ip'].'</option>'; foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) $data[] = '<option value='.$row['id'].'>'.$row['ssh2ip'].'</option>';
} }
require_once IncludeTemplate($template_to_use,'ajax_admin_voice_stats.tpl'); require_once IncludeTemplate($template_to_use,'ajax_admin_voice_stats.tpl', 'ajax');
} else if ($ui->username('distro', 50, 'get') and $ui->id('id',19, 'get') and ($pa['vserversettings'] or $pa['root']) and $reseller_id == 0) { } else if ($ui->username('distro', 50, 'get') and $ui->id('id',19, 'get') and ($pa['vserversettings'] or $pa['root']) and $reseller_id == 0) {
$pselect = $sql->prepare("SELECT `pxeautorun` FROM `resellerimages` WHERE `bitversion`=? AND `distro`=?"); $pselect = $sql->prepare("SELECT `pxeautorun` FROM `resellerimages` WHERE `bitversion`=? AND `distro`=?");
$pselect->execute(array($ui->id('id',19, 'get'), $ui->username('distro', 50, 'get'))); $pselect->execute(array($ui->id('id',19, 'get'), $ui->username('distro', 50, 'get')));
@ -351,8 +351,8 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
} else if ($ui->username('gamestring', 50, 'get') and $ui->id('id',19, 'get') and ($pa['roots'] or $pa['root'])) { } else if ($ui->username('gamestring', 50, 'get') and $ui->id('id',19, 'get') and ($pa['roots'] or $pa['root'])) {
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/class_masterserver.php'); include(EASYWIDIR . '/stuff/methods/class_masterserver.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
$sprache = getlanguagefile('roots', $user_language, $reseller_id); $sprache = getlanguagefile('roots', $user_language, $reseller_id);
@ -420,7 +420,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
} else { } else {
$uslots = $row['uslots']; $uslots = $row['uslots'];
} }
require_once IncludeTemplate($template_to_use,'ajax_admin_voiceserver_usage.tpl'); require_once IncludeTemplate($template_to_use,'ajax_admin_voiceserver_usage.tpl', 'ajax');
} }
} else if ($pa['gserver'] and $ui->st('d', 'get')!="vs" and $ui->st('d', 'get')!="vo" and ($ui->id('id',19, 'get') or $ui->ip('ip', 'get'))) { } else if ($pa['gserver'] and $ui->st('d', 'get')!="vs" and $ui->st('d', 'get')!="vo" and ($ui->id('id',19, 'get') or $ui->ip('ip', 'get'))) {
$sprache = getlanguagefile('gserver', $user_language, $reseller_id); $sprache = getlanguagefile('gserver', $user_language, $reseller_id);
@ -446,7 +446,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
$max+=$row['slots']; $max+=$row['slots'];
$installedserver++; $installedserver++;
} }
require_once IncludeTemplate($template_to_use,'ajax_admin_gserver_usage.tpl'); require_once IncludeTemplate($template_to_use,'ajax_admin_gserver_usage.tpl', 'ajax');
} else if ($ui->ip('ip', 'get') and $ui->st('d', 'get')!="vs") { } else if ($ui->ip('ip', 'get') and $ui->st('d', 'get')!="vs") {
$query = $sql->prepare("SELECT `port`,`port2`,`port3`,`port4`,`port5` FROM `gsswitch` WHERE `serverip`=? AND `resellerid`=? ORDER BY `port`"); $query = $sql->prepare("SELECT `port`,`port2`,`port3`,`port4`,`port5` FROM `gsswitch` WHERE `serverip`=? AND `resellerid`=? ORDER BY `port`");
$query->execute(array($ui->ip('ip', 'get'), $reseller_id)); $query->execute(array($ui->ip('ip', 'get'), $reseller_id));
@ -481,7 +481,7 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
} else { } else {
$ports = ''; $ports = '';
} }
require_once IncludeTemplate($template_to_use,'ajax_admin_gserver_ports.tpl'); require_once IncludeTemplate($template_to_use,'ajax_admin_gserver_ports.tpl', 'ajax');
} }
} else if (($pa['usertickets'] or $pa['usertickets']) and $ui->port('po', 'get') and ($ui->st('d', 'get') == 'ut' or $ui->st('d', 'get') == 'rt')) { } else if (($pa['usertickets'] or $pa['usertickets']) and $ui->port('po', 'get') and ($ui->st('d', 'get') == 'ut' or $ui->st('d', 'get') == 'rt')) {
if ($reseller_id != 0 and $admin_id==$reseller_id and $ui->st('d', 'get') == 'rt') { if ($reseller_id != 0 and $admin_id==$reseller_id and $ui->st('d', 'get') == 'rt') {
@ -511,6 +511,6 @@ if ($ui->smallletters('w',5, 'get') == 'check') {
$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'; $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); require_once IncludeTemplate($template_to_use, $ticketTemplate, 'ajax');
} }
} }

View File

@ -37,10 +37,10 @@
*/ */
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/class_ftp.php'); include(EASYWIDIR . '/stuff/methods/class_ftp.php');
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');

View File

@ -47,12 +47,12 @@ if (isset($_SERVER['REMOTE_ADDR'])) {
set_time_limit($timelimit); set_time_limit($timelimit);
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/class_masterserver.php'); include(EASYWIDIR . '/stuff/methods/class_masterserver.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) { if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip, ipstoarray($rSA['cronjob_ips']))) {

View File

@ -65,13 +65,13 @@ if (isset($argv)) {
} }
define('EASYWIDIR', dirname(__FILE__)); define('EASYWIDIR', dirname(__FILE__));
include(EASYWIDIR . '/stuff/vorlage.php'); include(EASYWIDIR . '/stuff/methods/vorlage.php');
include(EASYWIDIR . '/stuff/functions.php'); include(EASYWIDIR . '/stuff/methods/functions.php');
include(EASYWIDIR . '/stuff/class_validator.php'); include(EASYWIDIR . '/stuff/methods/class_validator.php');
include(EASYWIDIR . '/stuff/settings.php'); include(EASYWIDIR . '/stuff/settings.php');
include(EASYWIDIR . '/stuff/functions_gs.php'); include(EASYWIDIR . '/stuff/methods/functions_gs.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
include(EASYWIDIR . '/third_party/gameq/GameQ.php'); include(EASYWIDIR . '/third_party/gameq/GameQ.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');

View File

@ -167,9 +167,9 @@ if ($ui->smallletters('w',2, 'get') == 'da' or (!$ui->smallletters('w',2, 'get')
$query2->execute(array($user_language)); $query2->execute(array($user_language));
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) { foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
if ($row['merge'] == 'N') { if ($row['merge'] == 'N') {
$feedArray[$page_url][] = array('title' => $row2['title'], 'link' => (isset($seo) and $seo== 'Y') ? $page_url. '/' . $user_language . '/' . szrp($gsprache->news) . '/' . szrp($row2['title']) . '/' : $page_url.'/index.php?site=news&amp;id=' . $row2['id'], 'text' => nl2br($row2['text']), 'url' => $page_url); $feedArray[$page_url][] = array('title' => $row2['title'], 'link' => (isset($seo) and $seo == 'Y') ? $page_url. '/' . $user_language . '/' . szrp($gsprache->news) . '/' . szrp($row2['title']) . '/' : $page_url.'/index.php?site=news&amp;id=' . $row2['id'], 'text' => nl2br($row2['text']), 'url' => $page_url);
} else { } else {
$feedArray['News'][] = array('title' => $row2['title'], 'link' => (isset($seo) and $seo== 'Y') ? $page_url. '/' . $user_language . '/' . szrp($gsprache->news) . '/' . szrp($row2['title']) . '/' : $page_url.'/index.php?site=news&amp;id=' . $row2['id'], 'text' => nl2br($row2['text']), 'url' => $page_url); $feedArray['News'][] = array('title' => $row2['title'], 'link' => (isset($seo) and $seo == 'Y') ? $page_url. '/' . $user_language . '/' . szrp($gsprache->news) . '/' . szrp($row2['title']) . '/' : $page_url.'/index.php?site=news&amp;id=' . $row2['id'], 'text' => nl2br($row2['text']), 'url' => $page_url);
} }
} }

View File

@ -54,7 +54,7 @@ if ($reseller_id == 0) {
$lookUpID=($reseller_id != 0 and $admin_id != $reseller_id) ? $admin_id: $reseller_id; $lookUpID=($reseller_id != 0 and $admin_id != $reseller_id) ? $admin_id: $reseller_id;
if ($ui->st('d', 'get') == 'ud') { if ($ui->st('d', 'get') == 'ud') {
$newsInclude = true; $newsInclude = true;
include(EASYWIDIR . '/stuff/feeds_function.php'); include(EASYWIDIR . '/stuff/methods/feeds_function.php');
} else if ($ui->st('d', 'get') == 'md') { } else if ($ui->st('d', 'get') == 'md') {
$ids=(array)$ui->active('ids', 'post'); $ids=(array)$ui->active('ids', 'post');
$delete = $sql->prepare("DELETE FROM `feeds_news` WHERE `newsID`=? AND `resellerID`=? LIMIT 1"); $delete = $sql->prepare("DELETE FROM `feeds_news` WHERE `newsID`=? AND `resellerID`=? LIMIT 1");

View File

@ -42,7 +42,7 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['gserver']))
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/functions_gs.php'); include(EASYWIDIR . '/stuff/methods/functions_gs.php');
$sprache = getlanguagefile('gserver',$user_language,$reseller_id); $sprache = getlanguagefile('gserver',$user_language,$reseller_id);
$loguserid = $admin_id; $loguserid = $admin_id;
$logusername = getusername($admin_id); $logusername = getusername($admin_id);
@ -375,7 +375,7 @@ if ($ui->st('d', 'get') == 'ad' and is_numeric($licenceDetails['lG']) and $licen
$query = $sql->prepare("SELECT `id` FROM `gsswitch` WHERE `rootID`=? AND `serverip`=? AND `port`=? AND `userid`!=? AND `resellerid`=? LIMIT 1"); $query = $sql->prepare("SELECT `id` FROM `gsswitch` WHERE `rootID`=? AND `serverip`=? AND `port`=? AND `userid`!=? AND `resellerid`=? LIMIT 1");
$query->execute(array($serverid,$serverip,$port,$customer,$reseller_id)); $query->execute(array($serverid,$serverip,$port,$customer,$reseller_id));
if ($query->rowCount() == 0) { if ($query->rowCount() == 0) {
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$gamestring = array(); $gamestring = array();
$template_file = ''; $template_file = '';
$rdata=serverdata('root',$serverid,$aeskey); $rdata=serverdata('root',$serverid,$aeskey);
@ -663,7 +663,7 @@ if ($ui->st('d', 'get') == 'ad' and is_numeric($licenceDetails['lG']) and $licen
$template_file = $sprache->no_server_left; $template_file = $sprache->no_server_left;
} }
if (isset($rootID)) { if (isset($rootID)) {
include (EASYWIDIR . '/stuff/functions_ssh_exec.php'); include (EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
ssh2_execute('gs', $rootID, $cmds); ssh2_execute('gs', $rootID, $cmds);
} }
$loguseraction="%del% %gserver% $serverip:$port"; $loguseraction="%del% %gserver% $serverip:$port";
@ -837,7 +837,7 @@ if ($ui->st('d', 'get') == 'ad' and is_numeric($licenceDetails['lG']) and $licen
$pallowed = ($ui->active('pallowed', 'post')) ? $ui->active('pallowed', 'post') : 'N'; $pallowed = ($ui->active('pallowed', 'post')) ? $ui->active('pallowed', 'post') : 'N';
$ftppass = $ui->password('password',50, 'post'); $ftppass = $ui->password('password',50, 'post');
$pallowed = $ui->active('pallowed', 'post'); $pallowed = $ui->active('pallowed', 'post');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$query = $sql->prepare("SELECT `newlayout`,`userid`,AES_DECRYPT(`ftppassword`,?) AS `ftp`,AES_DECRYPT(`ppassword`,?) AS `ppass`,`active`,`rootID`,`serverip`,`port`,`port2`,`port3`,`port4`,`port5`,`userid`,`slots` FROM `gsswitch` WHERE `id`=? AND `resellerid`=? LIMIT 1"); $query = $sql->prepare("SELECT `newlayout`,`userid`,AES_DECRYPT(`ftppassword`,?) AS `ftp`,AES_DECRYPT(`ppassword`,?) AS `ppass`,`active`,`rootID`,`serverip`,`port`,`port2`,`port3`,`port4`,`port5`,`userid`,`slots` FROM `gsswitch` WHERE `id`=? AND `resellerid`=? LIMIT 1");
$query->execute(array($aeskey,$aeskey,$server_id,$reseller_id)); $query->execute(array($aeskey,$aeskey,$server_id,$reseller_id));
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
@ -1062,7 +1062,7 @@ if ($ui->st('d', 'get') == 'ad' and is_numeric($licenceDetails['lG']) and $licen
} }
} }
if (count($gamestring)>0 and $ui->active('type', 'post')) { if (count($gamestring)>0 and $ui->active('type', 'post')) {
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$gamestring=count($gamestring) . '_' . implode('_',$gamestring); $gamestring=count($gamestring) . '_' . implode('_',$gamestring);
$rdata=serverdata('root',$serverid,$aeskey); $rdata=serverdata('root',$serverid,$aeskey);
$sship = $rdata['ip']; $sship = $rdata['ip'];
@ -1106,7 +1106,7 @@ if ($ui->st('d', 'get') == 'ad' and is_numeric($licenceDetails['lG']) and $licen
$rootID = $row['rootID']; $rootID = $row['rootID'];
} }
if (isset($gsip) and isset($port)) { if (isset($gsip) and isset($port)) {
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
if ($ui->st('d', 'get') == 'rs') { if ($ui->st('d', 'get') == 'rs') {
$template_file = 'Restart done'; $template_file = 'Restart done';
$cmds=gsrestart($id,'re',$aeskey,$reseller_id); $cmds=gsrestart($id,'re',$aeskey,$reseller_id);

View File

@ -102,12 +102,13 @@ $what_to_be_included_array = array(
$easywiModules = array('gs' => true, 'ip' => true, 'ea' => true, 'my' => true, 'pn' => true, 'ro' => true, 'ti' => true, 'le' => true, 'vo' => true); $easywiModules = array('gs' => true, 'ip' => true, 'ea' => true, 'my' => true, 'pn' => true, 'ro' => true, 'ti' => true, 'le' => true, 'vo' => true);
$customModules = array('gs' => array(), 'mo' => array(), 'my' => array(), 'ro' => array(), 'ti' => array(), 'us' => array(), 'vo' => array(), 'pa' => array()); $customModules = array('gs' => array(), 'mo' => array(), 'my' => array(), 'ro' => array(), 'ti' => array(), 'us' => array(), 'vo' => array(), 'pa' => array());
$customFiles = array();
$query = $sql->prepare("SELECT * FROM `modules` WHERE `type` IN ('A','C')"); $query = $sql->prepare("SELECT * FROM `modules` WHERE `type` IN ('A','C')");
$query2 = $sql->prepare("SELECT `text` FROM `translations` WHERE `type`='mo' AND `transID`=? AND `lang`=? LIMIT 1"); $query2 = $sql->prepare("SELECT `text` FROM `translations` WHERE `type`='mo' AND `transID`=? AND `lang`=? LIMIT 1");
$query->execute(); $query->execute();
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
if ($row['active'] == 'Y' and $row['type'] == 'A' and is_file(EASYWIDIR . '/stuff/' . $row['file'])) { if ($row['active'] == 'Y' and $row['type'] == 'A' and is_file(EASYWIDIR . '/stuff/custom_modules/' . $row['file'])) {
$query2->execute(array($row['id'], $user_language)); $query2->execute(array($row['id'], $user_language));
$name = $query2->fetchColumn(); $name = $query2->fetchColumn();
@ -120,7 +121,7 @@ foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
} }
$customModules[$row['sub']][$row['get']] = $name; $customModules[$row['sub']][$row['get']] = $name;
$what_to_be_included_array[$row['get']] = $row['file']; $customFiles[$row['get']] = $row['file'];
} else if ($row['type'] == 'C' and $row['active'] == 'N') { } else if ($row['type'] == 'C' and $row['active'] == 'N') {
$easywiModules[$row['get']] = false; $easywiModules[$row['get']] = false;

View File

@ -41,9 +41,9 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and (!isset($pa) or (
die; die;
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/functions_gs.php'); include(EASYWIDIR . '/stuff/methods/functions_gs.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
$sprache = getlanguagefile('lendserver', $user_language, $reseller_id); $sprache = getlanguagefile('lendserver', $user_language, $reseller_id);
$gssprache = getlanguagefile('gserver', $user_language, $reseller_id); $gssprache = getlanguagefile('gserver', $user_language, $reseller_id);

View File

@ -42,8 +42,8 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['masterServe
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/class_masterserver.php'); include(EASYWIDIR . '/stuff/methods/class_masterserver.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$sprache = getlanguagefile('roots',$user_language,$reseller_id); $sprache = getlanguagefile('roots',$user_language,$reseller_id);
$loguserid = $admin_id; $loguserid = $admin_id;

View File

@ -45,7 +45,7 @@ if (!isset($admin_id) or $main != 1 or !isset($reseller_id) or !$pa['root']) {
if ($ui->st('d', 'get') == 'bu' and $ui->st('action', 'post') == 'bu' and $reseller_id == 0) { if ($ui->st('d', 'get') == 'bu' and $ui->st('action', 'post') == 'bu' and $reseller_id == 0) {
include(EASYWIDIR . '/stuff/mysql_backup_class.php'); include(EASYWIDIR . '/stuff/methods/mysql_backup_class.php');
$createBackup = true; $createBackup = true;
header('Content-type: application/sql; charset=utf-8'); header('Content-type: application/sql; charset=utf-8');
@ -80,22 +80,22 @@ if ($ui->st('d', 'get') == 'bu' and $ui->st('action', 'post') == 'bu' and $resel
if (!isset($alreadyRepaired)) { if (!isset($alreadyRepaired)) {
$response->add('Adding tables if needed.'); $response->add('Adding tables if needed.');
include(EASYWIDIR . '/stuff/tables_add.php'); include(EASYWIDIR . '/stuff/methods/tables_add.php');
} }
if (!isset($alreadyRepaired)) { if (!isset($alreadyRepaired)) {
$response->add('Repairing tables if needed.'); $response->add('Repairing tables if needed.');
include(EASYWIDIR . '/stuff/tables_repair.php'); include(EASYWIDIR . '/stuff/methods/tables_repair.php');
} }
$response->add('Fixing data entries if needed.'); $response->add('Fixing data entries if needed.');
include(EASYWIDIR . '/stuff/tables_entries_repair.php'); include(EASYWIDIR . '/stuff/methods/tables_entries_repair.php');
$template_file = $response->response; $template_file = $response->response;
} else if ($ui->st('d', 'get') == 'rg') { } else if ($ui->st('d', 'get') == 'rg') {
require_once(EASYWIDIR . '/stuff/gameslist.php'); include(EASYWIDIR . '/stuff/methods/gameslist.php');
if ($ui->st('action', 'post') == 'rg') { if ($ui->st('action', 'post') == 'rg') {
@ -147,7 +147,7 @@ if ($ui->st('d', 'get') == 'bu' and $ui->st('action', 'post') == 'bu' and $resel
} else if ($ui->st('d', 'get') == 'ra') { } else if ($ui->st('d', 'get') == 'ra') {
require_once(EASYWIDIR . '/stuff/addonslist.php'); require_once(EASYWIDIR . '/stuff/methods/addonslist.php');
if ($ui->st('action', 'post') == 'ra') { if ($ui->st('action', 'post') == 'ra') {

View File

@ -40,7 +40,7 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['mysql_setti
die; die;
} }
include(EASYWIDIR . '/stuff/mysql_functions.php'); include(EASYWIDIR . '/stuff/methods/mysql_functions.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
$sprache = getlanguagefile('mysql',$user_language,$reseller_id); $sprache = getlanguagefile('mysql',$user_language,$reseller_id);

View File

@ -1,4 +1,5 @@
<?php <?php
/** /**
* File: page_comments.php. * File: page_comments.php.
* Author: Ulrich Block * Author: Ulrich Block

View File

@ -1,4 +1,5 @@
<?php <?php
/** /**
* File: page_downloads.php. * File: page_downloads.php.
* Author: Ulrich Block * Author: Ulrich Block
@ -41,6 +42,7 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['cms_pages']
header('Location: admin.php'); header('Location: admin.php');
die; die;
} }
$sprache = getlanguagefile('page',$user_language,$reseller_id); $sprache = getlanguagefile('page',$user_language,$reseller_id);
$loguserid = $admin_id; $loguserid = $admin_id;
$logusername = getusername($admin_id); $logusername = getusername($admin_id);

View File

@ -1,4 +1,5 @@
<?php <?php
/** /**
* File: page_settings.php. * File: page_settings.php.
* Author: Ulrich Block * Author: Ulrich Block

View File

@ -43,7 +43,7 @@ if (!isset($admin_id) or $main != 1 or $reseller_id != 0 or !$pa['vserversettin
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$sprache = getlanguagefile('reseller', $user_language, $reseller_id); $sprache = getlanguagefile('reseller', $user_language, $reseller_id);
$loguserid = $admin_id; $loguserid = $admin_id;

View File

@ -126,7 +126,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
$pinsert->execute(array(':active' => $active,':esxi' => $esxi,':ip' => $ip,':port' => $port,':aeskey' => $aeskey,':user' => $user,':pass' => $pass,':os' => $os,':description' => $description,':publickey' => $publickey,':keyname' => $keyname, ':cpu' => $cpu, ':cores' => $cores,':mhz' => $mhz,':ram' => $ram,':maxserver' => $maxserver,':thin' => $thin,':thinquota' => $thinquota,':reseller' => $reseller)); $pinsert->execute(array(':active' => $active,':esxi' => $esxi,':ip' => $ip,':port' => $port,':aeskey' => $aeskey,':user' => $user,':pass' => $pass,':os' => $os,':description' => $description,':publickey' => $publickey,':keyname' => $keyname, ':cpu' => $cpu, ':cores' => $cores,':mhz' => $mhz,':ram' => $ram,':maxserver' => $maxserver,':thin' => $thin,':thinquota' => $thinquota,':reseller' => $reseller));
$serverid = $sql->lastInsertId(); $serverid = $sql->lastInsertId();
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$uidb = ssh2_execute('vh', $serverid, 'cd /vmfs/volumes; S=""; for U in `ls -la | grep "drwxr-xr-t" | awk \'{print $9}\'`; do C=`vmkfstools -Ph $U 2> /dev/null | grep "Capacity" | awk \'{print $2$3}\'`; S="$S$U:$C;"; done; for U in `ls -la | grep "drwxrwxrwx" | awk \'{print $9}\'`; do C=`vmkfstools -Ph $U 2> /dev/null | grep "Capacity" | awk \'{print $2$3}\'`; S="$S$U:$C;"; done; echo $S'); $uidb = ssh2_execute('vh', $serverid, 'cd /vmfs/volumes; S=""; for U in `ls -la | grep "drwxr-xr-t" | awk \'{print $9}\'`; do C=`vmkfstools -Ph $U 2> /dev/null | grep "Capacity" | awk \'{print $2$3}\'`; S="$S$U:$C;"; done; for U in `ls -la | grep "drwxrwxrwx" | awk \'{print $9}\'`; do C=`vmkfstools -Ph $U 2> /dev/null | grep "Capacity" | awk \'{print $2$3}\'`; S="$S$U:$C;"; done; echo $S');
if ($uidb != '' and $uidb !== false) { if ($uidb != '' and $uidb !== false) {

View File

@ -42,7 +42,7 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['roots'])) {
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$sprache = getlanguagefile('roots', $user_language, $reseller_id); $sprache = getlanguagefile('roots', $user_language, $reseller_id);
$gsSprache = getlanguagefile('gserver', $user_language, $reseller_id); $gsSprache = getlanguagefile('gserver', $user_language, $reseller_id);
@ -373,7 +373,7 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
if (count($cmds) > 0) { if (count($cmds) > 0) {
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
$return = ssh2_execute('gs', $id, $cmds); $return = ssh2_execute('gs', $id, $cmds);

View File

@ -200,7 +200,7 @@ if ($ui->st('d', 'get') == 'ud' and $reseller_id == 0 and $pa['updateEW'] and ($
if (!isset($alreadyRepaired)) { if (!isset($alreadyRepaired)) {
$response->add('Adding tables if needed.'); $response->add('Adding tables if needed.');
include(EASYWIDIR . '/stuff/tables_add.php'); include(EASYWIDIR . '/stuff/methods/tables_add.php');
} }
if ($ewVersions['cVersion'] < $ewVersions['version'] and is_file(EASYWIDIR . '/install/update.php')) { if ($ewVersions['cVersion'] < $ewVersions['version'] and is_file(EASYWIDIR . '/install/update.php')) {
@ -211,7 +211,7 @@ if ($ui->st('d', 'get') == 'ud' and $reseller_id == 0 and $pa['updateEW'] and ($
if (!isset($alreadyRepaired)) { if (!isset($alreadyRepaired)) {
$response->add('Repairing tables if needed.'); $response->add('Repairing tables if needed.');
include(EASYWIDIR . '/stuff/tables_repair.php'); include(EASYWIDIR . '/stuff/methods/tables_repair.php');
} }
} }

View File

@ -41,8 +41,8 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['voiceserver
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
include(EASYWIDIR . '/stuff/functions_ts3.php'); include(EASYWIDIR . '/stuff/methods/functions_ts3.php');
$sprache = getlanguagefile('voice',$user_language,$reseller_id); $sprache = getlanguagefile('voice',$user_language,$reseller_id);
$loguserid = $admin_id; $loguserid = $admin_id;

View File

@ -39,9 +39,9 @@
*/ */
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/class_ts3.php'); include(EASYWIDIR . '/stuff/methods/class_ts3.php');
include(EASYWIDIR . '/stuff/functions_ts3.php'); include(EASYWIDIR . '/stuff/methods/functions_ts3.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/third_party/password_compat/password.php'); include(EASYWIDIR . '/third_party/password_compat/password.php');
if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['voicemasterserver'])) { if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['voicemasterserver'])) {

View File

@ -43,8 +43,8 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['voiceserver
die; die;
} }
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
include(EASYWIDIR . '/stuff/functions_ts3.php'); include(EASYWIDIR . '/stuff/methods/functions_ts3.php');
include(EASYWIDIR . '/stuff/functions_ssh_exec.php'); include(EASYWIDIR . '/stuff/methods/functions_ssh_exec.php');
include(EASYWIDIR . '/third_party/password_compat/password.php'); include(EASYWIDIR . '/third_party/password_compat/password.php');
$sprache = getlanguagefile('voice', $user_language, $reseller_id); $sprache = getlanguagefile('voice', $user_language, $reseller_id);

View File

@ -42,7 +42,7 @@ if ((!isset($admin_id) or $main != 1) or (isset($admin_id) and !$pa['voiceserver
die; die;
} }
include(EASYWIDIR . '/stuff/functions_ts3.php'); include(EASYWIDIR . '/stuff/methods/functions_ts3.php');
include(EASYWIDIR . '/stuff/keyphrasefile.php'); include(EASYWIDIR . '/stuff/keyphrasefile.php');
$sprache = getlanguagefile('voice',$user_language,$reseller_id); $sprache = getlanguagefile('voice',$user_language,$reseller_id);

View File

@ -54,6 +54,7 @@ if (isset($page_active) and $page_active == 'Y') {
$easywiModules = array('gs' => true, 'ip' => true, 'ea' => true, 'my' => true, 'ro' => true, 'ti' => true, 'le' => true, 'vo' => true); $easywiModules = array('gs' => true, 'ip' => true, 'ea' => true, 'my' => true, 'ro' => true, 'ti' => true, 'le' => true, 'vo' => true);
$customModules = array('gs' => array(), 'mo' => array(), 'my' => array(), 'ro' => array(), 'ti' => array(), 'us' => array(), 'vo' => array(), 'pa' => array()); $customModules = array('gs' => array(), 'mo' => array(), 'my' => array(), 'ro' => array(), 'ti' => array(), 'us' => array(), 'vo' => array(), 'pa' => array());
$customFiles = array();
$what_to_be_included_array = array('news' => 'page_news.php','contact' => 'page_contact.php', $what_to_be_included_array = array('news' => 'page_news.php','contact' => 'page_contact.php',
'page' => 'page_page.php','home' => 'page_page.php','about' => 'page_page.php','gallery' => 'page_page.php','sitemap' => 'page_page.php','search' => 'page_page.php', 'page' => 'page_page.php','home' => 'page_page.php','about' => 'page_page.php','gallery' => 'page_page.php','sitemap' => 'page_page.php','search' => 'page_page.php',
@ -67,7 +68,7 @@ if (isset($page_active) and $page_active == 'Y') {
$query->execute(); $query->execute();
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
if ($row['active'] == 'Y' and $row['type'] == 'P' and is_file(EASYWIDIR . '/stuff/' . $row['file'])) { if ($row['active'] == 'Y' and $row['type'] == 'P' and is_file(EASYWIDIR . '/stuff/custom_modules/' . $row['file'])) {
$query2->execute(array($row['id'], $user_language)); $query2->execute(array($row['id'], $user_language));
$name = $query2->fetchColumn(); $name = $query2->fetchColumn();
@ -80,7 +81,7 @@ if (isset($page_active) and $page_active == 'Y') {
} }
$customModules[$row['sub']][$row['get']] = $name; $customModules[$row['sub']][$row['get']] = $name;
$what_to_be_included_array[$row['get']] = $row['file']; $customFiles[$row['get']] = $row['file'];
} else if ($row['type'] == 'C' and $row['active'] == 'N') { } else if ($row['type'] == 'C' and $row['active'] == 'N') {
$easywiModules[$row['get']] = false; $easywiModules[$row['get']] = false;
@ -205,7 +206,7 @@ if (isset($page_active) and $page_active == 'Y') {
$query->execute(array($user_language)); $query->execute(array($user_language));
$page_data->SetData('about', $query->fetchColumn()); $page_data->SetData('about', $query->fetchColumn());
$query = $sql->prepare("SELECT p.`id`,p.`subpage`,t.`title`,t.`text` FROM `page_pages` p LEFT JOIN `page_pages_text` t ON p.`id`=t.`pageid` AND t.`language`=? WHERE p.`released`='1' AND p.`type`='news' AND p.`resellerid`=0 ORDER BY `id` DESC LIMIT $maxnews_sidebar"); $query = $sql->prepare("SELECT p.`id`,p.`subpage`,t.`title`,t.`text` FROM `page_pages` p LEFT JOIN `page_pages_text` t ON p.`id`=t.`pageid` AND t.`language`=? WHERE p.`released`='1' AND p.`type`='news' AND p.`resellerid`=0 ORDER BY `id` DESC LIMIT " . $maxnews_sidebar);
$query->execute(array($user_language)); $query->execute(array($user_language));
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
$page_data->SetNewsPost($row['id'], $row['title'], $row['text'], $newssidebar_textlength); $page_data->SetNewsPost($row['id'], $row['title'], $row['text'], $newssidebar_textlength);
@ -250,6 +251,8 @@ if (isset($page_active) and $page_active == 'Y') {
$s = 'page'; $s = 'page';
} else if (isset($what_to_be_included_array[$page_category])) { } else if (isset($what_to_be_included_array[$page_category])) {
$s = $page_category; $s = $page_category;
} else if (isset($customFiles[$page_category])) {
$s = $page_category;
} }
} }
@ -257,7 +260,9 @@ if (isset($page_active) and $page_active == 'Y') {
$page_lookupid = $admin_id; $page_lookupid = $admin_id;
} else if (isset($user_id)) { } else if (isset($user_id)) {
$page_lookupid = $user_id; $page_lookupid = $user_id;
} else { } else {
$serviceProviders = array(); $serviceProviders = array();
@ -265,7 +270,17 @@ if (isset($page_active) and $page_active == 'Y') {
$query = $sql->prepare("SELECT `filename` FROM `userdata_social_providers` WHERE `resellerID`=0 AND `active`='Y'"); $query = $sql->prepare("SELECT `filename` FROM `userdata_social_providers` WHERE `resellerID`=0 AND `active`='Y'");
$query->execute(); $query->execute();
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
$serviceProviders[$row['filename']] = strtolower($row['filename']);
$cssIcon = strtolower($row['filename']);
if ($cssIcon == 'google') {
$cssIcon = 'google-plus';
} else if ($cssIcon == 'live') {
$cssIcon = 'windows';
}
$serviceProviders[$row['filename']] = strtolower($cssIcon);
} }
if (count($serviceProviders) > 0) { if (count($serviceProviders) > 0) {

View File

@ -123,7 +123,7 @@ if (isset($downloadID)) {
$query->execute(array($user_language)); $query->execute(array($user_language));
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { 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']}")) {
$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'].'&amp;action=get&amp;id='.$row['fileID'], 'text' => $row['text']); $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'].'&amp;action=get&amp;id='.$row['fileID'], 'text' => $row['text']);
} }
} }

View File

@ -81,11 +81,11 @@ if ((isset($page_name) and $page_name != szrp($page_sprache->older) and isset($p
$page_data->AddData('keywords', $row2['name']); $page_data->AddData('keywords', $row2['name']);
if ($seo== 'Y' and $row2['type'] == 'tag') { if ($seo == 'Y' and $row2['type'] == 'tag') {
$tagLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->tag) . '/' . szrp($row2['name']) . '/'; $tagLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->tag) . '/' . szrp($row2['name']) . '/';
} else if ($row2['type'] == 'tag') { } else if ($row2['type'] == 'tag') {
$tagLink = $page_url.'/index.php?site=tag&amp;tag='.szrp($row2['name']); $tagLink = $page_url.'/index.php?site=tag&amp;tag='.szrp($row2['name']);
} else if ($seo== 'Y' and $row2['type'] == 'category') { } else if ($seo == 'Y' and $row2['type'] == 'category') {
$categoryLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->categories) . '/' . szrp($row2['name']) . '/'; $categoryLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->categories) . '/' . szrp($row2['name']) . '/';
} else if ($row2['type'] == 'category') { } else if ($row2['type'] == 'category') {
$categoryLink = $page_url.'/index.php?site=categories&amp;tag='.szrp($row2['name']); $categoryLink = $page_url.'/index.php?site=categories&amp;tag='.szrp($row2['name']);
@ -330,7 +330,7 @@ if ((isset($page_name) and $page_name != szrp($page_sprache->older) and isset($p
$tagLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->tag) . '/' . szrp($row2['name']) . '/'; $tagLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->tag) . '/' . szrp($row2['name']) . '/';
} else if ($row2['type'] == 'tag') { } else if ($row2['type'] == 'tag') {
$tagLink = $page_url.'/index.php?site=tag&amp;tag='.szrp($row2['name']); $tagLink = $page_url.'/index.php?site=tag&amp;tag='.szrp($row2['name']);
} else if ($seo== 'Y' and $row2['type'] == 'category') { } else if ($seo == 'Y' and $row2['type'] == 'category') {
$categoryLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->categories) . '/' . szrp($row2['name']) . '/'; $categoryLink = $page_url. '/' . $user_language . '/' . szrp($page_sprache->categories) . '/' . szrp($row2['name']) . '/';
} else if ($row2['type'] == 'category') { } else if ($row2['type'] == 'category') {
$categoryLink = $page_url.'/index.php?site=categories&amp;tag=' . szrp($row2['name']); $categoryLink = $page_url.'/index.php?site=categories&amp;tag=' . szrp($row2['name']);

View File

@ -1,4 +1,5 @@
<?php <?php
/** /**
* File: page_tag.php. * File: page_tag.php.
* Author: Ulrich Block * Author: Ulrich Block
@ -35,7 +36,7 @@
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>. * Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
*/ */
if ($seo== 'Y') { if ($seo == 'Y') {
$search_tag=strtolower($page_name); $search_tag=strtolower($page_name);
if (!isset($page_count)) { if (!isset($page_count)) {
$page_count = 1; $page_count = 1;
@ -74,19 +75,19 @@ if (isset($search_tag) and $search_tag != '' and $search_tag != null) {
} else { } else {
$limit=($maxnews*$page_count)-$maxnews.','.($maxnews*$page_count); $limit=($maxnews*$page_count)-$maxnews.','.($maxnews*$page_count);
} }
if ($max_old>$page_count and $seo== 'Y') { if ($max_old>$page_count and $seo == 'Y') {
$older = $page_url. '/' . $user_language. '/' . $page_sprache->$s. '/' . $search_tag . '/' . ($page_count+1) . '/'; $older = $page_url. '/' . $user_language. '/' . $page_sprache->$s. '/' . $search_tag . '/' . ($page_count+1) . '/';
} else if ($max_old>$page_count and $seo== 'N') { } else if ($max_old>$page_count and $seo== 'N') {
$older = $page_url.'/index.php?site='.$s.'&amp;tag='.strtolower(szrp($row2['name'])).'&amp;older='.($page_count+1); $older = $page_url.'/index.php?site='.$s.'&amp;tag='.strtolower(szrp($row2['name'])).'&amp;older='.($page_count+1);
} }
} else if ($page_row_count>$maxnews and !isset($page_count)) { } else if ($page_row_count>$maxnews and !isset($page_count)) {
if ($seo== 'Y') { if ($seo == 'Y') {
$older = $page_url. '/' . $user_language. '/' . $page_sprache->$s. '/' . $search_tag.'/2/'; $older = $page_url. '/' . $user_language. '/' . $page_sprache->$s. '/' . $search_tag.'/2/';
} else { } else {
$older = $page_url.'/index.php?site='.$s.'&amp;tag='.strtolower(szrp($row2['name'])).'&amp;older=2'; $older = $page_url.'/index.php?site='.$s.'&amp;tag='.strtolower(szrp($row2['name'])).'&amp;older=2';
} }
} }
if (isset($page_count) and $page_count>1 and $seo== 'Y') { if (isset($page_count) and $page_count>1 and $seo == 'Y') {
$newer = $page_url. '/' . $user_language. '/' . $page_sprache->$s. '/' . $search_tag . '/' . ($page_count-1) . '/'; $newer = $page_url. '/' . $user_language. '/' . $page_sprache->$s. '/' . $search_tag . '/' . ($page_count-1) . '/';
} else if (isset($page_count) and $page_count>1 and $seo== 'N') { } else if (isset($page_count) and $page_count>1 and $seo== 'N') {
$newer = $page_url.'/index.php?site='.$s.'&amp;tag='.strtolower(szrp($row2['name'])).'&amp;older='.($page_count-1); $newer = $page_url.'/index.php?site='.$s.'&amp;tag='.strtolower(szrp($row2['name'])).'&amp;older='.($page_count-1);
@ -94,7 +95,7 @@ if (isset($search_tag) and $search_tag != '' and $search_tag != null) {
$query = $sql->prepare("SELECT p.`id`,p.`date`,p.`type`,t.`title`,t.`text` FROM `page_terms_used` u LEFT JOIN `page_pages_text` t ON u.`language_id`=t.`id` AND t.`language`=? LEFT JOIN `page_pages` p ON u.`page_id`=p.`id` AND (p.`type`='page' OR p.`type`='news') WHERE t.`title` IS NOT NULL AND t.`text` IS NOT NULL AND t.`title`!='' AND t.`text`!='' AND u.`term_id`=? AND u.`resellerid`='0' ORDER BY p.`id` DESC LIMIT $limit"); $query = $sql->prepare("SELECT p.`id`,p.`date`,p.`type`,t.`title`,t.`text` FROM `page_terms_used` u LEFT JOIN `page_pages_text` t ON u.`language_id`=t.`id` AND t.`language`=? LEFT JOIN `page_pages` p ON u.`page_id`=p.`id` AND (p.`type`='page' OR p.`type`='news') WHERE t.`title` IS NOT NULL AND t.`text` IS NOT NULL AND t.`title`!='' AND t.`text`!='' AND u.`term_id`=? AND u.`resellerid`='0' ORDER BY p.`id` DESC LIMIT $limit");
$query->execute(array($user_language, $row['id'])); $query->execute(array($user_language, $row['id']));
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) { foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
if ($seo== 'Y') { if ($seo == 'Y') {
$type = ''; $type = '';
if ($row['type'] == 'news') $type=szrp($gsprache->news) . '/'; if ($row['type'] == 'news') $type=szrp($gsprache->news) . '/';
$row_link = $page_url. '/' . $user_language. '/' . $type.szrp($row['title']) . '/'; $row_link = $page_url. '/' . $user_language. '/' . $type.szrp($row['title']) . '/';

Some files were not shown because too many files have changed in this diff Show More