Last change
on this file since 241 was
208,
checked in by jkraaijeveld, 13 years ago
|
Got latest version from trunk. Ready to reorganise.
|
File size:
580 bytes
|
Rev | Line | |
---|
[208] | 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 | |
---|
| 12 | $newApplication = new Application(null, "New application", "Default application", "Default style"); |
---|
| 13 | $dbi->set($newApplication); |
---|
| 14 | |
---|
| 15 | if (isset($_SESSION['localSessionCopy']) && !empty($_SESSION['localSessionCopy'])) { |
---|
| 16 | $session = $_SESSION['localSessionCopy']; |
---|
| 17 | $session->pipeline[] = $newApplication; |
---|
| 18 | $_SESSION['localSessionCopy'] = $session; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | redirect("pipelineEditor.php"); |
---|
| 22 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.