本文整理汇总了PHP中Lobby::installed方法的典型用法代码示例。如果您正苦于以下问题:PHP Lobby::installed方法的具体用法?PHP Lobby::installed怎么用?PHP Lobby::installed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lobby
的用法示例。
在下文中一共展示了Lobby::installed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ser
if ($prefix == "" || preg_match("/[^0-9,a-z,A-Z,\$,_]+/i", $prefix) != 0 || strlen($prefix) > 50) {
ser("Error", "A Prefix should only contain basic Latin letters, digits 0-9, dollar, underscore and shouldn't exceed 50 characters. <a href='install.php?step=2'>Try Again</a>");
} elseif (\Lobby\Install::checkDatabaseConnection() !== false) {
/**
* Make the Config File
*/
\Lobby\Install::makeConfigFile();
/**
* Create Tables
*/
if (\Lobby\Install::makeDatabase($prefix)) {
sss("Success", "Database Tables and configuration file was successfully created.");
/**
* Enable app lEdit
*/
\Lobby::$installed = true;
\Lobby\DB::init();
$App = new \Lobby\Apps("ledit");
$App->enableApp();
echo '<cl/><a href="?step=3" class="button">Proceed</a>';
} else {
ser("Unable To Create Database Tables", "Are there any tables with the same name ? Or Does the user have the permissions to create tables ?<cl/>The <b>config.php</b> file is created. To try again, remove the <b>config.php</b> file and click the button. <cl/>" . \Lobby::l("/admin/install.php?step=2", "Try Again", "class='button'"));
}
}
} else {
?>
<h2 style="margin-top: -20px;">Database Configuration</h2>
<form action="<?php
\Lobby::u();
?>
" method="POST">