PHP 8.1.33
Preview: swatch.php Size: 1.22 KB
/home/jambtst2015/www/forum/adm/swatch.php

<?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);
define('ADMIN_START', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? 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')
);

$form = request_var('form', '');
$name = request_var('name', '');

// We validate form and name here, only id/class allowed
$form = (!preg_match('/^[a-z0-9_-]+$/i', $form)) ? '' : $form;
$name = (!preg_match('/^[a-z0-9_-]+$/i', $name)) ? '' : $name;

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

	'S_USER_LANG'			=> $user->lang['USER_LANG'],
	'S_CONTENT_DIRECTION'	=> $user->lang['DIRECTION'],
	'S_CONTENT_ENCODING'	=> 'UTF-8',
));

$template->display('body');

garbage_collection();

?>

Directory Contents

Dirs: 2 × Files: 6

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2024-11-22 17:53:06
Edit Download
style DIR
- drwxr-xr-x 2024-11-22 17:53:06
Edit Download
7.44 KB lrw------- 2025-10-15 08:31:45
Edit Download
4.12 KB lrw------- 2025-10-15 08:31:45
Edit Download
34 B lrw------- 2025-10-15 08:31:45
Edit Download
3.95 KB lrw------- 2025-11-03 06:42:25
Edit Download
187 B lrw------- 2025-11-03 15:04:05
Edit Download
1.22 KB lrw-r--r-- 2024-11-22 17:53:06
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).