This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function DB($query) | |
{ | |
static $db = null; | |
static $result = array(); | |
if (is_file($query) === true) | |
{ | |
$db = new PDO('sqlite:' . $query, null, null, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MY_Controller extends Controller | |
{ | |
public function __construct() | |
{ | |
parent::__construct(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Rapidshare_Com | |
{ | |
/** | |
* @var string | |
*/ | |
public static $cookie = 'rs_cookie_data.php'; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Carico la classe Rapidshare_Com | |
require_once('rapidshare_com.php'); | |
// Creo l'oggetto. | |
Rapidshare_Com::factory(); | |
// Eventualmente se volessi modificare il percorso del cookie. | |
Rapidshare_Com::$cookie = 'percorso/rapidshare_cookie.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Rapidshare_Com | |
{ | |
public function __construct() | |
{ | |
// constructor. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Rapidshare_Com | |
{ | |
/** | |
* @var string | |
*/ | |
public static $cookie = 'rs_cookie_data.php'; | |
public function __construct() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php public static $cookie = 'rs_cookie_data.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Controllo se è attivo cURL. | |
if ( ! function_exists('curl_init') ) | |
{ | |
die('cURL not found.'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Login | |
* | |
* @return array | |
* @author Namaless | |
**/ | |
public static function login($username, $password) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Logout | |
* | |
* @return array | |
* @author Namaless | |
**/ | |
public static function logout() | |
{ |
OlderNewer