$Project->path = $_SESSION['project']; $project_name = $Project->GetName(); if (!$no_return) { echo formatJSEND("success", array("name" => $project_name, "path" => $_SESSION['project'])); } } } ////////////////////////////////////////////////////////////////// // Open Project ////////////////////////////////////////////////////////////////// if ($_GET['action'] == 'open') { if (!checkPath($_GET['path'])) { die(formatJSEND("error", "No Access")); } $Project->path = $_GET['path']; $Project->Open(); } ////////////////////////////////////////////////////////////////// // Create Project ////////////////////////////////////////////////////////////////// if ($_GET['action'] == 'create') { if (checkAccess()) { $Project->name = $_GET['project_name']; if ($_GET['project_path'] != '') { $Project->path = $_GET['project_path']; } else { $Project->path = $_GET['project_name']; } // Git Clone? if (!empty($_GET['git_repo'])) { $Project->gitrepo = $_GET['git_repo'];