source: Dev/branches/jQueryUI/client/pages_old/createapplication.php @ 249

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

This one's for Subversion, because it's so close...

First widget (stripped down sequencer).
Seperated client and server code in two direcotry trees.

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.