aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/swatch.php
blob: 5d452218b041ec62c8d75c2fcc78b9ba44d47e15 (plain)
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
/** 
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2005 phpBB Group 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = './../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin(false);
$auth->acl($user->data);
$user->setup();

// Set custom template for admin area
$template->set_custom_template($phpbb_root_path . 'adm/style', 'admin');

$template->set_filenames(array(
	'body' => 'colour_swatch.html')
);

$template->assign_vars(array(
	'OPENER'		=> addslashes(request_var('form', '')),
	'NAME'			=> request_var('name', ''),
	'T_IMAGES_PATH'	=> "{$phpbb_root_path}images/",)
);

$template->display('body');

garbage_collection();

?>