.
.
.
- -
|
|
|
|
|
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, 1);
$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 : */