Coder Profile - Show off your skills, get a coder profile.
 
 
 
code pin board WHM Class Download Source Code
Author Details Code Information
Darkvengance ( Sildaekar Decrura )

Pinned 4 Codes
Posted 1 Coding Articles

Send A Message
View Coders Profile
Language PHP (Hypertext Preprocessor)
Expires Never
Length 756 Characters (43 Lines)
Password no password
Description

An incomplete WHM class that will eventually be able to simply perform all functions of whm
  1. <?php
  2.  
  3. class swhm{
  4.  
  5.        var $host=null;
  6.        var $user=null;
  7.        var $hash=null;
  8.        var $error=array();
  9.        var $sock=null;
  10.        var $secure_sock=1;
  11.  
  12. //Prepare the class for use
  13. function initialize(){
  14.  
  15.   $hash=str_replace(array("\r","\n"),"",$this->hash);
  16.   $this->hash=$hash;
  17. }
  18.  
  19. function connect ($path){
  20.  
  21.   if($this->secure_sock==1){
  22.  
  23. $this->sock=fsockopen("ssl://".$this->host,2087,$error_number,$error,30);
  24.   }else{
  25.  
  26. $this->sock=fsockopen("http://".$this->host,2087,$error_number,$error,30);
  27.   }
  28.  
  29.   if($error_number==0){
  30.     $this->error="Socket Error: Couldn't start the socket!";
  31.     return false;
  32.   }elseif($this->sock==false){
  33.     $this->error="Socket Error: ".$error." ".$error_number;
  34.     return false;
  35.   }
  36.  
  37.  
  38. }
  39.  
  40.  
  41.  
  42. }
  43. ?>
code pin board Back To Code Pin Board Post New Code
Please login to post comments.
Page 1 of 1
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved