'. $s .'';
}
if ( $result === S9Y_I_WARNING ) {
return ''. $s .' [?]';
}
if ( $result === S9Y_I_ERROR ) {
$errorCount++;
return ''. $s .' [!]';
}
}
/* If register_globals is enabled and we use the dual GET/POST submission method, we will
receive the value of the POST-variable inside the GET-variable, which is of course unwanted.
Thus we transfer a new variable GETSTEP via POST and set that to an internal GET value. */
if (!empty($serendipity['POST']['getstep']) && is_numeric($serendipity['POST']['getstep'])) {
$serendipity['GET']['step'] = $serendipity['POST']['getstep'];
}
/* From configuration to install */
if ( sizeof($_POST) > 1 && $serendipity['GET']['step'] == 3 ) {
/* One problem, if the user chose to do an easy install, not all config vars has been transfered
Therefore we fetch all config vars with their default values, and merge them with our POST data */
$config = serendipity_parseTemplate(S9Y_CONFIG_TEMPLATE);
foreach ( $config as $category ) {
foreach ( $category['items'] as $item ) {
if ( !isset($_POST[$item['var']]) ) {
$_POST[$item['var']] = serendipity_query_default($item['var'], $item['default']);
}
}
}
if ( is_array($errors = serendipity_checkInstallation()) ) {
foreach ( $errors as $error ) {
echo '
 . ')
'. $error .'
';
}
$from = $_POST;
/* Back to configuration, user did something wrong */
$serendipity['GET']['step'] = $serendipity['POST']['step'];
} else {
/* We're good, move to install process */
$serendipity['GET']['step'] = 3;
}
}
if ( (int)$serendipity['GET']['step'] == 0 ) {
?>
.
.
.
- -
|
|
|
|
|
PHP version >= 4.1.2 |
=') ) {
echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, YES .', '. phpversion());
} else {
echo serendipity_installerResultDiagnose(S9Y_I_ERROR, NO);
}
?> |
Database extensions |
|
Session extension |
|
PCRE extension |
|
GDlib extension |
|
OpenSSL extension |
|
mbstring extension |
|
iconv extension |
|
zlib extension |
|
Imagemagick binary |
|
|
|
|
|
safe_mode |
|
|
register_globals |
|
|
magic_quotes_gpc |
|
|
magic_quotes_runtime |
|
|
session.use_trans_sid |
|
|
allow_url_fopen |
|
|
file_uploads |
|
|
post_max_size |
10M |
= (10*1024*1024) ) {
echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, ini_get('post_max_size'));
} else {
echo serendipity_installerResultDiagnose(S9Y_I_WARNING, ini_get('post_max_size'));
}
?> |
upload_max_filesize |
10M |
= (10*1024*1024) ) {
echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, ini_get('upload_max_filesize'));
} else {
echo serendipity_installerResultDiagnose(S9Y_I_WARNING, ini_get('upload_max_filesize'));
}
?> |
memory_limit |
|
= ((PHP_INT_SIZE == 4 ? 8 : 16)*1024*1024) ) {
echo serendipity_installerResultDiagnose(S9Y_I_SUCCESS, ini_get('memory_limit'));
} else {
echo serendipity_installerResultDiagnose(S9Y_I_WARNING, ini_get('memory_limit'));
}
?> |
|
|
|
|
|
|
|
|
|
Execute Imagemagick binary |
|
'. THEY_DO .', '. WONT_INSTALL_DB_AGAIN;
echo '
';
echo '
';
} else {
echo ' '. THEY_DONT .'';
echo '
';
echo CREATE_DATABASE;
serendipity_installDatabase();
echo ' ' . DONE . '
';
echo sprintf(CREATING_PRIMARY_AUTHOR, htmlspecialchars($_POST['user'])) .'...';
$authorid = serendipity_addAuthor($_POST['user'], $_POST['pass'], $_POST['realname'], $_POST['email'], USERLEVEL_ADMIN);
$mail_comments = (serendipity_db_bool($_POST['want_mail']) ? 1 : 0);
serendipity_set_user_var('mail_comments', $mail_comments, $authorid);
serendipity_set_user_var('mail_trackbacks', $mail_comments, $authorid);
serendipity_set_user_var('right_publish', 1, $authorid);
serendipity_addDefaultGroup('USERLEVEL_EDITOR_DESC', USERLEVEL_EDITOR);
serendipity_addDefaultGroup('USERLEVEL_CHIEF_DESC', USERLEVEL_CHIEF);
serendipity_addDefaultGroup('USERLEVEL_ADMIN_DESC', USERLEVEL_ADMIN);
echo ' ' . DONE . '
';
echo SETTING_DEFAULT_TEMPLATE .'... ';
serendipity_set_config_var('template', $serendipity['defaultTemplate']);
echo ' ' . DONE . '
';
echo INSTALLING_DEFAULT_PLUGINS .'... ';
include_once S9Y_INCLUDE_PATH . 'include/plugin_api.inc.php';
serendipity_plugin_api::register_default_plugins();
echo ' ' . DONE . '
';
}
echo sprintf(ATTEMPT_WRITE_FILE, '.htaccess') . '... ';
$errors = serendipity_installFiles($basedir);
if ( $errors === true ) {
echo ' ' . DONE . '
';
} else {
echo ' ' . FAILED . '
';
foreach ( $errors as $error ) {
echo ' . ')
' . $error .'
';
}
}
if ( serendipity_updateConfiguration() ) {
echo '. ')
' . SERENDIPITY_INSTALLED .'
';
echo '';
echo ''. THANK_YOU_FOR_CHOOSING .'
';
} else {
echo ' . ')
'. ERROR_DETECTED_IN_INSTALL .'
';
}
}
/* vim: set sts=4 ts=4 expandtab : */