Current time: 11-22-2024, 08:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo]: Backup ausschalten "per Domain" - Neue Version auf Seite 6
Author Message
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #48
RE: [HowTo]: Backup ausschalten "per Domain"
Oki Doki... Ich muss jetzt noch mal kurz weg und dann schau ich mir das Script an.
Aber ich kann Dir jetzt schon mal sagen das dieser Query nicht greifen wird:
Code:
$sql = "
        SELECT
            t1.domain_id,
            t1.domain_name,
            t1.domain_status,
            t1.domain_uid,
            t1.domain_gid,
            t1.allowbackup,
            t2.admin_name,
            t2.email
        FROM
            domain AS t1,
            admin AS t2
        WHERE
                t1.domain_status    = 'ok'
            AND    t1.domain_admin_id    = t2.admin_id
            AND    t1.allowbackup        = 'full'
            OR     t1.allowbackup        = 'domain'
            OR    t1.allowbackup        = 'sql'
        ORDER BY
            t1.domain_id
    ";
Den würde ich einfacher machen
Code:
$sql = "
        SELECT
            t1.domain_id,
            t1.domain_name,
            t1.domain_status,
            t1.domain_uid,
            t1.domain_gid,
            t1.allowbackup,
            t2.admin_name,
            t2.email
        FROM
            domain AS t1,
            admin AS t2
        WHERE
                t1.domain_status    = 'ok'
            AND    t1.domain_admin_id    = t2.admin_id
            AND    t1.allowbackup        != 'no'
        ORDER BY
            t1.domain_id
    ";

Den Rest dann später
(This post was last modified: 04-17-2009 05:50 PM by TheCry.)
04-17-2009 05:50 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HowTo]: Backup ausschalten "per Domain" - TheCry - 04-17-2009 05:50 PM

Forum Jump:


User(s) browsing this thread: 11 Guest(s)