Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by numberone ( 14 years ago )
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Sphere
*
* Sphere Library
* by Yusuf Özdemir
*/
class Sphere
{
/**
* Global container variables for chained argument results
*
*/
protected $ci;
// Windows Dizin
//public $path_sphereacct = "C:\sphere\accounts\sphereacct.scp";
// MAC OS X Dizin
public $path_sphereacct = "/Users/ozdemir/Desktop/somefile.txt";
/**
* Copies an instance of CI
*/
public function __construct()
{
$this->ci =& get_instance();
$this->ci->load->helper('file');
}
public function register($acc, $pass, $pin, $email)
{
$data="\\n[$acc]\\nPASSWORD=$pass\\nPLEVEL=1\\nTAG.PINCODE=$pin\\nTAG.EMAIL=$email\\n\\n";
return (write_file($this->path_sphereacct, $data, "at"));
}
public function change_password($acc, $pass)
{
$data="\\n[$acc]\\nPASSWORD=$pass\\n\\n";
return (write_file($this->path_sphereacct, $data, "at"));
}
public function change_pin($acc, $pin)
{
$data="\\n[$acc]\\nTAG.PINCODE=\\"$pin\"\n\n";
return (write_file($this->path_sphereacct, $data, "at"));
}
public function change_email($acc, $email)
{
$data="\\n[$acc]\\nTAG.EMAIL=$email\\n\\n";
return (write_file($this->path_sphereacct, $data, "at"));
}
public function ban($acc, $ban)
{
$data="\\n[$acc]\\nBANNED=$ban\\n\\n";
return (write_file($this->path_sphereacct, $data, "at"));
}
public function inactive($acc, $inactive)
{
$data="\\n[$acc]\\nTAG.INACTIVE=$inactive\\n\\n";
return (write_file($this->path_sphereacct, $data, "at"));
}
}
/* End of file Datatables.php */
/* Location: ./application/libraries/Datatables.php */
Revise this Paste
Children: 57761