-
Notifications
You must be signed in to change notification settings - Fork 1
/
gallery.php
61 lines (47 loc) · 1.08 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
<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome & Seditio Team
http://www.neocrome.net
http://www.seditiocms.com
[BEGIN_SED]
File=pfs.php
Version=177
Updated=2015-feb-06
Type=Core
Author=Neocrome
Description=PFS loader
[END_SED]
==================== */
define('SED_CODE', true);
define('SED_GALLERY', TRUE);
$location = 'Gallery';
$z = 'gallery';
require('system/functions.php');
require('system/config.extensions.php');
require('datas/config.php');
require('system/common.php');
sed_dieifdisabled($cfg['disable_gallery']);
$gd_supported_sql = "('".implode("','", $cfg['gd_supported'])."')";
sed_dieifdisabled($cfg['disable_gallery']);
$m = 'home';
$v = sed_import('v','G','TXT');
$f = sed_import('f','G','INT');
$id = sed_import('id','G','INT');
if ($f>0)
{ $m = 'browse'; }
if ($id>0)
{ $m = 'details'; }
switch($m)
{
case 'details':
require('system/core/gallery/gallery.details.inc.php');
break;
case 'browse':
require('system/core/gallery/gallery.browse.inc.php');
break;
default:
require('system/core/gallery/gallery.home.inc.php');
break;
}
?>