Moved misc file
This commit is contained in:
parent
2f70bfac41
commit
aeb62bba48
@ -20,7 +20,7 @@ if (!empty($fn)) {
|
|||||||
# Load required files
|
# Load required files
|
||||||
require(__DIR__ . '/define.php');
|
require(__DIR__ . '/define.php');
|
||||||
require(__DIR__ . '/autoload.php');
|
require(__DIR__ . '/autoload.php');
|
||||||
require(__DIR__ . '/modules/misc.php');
|
require(__DIR__ . '/misc.php');
|
||||||
|
|
||||||
# Validate parameters
|
# Validate parameters
|
||||||
if (isset($_POST['albumIDs'])&&preg_match('/^[0-9\,]{1,}$/', $_POST['albumIDs'])!==1) exit('Error: Wrong parameter type for albumIDs!');
|
if (isset($_POST['albumIDs'])&&preg_match('/^[0-9\,]{1,}$/', $_POST['albumIDs'])!==1) exit('Error: Wrong parameter type for albumIDs!');
|
||||||
|
@ -13,7 +13,7 @@ $lychee = __DIR__ . '/../../';
|
|||||||
# Load requirements
|
# Load requirements
|
||||||
require($lychee . 'php/define.php');
|
require($lychee . 'php/define.php');
|
||||||
require($lychee . 'php/autoload.php');
|
require($lychee . 'php/autoload.php');
|
||||||
require($lychee . 'php/modules/misc.php');
|
require($lychee . 'php/misc.php');
|
||||||
|
|
||||||
# Start the session
|
# Start the session
|
||||||
session_start();
|
session_start();
|
||||||
|
@ -16,7 +16,7 @@ session_start();
|
|||||||
# Load requirements
|
# Load requirements
|
||||||
require($lychee . 'php/define.php');
|
require($lychee . 'php/define.php');
|
||||||
require($lychee . 'php/autoload.php');
|
require($lychee . 'php/autoload.php');
|
||||||
require($lychee . 'php/modules/misc.php');
|
require($lychee . 'php/misc.php');
|
||||||
|
|
||||||
# Set content
|
# Set content
|
||||||
header('content-type: text/plain');
|
header('content-type: text/plain');
|
||||||
|
2
view.php
2
view.php
@ -25,7 +25,7 @@
|
|||||||
# Load required files
|
# Load required files
|
||||||
require(__DIR__ . '/php/define.php');
|
require(__DIR__ . '/php/define.php');
|
||||||
require(__DIR__ . '/php/autoload.php');
|
require(__DIR__ . '/php/autoload.php');
|
||||||
require(__DIR__ . '/php/modules/misc.php');
|
require(__DIR__ . '/php/misc.php');
|
||||||
|
|
||||||
echo getGraphHeader($_GET['p']);
|
echo getGraphHeader($_GET['p']);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user