$_REQUEST['url'], 'name' => $_REQUEST['title'], 'items' => 10, 'shuffle' => 0, 'refresh' => 240, 'cache' => 10, 'nohtml' => 0, 'postmaxlength' => 0, 'cachedir' => './cache' ); $planet_config = new PlanetConfig($config); $save['config'] = file_put_contents(dirname(__FILE__).'/custom/config.yml', $planet_config->toYaml()); //Save password $save['password'] = file_put_contents(dirname(__FILE__).'/admin/inc/pwd.inc.php', ''); if (0 != ($save['config'] + $save['password'])) { $status = 'installed'; } } else { //Requirements $tests = array( 'php5' => array( 'label'=>'Server is running PHP5', 'solution' => 'Check your server documentation to activate PHP5.' ), 'custom' => array( 'label' => './custom is writable', 'solution' => 'Change the access rights for ./custom with CHMOD' ), 'opml' => array( 'label'=>'./custom/people.opml is writable', 'solution' => 'Change the access rights for ./custom/people.opml with CHMOD' ), 'changepassword' => array( 'label'=>'Administrator password can be changed', 'solution' => 'Change the access right for ./admin/inc/pwd.inc.php with CHMOD' ), 'cache' => array( 'label'=>'./cache is writable', 'solution' => 'Make ./cache writable with CHMOD' ), ); $tests['php5']['result'] = (5 <= phpversion()); $tests['custom']['result'] = is_writable(dirname(__FILE__).'/custom'); $tests['opml']['result'] = is_writable(dirname(__FILE__).'/custom/people.opml'); $tests['changepassword']['result'] = is_writable(dirname(__FILE__).'/admin/inc/pwd.inc.php'); $tests['cache']['result'] = is_writable(dirname(__FILE__).'/cache'); $bInstallOk = true; $strInstall = ''; $strRecommendation = ''; foreach ($tests as $test) { $bInstallOk = $bInstallOk && $test['result']; $strInstall .= " ".$test['label']." ".(($test['result'])?'OK':'FAIL')." "; if (!$test['result']) { $strRecommendation .= '
  • '.$test['solution'].'
  • '; } } if ($bInstallOk) { $status = 'install'; } else { $status = 'error'; } } header('Content-type: text/html; charset=UTF-8'); ?> moonmoon install

    moonmoon installation

    Sorry, your server is not compatible with moonmoon.

    Your server does not fulfill the requirements

    Test Result

    Troubleshooting

    To install moonmoon, try the following changes:

    Congratulations! Your moonmoon is ready.

    What's next?

    1. Delete install.php with your FTP software.
    2. Use your password to go to the administration panel