| | |
| | | |
| | | global $app; |
| | | |
| | | $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a' ORDER BY template_name ASC"; |
| | | $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a' and ".$app->tform->getAuthSQL('r')." ORDER BY template_name ASC"; |
| | | $tpls = $app->db->queryAllRecords($sql); |
| | | $option = ''; |
| | | $tpl = array(); |
| | |
| | | $modules = $conf['interface_modules_enabled']; |
| | | if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] > 0) $modules .= ',client'; |
| | | $startmodule = (stristr($modules, 'dashboard'))?'dashboard':'client'; |
| | | $usertheme = $this->dataRecord["usertheme"]; |
| | | $usertheme = (isset($this->dataRecord["usertheme"]) && $this->dataRecord["usertheme"] != ''? $this->dataRecord["usertheme"] : 'default'); |
| | | $type = 'user'; |
| | | $active = 1; |
| | | $language = $this->dataRecord["language"]; |