blob: e52230d9e311803506f5320f740fe56f88b8aa81 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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";
}
}
?>
|