Files
kupshop/admin/class/smarty_plugins/function.get_user.php
2025-08-02 16:30:27 +02:00

24 lines
342 B
PHP

<?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 '';
}
}