source: Dev/branches/jos-branch/createapplication.php @ 240

Last change on this file since 240 was 208, checked in by jkraaijeveld, 13 years ago

Got latest version from trunk. Ready to reorganise.

File size: 580 bytes
RevLine 
[208]1<?php
2
3require 'classes/master.php'; //should be at top of every page
4
5if (!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
15if (isset($_SESSION['localSessionCopy']) && !empty($_SESSION['localSessionCopy'])) {
16    $session = $_SESSION['localSessionCopy'];
17    $session->pipeline[] = $newApplication;
18    $_SESSION['localSessionCopy'] = $session;
19}
20
21redirect("pipelineEditor.php");
22?>
Note: See TracBrowser for help on using the repository browser.