コード例 #1
0
ファイル: install.php プロジェクト: shibuya246/Hotaru-Plugins
        // "Welcome to Hotaru CMS.
        break;
    case 2:
        database_setup();
        // DB name, user, password, prefix...
        break;
    case 3:
        database_creation();
        // Creates the database tables
        break;
    case 4:
        register_admin();
        // Username and password for Admin user...
        break;
    case 5:
        installation_complete();
        // Delete "install" folder. Visit your site"
        break;
    default:
        // Anything other than step=2, 3 or 4 will return user to step 1
        installation_welcome();
        break;
}
exit;
/**
 * HTML header
 *
 * @return string returns the html output for the page header
 */
function html_header()
{
コード例 #2
0
ファイル: index.php プロジェクト: hotarucms/hotarucms
     $parsed = parse_url(BASEURL);
     setcookie("hotaru_user", "", time() - 3600, "/", "." . $parsed['host']);
     setcookie("hotaru_key", "", time() - 3600, "/", "." . $parsed['host']);
     if ($action == 'upgrade') {
         upgrade_step_3($h);
     } else {
         //$db = init_database();
         register_admin($h);
         // Username and password for Admin user...
     }
     break;
 case 4:
     if ($action == 'upgrade') {
         upgrade_plugins($h);
     } else {
         installation_complete($h);
         // Delete "install" folder. Visit your site"
     }
     break;
 case 90:
     template($h, 'help.php');
     break;
 case 99:
     $dbuser_name = $h->cage->get->testAlnumLines('dbuser_name');
     $dbpassword_name = $h->cage->get->KeyExists('dbpassword_name');
     $dbname_name = $h->cage->get->testAlnumLines('dbname_name');
     $dbhost_name = $h->cage->get->testAlnumLines('dbhost_name');
     if (!$settings_file_exists) {
         $db = new ezSQL_mysql($dbuser_name, $dbpassword_name, $dbname_name, $dbhost_name);
         $db->show_errors = false;
     }