$config['root'], 'title' => 'Install', 'body' => '' ); if($step == 0) { // Agreeement $page['body'] = '

I have read and understood the agreement. Proceed to installation.

'; echo Element('page.html', $page); } elseif($step == 1) { $page['title'] = 'Pre-installation test'; $page['body'] = ''; function rheader($item) { global $page, $config; $page['body'] .= ''; } function row($item, $result) { global $page, $config; $page['body'] .= ''; } // Required extensions rheader('PHP extensions'); row('PDO', extension_loaded('pdo')); row('GD', extension_loaded('gd')); // GD tests rheader('GD tests'); row('JPEG', function_exists('imagecreatefromjpeg')); row('PNG', function_exists('imagecreatefrompng')); row('GIF', function_exists('imagecreatefromgif')); row('BMP', function_exists('imagecreatefrombmp')); // Database drivers $drivers = PDO::getAvailableDrivers(); rheader('PDO drivers (currently installed drivers)'); foreach($drivers as &$driver) { row($driver, true); } // Permissions rheader('File permissions'); row('root directory (' . getcwd() . ')', is_writable('.')); $page['body'] .= '
' . $item . '
' . $item . '

Continue.

'; echo Element('page.html', $page); } elseif($step == 2) { // Basic config $page['title'] = 'Configuration'; function create_salt() { return substr(base64_encode(sha1(rand())), 0, rand(25, 31)); } $page['body'] = '
Database
Cookies
Flood control
Images
Display
Directories
Miscellaneous

'; echo Element('page.html', $page); } ?>