forked from atkphpframework/achievo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
include.php
41 lines (37 loc) · 1.11 KB
/
include.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
<?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 main include wrapper, which you can copy
* to your application dir and modify if necessary. It is used to
* include popups in a safe manner. Any popup loaded with this wrapper
* has session support and login support.
* Only files defined in the $config_allowed_includes array are allowed
* to be included.
*
* @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$
* $Id$
*/
/**
* @internal includes
*/
$config_atkroot = "./";
include_once("atk.inc");
atksession();
atksecure();
$file = $ATK_VARS["file"];
$allowed = atkconfig("allowed_includes");
if (atk_in_array($file, $allowed))
include_once(atkconfig("atkroot").$file);
?>