diff options
author | friendica <info@friendica.com> | 2012-06-01 02:53:42 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-01 02:53:42 -0700 |
commit | 974935e9215bce903e5d458c8301fa1d50b3178d (patch) | |
tree | f004a32426891af9a8c3d9c412c93e4d89bc8179 | |
parent | 93bc29a711637c84a4ffc380078277de89af4e6d (diff) | |
parent | 1d1c50f6e33bf1411596d11527ed503b4c659d89 (diff) | |
download | volse-hubzilla-974935e9215bce903e5d458c8301fa1d50b3178d.tar.gz volse-hubzilla-974935e9215bce903e5d458c8301fa1d50b3178d.tar.bz2 volse-hubzilla-974935e9215bce903e5d458c8301fa1d50b3178d.zip |
Merge pull request #320 from fabrixxm/master
Fix bug 436, fix small typo, and incomplete feature removal
-rw-r--r-- | mod/admin.php | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | mod/install.php | 29 |
2 files changed, 19 insertions, 12 deletions
diff --git a/mod/admin.php b/mod/admin.php index d19118b78..6b1a53a30 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -98,7 +98,7 @@ function admin_content(&$a) { 'plugins'=> Array($a->get_baseurl(true)."/admin/plugins/", t("Plugins") , "plugins"), 'themes' => Array($a->get_baseurl(true)."/admin/themes/", t("Themes") , "themes"), 'dbsync' => Array($a->get_baseurl(true)."/admin/dbsync/", t('DB updates'), "dbsync"), - 'update' => Array($a->get_baseurl(true)."/admin/update/", t("Software Update") , "update") + //'update' => Array($a->get_baseurl(true)."/admin/update/", t("Software Update") , "update") ); /* get plugins admin page */ diff --git a/mod/install.php b/mod/install.php index 6d6232a95..cb21a71eb 100644..100755 --- a/mod/install.php +++ b/mod/install.php @@ -184,15 +184,16 @@ function install_content(&$a) { check_php($phpath, $checks); - check_htaccess($checks); - + check_htaccess($checks); + function check_passed($v, $c){ if ($c['required']) $v = $v && $c['status']; return $v; } $checkspassed = array_reduce($checks, "check_passed", true); - + + $tpl = get_markup_template('install_checks.tpl'); $o .= replace_macros($tpl, array( @@ -381,6 +382,7 @@ function check_funcs(&$checks) { check_add($ck_funcs, t('Apache mod_rewrite module'), true, true, ""); } } + if(! function_exists('curl_init')){ $ck_funcs[0]['status']= false; $ck_funcs[0]['help']= t('Error: libCURL PHP module required but not installed.'); @@ -421,21 +423,26 @@ function check_htconfig(&$checks) { $help .= t('At the end of this procedure, we will give you a text to save in a file named .htconfig.php in your Friendica top folder.').EOL; $help .= t('You can alternatively skip this procedure and perform a manual installation. Please see the file "INSTALL.txt" for instructions.').EOL; } - + check_add($checks, t('.htconfig.php is writable'), $status, false, $help); - + } function check_htaccess(&$checks) { $a = get_app(); $status = true; $help = ""; - $test = fetch_url($a->get_baseurl()."/install/testrewrite"); - if ($test!="ok") { - $status = false; - $help = t('Url rewrite in .htconfig is not working. Check your server configuration.'); - } - check_add($checks, t('Url rewrite is working'), $status, true, $help); + if (function_exists('curl_init')){ + $test = fetch_url($a->get_baseurl()."/install/testrewrite"); + if ($test!="ok") { + $status = false; + $help = t('Url rewrite in .htaccess is not working. Check your server configuration.'); + } + check_add($checks, t('Url rewrite is working'), $status, true, $help); + } else { + // cannot check modrewrite if libcurl is not installed + } + } |