@ -56,10 +56,12 @@ if (substr(sprintf('%o', @fileperms('../uploads/import/')), -4)!='0777') $error
if (substr(sprintf('%o', @fileperms('../uploads/')), -4)!='0777') $error .= ('Error 503: Wrong permissions for \'uploads/\' (777 required)' . PHP_EOL);
if (substr(sprintf('%o', @fileperms('../uploads/')), -4)!='0777') $error .= ('Error 503: Wrong permissions for \'uploads/\' (777 required)' . PHP_EOL);
if (substr(sprintf('%o', @fileperms('../php/')), -4)!='0777') $error .= ('Error 504: Wrong permissions for \'php/\' (777 required)' . PHP_EOL);
if (substr(sprintf('%o', @fileperms('../php/')), -4)!='0777') $error .= ('Error 504: Wrong permissions for \'php/\' (777 required)' . PHP_EOL);
if ($error=='') echo('Lychee is ready. Lets rock!' . PHP_EOL); else echo $error;
if ($error=='') echo('Lychee is ready. Lets rock!' . PHP_EOL . PHP_EOL); else echo $error;
// Check php.ini Settings
// Check php.ini Settings
if (ini_get('max_execution_time')<200&&ini_set('upload_max_filesize','20M')!==true)echo('Warning:Youmayexperienceproblemswhenuploadingalargeamountofphotos.TakealookintheFAQfordetails.'.PHP_EOL);
if (ini_get('max_execution_time')<200&&ini_set('upload_max_filesize','20M')!==true)echo('Warning:Youmayexperienceproblemswhenuploadingalargeamountofphotos.TakealookintheFAQfordetails.'.PHP_EOL);
// Check mysql version
if ($database->server_version<50800)echo('Warning:LycheeusestheGBKcharsettoavoidsqlinjectionsonyourMySQLversion.PleaseupdatetoMySQL5.5orhighertoenableUTF-8support.'.PHP_EOL);