* @license licenses/mind3rd.license * * This file will perform the instalation of the system through the browser. * The source code will still get more beautiful, the focus now was to set * it to work in bouth Windows and Unix based Operational Systems. * * For now, Windows does not have support for readline lib with PHP, what * forces us to use it *only* via HTTP on Windows. */ ?>

theWebMind

This is the setup page for theWebMind.
"; if(isset($_GET['setupGo']) && $_GET['setupGo'] && $installationOk) { echo "
";
        Setup::install();
        echo "
"; echo "
"; echo "Well, where to go now?
"; $apiSrc= str_replace('setup.php', '', $_SERVER['HTTP_REFERER']); echo "You can check the documentation at http://thewebmind.org/docs
"; echo "Make post requisitions to the API in your webserver at ".$apiSrc."
"; echo "And if you downloaded the IDE, you can probably access it at ".$apiSrc."ide"; echo "
"; exit; } echo "

PHP 5.3+
"; echo "

SQLite3 support
"; /* if(!Setup::$readLlineOk) { if(Setup::getSO() != 'WIN') { echo "

ReadLine"; $tip= "If you will not use the application through command line, but only via HTTP
"; $tip.= "this lib is not required. Once the application is installed you can access it using the HTTP protocol"; echo "

$tip
"; }else{ echo "
Sorry. Windows does not support the readline library to be used through command line."; echo "
Although, you can use it via HTTP in your browser."; } }*/ echo "

Write permissions in '".getcwd()."/mind3rd/projects/' to the user '".trim(shell_exec('whoami'))."'
"; echo "

Write permissions in '".getcwd()."/mind3rd/SQLite/' to the user '".trim(shell_exec('whoami'))."'
"; echo "

Write permissions in '".getcwd()."/mind3rd/API/' to the user '".trim(shell_exec('whoami'))."'
"; if(Setup::databaseAlreadyExists()) { echo "

Database already exists! It will *NOT* be replaced or even touched.
If you are trying to reinstall the system, consider removing the file
mind3rd/SQLite/mind(the database itself...all the old projects will be lost, them) and then try to re-installing the application.

"; } echo ""; if(Setup::getSO() == 'WIN') { echo "

NOTE: In windows, the system works only via HTTP, not accepting commands from command line/console.
"; }else{ echo "
NOTE: Installing using this interface, you will be able to access the system only via HTTP or, using command line straight from the directory where the system is and then, running mind. If you want to use the program simply typing mind from any directory in your console, you can perform this installation from your console typing, in the mind3rd's directory:
     sudo php mind install
"; } /*echo "Admin's password:
"; echo "Admin's e-mail:
";*/ echo ""; if(Setup::$installationOk) { echo ""; } echo "";