Show
Ignore:
Timestamp:
08/20/08 17:57:11 (5 months ago)
Author:
dduponchelle
Message:

Test added during the first step of the installation.
Now, the browser must authorize cookies to proceed with the installation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/install/steps/step2.php

    r5226 r6210  
    1616 */ 
    1717 
    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        
    1929        aff_header("Centreon Setup Wizard", "Licence", 2); 
    2030        $license_file_name = "./LICENSE.txt"; 
     
    3747        print "<input class='button' type='submit' name='goto' value='Next' id='button_next' disabled='disabled' />"; 
    3848        aff_footer(); 
    39  
     49        } 
    4050?>