PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Ahmed Selim [ Mr.Ajax ]   CPanel Control Class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example on using these functions
Class: CPanel Control Class
Manage CPanel hosting accounts
Author: By
Last change:
Date: 17 years ago
Size: 1,572 bytes
 

Contents

Class file image Download
<?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");
*/






?>