public function deleteAction() { $fc = FrontController::getInstance(); $file = new FilesModel(); $params = $fc->getParams(); if (preg_match("/^[a-zA-Z0-9_]+(_[\\d]+s|).txt\$/", $params['filename'])) { $file->deleteTextFile($params['filename']); $file->getStatus(); } }