18 require_once SQ_LIB_PATH.
'/config/config.inc';
40 var $config_vars = Array(
41 'SQ_SERVER_SYSTEM_ROOT' => Array(
'editable' => 1,
'default' =>
''),
42 'SQ_SERVER_SYSTEMID' => Array(
'editable' => 1,
'default' =>
''),
43 'SQ_SERVER_DOMAIN' => Array(
'editable' => 1,
'default' =>
''),
44 'SQ_SERVER_PORT' => Array(
'editable' => 1,
'default' => 0),
54 parent::__construct();
55 $this->config_file = SQ_DATA_PATH.
'/private/conf/squiz_server.inc';
70 return $GLOBALS[
'SQ_SYSTEM']->userRoot();
83 if (!parent::writeAccess())
return false;
84 if (!$GLOBALS[
'SQ_SYSTEM']->runLevelEnables(SQ_SECURITY_PERMISSIONS)) {
89 return $GLOBALS[
'SQ_SYSTEM']->userRoot();
108 parent::paintBackend($o);
111 $class = get_class_lower($this);
113 $o->openSection(translate(
'squiz_server_configuration'));
115 $o->openField(translate(
'system_root'));
117 text_box($class.
'[SQ_SERVER_SYSTEM_ROOT]', SQ_SERVER_SYSTEM_ROOT, 60);
119 echo SQ_SERVER_SYSTEM_ROOT;
121 $o->note(translate(
'squiz_server_path'));
123 $o->openField(translate(
'system_id'));
125 text_box($class.
'[SQ_SERVER_SYSTEMID]', SQ_SERVER_SYSTEMID, 30);
127 echo SQ_SERVER_SYSTEMID;
130 $o->openField(translate(
'domain'));
132 text_box($class.
'[SQ_SERVER_DOMAIN]', SQ_SERVER_DOMAIN, 30);
134 echo SQ_SERVER_DOMAIN;
137 $o->openField(translate(
'port'));
139 text_box($class.
'[SQ_SERVER_PORT]', SQ_SERVER_PORT, 10);
146 if ($write_access) $o->commitButton(
'',
true);