XOOPS  2.6.0
popup.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
13 
25 include dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php';
26 
28 $xoops->logger()->quiet();
29 
30 $target = Request::getString('target', '');
31 $xoops->simpleHeader(false);
32 if ($target && preg_match('/^[0-9a-z_]*$/i', $target)) {
33  $tpl = new XoopsTpl();
34  $tpl->assign('target', $target);
35  $tpl->assign('smileys', Smilies::getInstance()->getHandlerSmilies()->getActiveSmilies(false));
36  $tpl->assign('closebutton', 1);
37  $tpl->display('module:smilies/smilies_smiley.tpl');
38 }
39 $xoops->simpleFooter();
$xoops
Definition: popup.php:25
static getInstance()
Definition: helper.php:34
static getInstance()
Definition: Xoops.php:160
$tpl
Definition: popup.php:31
defined('DS') or define('DS' DIRECTORY_SEPARATOR
Definition: common.php:41
$target
Definition: popup.php:30