Added check.php to the settings menu

This commit is contained in:
Tobias Reich 2014-02-17 16:22:01 +01:00
parent 132942d0e5
commit 5a6da5423f
2 changed files with 20 additions and 22 deletions

View File

@ -86,7 +86,7 @@ contextMenu = {
function() { settings.setLogin() },
function() { settings.setSorting() },
function() { window.open(lychee.website, "_newtab"); },
function() { window.open(lychee.website_donate,"_newtab"); },
function() { window.open("plugins/check.php", "_newtab"); },
function() { lychee.logout() }
];
@ -94,7 +94,7 @@ contextMenu = {
["<a class='icon-user'></a> Change Login", 0],
["<a class='icon-sort'></a> Change Sorting", 1],
["<a class='icon-info-sign'></a> About Lychee", 2],
["<a class='icon-gift'></a> Donate", 3],
["<a class='icon-dashboard'></a> Diagnostics", 3],
["separator", -1],
["<a class='icon-signout'></a> Sign Out", 4]
];

View File

@ -2,11 +2,9 @@
/**
* @name check.php
* @author Philipp Maurer
* @author Tobias Reich
* @copyright 2014 by Philipp Maurer, Tobias Reich
* @copyright 2014 by Tobias Reich
* @description This file takes a look at your Lychee-configuration and displays all errors it can find.
* Everything should work if you can see the message 'Lychee is ready!'.
*/
define('LYCHEE', true);
@ -57,7 +55,7 @@ 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('../data/')), -4)!='0777') $error .= ('Error 504: Wrong permissions for \'data/\' (777 required)' . PHP_EOL);
if ($error=='') echo('Lychee is ready. Lets rock!' . PHP_EOL . PHP_EOL); else echo $error;
if ($error=='') echo('Everything is fine. Lychee should work without problems!' . PHP_EOL . PHP_EOL); else echo $error;
// Check php.ini Settings
if (ini_get('max_execution_time')<200&&ini_set('upload_max_filesize', '20M')!==true) echo('Warning: You may experience problems when uploading a large amount of photos. Take a look in the FAQ for details.' . PHP_EOL);