Real Automation of Down-Uploading of Scene Releases

Status
Not open for further replies.
can it be done mate? have you done? i dont know how to use curl :(
is it easy to do?

Yes, I built my own "sborg automation" ;) It's easy, just a few PHP Code Raws.

Login to sBorg:

Code:
$postLoginFields = array(
    'access_login'          => 'user',
    'access_password'       => 'password',
    'access_duration'       => '720'
);

$postLoginConfig = array(
    CURLOPT_URL             => 'http://yoursborghosturl/index.php',
    CURLOPT_COOKIEJAR       => './cookies.txt',
    CURLOPT_COOKIEFILE      => './cookies.txt',
    CURLOPT_COOKIESESSION   => true,
    CURLOPT_FOLLOWLOCATION  => true,
    CURLOPT_RETURNTRANSFER  => true,
	CURLOPT_POST            => true,
    CURLOPT_AUTOREFERER     => true,
	CURLOPT_POSTFIELDS      => $postLoginFields
);

$ch = curl_init();
curl_setopt_array($ch, $postLoginConfig);
if(curl_exec($ch)) echo '<b>Login successfully!</b>';
curl_close($ch);

and so on ;)
 
so this is the curl code to login to sborg?

Yes. After you logged in, you can call the transload and co. via curl.

For a transload just call submit.php and pass the form data like in the login part.


Please don't send me messages like "can I have your script?", "how do you make it" etc. pp. | It's not difficult to made a sborg automation script, so try it yourself ;)
 
Status
Not open for further replies.
Back
Top