blob: e52230d9e311803506f5320f740fe56f88b8aa81 (
plain) (
tree)
|
|
<?php
require_once "model/master.mod.php";
class CommonModel extends MasterModel
{
/*
* Get the glyphicon to use for the logged in user (user or admin)
*/
function getCurrentUserGlyphicon()
{
if (!$this->getCurrentUser())
return "";
if ($this->getCurrentUser()->admin == 1)
return "glyphicon glyphicon-sunglasses";
else
return "glyphicon glyphicon-user";
}
}
?>
|