Changeset 6210
- Timestamp:
- 08/20/08 17:57:11 (3 months ago)
- Location:
- trunk/centreon/www/install
- Files:
-
- 3 modified
-
setup.php (modified) (2 diffs)
-
steps/step1.php (modified) (1 diff)
-
steps/step2.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/install/setup.php
r5226 r6210 31 31 $msg = NULL; 32 32 $return_false = NULL; 33 33 34 if (isset($_POST["step"]) && $_POST["step"] == 2 && isset($_POST["Restart"])) 35 $_POST["step"] = NULL; 34 36 if (isset($_POST["step"]) && $_POST["step"] == 4 && isset($_POST["Recheck"])) 35 37 $_POST["step"] = 3; … … 40 42 if (isset($_POST["step"]) && $_POST["step"] == 10 && isset($_POST["Recheck"])) 41 43 $_POST["step"] = 9; 42 /* if (isset($_POST["install_missing_pear_module"]) && isset($_POST["pear_module"]) && $_POST["step"] == 5) {43 / $_POST["step"] = 4;44 45 exec('sudo pear install '. $pear_module["$package_file"]);46 47 }*/48 44 49 45 if (isset($_POST["goto"]) && !strcmp($_POST["goto"], "Back")) -
trunk/centreon/www/install/steps/step1.php
r5226 r6210 15 15 * For information : contact@centreon.com 16 16 */ 17 17 18 // Creating a Cookie to test the cookie activation of the browser 19 setcookie('COOKIE','COOKIE-TEST',time()+3600); 20 18 21 aff_header("Centreon Setup Wizard", "Welcome to Centreon Setup", 1); 19 22 print "<p>This installer creates the Centreon database tables and sets the configuration variables that you need to start. The entire process should take about ten minutes.</p>"; -
trunk/centreon/www/install/steps/step2.php
r5226 r6210 16 16 */ 17 17 18 18 // Testing the Cookie in order to determined if cookie are authorized by the browser 19 if($_COOKIE['COOKIE'] != "COOKIE-TEST") 20 { 21 aff_header("Centreon Setup Wizard", "Cookies are disabled", 2); 22 print "<font color='red'>You have to enable Cookies to proceed with the installation!</font>"; 23 aff_middle(); 24 print "<input class='button' type='submit' name='Restart' value='Restart' />"; 25 aff_footer(); 26 } 27 else{ 28 // If the cookies are authorized, we can perform the installation 19 29 aff_header("Centreon Setup Wizard", "Licence", 2); 20 30 $license_file_name = "./LICENSE.txt"; … … 37 47 print "<input class='button' type='submit' name='goto' value='Next' id='button_next' disabled='disabled' />"; 38 48 aff_footer(); 39 49 } 40 50 ?>
