<?php
//////////////////////////////////////////////////
//*********************************************//
//********************************************//
//***This Class Uploaded to phpclasses.org***//
//***By Eng.Ahmed Selim Refaat Ahmed********//
//******Professional in Php Programming****//
//******E-mail : admin@cr-house.com*******//
//******Phone : 0020100266706************//
//*************************************//
//************************************//
///////////////////////////////////////
include ("Accounting.php.inc");
$host="";
$user="";
$pass="";
$hash="";
// Get The Version Of Cpanel #WORKED#
/*
$ver = showversion ($host,$user,$hash,0);
echo $ver;
*/
// Create new account on WHM #WORKED#
/*
$domainname = "asasasas.com";
$user_name = "wqrwerwe";
$passss = "rwerwe";
$plan = "selim_ahmed";
createacct ($host,$user,$hash,0,$domainname,$user_name,$passss,$plan);
*/
// suspend an account #worked#
/*
$suspenduser = "ahmed";
suspend ($host,$user,$hash,0,$suspenduser)
*/
// unsuspend an account #worked#
/*
$suspenduser = "ahmed";
unsuspend ($host,$user,$hash,0,$suspenduser)
*/
//Terminate account #worked#
/*
$killuser = "ahmed";
killacct ($host,$user,$hash,0,$killuser)
*/
// List Accounts #worked#
/*
$list_acc = listaccts ($host,$user,$hash,0);
print ("<pre>");
print_r ($list_acc);
print ("</pre>\n");
*/
// List Packages
/*
$list_pkgs = listpkgs ($host,$user,$hash,0);
print ("<pre>");
print_r ($list_pkgs);
print ("</pre>\n");
*/
?>
|