Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Board
|
||||
* Action controller for requirements page
|
||||
*/
|
||||
|
||||
class action_requirements
|
||||
{
|
||||
var $install;
|
||||
|
||||
function action_requirements( & $install )
|
||||
{
|
||||
$this->install =& $install;
|
||||
}
|
||||
|
||||
function run()
|
||||
{
|
||||
/* Set App Specific Requirements */
|
||||
$this->install->set_requirements();
|
||||
|
||||
/* Page Output */
|
||||
$this->install->template->append( $this->install->template->requirements_page( $this->install->version_php_min, $this->install->version_mysql_min ) );
|
||||
|
||||
/* Check Requirements */
|
||||
$errors = $this->install->check_requirements();
|
||||
|
||||
/* Check for errors */
|
||||
if( count( $errors ) )
|
||||
{
|
||||
$this->install->template->warning( $errors );
|
||||
$this->install->template->next_action = 'disabled';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->install->template->next_action = '?p=eula';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user