Skip to content
Newer
Older
100755 53 lines (47 sloc) 2.38 KB
36c5a3e initial commit
Yannick Torres authored
1 <?php
4de514e Moved install specific files to install/
Mehdi Achour authored
2
36c5a3e initial commit
Yannick Torres authored
3 session_start();
4
4de514e Moved install specific files to install/
Mehdi Achour authored
5 require_once './php/html.templates.php';
6
20d5096 Get rid of inline html
Mehdi Achour authored
7 // Log the user in if needed
10fa5f0 Whitespaces and PEAR CS
Mehdi Achour authored
8 if (!isset($_SESSION['userID'])) {
54781e8 Get rid of login.php logout.php dl_Patch.php (implemented as a contro…
Mehdi Achour authored
9 echo headerTemplate();
c920812 *** empty log message ***
Yannick Torres authored
10 echo cssLoadTemplate('js/extjs/resources/css/ext-all.css');
20d5096 Get rid of inline html
Mehdi Achour authored
11 echo cssLoadTemplate('themes/style.css');
12 echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Loading Core API...";');
c920812 *** empty log message ***
Yannick Torres authored
13 echo jsLoadTemplate('js/extjs/adapter/ext/ext-base.js');
20d5096 Get rid of inline html
Mehdi Achour authored
14 echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Loading UI Components...";');
c920812 *** empty log message ***
Yannick Torres authored
15 echo jsLoadTemplate('js/extjs/ext-all.js');
20d5096 Get rid of inline html
Mehdi Achour authored
16 echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Initializing...";');
17 echo jsLoadTemplate('js/login.js');
54781e8 Get rid of login.php logout.php dl_Patch.php (implemented as a contro…
Mehdi Achour authored
18 echo footerTemplate();
10fa5f0 Whitespaces and PEAR CS
Mehdi Achour authored
19 exit;
36c5a3e initial commit
Yannick Torres authored
20 }
21
54781e8 Get rid of login.php logout.php dl_Patch.php (implemented as a contro…
Mehdi Achour authored
22 echo headerTemplate();
c920812 *** empty log message ***
Yannick Torres authored
23 echo cssLoadTemplate('js/extjs/resources/css/ext-all.css');
24 echo cssLoadTemplate('js/extjs/resources/css/xtheme-default.css', 'appTheme');
20d5096 Get rid of inline html
Mehdi Achour authored
25 // Ext.ux Css files
26 echo cssLoadTemplate('js/ux/GridSummary/Ext.ux.grid.GridSummary.css');
27 echo cssLoadTemplate('js/ux/CheckTreePanel/Ext.ux.tree.CheckTreePanel.css');
28 echo cssLoadTemplate('themes/style.css');
29 // ExtJs Javascript core files
30 echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Loading Core API...";');
c920812 *** empty log message ***
Yannick Torres authored
31 echo jsLoadTemplate('js/extjs/adapter/ext/ext-base.js');
20d5096 Get rid of inline html
Mehdi Achour authored
32 echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Loading UI Components...";');
c920812 *** empty log message ***
Yannick Torres authored
33 echo jsLoadTemplate('js/extjs/ext-all.js');
20d5096 Get rid of inline html
Mehdi Achour authored
34 // Ext.ux Javascript files
35 echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Initializing...";');
36 echo jsLoadTemplate('js/ux/GridSummary/Ext.ux.grid.GridSummary.js');
37 echo jsLoadTemplate('js/ux/miframe1_2/miframe.js');
38 echo jsLoadTemplate('js/ux/md5/md5.js');
39 echo jsLoadTemplate('js/ux/codemirror/js/codemirror.js');
40 echo jsLoadTemplate('js/ux/Ext.ux.CodeMirror.js');
41 echo jsLoadTemplate('js/ux/CheckTreePanel/Ext.ux.tree.CheckTreePanel.js');
42 echo jsLoadTemplate('js/main_override.js');
43 echo jsLoadTemplate('js/main.js');
36c5a3e initial commit
Yannick Torres authored
44
10fa5f0 Whitespaces and PEAR CS
Mehdi Achour authored
45 if (isset($_SESSION['directAccess']) && is_object($_SESSION['directAccess'])) {
20d5096 Get rid of inline html
Mehdi Achour authored
46 $directAccess = 'var directAccess = {"lang":"'.$_SESSION['directAccess']->lang.'", "path":"'.$_SESSION['directAccess']->path.'", "name":"'.$_SESSION['directAccess']->name.'"}';
54781e8 Get rid of login.php logout.php dl_Patch.php (implemented as a contro…
Mehdi Achour authored
47 $_SESSION['directAccess'] = '';
36c5a3e initial commit
Yannick Torres authored
48 } else {
20d5096 Get rid of inline html
Mehdi Achour authored
49 $directAccess = 'var directAccess = false;';
54781e8 Get rid of login.php logout.php dl_Patch.php (implemented as a contro…
Mehdi Achour authored
50 }
20d5096 Get rid of inline html
Mehdi Achour authored
51 echo jsCallTemplate($directAccess);
54781e8 Get rid of login.php logout.php dl_Patch.php (implemented as a contro…
Mehdi Achour authored
52
4de514e Moved install specific files to install/
Mehdi Achour authored
53 echo footerTemplate();
Something went wrong with that request. Please try again.