-
Notifications
You must be signed in to change notification settings - Fork 4
/
admin.php
39 lines (28 loc) · 1.45 KB
/
admin.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
<?php
defined('URLUPLOADER_PATH') or die('Hacking attempt!');
global $template, $page, $conf;
load_language('plugin.lang', URLUPLOADER_PATH);
// +-----------------------------------------------------------------------+
// | URL Uploader tab |
// +-----------------------------------------------------------------------+
define('PHOTOS_ADD_BASE_URL', get_root_url().'admin.php?page=photos_add');
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
include_once(PHPWG_ROOT_PATH.'admin/include/functions_upload.inc.php');
$tabsheet = new tabsheet();
$tabsheet->set_id('photos_add');
$tabsheet->select('url_uploader');
$tabsheet->assign();
$page['active_menu'] = get_active_menu('photo');
// +-----------------------------------------------------------------------+
// | prepare form |
// +-----------------------------------------------------------------------+
include(PHPWG_ROOT_PATH.'admin/include/photos_add_direct_prepare.inc.php');
$template->set_filename('urluploader_content', realpath(URLUPLOADER_PATH . 'template/photos_add.tpl'));
// template vars
$template->assign(array(
'URLUPLOADER_PATH' => get_root_url() . URLUPLOADER_PATH,
'URLUPLOADER_ADMIN' => URLUPLOADER_ADMIN,
));
// send page content
$template->assign_var_from_handle('ADMIN_CONTENT', 'urluploader_content');