XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier xoopsemotions.php

Espaces de nommage

 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
 

Documentation des variables

◆ $admin

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

◆ $current_file

$current_file = basename(__FILE__)

◆ $current_path

$current_path = __DIR__

◆ $gperm_handler

$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
Valeur initiale :
{
echo '<div>{#xoopsemotions_dlg.error_noemotions}</div>'

◆ if

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