This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
76 lines (65 loc) · 2.17 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* This file is part of the Achievo ATK distribution.
* Detailed copyright and licensing information can be found
* in the doc/COPYRIGHT and doc/LICENSE files which should be
* included in the distribution.
*
* This file is the skeleton index file, which you can copy to your
* application dir and modify if necessary. By default, it checks
* the setting of $config_fullscreen, and if set, launches the
* app in a full screen window. If not set, the frameset is loaded.
*
* @package atk
* @subpackage skel
*
* @author Ivo Jansch <[email protected]>
*
* @copyright (c)2000-2004 Ibuildings.nl BV
* @license http://www.achievo.org/atk/licensing ATK Open Source License
*
* @version $Revision: 4845 $
* $Id: index.php 6354 2009-04-15 02:41:21Z mvdam $
*/
/**
* @internal includes
*/
$config_atkroot = "./";
include_once("atk.inc");
atksession();
atksecure();
$theme = &atkinstance('atk.ui.atktheme');
if (atkconfig("fullscreen"))
{
// Fullscreen mode. Use index.php as launcher, and launch app.php fullscreen.
atksession();
atksecure();
$page = &atknew("atk.ui.atkpage");
$ui = &atkinstance("atk.ui.atkui");
$theme = &atkTheme::getInstance();
$output = &atkOutput::getInstance();
$page->register_style($theme->stylePath("style.css"));
$page->register_script(atkconfig("atkroot")."atk/javascript/launcher.js");
$content = '<script language="javascript">atkLaunchApp(); </script>';
$content.= '<br><br><a href="#" onClick="atkLaunchApp()">'.atktext('app_reopen').'</a> '.
'<a href="#" onClick="window.close()">'.atktext('app_close').'</a><br><br>';
$box = $ui->renderBox(array("title"=>atktext("app_launcher"),
"content"=>$content));
$page->addContent($box);
$output->output($page->render(atktext('app_launcher'), true));
$output->outputFlush();
}
else
{
if ($theme->getAttribute('useframes',true))
{
// Regular mode. app.php can be included directly.
include "app.php";
}
else
{
$indexpage = &atknew('atk.ui.atkindexpage');
$indexpage->generate();
}
}
?>