public function SaveOption()
{
$this->option['ZC_BLOG_CLSID'] = $this->guid;
if (strpos('|SAE|BAE2|ACE|TXY|', '|' . $this->option['ZC_YUN_SITE'] . '|') === false && file_exists($this->usersdir . 'c_option.php') == false) {
$s = "<" . "?" . "php\r\n";
$s .= "return ";
$option = array();
foreach ($this->option as $key => $value) {
if ($key == 'ZC_YUN_SITE' || $key == 'ZC_DATABASE_TYPE' || $key == 'ZC_SQLITE_NAME' || $key == 'ZC_SQLITE_PRE' || $key == 'ZC_MYSQL_SERVER' || $key == 'ZC_MYSQL_USERNAME' || $key == 'ZC_MYSQL_PASSWORD' || $key == 'ZC_MYSQL_NAME' || $key == 'ZC_MYSQL_CHARSET' || $key == 'ZC_MYSQL_PRE' || $key == 'ZC_MYSQL_ENGINE' || $key == 'ZC_MYSQL_PORT' || $key == 'ZC_MYSQL_PERSISTENT' || $key == 'ZC_PGSQL_SERVER' || $key == 'ZC_PGSQL_USERNAME' || $key == 'ZC_PGSQL_PASSWORD' || $key == 'ZC_PGSQL_NAME' || $key == 'ZC_PGSQL_CHARSET' || $key == 'ZC_PGSQL_PRE' || $key == 'ZC_PGSQL_PORT' || $key == 'ZC_PGSQL_PERSISTENT' || $key == 'ZC_CLOSE_WHOLE_SITE') {
$option[$key] = $value;
}
}
$s .= var_export($option, true);
$s .= ";";
@file_put_contents($this->usersdir . 'c_option.php', $s);
}
foreach ($this->option as $key => $value) {
$this->Config('system')->{$key} = $value;
}
if (function_exists('mb_split')) {
$a = mb_split('', $this->Config('system')->ZC_BLOG_HOST, 1);
$this->Config('system')->ZC_BLOG_HOST = implode("|", $a);
} else {
$this->Config('system')->ZC_BLOG_HOST = chunk_split($this->Config('system')->ZC_BLOG_HOST, 1, "|");
}
$this->SaveConfig('system');
return true;
}