Add DrawTown (2)

This commit is contained in:
HotPizzaYT 2022-04-27 12:37:09 -05:00
commit b033952023
13 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 878 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 679 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 620 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

View file

@ -8,14 +8,14 @@ if(isset($_POST["i"]) && isset($_POST["t"]) && isset($_SESSION["ts_user"])){
$id = rand(1000,3999);
$arry = array("from"=>$_SESSION["ts_user"],"time"=>time(),"src"=>"default","title"=>$_POST["t"]);
$aencode = json_encode($arry);
if(!(file_exists("data/".$id.".json"))){
//if(!(file_exists("data/".$id.".json"))){
file_put_contents("data/".$id.".json",$aencode);
list($type, $data) = explode(';', $data);
list(, $data) = explode(',', $data);
$data = base64_decode($data);
file_put_contents('out/'.$id.'.png', $data);
}
//}
}
}

Binary file not shown.