diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index 37a4064..d3c45a9 100644 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -65,4 +65,9 @@ class ClientController extends Controller { return view('client.ideupload'); } + + public function insertasset() + { + return view('client.insertasset'); + } } diff --git a/resources/views/client/insertasset.blade.php b/resources/views/client/insertasset.blade.php new file mode 100644 index 0000000..b70f487 --- /dev/null +++ b/resources/views/client/insertasset.blade.php @@ -0,0 +1,23 @@ +@php + //header("location:" . $file); + $nsets = (int)$_GET["nsets"]; + $type = (string)$_GET["type"]; + $userid = (int)$_GET["userid"]; + $sid = (int)$_GET["sid"]; + //http://roblox.com/Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=11744447 + if ($nsets == 20 && $type == "user") + { + header("content-type:text/xml"); + $file = "http://morblox.us/stamper/base/{$userid}.xml"; + readfile($file); + // + //header("location:" . "http://morblox.us/stamper/base/{$userid}.xml"); + } + //http://www.morblox.us/stamper/inseassetcollect.php?sid=433603 + if ($sid !== 0 && $type == 0) + { + header("content-type:text/xml"); + $file = "http://morblox.us/stamper/sid/{$sid}.xml"; + readfile($file); + } +@endphp \ No newline at end of file