"'".$nomefile."'", ]); } elseif (!file_put_contents($path.$nomefile, $contenuto)) { $_SESSION['errors'][] = tr('Impossibile creare il file!'); } else { $_SESSION['infos'][] = tr('Componente _FILE_ aggiunto correttamente!', [ '_FILE_' => "'".$nomefile."'", ]); } break; case 'delete': $nomefile = post('nomefile'); if (!empty($nomefile)) { delete($path.$nomefile); $_SESSION['infos'][] = tr('File _FILE_ rimosso correttamente!', [ '_FILE_' => "'".$nomefile."'", ]); } break; }