private function globalChecks($file, $content, $name) { if (is_file('apps/controllers/' . $file)) { exit("This application already exists.\n"); } if (!file_put_contents("apps/controllers/{$file}", $content)) { exit("The file apps/controllers/{$file} can't be created.\n"); } if (!Ftp::makeDir('apps/views/' . $name)) { exit("The file apps/views/{$name} can't be created."); } }