Rev | Line | |
---|
[142] | 1 | <?php |
---|
| 2 | require 'classes/master.php'; //should be at top of every page |
---|
| 3 | |
---|
[151] | 4 | if (!isset($_SESSION['username'])) { |
---|
| 5 | redirect('index.php'); |
---|
| 6 | } |
---|
[142] | 7 | |
---|
[151] | 8 | $dbtemp = new DatabaseInterface(); |
---|
[142] | 9 | |
---|
[150] | 10 | |
---|
[151] | 11 | if (!isset($_SESSION['currentSession'])) { |
---|
| 12 | redirect('selectSession.php'); |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | $dbi = new DatabaseInterface(); |
---|
| 16 | $sessions = $dbi->get("session", array("user"=>$_SESSION['username'])); |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | |
---|
[146] | 22 | if (isset($_SESSION['currentPipeline'])) { |
---|
| 23 | $sequencer = new PipelineSequencer($_SESSION['currentPipeline'], "Test Pipeline #1", 1); |
---|
| 24 | } else { |
---|
| 25 | $sequencer = new PipelineSequencer(null, "Test Pipeline #1", 1); |
---|
[142] | 26 | } |
---|
| 27 | |
---|
[150] | 28 | $sequencer->HandlePost(); // doesn't actually currently get from db, uses session/post as a temporary alternative. |
---|
[142] | 29 | ?> |
---|
| 30 | |
---|
| 31 | <!-- |
---|
| 32 | To change this template, choose Tools | Templates |
---|
| 33 | and open the template in the editor. |
---|
| 34 | --> |
---|
| 35 | <!DOCTYPE html> |
---|
[144] | 36 | |
---|
[142] | 37 | <html> |
---|
| 38 | <head> |
---|
| 39 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
| 40 | <title></title> |
---|
[146] | 41 | <?php new StyleSheet("awesome"); ?> |
---|
[142] | 42 | <script type="text/javascript" src="js/menu.js"></script> |
---|
| 43 | <script type="text/javascript" src="js/jquery.jps"></script> |
---|
[146] | 44 | <script type="text/javascript" src="js/sequencerScripts.js"></script> |
---|
[142] | 45 | </head> |
---|
| 46 | <body> |
---|
[144] | 47 | <div id="header"> |
---|
[146] | 48 | <?php new Logo(); ?> |
---|
[142] | 49 | </div> |
---|
| 50 | |
---|
| 51 | <div id="wrapper"> |
---|
| 52 | <div id="content"> |
---|
[150] | 53 | <?php $sequencer->init(); ?> |
---|
[151] | 54 | <?php $toolbox = new Toolbox(); ?> |
---|
[142] | 55 | </div> |
---|
| 56 | </body> |
---|
| 57 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.