You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch '6603-warnings-due-to-the-use-of-php-8-2-in-server-php-logs' of git.ispconfig.org:ispconfig/ispconfig3 into 6603-warnings-due-to-the-use-of-php-8-2-in-server-php-logs
Copy file name to clipboardExpand all lines: install/lib/installer_base.lib.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -253,11 +253,12 @@ public function check_prerequisites() {
253
253
if ($conf['default_php'] != '') {
254
254
if(version_compare(phpversion('tidy'), $conf['default_php'], '==')) $msg .= "Your PHP version is not the OS default. Change the PHP version back to the default version of the OS. The currently used PHP version is " . phpversion() . "The default version for your OS is PHP " . $conf['default_php'] . ".\n";
255
255
}
256
-
if(version_compare(phpversion(), '5.4', '<')) $msg .= "PHP Version 5.4 or newer is required. The currently used PHP version is " . phpversion() . ".\n";
256
+
if(version_compare(phpversion(), '7.0', '<')) $msg .= "PHP Version 7.0 or newer is required. The currently used PHP version is " . phpversion() . ".\n";
257
257
//if(version_compare(phpversion(), '8.2', '>=')) $msg .= "PHP Version 8.2+ is not supported yet. Change the PHP version back to the default version of the OS. The currently used PHP version is " . phpversion() . ".\n";
258
258
if(!function_exists('curl_init')) $msg .= "PHP Curl Module is missing.\n";
259
259
if(!function_exists('mysqli_connect')) $msg .= "PHP MySQLi Module is nmissing.\n";
260
260
if(!function_exists('mb_detect_encoding')) $msg .= "PHP Multibyte Module (MB) is missing.\n";
261
+
if(!function_exists('openssl_pkey_get_details')) $msg .= "PHP OpenSSL fiúnctions are missing.\n";
* Normalize a path and strip duplicate slashes from it
@@ -652,6 +674,22 @@ public function func_client_cancel($client_id,$cancel) {
652
674
return$result;
653
675
}
654
676
677
+
/**
678
+
* Lookup a client's group + all groups he is reselling.
679
+
*
680
+
* @return string Comma separated list of groupid's
681
+
*/
682
+
functionclientid_to_groups_list($client_id) {
683
+
global$app;
684
+
685
+
if ($client_id != null) {
686
+
// Get the clients groupid, and incase it's a reseller the groupid's of it's clients.
687
+
$group = $app->db->queryOneRecord("SELECT GROUP_CONCAT(groupid) AS groups FROM `sys_group` WHERE client_id IN (SELECT client_id FROM `client` WHERE client_id=? OR parent_client_id=?)", $client_id, $client_id);
Copy file name to clipboardExpand all lines: interface/lib/classes/quota_lib.inc.php
+22-60Lines changed: 22 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,10 @@ public function get_quota_data($clientid = null, $readable = true) {
14
14
//print_r($monitor_data);
15
15
16
16
// select all websites or websites belonging to client
17
-
$sites = $app->db->queryAllRecords("SELECT * FROM web_domain WHERE active = 'y' AND type = 'vhost'".(($clientid != null)?" AND sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)":'') . " ORDER BY domain", $clientid);
17
+
$q = "SELECT * FROM web_domain WHERE type = 'vhost' AND ";
@@ -245,7 +220,10 @@ public function get_mailquota_data($clientid = null, $readable = true, $email =
245
220
246
221
}
247
222
// select all email accounts or email accounts belonging to client
248
-
$emails = $app->db->queryAllRecords("SELECT * FROM mail_user".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : '') . " ORDER BY email", $clientid);
@@ -317,18 +286,21 @@ public function get_databasequota_data($clientid = null, $readable = true) {
317
286
//print_r($monitor_data);
318
287
319
288
// select all databases belonging to client
320
-
$databases = $app->db->queryAllRecords("SELECT * FROM web_database".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : '') . " ORDER BY database_name", $clientid);
0 commit comments