Blame Identity/Models/Html/phpBB/3.0.4/adm/swatch.php

d6e8d8
d6e8d8
/**
d6e8d8
*
d6e8d8
* @package phpBB3
d6e8d8
* @version $Id: swatch.php 8479 2008-03-29 00:22:48Z naderman $
d6e8d8
* @copyright (c) 2005 phpBB Group
d6e8d8
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
d6e8d8
*
d6e8d8
*/
d6e8d8
d6e8d8
/**
d6e8d8
* @ignore
d6e8d8
*/
d6e8d8
define('IN_PHPBB', true);
d6e8d8
define('ADMIN_START', true);
d6e8d8
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
d6e8d8
$phpEx = substr(strrchr(__FILE__, '.'), 1);
d6e8d8
include($phpbb_root_path . 'common.' . $phpEx);
d6e8d8
d6e8d8
// Start session management
d6e8d8
$user->session_begin(false);
d6e8d8
$auth->acl($user->data);
d6e8d8
$user->setup();
d6e8d8
d6e8d8
// Set custom template for admin area
d6e8d8
$template->set_custom_template($phpbb_root_path . 'adm/style', 'admin');
d6e8d8
d6e8d8
$template->set_filenames(array(
d6e8d8
	'body' => 'colour_swatch.html')
d6e8d8
);
d6e8d8
d6e8d8
$form = request_var('form', '');
d6e8d8
$name = request_var('name', '');
d6e8d8
d6e8d8
// We validate form and name here, only id/class allowed
d6e8d8
$form = (!preg_match('/^[a-z0-9_-]+$/i', $form)) ? '' : $form;
d6e8d8
$name = (!preg_match('/^[a-z0-9_-]+$/i', $name)) ? '' : $name;
d6e8d8
d6e8d8
$template->assign_vars(array(
d6e8d8
	'OPENER'		=> $form,
d6e8d8
	'NAME'			=> $name,
d6e8d8
	'T_IMAGES_PATH'	=> "{$phpbb_root_path}images/",
d6e8d8
d6e8d8
	'S_USER_LANG'			=> $user->lang['USER_LANG'],
d6e8d8
	'S_CONTENT_DIRECTION'	=> $user->lang['DIRECTION'],
d6e8d8
	'S_CONTENT_ENCODING'	=> 'UTF-8',
d6e8d8
));
d6e8d8
d6e8d8
$template->display('body');
d6e8d8
d6e8d8
garbage_collection();
d6e8d8
d6e8d8
?>