|
| $current_path = __DIR__ |
|
if(DIRECTORY_SEPARATOR !=='/') | $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/')) |
|
| $current_file = basename(__FILE__) |
|
| $groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS) |
|
| $gperm_handler = xoops_getHandler('groupperm') |
|
| $admin = $gperm_handler->checkRight('system_admin', XOOPS_SYSTEM_SMILE, $groups) |
|
| $op = '' |
|
if(!empty($_GET['op'])) elseif(!empty($_POST['op'])) | $myts = MyTextSanitizer::getInstance() |
|
if($admin && $op==='SmilesAdd') | $time = time() |
|
| if (!isset( $_SESSION[ 'XoopsEmotions']) &&@ $_SESSION[ 'XoopsEmotions_expire']< $time) |
|
if(! $_SESSION['XoopsEmotions'] &&! $admin) if($admin) if($smiles=$_SESSION['XoopsEmotions']) | else |
|