Results 1 to 1 of 1
-
6th Jun 2012, 07:19 PM #1OPMemberWebsite's:
WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.proVbulletin Autobackup & Autoupload Solution
Hey Guys,After Search From Many Days I Got It Few Days Ago,A Backup Solution,Which Backup Vbulletin Database Everyday,This Is The Link Of That Plugin:
Code:https://rapidshare.com/files/925626244/Auto-backup.zip
But Dont Forget: In Which Folder Your Backup File Will Be Stored,Change It To 777.
PHP Code:<?php
$dir = 'full patch to directory'; // like /public_html/warezrocker.info/backup //
function filelist($dir)
{
$results = array();
$handler = opendir($dir);
while ($file = readdir($handler))
{
if (strrchr($file,'.')!="")
{
$ext=strtolower(strrchr($file,'.'));
}
if ($file != '.' && $file != '..')
{
$results[] = $file;
}
}
closedir($handler);
sort($results);
return $results;
}
function sCurl($url, $post)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$page = curl_exec ($ch);
curl_close ($ch);
return $page;
}
function uploadtors($filelocation)
{
$ursuser = ""; // Add Rapidshare Username //
$urspass = ""; // Add Rapidshare password //
$upservid = file_get_contents('http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=nextuploadserver');
$url_action = "http://rs{$upservid}.rapidshare.com/cgi-bin/rsapi.cgi";
$postdata= array();
$postdata['sub'] = 'upload';
$postdata['login'] = $ursuser;
$postdata['password'] = $urspass;
$postdata['filecontent'] = "@$filelocation";
$page = sCurl($url_action, $postdata);
preg_match('@COMPLETE\n(\d+),([^,]+)@i', $page, $link);
$link = 'https://rapidshare.com/files/' . $link[1] . '/' . $link[2];
if (($link[1] != '') && ($link[2] != ''))
{
unlink($filelocation);
$email = ''; // Add Email Id Where You Want To Receive Download Link //
$headers .= 'From: WarezRocker.info <[email protected]>' . "\r\n";
$subject = 'DB Uploaded'; // Add Subject Of That Email //
$message = "DownLoad Link: " . $link;
$mail = mail($email, $subject, $message, $headers);
echo "Email Sent";
}
}
$results = filelist($dir);
foreach($results as $result)
{
preg_match('#(.*).sql.gz#', $result, $match);
$filelocation = $dir . $match[0];
$link = uploadtors($filelocation);
}
?>
PHP Code:preg_match('#(.*).sql.gz#', $result, $match);
PHP Code:preg_match('#(.*).sql#', $result, $match);
Code:php path of that upload.php
Code:php /var/www/html/warezrocker/upload.php
saninokia Reviewed by saninokia on . Vbulletin Autobackup & Autoupload Solution Hey Guys,After Search From Many Days I Got It Few Days Ago,A Backup Solution,Which Backup Vbulletin Database Everyday,This Is The Link Of That Plugin: https://rapidshare.com/files/925626244/Auto-backup.zip Now What You Need To Do Is? Auto Upload It To Some Host.Now I Am Providing It,Just Change Some Values,And You Are Done; But Dont Forget: In Which Folder Your Backup File Will Be Stored,Change It To 777. <?php $dir = 'full patch to directory'; // like Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Rapidleech Autoupload Confiq Doubt
By Mr.Guru in forum Webmaster DiscussionReplies: 3Last Post: 16th Dec 2011, 09:28 AM -
How or where can I find autoupload script?
By Ultratude in forum Webmaster DiscussionReplies: 11Last Post: 3rd Oct 2011, 04:39 PM -
rapidleech how to use autoupload
By darkspleju in forum Technical Help Desk SupportReplies: 7Last Post: 10th Jun 2011, 09:54 AM -
AutoUpload Parse Error
By aggiefury101 in forum Technical Help Desk SupportReplies: 2Last Post: 31st May 2011, 01:18 PM -
KWWHSnap - Ctrl+Shift+S - Auto-Snapshot - AutoUpload - Get Link in Clipboard :D
By l0calh0st in forum Web Development AreaReplies: 25Last Post: 2nd Aug 2010, 08:39 AM
themaRegister - register to forums...
Version 3.39 released. Open older version (or...