16 if (!defined(
'IN_PEEL')) {
 
   31      if(empty(
$GLOBALS[
'site_parameters'][
'tagcloud_display_count'])) {
 
   34           $limit = 
$GLOBALS[
'site_parameters'][
'tagcloud_display_count'];
 
   36      $query = 
"SELECT tag_name AS tag, nbsearch AS quantity 
   40           ORDER BY RAND()*(10+quantity) DESC 
   41           LIMIT ". intval($limit);
 
   45           $tpl = 
$GLOBALS[
'tplEngine']->createTemplate(
'modules/tagcloud.tpl');
 
   48                $row[
'quantity'] = max(1, $row[
'quantity']);
 
   49                $this_quantity = log($row[
'quantity']);
 
   51                if ($this_quantity > $max) {
 
   52                     $max = $this_quantity;
 
   54                if (!isset($min) || $this_quantity < $min) {
 
   55                     $min = $this_quantity;
 
   59           foreach ($tags as $key => $value) {
 
   61                     'href' => get_url(
'search') . 
'?match=1&search=' . $key,
 
   64                     'level' => intval(($value-$min) / max(1, $max-$min) * 10)
 
   67           $tpl->assign(
'tags', $tpl_tags);
 
   85      $motclef = trim($motclef);
 
   87      if (!empty($motclef)) {
 
   92                query(
'UPDATE `peel_tag_cloud`  
   93                     SET `nbsearch`=nbsearch+1  
   96                query(
'INSERT INTO `peel_tag_cloud` (`tag_name`,`nbsearch`,`lang`,`site_id`)  
if(!defined('IN_PEEL')) affiche_tagcloud($return_mode=false)
affiche_tagcloud() 
sql_tagcloud($motclef)
Insertion Tag de recherche. 
static strtolower($string)
Returns string with all alphabetic characters converted to lowercase. 
nohtml_real_escape_string($value, $allowed_tags=null)
Protège les données pour insertion dans MySQL ET supprime les tags HTML pour protéger de toute sorte ...
if(!empty($_GET['id'])) if(isset($_POST['form_name'], $_POST['form_subject'], $_POST['form_text'], $_POST['form_lang'])&&empty($_GET['id'])) if(empty($_GET['id'])) $tpl
if(!defined('IN_PEEL')) $GLOBALS['page_types_array']
real_escape_string($value)
real_escape_string() 
get_filter_site_cond($table_technical_code, $table_alias=null, $use_strict_rights_if_in_admin=false, $specific_site_id=null, $exclude_public_items=false, $admin_force_multisite_if_allowed=false)
Retourne la condition SQL permettant de filtrer les données pour une table. 
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query. 
num_rows($query_result)
num_rows() 
fetch_assoc($query_result)
fetch_assoc() 
get_site_id_sql_set_value($site_ids)
Retourne la valeur SQL d'un champ INT ou SET suivant que ce soit un entier ou un tableau. 
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']