本文整理匯總了PHP中Install::writeEmptyFileLineByLine方法的典型用法代碼示例。如果您正苦於以下問題:PHP Install::writeEmptyFileLineByLine方法的具體用法?PHP Install::writeEmptyFileLineByLine怎麽用?PHP Install::writeEmptyFileLineByLine使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Install
的用法示例。
在下文中一共展示了Install::writeEmptyFileLineByLine方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Chipset
Config::writeConfigLine('mail_smtp_ssl', $_POST['mail_smtp_ssl']);
Config::writeConfigLine('twitter_consumer_key', "dRWT5eeIn9UiHJgcjgpPQ");
Config::writeConfigLine('twitter_consumer_secret', "QxcnltPX2sTH8E7eZlxyZeqTIVoIoRjlrmUfkCzGSA");
Config::writeConfigLine('enable_network_policy', 'false');
Config::writeConfigLine('network_policy_url', 'http://picopeer.net/PPA-de.html');
Config::writeConfigLine('template', "freifunk_oldenburg");
Config::writeConfigLine('hours_to_keep_mysql_crawl_data', 5);
Config::writeConfigLine('hours_to_keep_history_table', 72);
Config::writeConfigLine('crawl_cycle_length_in_minutes', 10);
Config::writeConfigLine('event_notification_router_offline_crawl_cycles', 6);
Config::writeConfigLine('community_essid', 'deinestadt.freifunk.net');
//create a default chipset
$default_chipset = new Chipset(false, "", "Unbekannt");
$default_chipset->store();
//create an initial crawl cycle
$crawl_cycle_id = Crawling::newCrawlCycle(10);
//require_once(ROOT_DIR.'/cronjobs.php');
header('Location: ./install.php?section=finish');
}
} elseif ($_GET['section'] == "finish") {
$config_path = "./config/config.local.inc.php";
$file = Install::getFileLineByLine($config_path);
$configs[0] = '$GLOBALS[\'installed\'] = true;';
$file = Install::changeConfigSection('//INSTALLED', $file, $configs);
Install::writeEmptyFileLineByLine($config_path, $file);
$message[] = array('Netmon wurde erfolgreich installiert.', 1);
$message[] = array('Die Installationsroutine wurde für weitere Zugriffe gesperrt.', 1);
$message[] = array('Bitte registrieren Sie sich, der erste registrierte Benutzer bekommt automatisch volle Root-Rechte!', 1);
Message::setMessage($message);
header('Location: ./register.php');
}