Эта тема на forum.dklab.ru


ZiBoX: WebHost Manager
Господа, подскажите как работать с WebHost Managerом (CPanel).
Если не сложно на примере. На cpanel.net есть пример но он на Perl

#!/usr/bin/perl
BEGIN {

push(@INC,"/usr/local/cpanel");

push(@INC,"/usr/local/cpanel/whostmgr/docroot/cgi");
}
use 'whmlib';
require 'parseform.pl';

use Cpanel::Accounting;

%FORM = parseform();

print "Content-type: text/html\r\n\r\n";

"all" = "All Features <b>(warning: root access)</b>";

"status" = "View Server Status";

"stats" = "View Account Statistics";

"restart" = "Restart Services";

"create-dns" = "Add Domains";

"kill-dns" = "Delete Domains";

"park-dns" = "Park Domain";

"edit-dns" = "Edit DNS Entries <b>(warning: this will allow access to all zones)</b>";

"frontpage" = "Enabling/Disabling FrontPage Extensions";

"limit-bandwidth" = "Bandwidth Limiting";

"ssl" = "Enabling/Disabling SSL Support";

"quota" = "Quota Modification";

"edit-mx" = "Edit MX Entries";

"demo-setup" = "Turn an account into a demo account";

"rearrange-accts" = "Rearrange Accounts (used to free up disk space)";

"passwd" = "Password Modification";

"mailcheck" = "Mail Trouble Shooter";

"res-cart" = "Reset Shopping Cart";

"resftp" = "Resync Ftp Passwords";

"add-pkg" = "Add/Remove Packages";

"add-pkg-ip" = "Allow Creation of Packages with a Dedicated IP";

"add-pkg-shell" = "Allow Creation of Packages with Shell Access";

"disallow-shell" = "Never allow creation of accounts with shell access";

"edit-pkg" = "<i>Allow Package Edits (new)</i>";

"allow-unlimited-pkgs" = "<i>Allow Creation of Packages with Unlimited Features (ie. unlimited pop accounts) (new)</i>";

"allow-unlimited-disk-pkgs" = "<i>Allow Creation of Packages with Unlimited Diskspace (new)</i>"; "news" = "News Modification";

"allow-addoncreate" = "Allow creation of packages with Addon Domains";

"allow-parkedcreate" = "Allow creation of packages with Parked Domains";

"create-acct" = "Account Creation";

"list-accts" = "List Accounts";

"mod-subdomains" = "Enabling/Disabling SubDomains";

"edit-account" = "Account Modification <b>(warning: this will allow circumvention of account creation limits, give shell access, dedicated ips, etc)</b>";

"kill-acct" = "Account Termination";

"suspend-acct" = "Account Suspension";

"upgrade-account" = "Account Upgrades";



if (!($ACL{'kill-acct'} || $ACL{'all'})) {

print "Sorry permission denied to remove user";

exit();

}

А я не смогу переделать это все на php.
Помогите или подскажите примером или "перевидите" на php

Эта тема на forum.dklab.ru