Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
Auto Update WebBuild - Any CMS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="leenster" data-source="post: 144611" data-attributes="member: 10665"><p>I had a few requests in the last few months to create another WebBuild updater since habbo managed to stop the old functions by adding a cookie to their pages.</p><p></p><p>Here is a new way of doing it.</p><p></p><p>Add these functions to your CMS.</p><p></p><p>[PHP]</p><p><?php</p><p>function get_content($url) </p><p>{</p><p> $ch = curl_init(); </p><p> curl_setopt($ch, CURLOPT_URL, $url); </p><p> curl_setopt($ch, CURLOPT_HEADER, 1);</p><p> curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)');</p><p> curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");</p><p> curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); //saved cookies</p><p> curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);</p><p> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);</p><p> </p><p> $string = curl_exec ($ch); </p><p> curl_close ($ch); </p><p> </p><p> return $string; </p><p>}</p><p></p><p>function get_between($input, $start, $end)</p><p>{</p><p> $substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));</p><p> return $substr;</p><p>}</p><p></p><p>function GetWebBuild($site)</p><p>{</p><p> $content = get_content('http://habbo.'.$site);</p><p> $webbuild = get_between($content, "http://images.habbo.com/habboweb/", "/web-gallery");</p><p> echo $webbuild;</p><p>}</p><p></p><p>?></p><p>[/PHP]</p><p></p><p>Now you can just use </p><p>[PHP]GetWebBuild('com');[/PHP]</p><p></p><p>That will output something like: 63_1dc60c6d6ea6e089c6893ab4e0541ee0/1273</p><p></p><p>If you add the functions to a class, lets say the core class from user, then you would use it like [PHP]$core->GetWebBuild('com');[/PHP]</p><p></p><p></p><p>Pretty simple but I figured I'd share as usual.</p></blockquote><p></p>
[QUOTE="leenster, post: 144611, member: 10665"] I had a few requests in the last few months to create another WebBuild updater since habbo managed to stop the old functions by adding a cookie to their pages. Here is a new way of doing it. Add these functions to your CMS. [PHP] <?php function get_content($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)'); curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); //saved cookies curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $string = curl_exec ($ch); curl_close ($ch); return $string; } function get_between($input, $start, $end) { $substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1)); return $substr; } function GetWebBuild($site) { $content = get_content('http://habbo.'.$site); $webbuild = get_between($content, "http://images.habbo.com/habboweb/", "/web-gallery"); echo $webbuild; } ?> [/PHP] Now you can just use [PHP]GetWebBuild('com');[/PHP] That will output something like: 63_1dc60c6d6ea6e089c6893ab4e0541ee0/1273 If you add the functions to a class, lets say the core class from user, then you would use it like [PHP]$core->GetWebBuild('com');[/PHP] Pretty simple but I figured I'd share as usual. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
Auto Update WebBuild - Any CMS
Top