My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members

<?Php if(stristr($SERVER['PHP_SELF'], "mig33API.php")) { die("

You don't have right permission to access this file directly.

"); } include"protectedUser.lst.php"; //DB for protected user include"premiumUser.lst.php"; //DB for premium user include "fungsi.php"; class gombile { /@access private / var $serverHost ="gateway.mig33.com"; //Compatible mig33 server wap.mig33.comport:80, m.mig33.comport:80 var $serverPort = 25; var $filePath = "/member2/t.php"; var $username = null; var $userdef ="cah_gombile"; //handling temporarly cookies var $cookie = null; //handling fsockopen connection var $fp_handle = null; var $respon = null; var $debug = true; var $debugMsg = array(); /@access public / //do login to server function Login($usr, $pwd,$rem=false, $inv=false,$ret=false){ $cookie = is_null($this->cookie)?"":$this->cookie; $usr = urlencode($usr); $pwd = urlencode($pwd); //$content: parameter yg akan dikirim ke server lewat method POST $params = "cmd=login&username=$usr&password=$pwd"; $params .= ($rem === true?"&rememberName=on":""); $params .= ($inv === true?"&invisible=on":""); //creating connection to server $this->createConnection("POST", $this->filePath,$cookie, null, $params, false, false); //get cookie"s $Cookies = array(); if($this->fp_handle) { while(!feof($this->fp_handle)){ //get server respon $respon = @fgets($this->fp_handle, 4096); $this->respon .= $respon; //get cookie from server respon $isCookie = stristr($respon, "set-cookie"); if($isCookie) { $Cookies .= trim(str_ireplace("set-cookie: ", "", $isCookie)); } } }else{ $this->debugMsg .="Sorry, we couldn't connect to the mig33 server. This is out of our control."; }

Powered by Google Project Hosting