-// Here start's our installtion stuff
-loadIncludeOnce('inc/install-inc.php');
-
-// Load main installation table
-loadTemplate('install_main', false, getInstallerContent());
+// Do we have plain or AJAX-enabled installation?
+if (isGetRequestElementSet('installer')) {
+ // Set installer type
+ setSession('installer', getRequestElement('installer'));
+
+ // Redirect to install.php again
+ redirectToUrl('install.php');
+} elseif (isAjaxInstaller()) {
+ // AJAX-enabled installer:
+ // Load 'init' page
+ addTemplateToInstallContent('install_page_init');
+
+ // Prepare content
+ $content = array(
+ 'install_page' => getRequestElement('install_page')
+ );
+
+ // Load main installation table
+ loadTemplate('install_main_ajax', false, $content);
+} elseif (isPlainInstaller()) {
+ // Plain installer:
+ // Load include file
+ loadIncludeOnce('inc/install-inc.php');
+
+ // Load main template
+ loadTemplate('install_main_plain');
+} else {
+ // What do you want, red or blue pill? AJAX or plain installer? ;-)
+ loadTemplate('install_selector');
+}