public function getChartDataByLocale()
 {
     $cnts = file_get_contents($this->dataFile);
     $ddData = $this->ddDbo->getData();
     foreach ($ddData as $key => $value) {
         $cnts = str_replace(KEY_PREFIX . $key, CalemMsg::getMsg($key), $cnts);
     }
     return $cnts;
 }
Example #2
0
 public function getLabel()
 {
     return CalemMsg::getMsg($this->id);
 }
Example #3
0
			             <input type='hidden' name='theme' value='<?php 
print $theme;
?>
' />
			             <input type='hidden' name='debug' value='<?php 
print $debug;
?>
' />			                         
			         <tr><td>&nbsp;</td>
			             <td align=left style='padding-top: 5px;'>
			                <input name='calemAction' value='LoginAction' type='hidden'>
			                <input id='loginEl' class=loginButton type="button" 
			                 value="<?php 
print CalemMsg::getMsg('login');
?>
" onclick='CalemLogin._attemptLogin()' ></td>
			         </tr> 
			         </form>
			       </table>
			     </td></tr>
			     <tr><td align=center class=copyRightText nowrap><?php 
print CalemMsg::getMsg('copyright');
?>
</td></tr>
			    </table>
	  </td></tr>
	</table> 
 </div>     
</body>
</html>
 public function getTitle()
 {
     return CalemMsg::getMsg($this->formInfo->getTitle());
 }
Example #5
0
        setCookie('CALEM_LANG', $_REQUEST[CALEM_PARAM_LANG], time() + $_CALEM_conf['setting_cookie_expire']);
        $login_username = $_REQUEST['username'];
        $login_password = $_REQUEST['password'];
        require_once _CALEM_DIR_ . 'server/modules/admin/soap/CalemLoginSo.php';
        $ex = '';
        try {
            $loginSo = new CalemLoginSo();
            $loginSo->initByWeb();
            list($succ, $ses) = $loginSo->doLogin($login_username, $login_password);
        } catch (Exception $e) {
            require_once _CALEM_DIR_ . 'server/include/util/CalemDebug.php';
            $logger->error("Exception in processing login. Error msg=" . CalemDebug::toStackTrace($e));
        }
        $loginErrorText = CalemMsg::getMsg('SF_InvalidLogin');
    } else {
        $loginErrorText = CalemMsg::getMsg("login_reqd");
    }
    if (!$succ) {
        require _CALEM_DIR_ . $_CALEM_conf['noses_allowed_actions']['LoginAction'];
        //Close down logger
        CalemExit::exitCalem();
    }
    //Set the sid
    $sid = $ses->getSid();
}
$hasCookie = false;
if (!$sid) {
    //Check for cookie
    $calemSid = isset($_COOKIE['CALEM_SID']) ? $_COOKIE['CALEM_SID'] : null;
    if ($calemSid) {
        $hasCookie = true;
Example #6
0
 public function getSettingsByLocale()
 {
     $stg = $this->getSettings();
     $stg = str_replace($this->conf['decimal_holder'], $this->conf['decimal_sep'], $stg);
     return str_replace($this->conf['title_holder'], CalemMsg::getMsg($this->id), $stg);
 }
Example #7
0
 public function _getValue()
 {
     return CalemMsg::getMsg($this->value);
 }
Example #8
0
 public function _getFieldLabel($fld)
 {
     $msgId = isset($this->allTableDef['fields'][$fld]['label']) ? $this->allTableDef['fields'][$fld]['label'] : null;
     if ($msgId) {
         $msg = CalemMsg::getMsg($msgId, true);
     } else {
         $msg = CalemMsg::getMsg($fld, true);
         //Try out the field name itself.
     }
     return $msg;
 }