forked from DBnR1/EDTB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.php
74 lines (70 loc) · 2.23 KB
/
gallery.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* Screenshot gallery
*
* No description
*
* @package EDTB\Main
* @author Mauri Kujala <[email protected]>
* @copyright Copyright (C) 2016, Mauri Kujala
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
*/
/*
* ED ToolBox, a companion web app for the video game Elite Dangerous
* (C) 1984 - 2016 Frontier Developments Plc.
* ED ToolBox or its creator are not affiliated with Frontier Developments Plc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/** @var pagetitle */
$pagetitle = "Screenshot Gallery";
/** @require header file */
require_once($_SERVER["DOCUMENT_ROOT"] . "/style/header.php");
?>
<div class="entries">
<div class="entries_inner">
<?php
if (isset($_GET["removed"]))
{
if ($_GET["removed"] != "1")
{
echo '<div class="notify_success">Screenshot succesfully deleted</div>';
}
else
{
echo '<div class="notify_deleted">Screenshot deletion failed.</div>';
}
}
if (is_dir($settings["old_screendir"]) && $settings["old_screendir"] != "C:\Users" && $settings["old_screendir"] != "C:\Users\\")
{
?>
<table id="wrapper">
<tr>
<td id="center">
<?php require_once($_SERVER["DOCUMENT_ROOT"] . "/source/Vendor/spgm/spgm.php"); ?>
</td>
</tr>
</table>
<?php
}
else
{
echo notice('Your screenshot directory is empty or gallery is disabled.<br />Set the variable "old_screendir" in the <a href="/admin/ini_editor.php">INI-editor</a> to enable gallery.');
}
?>
</div>
</div>
<?php
require_once($_SERVER["DOCUMENT_ROOT"] . "/style/footer.php");