Last change
on this file since 165 was
163,
checked in by fpvanagthoven, 13 years ago
|
- Basically alles gefixt om te werken met een local copy van de session, opgeslagen in $_SESSIONlocalSessionCopy?.
- Flag $_SESSIONupdateNeeded? toegevoegd om aan te geven wanneer er een update uit de database nodig is in plaats van gewoon verder werken met de local copy.
- '123'/'456' placeholder routine weggehaald uit returnStep.php
- CreateObject? doet nog niets, maar dat komt volgende week! (AJAX-aangestuurd object creation, met als doel: pipeline editing zonder constante page refreshes).
|
File size:
580 bytes
|
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 | |
---|
[156] | 12 | $newApplication = new Application(null, "New application", "Default application", "Default style"); |
---|
[155] | 13 | $dbi->set($newApplication); |
---|
| 14 | |
---|
[163] | 15 | if (isset($_SESSION['localSessionCopy']) && !empty($_SESSION['localSessionCopy'])) { |
---|
| 16 | $session = $_SESSION['localSessionCopy']; |
---|
| 17 | $session->pipeline[] = $newApplication; |
---|
| 18 | $_SESSION['localSessionCopy'] = $session; |
---|
| 19 | } |
---|
| 20 | |
---|
[155] | 21 | redirect("pipelineEditor.php"); |
---|
| 22 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.