This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE files | |
SET files.filepath | |
= | |
REPLACE(files.filepath,'sites/jarp.aroq.com/files','sites/default/files'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT COUNT( mail.mail_name ) | |
FROM clients, domains, mail | |
WHERE clients.id =2 | |
AND clients.id = domains.cl_id | |
AND domains.id = mail.dom_id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT SUM(DomainsTraffic.http_out), SUM(DomainsTraffic.ftp_in), SUM(DomainsTraffic.ftp_out), SUM(DomainsTraffic.smtp_in), SUM(DomainsTraffic.smtp_out), SUM(DomainsTraffic.pop3_imap_in), SUM(DomainsTraffic.pop3_imap_out) | |
FROM DomainsTraffic, domains, clients | |
WHERE DomainsTraffic.date < '2008-07-10' | |
AND DomainsTraffic.date > '2008-05-31' | |
AND clients.id =1 | |
AND clients.id = domains.cl_id | |
AND domains.id = DomainsTraffic.dom_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT mail.mail_name,domains.name | |
FROM clients, domains, mail | |
WHERE clients.id = <integer> | |
AND clients.id = domains.cl_id | |
AND domains.id = mail.dom_id | |
ORDER BY domains.name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT domains.name, domains.htype, clients.cname | |
FROM domains, clients | |
WHERE clients.id = domains.cl_id | |
AND clients.id = <(an integer)> | |
ORDER BY domains.htype ASC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT domains.name, protected_dirs.path, protected_dirs.realm, pd_users.login, SUBSTRING(accounts.password, 1), `protected_dirs`.`ssl`, protected_dirs.non_ssl | |
FROM protected_dirs, pd_users, domains, accounts | |
WHERE domains.name LIKE '%<domain.dom>%' | |
AND protected_dirs.dom_id = domains.id | |
AND pd_users.pd_id = protected_dirs.id | |
AND pd_users.account_id = accounts.id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT domains.name, data_bases.name, db_users.login, SUBSTRING(accounts.password, 1) | |
FROM domains, data_bases, db_users, accounts | |
WHERE domains.name LIKE '%<domain.dom>%' | |
AND db_users.account_id = accounts.id | |
AND db_users.db_id = data_bases.id | |
AND data_bases.dom_id = domains.id | |
ORDER BY data_bases.id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT clients.login , SUBSTRING(accounts.password, 1) | |
FROM clients, accounts | |
WHERE clients.login LIKE '<loginname>' | |
AND clients.account_id = accounts.id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT accounts.id, mail.mail_name, domains.name, SUBSTRING(accounts.password, 1) AS pw | |
FROM accounts, mail, domains | |
WHERE mail.account_id = accounts.id | |
AND mail.dom_id = domains.id | |
AND mail.mail_name LIKE '%' | |
AND domains.name = '<domainName>'; |