Rev | Line | |
---|
[155] | 1 | <?php |
---|
| 2 | |
---|
| 3 | require 'classes/master.php'; //should be at top of every page |
---|
| 4 | |
---|
| 5 | if (!isset($_SESSION['currentSession'])) { |
---|
| 6 | die("No session currently active!"); |
---|
| 7 | } |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | $dbi = new DatabaseInterface(); |
---|
| 11 | $session_results = $dbi->get("session", array("uid" => $_SESSION['currentSession'])); |
---|
| 12 | |
---|
| 13 | if (count($session_results) > 0) { |
---|
| 14 | $session = $session_results[0]; |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | $newApplication = new Application(null, "New application", null, null); |
---|
| 18 | $dbi->set($newApplication); |
---|
| 19 | $session->pipeline[] = $newApplication; |
---|
| 20 | $dbi->set($session); |
---|
| 21 | |
---|
| 22 | redirect("pipelineEditor.php"); |
---|
| 23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.