install/index.php
Welcome to the installation program.This program will guide you through the rest of the installation.Please select ’Next’ button to continue:
License Agreement.
--------------------------------------------------------------------------------
You must agree to the License before continuing installation.
Usage of this software is subject to the GPL license. To help you understand
what the GPL licence is and how it affects your ability to use the software, we
have provided the following summary:
The GNU General Public License is a Free Software license.
Like any Free Software license, it grants to you the four following freedoms:
The freedom to run the program for any purpose.
The freedom to study how the program works and adapt it to your needs.
The freedom to redistribute copies so you can help your neighbor.
The freedom to improve the program and release your improvements to the
public, so that the whole community benefits.
You may exercise the freedoms specified here provided that you comply with
the express conditions of this license. The principal conditions are:
You must conspicuously and appropriately publish on each copy distributed an
appropriate copyright notice and disclaimer of warranty and keep intact all the
notices that refer to this License and to the absence of any warranty; and give
any other recipients of the Program a copy of the GNU General Public License
along with the Program. Any translation of the GNU General Public License must
be accompanied by the GNU General Public License.
If you modify your copy or copies of the program or any portion of it, or
develop a program based upon it, you may distribute the resulting work provided
you do so under the GNU General Public License. Any translation of the GNU
General Public License must be accompanied by the GNU General Public License.
If you copy or distribute the program, you must accompany it with the
complete corresponding machine-readable source code or with a written offer,
valid for at least three years, to furnish the complete corresponding
machine-readable source code.
Any of these conditions can be waived if you get permission from the
copyright holder.
Your fair use and other rights are in no way affected by the above.
The above is a summary of the GNU General Public License. By proceeding, you are agreeing to the GNU General Public Licence, not the above. The above is simply a summary of the GNU General Public Licence, and its accuracy is not guaranteed. It is strongly recommended you read the GNU General Public License in full before proceeding, which can also be found in the license file distributed with this package.
Installation Mode";
?>
/>New Installation This will install a new copy of the software on your web site. Please note that this option may overwrite any data inside your database. />Upgrade Installation Select this option to upgrade your current files and database.
Connection Information
Database connection and login information
Please enter the name of the database created for MODX. If you there is no database yet, the installer will attempt to create a database for you. This may fail depending on the MySQL configuration or the database user permissions for your domain/installation.
Database name:
" name="databasename" />
Table prefix:
" name="tableprefix" />
Now please enter the login data for your database.
Database host:
" name="databasehost" />
Database login name:
" />
Database password:
" />
Now you’ll need to enter some details for the main administrator account. You can fill in your own name here, and a password you’re not likely to forget. You’ll need these to log into Admin once setup is complete.
Administrator username:
" name="cmsadmin" />
Administrator password:
" />
Confirm password:
" />
Optional ItemsPlease choose your installation options and click Install:";
$chk = isset($_POST[’installdata’]) ? "checked=’checked’":"";
echo ’’;
echo " Sample Web Site";
echo " Install/Overwrite Sample Web Site Please note that this will overwrite existing documents and resources.--------------------------------------------------------------------------------";
// display templates
$templates = isset($_POST[’template’]) ? $_POST[’template’]:array();
$limit = count($moduleTemplates);
if ($limit>0) {
echo ’’;
echo "Templates";
for ($i=0;$i<$limit;$i++) {
$chk = in_array($i,$templates)||(!count($_POST)) ? "checked=’checked’": "";
echo " Install/Update ".$moduleTemplates[$i][0]." - ".$moduleTemplates[$i][1]."--------------------------------------------------------------------------------";
}
}
// display chunks
$chunks = isset($_POST[’chunk’]) ? $_POST[’chunk’]:array();
$limit = count($moduleChunks);
if ($limit>0) {
echo ’’;
echo "Chunks";
for ($i=0;$i<$limit;$i++) {
$chk = in_array($i,$chunks)||(!count($_POST)) ? "checked=’checked’": "";
echo " Install/Update ".$moduleChunks[$i][0]." - ".$moduleChunks[$i][1]."--------------------------------------------------------------------------------";
}
}
// display modules
$modules = isset($_POST[’module’]) ? $_POST[’module’]:array();
$limit = count($moduleModules);
if ($limit>0) {
echo ’’;
echo "Modules";
for ($i=0;$i<$limit;$i++) {
$chk = in_array($i,$modules)||(!count($_POST)) ? "checked=’checked’": "";
echo " Install/Update ".$moduleModules[$i][0]." - ".$moduleModules[$i][1]."--------------------------------------------------------------------------------";
}
}
// display plugins
$plugins = isset($_POST[’plugin’]) ? $_POST[’plugin’]:array();
$limit = count($modulePlugins);
if ($limit>0) {
echo ’’;
echo "Plugins";
for ($i=0;$i<$limit;$i++) {
$chk = in_array($i,$plugins)||(!count($_POST)) ? "checked=’checked’": "";
echo " Install/Update ".$modulePlugins[$i][0]." - ".$modulePlugins[$i][1]."--------------------------------------------------------------------------------";
}
}
// display snippets
$snippets = isset($_POST[’snippet’]) ? $_POST[’snippet’]:array();
$limit = count($moduleSnippets);
if ($limit>0) {
echo ’’;
echo "Snippets";
for ($i=0;$i<$limit;$i++) {
$chk = in_array($i,$snippets)||(!count($_POST)) ? "checked=’checked’": "";
echo " Install/Update ".$moduleSnippets[$i][0]." - ".$moduleSnippets[$i][1]."--------------------------------------------------------------------------------";
}
}
$o = ob_get_contents();
ob_end_clean();
return $o;
}
// build Summary Screen
function buildSummaryScreen() {
global $errors;
global $installMode;
ob_start();
echo "Setup has carried out a number of checks to see if everything’s ready to start the setup.";
$errors = 0;
// check PHP version
echo "Checking PHP version: "; $php_ver_comp = version_compare(phpversion(), "4.1.0"); $php_ver_comp2 = version_compare(phpversion(), "4.3.8"); // -1 if left is less, 0 if equal, +1 if left is higher if($php_ver_comp < 0) { echo "Failed! - You are running on PHP ".phpversion().", and ModX requires PHP 4.1.0 or later";
$errors += 1;
} else {
echo "OK!";
if($php_ver_comp2 < 0) {
echo "Security noticeWhile MODx will work on your PHP version (".phpversion()."), usage of MODx on this version is not recommended. Your version of PHP is vulnerable to numerous security holes. Please upgrade to PHP version is 4.3.8 or higher, which patches these holes. It is recommended you upgrade to this version for the security of your own website.";
}
}
// check sessions
echo "Checking if sessions are properly configured: "; if($_SESSION[’session_test’]!=1 ) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// check directories
// cache exists?
echo "Checking if assets/cache directory exists: "; if(!file_exists("../assets/cache")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// cache writable?
echo "Checking if assets/cache directory is writable: "; if(!is_writable("../assets/cache")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// cache files writable?
echo "Checking if assets/cache/siteCache.idx.php file is writable: "; if(!is_writable("../assets/cache/siteCache.idx.php")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
echo "Checking if assets/cache/sitePublishing.idx.php file is writable: "; if(!is_writable("../assets/cache/sitePublishing.idx.php")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// images exists?
echo "Checking if assets/images directory exists: "; if(!file_exists("../assets/images")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// images writable?
echo "Checking if assets/images directory is writable: "; if(!is_writable("../assets/images")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// export exists?
echo "Checking if assets/export directory exists: "; if(!file_exists("../assets/export")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// export writable?
echo "Checking if assets/export directory is writable: "; if(!is_writable("../assets/export")) { echo "Failed!";
$errors += 1;
} else {
echo "OK!";
}
// config.inc.php writable?
echo "Checking if manager/includes/config.inc.php exists and is writable: "; if(!file_exists("../manager/includes/config.inc.php")) { // make an attempt to create the file @$hnd=fopen("../manager/includes/config.inc.php", ’w’); @fwrite($hnd,""); @fclose($hnd); } $isWriteable = is_writable("../manager/includes/config.inc.php"); if(!$isWriteable) { echo "Failed!For new Linux/Unix installs, please create a blank file named config.inc.php in the manager/includes/ directory with file permissions set to 777.";
$errors += 1;
} else {
echo "OK!";
}
// connect to the database
if($installMode==1) {
include "../manager/includes/config.inc.php";
}
else {
// get db info from post
$database_server = $_POST[’databasehost’];
$database_user = $_POST[’databaseloginname’];
$database_password = $_POST[’databaseloginpassword’];
$dbase = $_POST[’databasename’];
$table_prefix = $_POST[’tableprefix’];
}
echo "Creating connection to the database: "; if(!@$conn = mysql_connect($database_server, $database_user, $database_password)) { $errors += 1; echo "Database connection failed!Please check the database login details and try again.";
}
else {
echo "OK!";
}
// check table prefix
if($conn && $installMode==0) {
echo "Checking table prefix `".$table_prefix."`: "; if(@$rs=mysql_query("SELECT COUNT(*) FROM $dbase.".$table_prefix."site_content")) { echo "Failed! - Table prefix is already in use in this database!";
$errors += 1;
echo "Setup couldn’t install into the selected database, as it already contains tables with the prefix you specified. Please choose a new table_prefix, and run Setup again.";
}
else {
echo "OK!";
}
}
if($errors>0) {
?>
Unfortunately, Setup cannot continue at the moment, due to the above 1 ? $errors." " : "" ; ?>error 1 ? "s" : "" ; ?>. Please correct the error 1 ? "s" : "" ; ?>, and try again. If you need help figuring out how to fix the problem 1 ? "s" : "" ; ?>, visit the Operation MODx Forums.
version [object] Running setup script... please wait Remove the install folder and files from my website (This operation requires delete permission to the granted to the install folder). ’; } else { echo ’Please remember to remove the "install" folder before you log into the Content Manager.’; } } ?> style=’line-height:18px’/> I agree to the terms set out in this license. " />
close
This is what shows up and the pictures are only X pictures