source: Dev/branches/jQueryUI/pages_old/createapplication.php @ 246

Last change on this file since 246 was 246, checked in by hendrikvanantwerpen, 13 years ago

Created first page mainmenu in new system.
Moved old pages out of project root.
Fixed RDFAPI.php case for people with proper OS'es.

File size: 580 bytes
Line 
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.