Added check.php to the settings menu
This commit is contained in:
parent
132942d0e5
commit
5a6da5423f
@ -85,8 +85,8 @@ contextMenu = {
|
||||
contextMenu.fns = [
|
||||
function() { settings.setLogin() },
|
||||
function() { settings.setSorting() },
|
||||
function() { window.open(lychee.website,"_newtab"); },
|
||||
function() { window.open(lychee.website_donate,"_newtab"); },
|
||||
function() { window.open(lychee.website, "_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]
|
||||
];
|
||||
|
@ -1,12 +1,10 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @name check.php
|
||||
* @author Philipp Maurer
|
||||
* @name check.php
|
||||
* @author Tobias Reich
|
||||
* @copyright 2014 by Philipp Maurer, 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!'.
|
||||
* @copyright 2014 by Tobias Reich
|
||||
* @description This file takes a look at your Lychee-configuration and displays all errors it can find.
|
||||
*/
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user