add_project ($project_name); } break; default: // Setting the header to Javascript to output the Json file header('content-type: text/javascript'); // showing an overview of all available projects to a user $project->projects_overview ($user_id, $user_id); break; } // closing DB connection on the end of the script $DB = NULL; // if nobody is logged in }else{ } ?>