Exemplo n.º 1
0
                  * Prefix is "l_" and can't be changed
                  */
                 if ($db_create && \Lobby\Install::makeDatabase("l_", "sqlite")) {
                     /**
                      * We give the database config to the Install Class
                      */
                     \Lobby\Install::dbConfig(array("path" => str_replace(L_DIR, "", $db_loc), "prefix" => "l_"));
                     /**
                      * Make the Config File
                      */
                     \Lobby\Install::makeConfigFile("sqlite");
                     /**
                      * Enable app lEdit
                      */
                     \Lobby::$installed = true;
                     \Lobby\DB::__constructStatic();
                     $App = new \Lobby\Apps("ledit");
                     $App->enableApp();
                     echo sss("Success", "Database and <b>config.php</b> file was successfully created.");
                     echo '<cl/><a href="?step=4' . CSRF::getParam() . '" class="btn">Proceed</a>';
                 } else {
                     echo ser("Couldn't Make SQLite Database", "I was unable to make the database. Error :<blockquote>" . \Lobby\Install::$error . "</blockquote> <cl/>" . \Lobby::l("/admin/install.php?step=3&db_type=sqlite" . CSRF::getParam(), "Try Again", "class='btn'"));
                 }
             }
         } else {
             if ($db_type === "mysql") {
                 ?>
 <h3>Database</h3>
 <p>Provide the database credentials. Double check before submitting</p>
 <form action="<?php 
                 \Lobby::u();