API - XOOPS 2.5.11 Beta 2
By monxoops.fr
xoopsemotions.php File Reference

Namespaces

namespace  class
 

Variables

 $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
 

Variable Documentation

◆ $admin

$admin = $gperm_handler->checkRight('system_admin', XOOPS_SYSTEM_SMILE, $groups)

◆ $current_file

$current_file = basename(__FILE__)

◆ $current_path

$current_path = __DIR__

◆ $gperm_handler

XoopsGroupPermHandler $gperm_handler = xoops_getHandler('groupperm')

◆ $groups

$groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS)

◆ $myts

if(!empty($_GET['op'])) elseif (!empty( $_POST[ 'op'])) $myts = MyTextSanitizer::getInstance()

◆ $op

$op = ''

◆ $time

if ( $admin &&$op==='SmilesAdd') $time = time()

◆ $xoops_root_path

if (DIRECTORY_SEPARATOR !=='/') $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/'))

◆ else

if(! $_SESSION[ 'XoopsEmotions'] &&! $admin) if($admin) if ( $smiles=$_SESSION[ 'XoopsEmotions']) else
Initial value:
{
echo '<div>{#xoopsemotions_dlg.error_noemotions}</div>'

◆ if

if(!isset($_SESSION['XoopsEmotions']) &&@ $_SESSION['XoopsEmotions_expire']< $time) ( )