本文整理汇总了PHP中Website::updatePasswordEncryption方法的典型用法代码示例。如果您正苦于以下问题:PHP Website::updatePasswordEncryption方法的具体用法?PHP Website::updatePasswordEncryption怎么用?PHP Website::updatePasswordEncryption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Website
的用法示例。
在下文中一共展示了Website::updatePasswordEncryption方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Error_Critic
if (Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_DATABASE)) {
Website::getDBHandle()->setDatabaseName(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_DATABASE));
} else {
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_DATABASE . '</b> in server config file.');
}
if (Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_USER)) {
Website::getDBHandle()->setDatabaseUsername(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_USER));
} else {
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_USER . '</b> in server config file.');
}
if (Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_PASS)) {
Website::getDBHandle()->setDatabasePassword(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_PASS));
} else {
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_PASS . '</b> in server config file.');
}
Website::updatePasswordEncryption();
$SQL = Website::getDBHandle();
}
if ($step == 'start') {
echo '<h1>STEP ' . $step . '</h1>Informations<br>';
echo 'Welcome to Gesior Account Maker installer. <b>After 5 simple steps account maker will be ready to use!</b><br />';
// check access to write files
$writeable = array('config/config.php', 'cache', 'cache/flags', 'cache/DONT_EDIT_usercounter.txt', 'cache/DONT_EDIT_serverstatus.txt', 'custom_scripts', 'install.txt');
foreach ($writeable as $fileToWrite) {
if (is_writable($fileToWrite)) {
echo '<span style="color:green">CAN WRITE TO FILE: <b>' . $fileToWrite . '</b></span><br />';
} else {
echo '<span style="color:red">CANNOT WRITE TO FILE: <b>' . $fileToWrite . '</b> - edit file access for PHP [on linux: chmod]</span><br />';
}
}
} elseif ($step == 1) {