84
84
'desc'=>'Array of attributes that should show a the time when showing the jscalendar',
85
85
'default'=>array(''));
87
$this->default->appearance['disable_default_template'] = array(
88
'desc'=>'Disabled the Default Template',
87
91
$this->default->appearance['hide_debug_info'] = array(
88
92
'desc'=>'Hide the features that may provide sensitive debugging information to the browser',
509
513
if (! isset($config[$key]))
510
514
error(sprintf('A call was made in [%s] to GetValue requesting [%s] that isnt predefined.',
511
basename($_SERVER['PHP_SELF']),$key),'error',true);
515
basename($_SERVER['PHP_SELF']),$key),'error',null,true);
513
517
if (! isset($config[$key][$index]))
514
error(sprintf('Requesting an index [%s] in key [%s] that isnt predefined.',$index,$key),'error',true);
518
error(sprintf('Requesting an index [%s] in key [%s] that isnt predefined.',$index,$key),'error',null,true);
516
520
return isset($config[$key][$index]['value']) ? $config[$key][$index]['value'] : $config[$key][$index]['default'];
526
530
if (isset($this->default->$masterkey)) {
528
532
if (! is_array($masterdetails))
529
error(sprintf('Error in configuration file, [%s] should be an ARRAY.',$masterdetails),'error',true);
533
error(sprintf('Error in configuration file, [%s] should be an ARRAY.',$masterdetails),'error',null,true);
531
535
foreach ($masterdetails as $key => $value) {
532
536
# Test that the key is correct.
533
537
if (! in_array($key,array_keys($this->default->$masterkey)))
534
error(sprintf('Error in configuration file, [%s] has not been defined as a configurable variable.',$key),'error',true);
538
error(sprintf('Error in configuration file, [%s] has not been defined as a configurable variable.',$key),'error',null,true);
536
540
# Test if its should be an array or not.
537
541
if (is_array($this->default->{$masterkey}[$key]['default']) && ! is_array($value))
538
error(sprintf('Error in configuration file, %s[\'%s\'] SHOULD be an array of values.',$masterkey,$key),'error',true);
542
error(sprintf('Error in configuration file, %s[\'%s\'] SHOULD be an array of values.',$masterkey,$key),'error',null,true);
540
544
if (! is_array($this->default->{$masterkey}[$key]['default']) && is_array($value))
541
error(sprintf('Error in configuration file, %s[\'%s\'] should NOT be an array of values.',$masterkey,$key),'error',true);
545
error(sprintf('Error in configuration file, %s[\'%s\'] should NOT be an array of values.',$masterkey,$key),'error',null,true);
545
error(sprintf('Error in configuration file, [%s] has not been defined as a MASTER configurable variable.',$masterkey),'error',true);
549
error(sprintf('Error in configuration file, [%s] has not been defined as a MASTER configurable variable.',$masterkey),'error',null,true);