Habari

meets_all_requirements()) { ?>

...

  1. $> cd /path/to/habari/
  2. mode (permissions) of the current directory:'); ?>
    $> chmod g+w .

    $> chmod g+x .

    Note: You may need to use sudo and enter an administrator password if you do not own the directory.'); ?>

temporarily grant world write permissions to the directory:'); ?>

  1. $> chmod o+w .

    $> chmod o+x .

@todo Windows instructions

Habari

@todo Upgrading PHP instructions $ext_url) { $missing_ext_html[]= '' . $ext_name . ''; } $missing_ext_html = implode( ', ', $missing_ext_html ); ?>

Habari .

Habari PDO driver be installed. Please ask your hosting provider to enable one of the PDO drivers supported by Habari.'); ?>

'http://php.net/pdo', 'hash' => 'http://php.net/hash', 'iconv' => 'http://php.net/iconv', 'tokenizer' => 'http://php.net/tokenizer', 'simplexml' => 'http://php.net/simplexml', 'mbstring' => 'http://php.net/mbstring', 'json' => 'http://php.net/json' ); $requirements_met = true; /* Check versions of PHP */ $php_version_ok = version_compare(phpversion(), MIN_PHP_VERSION, '>='); $this->theme->assign('php_version_ok', $php_version_ok); $this->theme->assign('PHP_OS', PHP_OS);; $this->theme->assign('PHP_VERSION', phpversion()); if (! $php_version_ok) { $requirements_met = false; } /* Check for required extensions */ $missing_extensions = array(); foreach ($required_extensions as $ext_name => $ext_url) { if (!extension_loaded($ext_name)) { $missing_extensions[$ext_name] = $ext_url; $requirements_met = false; } } $this->theme->assign('missing_extensions', $missing_extensions); if ( extension_loaded('pdo') ) { /* Check for PDO drivers */ $pdo_drivers = PDO::getAvailableDrivers(); if ( ! empty( $pdo_drivers ) ) { $pdo_drivers = array_combine( $pdo_drivers, $pdo_drivers ); // Include only those drivers that we include database support for $pdo_schemas = array_map( 'basename', Utils::glob( HABARI_PATH . '/system/schema/*' ) ); $pdo_schemas = array_combine( $pdo_schemas, $pdo_schemas ); $pdo_drivers = array_intersect_key( $pdo_drivers, $pdo_schemas ); $pdo_missing_drivers = array_diff( $pdo_schemas, $pdo_drivers ); } $pdo_drivers_ok = count( $pdo_drivers ); $this->theme->assign( 'pdo_drivers_ok', $pdo_drivers_ok ); $this->theme->assign( 'pdo_drivers', $pdo_drivers ); $this->theme->assign( 'pdo_missing_drivers', $pdo_missing_drivers ); if ( ! $pdo_drivers_ok ) { $requirements_met = false; } } else { $this->theme->assign( 'pdo_drivers_ok', false ); $this->theme->assign( 'pdo_drivers', array() ); $requirements_met = false; } /** * $local_writable is used in the template, but never set in Habari * Won't remove the template code since it looks like it should be there * * This will only meet the requirement so there's no "undefined variable" exception */ $this->theme->assign( 'local_writable', true ); return $requirements_met; } } ?>