Skip to content

Instantly share code, notes, and snippets.

@nunocodex
Created June 6, 2010 02:57
Show Gist options
  • Save nunocodex/427242 to your computer and use it in GitHub Desktop.
Save nunocodex/427242 to your computer and use it in GitHub Desktop.
<?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