X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/fbf2b5f1a5016c8ecfa27d474d4c22ffd22919f9..4013663192eb94fd4519e22d0e6dc1fb61b15957:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php old mode 100755 new mode 100644 index f1f8965..76ae4b0 --- a/lib/functions.php +++ b/lib/functions.php @@ -503,10 +503,10 @@ show_errors () } } -function check_errors () +function check_errors ($cfg) { if (file_exists (JIRAFEAU_ROOT . 'install.php') - && !file_exists (JIRAFEAU_ROOT . 'lib/config.local.php')) + && !($cfg['installation_done'] === true)) { header('Location: install.php'); exit; @@ -555,6 +555,8 @@ jirafeau_get_link ($hash) $out['link_code'] = trim ($c[9]); if (trim ($c[10]) == 'C') $out['crypted'] = true; + else + $out['crypted'] = false; return $out; }