I've coded some nice addons to retros. This is furnidata and productdata checker if furnidata changed on habbo this script updates it. You can use cron jobs with this. :)
Change links on script!
Create fdchecker.php file:
pdchecker.php:Code:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <?php // Check furnidata // Check Habbo status $headers = get_headers('http://www.habbo.fi/home/Habborasia996'); // Change this if ($headers[0] != "HTTP/1.1 200 OK") { die("Habbo is in maintenance"); } $current = strtoupper(dechex(crc32(file_get_contents("http://localhost/gamedata/furnidata.txt")))); $habboviral = strtoupper(dechex(crc32(file_get_contents("http://www.habbo.fi/gamedata/furnidata/1")))); if ($current != $habboviral) { echo("Furnidata updated"); file_put_contents("/var/www/gamedata/furnidata.txt", file_get_contents("http://www.habbo.fi/gamedata/furnidata/1")); // Change it } else { // Nothing to do } ?> </body> </html>
----Code:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <?php // Check productdata // Check Habbo status $headers = get_headers('http://www.habbo.fi/home/Habborasia996'); if ($headers[0] != "HTTP/1.1 200 OK") { die("Habbo is on maintenance"); } $current = strtoupper(dechex(crc32(file_get_contents("http://localhost/gamedata/productdata.txt")))); $habboviral = strtoupper(dechex(crc32(file_get_contents("http://www.habbo.fi/gamedata/productdata/1")))); if ($current != $habboviral) { echo("Productdata updated"); file_put_contents("/var/www/gamedata/productdata.txt", file_get_contents("http://www.habbo.fi/gamedata/productdata/1")); } else { // Nothing to do } ?> </body> </html>
Furnidata & Productdata without cache clear script:
Save this to furniassets.php and change client productdata and furnidata paths to furniassets.php?id=furnidata and furniassets.php?id=productdata.Code:<?php header("Cache-Control: no-cache"); header("Content-type: text/plain"); $id = ''; if (isset($_GET['id'])) { $id = $_GET['id']; } switch ($id) { case "furnidata": echo @file_get_contents("http://localhost/gamedata/furnidata.txt"); echo @file_get_contents("http://localhost/gamedata/furnidata_override.txt"); // Remove if you don't need this. break; case "productdata": echo @file_get_contents("http://localhost/gamedata/productdata.txt"); echo @file_get_contents("http://localhost/gamedata/productdata_override.txt"); // Remove if you don't need this. break; } ?>
When you makes updates on furnidata you not need clear cache :)





