Current time: 05-05-2024, 02:30 PM Hello There, Guest! (LoginRegister)


Thread Closed 
[HOWTO] Using the CLI to manage ispcp via command line (scripts)
Author Message
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #8
RE: Using the CLI with ispcp (wiki article)
Maybe this will help
Needed query.
PHP Code:
    $query "
        INSERT INTO `admin` (
            `admin_name`, `admin_pass`, `admin_type`, `domain_created`,
            `created_by`, `fname`, `lname`,
            `firm`, `zip`, `city`, `state`,
            `country`, `email`, `phone`,
            `fax`, `street1`, `street2`,
            `customer_id`, `gender`
        )
        VALUES (
            ?, ?, 'user', unix_timestamp(),
            ?, ?, ?,
            ?, ?, ?, ?,
            ?, ?, ?,
            ?, ?, ?,
            ?, ?
        )
    "

Needed fields: admin_name, admin_pass, admin_type, created_by, email.
PHP Code:
$query "
        INSERT INTO `domain` (
            `domain_name`, `domain_admin_id`,
            `domain_created_id`, `domain_created`,
            `domain_mailacc_limit`, `domain_ftpacc_limit`,
            `domain_traffic_limit`, `domain_sqld_limit`,
            `domain_sqlu_limit`, `domain_status`,
            `domain_subd_limit`, `domain_alias_limit`,
            `domain_ip_id`, `domain_disk_limit`,
            `domain_disk_usage`, `domain_php`, `domain_cgi`,
            `allowbackup`, `domain_dns`
        )
        VALUES (
            ?, ?,
            ?, unix_timestamp(),
            ?, ?,
            ?, ?,
            ?, ?,
            ?, ?,
            ?, ?, '0',
            ?, ?,
            ?, ?
        )
    "

domain_admin_id must be taken from previous query field admin_id.
PHP Code:
check_for_lock_file();
send_request(); 
This are minimum operations to add a domain.
05-09-2009 05:49 PM
Visit this user's website Find all posts by this user
Thread Closed 


Messages In This Thread
RE: Using the CLI with ispcp - aseques - 05-08-2009, 11:26 PM
RE: Using the CLI with ispcp (wiki article) - sci2tech - 05-09-2009 05:49 PM

Forum Jump:


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