first commit
This commit is contained in:
23
admin/class/smarty_plugins/function.get_user.php
Normal file
23
admin/class/smarty_plugins/function.get_user.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty {get_user} plugin.
|
||||
*
|
||||
* Type: function<br>
|
||||
* Name: get_user<br>
|
||||
* Purpose: get User ID
|
||||
*
|
||||
* @return number
|
||||
*/
|
||||
function smarty_function_get_user($params, &$smarty)
|
||||
{
|
||||
if (!empty($GLOBALS['adminID'])) {
|
||||
return $GLOBALS['adminID'];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user