Added check.php to the settings menu
This commit is contained in:
parent
132942d0e5
commit
5a6da5423f
@ -24,8 +24,8 @@ contextMenu = {
|
||||
if (mouse_x>$(document).width()) mouse_x = $(document).width();
|
||||
if (mouse_x<0) mouse_x = 0;
|
||||
if (mouse_y>$(document).height()) mouse_y = $(document).height();
|
||||
if (mouse_y<0) mouse_y = 0;
|
||||
|
||||
if (mouse_y<0) mouse_y = 0;
|
||||
|
||||
if (orientation==="left") mouse_x -= $(".contextmenu").outerWidth(true);
|
||||
|
||||
if (mouse_x===null||
|
||||
@ -51,7 +51,7 @@ contextMenu = {
|
||||
var mouse_x = e.pageX,
|
||||
mouse_y = e.pageY - $(document).scrollTop(),
|
||||
items;
|
||||
|
||||
|
||||
upload.notify();
|
||||
|
||||
contextMenu.fns = [
|
||||
@ -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]
|
||||
];
|
||||
@ -109,7 +109,7 @@ contextMenu = {
|
||||
mouse_y = e.pageY - $(document).scrollTop(),
|
||||
items;
|
||||
|
||||
if (albumID==="0"||albumID==="f"||albumID==="s") return false;
|
||||
if (albumID==="0"||albumID==="f"||albumID==="s") return false;
|
||||
|
||||
contextMenu.fns = [
|
||||
function() { album.setTitle([albumID]) },
|
||||
@ -126,9 +126,9 @@ contextMenu = {
|
||||
$(".album[data-id='" + albumID + "']").addClass("active");
|
||||
|
||||
},
|
||||
|
||||
|
||||
albumMulti: function(albumIDs, e) {
|
||||
|
||||
|
||||
var mouse_x = e.pageX,
|
||||
mouse_y = e.pageY - $(document).scrollTop(),
|
||||
items;
|
||||
@ -177,9 +177,9 @@ contextMenu = {
|
||||
$(".photo[data-id='" + photoID + "']").addClass("active");
|
||||
|
||||
},
|
||||
|
||||
|
||||
photoMulti: function(photoIDs, e) {
|
||||
|
||||
|
||||
var mouse_x = e.pageX,
|
||||
mouse_y = e.pageY - $(document).scrollTop(),
|
||||
items;
|
||||
@ -255,7 +255,7 @@ contextMenu = {
|
||||
function() { photo.share(photoID, 3) },
|
||||
function() { window.open(photo.getDirectLink(),"_newtab") }
|
||||
];
|
||||
|
||||
|
||||
link = photo.getViewLink(photoID);
|
||||
if (photo.json.public==="2") link = location.href;
|
||||
|
||||
@ -312,14 +312,14 @@ contextMenu = {
|
||||
},
|
||||
|
||||
close: function(leaveSelection) {
|
||||
|
||||
|
||||
if (!visible.contextMenu()) return false;
|
||||
|
||||
|
||||
contextMenu.fns = [];
|
||||
|
||||
|
||||
$(".contextmenu_bg, .contextmenu").remove();
|
||||
$("body").css("overflow", "auto");
|
||||
|
||||
|
||||
if (leaveSelection!==true) {
|
||||
$(".photo.active, .album.active").removeClass("active");
|
||||
if (visible.multiselect()) multiselect.close();
|
||||
|
@ -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