Created
June 6, 2010 02:57
-
-
Save nunocodex/427242 to your computer and use it in GitHub Desktop.
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'; | |
// Mi loggo. | |
if ( Rapidshare_Com::login('nome_utente', 'password_utente') ) | |
{ | |
// Sono loggato ! | |
echo "Loggato&"; | |
// Eseguo il logout. | |
Rapidshare_Com::logout(); | |
} | |
else | |
{ | |
// Non loggato ! | |
echo "Non sono loggato"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment