<?php /* * This is an example how your index.php could look like */ # Security headers header('X-Frame-Options: DENY'); header('content-security-policy: default-src \'self\''); # Load config require_once 'protected/config.php'; # <-- You might need to adjust this path. # Init GDO and GWF core require_once '%%GWFPATH%%gwf3.class.php'; # Init GWF $gwf = new GWF3(getcwd(), array()); # Display page echo $gwf->onDisplayPage();
# Create index.php case '8': $page = GWF_InstallWizard::wizard_8(); break; # Create htaccess # Create htaccess case '9': $page = GWF_InstallWizard::wizard_9(); break; # Create admins # Create admins case '10': $page = GWF_InstallWizard::wizard_10(); break; # Clear Caches # Clear Caches case '11': $page = GWF_InstallWizard::wizard_11(); break; # Protect install folder # Protect install folder default: case '0': $page = GWF_InstallWizard::wizard_0(); break; # List Status } } # Display page echo $gwf->onDisplayPage($page);