Check the random image thread bro.
Testing this one more time. Sec.
Check the random image thread bro.
Testing this one more time. Sec.
12345678
Neat (*'-')b
Index.php:
Functions:PHP Code:<?php
include ("post.php");
$login_post_url='http://www.bluegartr.com/forum/login.php?do=login';
$reffer='http://www.bluegartr.com/forum/newthread.php?do=newthread&f=68';
$loginpost="vb_login_username=USRNAME&cookieuser=1&vb_login_password=PASSWORD&s=&do=login&vb_login_md5password=&vb_login_md5password_utf=";
$returned = postdata($login_post_url, $loginpost, $reffer);
$returned = getdata("http://www.bluegartr.com/forum/newthread.php?do=newthread&f=68");
$search1 = 'var SECURITYTOKEN = ';
$search2 = 'var IMGDIR_MISC';
$parsed1 = SimMyExtract($returned, $search1, $search2);
$remove = array('"', ";");
$skey = str_replace($remove,"", $parsed1);
echo "Security Key Generated: ".$skey."<br>";
$search1 = 'newattachment.php?';
$search2 = "480, 480";
$parsed1 = SimMyExtract($returned, $search1, $search2);
$remove = array('"', ";", "\\",",","'");
$posthash = str_replace($remove,"", $parsed1);
echo $posthash."<br/>";
$parts = explode("&", $posthash);
echo "Post Hash Generated: ".$parts[2]."<br/>";
echo $parts[1]."<br/>";
echo $parts[0]."<br/>";
$posturl = "http://www.bluegartr.com/forum/newreply.php";
$postdata="title=&message=12345678&wysiwyg=1&sendtrackbacks=&iconid=0&s=&securitytoken=".$skey."&do=postreply&t=75897&".$parts[0]."&specifiedpost=0&".$parts[2]."&".$parts[1]."&loggedinuser=28468&multiquoteempty=&sbutton=Submit+Reply&signature=1&parseurl=1&vbseo_retrtitle=1&vbseo_is_retrtitle=1&emailupdate=0";
$returned = postdata($posturl, $postdata);
echo $returned;
?>
PHP Code:<?php
function postdata($url, $string="", $reffer="http://www.bluegartr.com/forum/"){
$cookiefile = "cookie.txt";
$agent="Mozilla/14.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"$string");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
function getdata($url, $reffer="http://www.bluegartr.com/forum/"){
$cookiefile = "cookie.txt";
$agent="Mozilla/14.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, $reffer);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
function SimMyExtract($string, $openingTag, $closingTag)
{
$string = trim($string);
$start = intval(strpos($string,$openingTag)
+ strlen($openingTag));
$end = intval(strpos($string,$closingTag));
if($start == 0 || $end ==0)
return false; // not found
$mytext = substr($string,$start, $end - $start);
return $mytext;
}
?>
Auto SE news post update? Want?
12345678
gdi....
Edit: Gotta try again :<
edit: the fuckkkk
php sucks use a real language
php is better than most things for what I need it for. I'm backing up all the users on BG for an app I'm making and php is easier to do it with.
Doubt this will work D: Got most everything working... Testing it here.
The fuckStopped after posting numbers...
Hmm
I DON GET IT! Oh well, tf2 tiem
Maybe it would help if you knew what the fuck you were doing.
Also the real question is what haven't you done, and the real answer is kill yourself.
/join? Starcade ; 08-27-2006 2
07Pony Starcade ; 03-04-2008 2
0ni0n Relic Shield ; 08-29-2008 1,677
1213 Starcade ; 04-10-2007 1
123 suck on me Starcade ; 03-15-2006 1
1234Judai Starcade ; 06-25-2008 3
1988 Starcade ; 01-22-2009 5
1postwonder Starcade ; 05-09-2006 1
1RealSmartGuy Starcade ; 12-15-2007 2
1wolfknight Starcade ; 01-16-2009 2
270topsidesoul Starcade ; 08-08-2005 4
2D Rapture ; 06-16-2005 47
2ndary Starcade ; 06-03-2009 1
42LS Melee Summoner ; 01-12-2006 24
4evrDRG Melee Summoner ; 02-17-2008 21
4leaf Starcade ; 04-29-2009 2
4ntzilla Starcade ; 04-12-2009 1
4riette Hydra ; 11-19-2005 131
510Meeze Fake Numbers ; 03-28-2007 87
6507001234 Starcade ; 07-15-2008 2
6souls Bagel 10-08-2005 1,461
6souls2 Melee Summoner ; 07-02-2008 16
808 Starcade ; 11-23-2007 2
9627 Hydra ; 04-26-2008 126
9delt Starcade ; 06-16-2008 2
9Lives Starcade ; 04-17-2008 2
? ? ? Starcade ; 06-10-2008 9
@ Starcade ; 11-25-2006 2
A Shock Starcade ; 09-05-2007 5
A-Brighter-Dawn Starcade ; 06-17-2005 3
Knew it. It's working fine. Someone's name is throwing the post code off and making it fuck up... Gotta skip the first page I guess.
Need to find a less common delimiter.
A-Chaos Puppetmaster ::; 09-18-2007 58
a351must2 Melee Summoner ::; 11-21-2007 21
a3gis Starcade ::; 01-11-2007 5
A=V Melee Summoner ::; 02-23-2008 16
Aable Puppetmaster ::; 10-19-2006 72
Aairi Starcade ::; 04-05-2006 7
Aajinana Melee Summoner ::; 08-03-2008 19
aalryn Rapture ::; 03-20-2009 25
Aangeliceus Fake Numbers 10-27-2005 90
Aanoan Starcade ::; 05-12-2008 3
aapr25179 New Merits ::; 12-18-2006 228
Aarion Melee Summoner 06-28-2005 17
Aaronus.asura Starcade ::; 09-19-2008 4
Aaros Rapture ::; 02-20-2007 32
aatto. Starcade ::; 09-21-2008 4
aazt Rapture ::; 09-25-2008 32
abadd Melee Summoner ::; 08-07-2006 18
Abaddon Starcade ::; 11-21-2005 4
Abaddonn Starcade ::; 08-10-2008 2
Abadon Starcade ::; 11-23-2007 4
Abandon CoP Dynamis ::; 05-11-2008 270
Abarai Rapture ::; 07-17-2007 29
Abbadon Starcade ::; 11-03-2005 2
Abbadonx Starcade ::; 12-17-2005 2
abbeylee Melee Summoner ::; 03-26-2008 24
Abdullah Starcade ::; 07-27-2008 3
Abel Puppetmaster ::; 10-18-2006 60
Abob Rapture ::; 09-24-2006 42
Abood Fake Numbers ::; 03-13-2005 89
Abosherpa Starcade ::; 11-04-2005 3