diff options
author | friendica <info@friendica.com> | 2013-01-27 22:49:18 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-27 22:49:18 -0800 |
commit | 4c5d2fe0fe4466fbcb142afa019e29a67df0b38b (patch) | |
tree | c23f07a8a76b6d95539ccffe3f4f5e8cc8b889fb /mod/setup.php | |
parent | 1dbd16039278e21c13e196399bccf3418c602d6a (diff) | |
download | volse-hubzilla-4c5d2fe0fe4466fbcb142afa019e29a67df0b38b.tar.gz volse-hubzilla-4c5d2fe0fe4466fbcb142afa019e29a67df0b38b.tar.bz2 volse-hubzilla-4c5d2fe0fe4466fbcb142afa019e29a67df0b38b.zip |
check for mcrypt during install, allow admin email account to be admin *if* it's the first account.
Diffstat (limited to 'mod/setup.php')
-rwxr-xr-x | mod/setup.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/setup.php b/mod/setup.php index 4fa5152ea..b05b0cec3 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -387,6 +387,7 @@ function check_funcs(&$checks) { check_add($ck_funcs, t('OpenSSL PHP module'), true, true, ""); check_add($ck_funcs, t('mysqli PHP module'), true, true, ""); check_add($ck_funcs, t('mb_string PHP module'), true, true, ""); + check_add($ck_funcs, t('mcrypt PHP module'), true, true, ""); if(function_exists('apache_get_modules')){ @@ -417,6 +418,10 @@ function check_funcs(&$checks) { $ck_funcs[4]['status']= false; $ck_funcs[4]['help']= t('Error: mb_string PHP module required but not installed.'); } + if(! function_exists('mcrypt_encrypt')){ + $ck_funcs[4]['status']= false; + $ck_funcs[4]['help']= t('Error: mcrypt PHP module required but not installed.'); + } $checks = array_merge($checks, $ck_funcs); |