function install_check_php_version() { if (version_compare(phpversion(), BEEHIVE_PHP_MIN_VERSION, "<")) { install_draw_top(); echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"400\">\n"; echo " <tr>\n"; echo " <td align=\"left\">\n"; echo " <table class=\"box\">\n"; echo " <tr>\n"; echo " <td align=\"left\" class=\"posthead\">\n"; echo " <table class=\"posthead\" width=\"500\">\n"; echo " <tr>\n"; echo " <td align=\"left\" colspan=\"2\" class=\"subhead\">Minimum Requirements not met</td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"center\">\n"; echo " <table class=\"posthead\" width=\"95%\">\n"; echo " <tr>\n"; echo " <td align=\"left\">PHP Version ", BEEHIVE_PHP_MIN_VERSION, " or newer is required to run Beehive Forum. Please upgrade your PHP installation.</td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"left\"> </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; install_draw_bottom(); exit; } }
echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"center\">\n"; echo " <a class=\"button\" href=\"../index.php\"><span>Continue</span></a>\n"; echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; install_draw_bottom(); exit; } } else { $error_array[] = "Could not complete installation. Error was: failed to read config.inc.php\n"; } } } install_draw_top("js/jquery.min.js", "js/install.js"); echo "<form accept-charset=\"utf-8\" id=\"install_form\" method=\"post\" action=\"index.php\">\n"; echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"650\">\n"; echo " <tr>\n"; echo " <td align=\"left\">\n"; echo " <p>Welcome to the Beehive Forum installer. Please fill out the details below and when you're ready, click the Install button to start the installation.</p>\n"; echo " <p><b>WARNING</b>: Proceed only if you have performed a backup of your database! Failure to do so could result in loss of your forum. You have been warned!</p>\n"; echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; if (isset($error_array) && sizeof($error_array) > 0) { echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"650\">\n"; echo " <tr>\n"; echo " <td align=\"left\" colspan=\"2\"><hr /></td>\n"; echo " </tr>\n"; echo " <tr>\n";