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

?>