| | |
| | | $this->conf = $conf; |
| | | } |
| | | |
| | | //: TODO Implement the translation function and langauge files for the installer. |
| | | //: TODO Implement the translation function and language files for the installer. |
| | | public function lng($text) |
| | | { |
| | | return $text; |
| | |
| | | } |
| | | } |
| | | |
| | | //** Create a recors in the |
| | | //** Create the server record in the database |
| | | public function add_database_server_record() { |
| | | |
| | | $server_ini_content = rf("tpl/server.ini.master"); |
| | |
| | | wf($full_file_name, $content); |
| | | } |
| | | |
| | | |
| | | public function configure_jailkit() |
| | | { |
| | | $cf = $this->conf['jailkit']; |
| | | $config_dir = $cf['config_dir']; |
| | | $jk_init = $cf['jk_init']; |
| | | $jk_chrootsh = $cf['jk_chrootsh']; |
| | | |
| | | if (is_dir($config_dir)) |
| | | { |
| | | if(is_file($config_dir.'/'.$jk_init)) copy($config_dir.'/'.$jk_init, $config_dir.'/'.$jk_init.'~'); |
| | | if(is_file($config_dir.'/'.$jk_chrootsh.".master")) copy($config_dir.'/'.$jk_chrootsh.".master", $config_dir.'/'.$jk_chrootsh.'~'); |
| | | |
| | | copy('tpl/'.$jk_init.".master", $config_dir.'/'.$jk_init); |
| | | copy('tpl/'.$jk_chrootsh.".master", $config_dir.'/'.$jk_chrootsh); |
| | | } |
| | | |
| | | } |
| | | |
| | | public function configure_postfix($options = '') |
| | | { |
| | | $cf = $this->conf['postfix']; |