correct pure-ftpd quota-query
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -4503,7 +4503,7 @@ MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enab
|
|||||||
# The number should be in Megabytes.
|
# The number should be in Megabytes.
|
||||||
# Pure-FTPd must have been compiled with virtual quotas support.
|
# Pure-FTPd must have been compiled with virtual quotas support.
|
||||||
|
|
||||||
MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
MySQLGetQTASZ SELECT CASE WHEN panel_customers.diskspace = 0 THEN -1 WHEN panel_customers.diskspace <= -1 THEN 0 ELSE panel_customers.diskspace/1024 END AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
||||||
|
|
||||||
|
|
||||||
# Optional : ratios. The server has to be compiled with ratio support.
|
# Optional : ratios. The server has to be compiled with ratio support.
|
||||||
|
|||||||
@@ -3141,7 +3141,7 @@ MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enab
|
|||||||
# The number should be in Megabytes.
|
# The number should be in Megabytes.
|
||||||
# Pure-FTPd must have been compiled with virtual quotas support.
|
# Pure-FTPd must have been compiled with virtual quotas support.
|
||||||
|
|
||||||
MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
MySQLGetQTASZ SELECT CASE WHEN panel_customers.diskspace = 0 THEN -1 WHEN panel_customers.diskspace <= -1 THEN 0 ELSE panel_customers.diskspace/1024 END AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
||||||
|
|
||||||
|
|
||||||
# Optional : ratios. The server has to be compiled with ratio support.
|
# Optional : ratios. The server has to be compiled with ratio support.
|
||||||
|
|||||||
@@ -4711,7 +4711,7 @@ MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enab
|
|||||||
# The number should be in Megabytes.
|
# The number should be in Megabytes.
|
||||||
# Pure-FTPd must have been compiled with virtual quotas support.
|
# Pure-FTPd must have been compiled with virtual quotas support.
|
||||||
|
|
||||||
MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
MySQLGetQTASZ SELECT CASE WHEN panel_customers.diskspace = 0 THEN -1 WHEN panel_customers.diskspace <= -1 THEN 0 ELSE panel_customers.diskspace/1024 END AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
||||||
|
|
||||||
|
|
||||||
# Optional : ratios. The server has to be compiled with ratio support.
|
# Optional : ratios. The server has to be compiled with ratio support.
|
||||||
|
|||||||
@@ -4702,7 +4702,7 @@ MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enab
|
|||||||
# The number should be in Megabytes.
|
# The number should be in Megabytes.
|
||||||
# Pure-FTPd must have been compiled with virtual quotas support.
|
# Pure-FTPd must have been compiled with virtual quotas support.
|
||||||
|
|
||||||
MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
MySQLGetQTASZ SELECT CASE WHEN panel_customers.diskspace = 0 THEN -1 WHEN panel_customers.diskspace <= -1 THEN 0 ELSE panel_customers.diskspace/1024 END AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
||||||
|
|
||||||
|
|
||||||
# Optional : ratios. The server has to be compiled with ratio support.
|
# Optional : ratios. The server has to be compiled with ratio support.
|
||||||
|
|||||||
@@ -3930,7 +3930,7 @@ MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enab
|
|||||||
# The number should be in Megabytes.
|
# The number should be in Megabytes.
|
||||||
# Pure-FTPd must have been compiled with virtual quotas support.
|
# Pure-FTPd must have been compiled with virtual quotas support.
|
||||||
|
|
||||||
MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
MySQLGetQTASZ SELECT CASE WHEN panel_customers.diskspace = 0 THEN -1 WHEN panel_customers.diskspace <= -1 THEN 0 ELSE panel_customers.diskspace/1024 END AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
||||||
|
|
||||||
|
|
||||||
# Optional : ratios. The server has to be compiled with ratio support.
|
# Optional : ratios. The server has to be compiled with ratio support.
|
||||||
|
|||||||
@@ -3581,7 +3581,7 @@ MYSQLGetPW SELECT password FROM ftp_users WHERE username="\L" AND login_ena
|
|||||||
MYSQLGetUID SELECT uid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
MYSQLGetUID SELECT uid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||||
MYSQLGetGID SELECT gid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
MYSQLGetGID SELECT gid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||||
MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||||
MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
MySQLGetQTASZ SELECT CASE WHEN panel_customers.diskspace = 0 THEN -1 WHEN panel_customers.diskspace <= -1 THEN 0 ELSE panel_customers.diskspace/1024 END AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
||||||
]]>
|
]]>
|
||||||
</content>
|
</content>
|
||||||
</file>
|
</file>
|
||||||
|
|||||||
@@ -3920,7 +3920,7 @@ MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enab
|
|||||||
# The number should be in Megabytes.
|
# The number should be in Megabytes.
|
||||||
# Pure-FTPd must have been compiled with virtual quotas support.
|
# Pure-FTPd must have been compiled with virtual quotas support.
|
||||||
|
|
||||||
MySQLGetQTASZ SELECT panel_customers.diskspace/1024 AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
MySQLGetQTASZ SELECT CASE WHEN panel_customers.diskspace = 0 THEN -1 WHEN panel_customers.diskspace <= -1 THEN 0 ELSE panel_customers.diskspace/1024 END AS QuotaSize FROM panel_customers, ftp_users WHERE username = "\L" AND panel_customers.loginname = SUBSTRING_INDEX('\L', 'ftp', 1)
|
||||||
|
|
||||||
|
|
||||||
# Optional : ratios. The server has to be compiled with ratio support.
|
# Optional : ratios. The server has to be compiled with ratio support.
|
||||||
|
|||||||
Reference in New Issue
Block a user