[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/template/smarty/plugins/ -> block.user_cannot_override.php (source)

   1  <?php
   2  
   3  /**
   4   * Function used in the admin interface as a shorthand to check whether the user has the given permission
   5   *
   6   * @param key
   7   */
   8  function smarty_block_user_cannot_override($params, $content, &$smarty)    
   9  {
  10      
  11      if( isset( $content )) {
  12          // fetch the user
  13          if( isset( $params["key"]))
  14              $key = $params["key"];
  15          else {
  16              $smarty->trigger_error( "user_cannot_override: missing 'key' parameter!" );            
  17          }
  18          
  19          if( GlobalPluginConfig::canOverride( $key ) == PLUGIN_SETTINGS_USER_CANNOT_OVERRIDE )
  20              return( $content );
  21          else
  22              return "";
  23      }
  24  }
  25  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics