function process() { if (isset($_FILES["image"]) && isset($_POST["icon"])) { $smth = Filess::upload(64, 64); if ($smth == false) { return; } Filess::delete($this->main->map_icon); $this->main->updateMapIcon($smth); } }
function process() { if (isset($_FILES["banner"]) && isset($_POST["banner"])) { $smth = Filess::upload(720, 360); if ($smth == false) { return; } Filess::delete($this->main->map_banner); $this->main->updateMapBanner($smth); } }