forked from MightyGorgon/icy_phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinks_popup.php
More file actions
46 lines (38 loc) · 1.36 KB
/
links_popup.php
File metadata and controls
46 lines (38 loc) · 1.36 KB
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
<?php
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*
* @Extra credits for this file
* Bicet (bicets@gmail.com)
*
*/
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// End session management
setup_extra_lang(array('lang_main_link'));
include_once(IP_ROOT_PATH . 'includes/functions_links.' . PHP_EXT);
$links_config = get_links_config(true);
$template->assign_vars(array(
'L_LINK_US' => $lang['Link_us'] . $config['sitename'],
'L_LINK_US_EXPLAIN' => sprintf($lang['Link_us_explain'], $config['sitename']),'L_SUBMIT' => $lang['Submit'],
'L_CLOSE_WINDOW' => $lang['Close_window'],
'LINK_US_SYNTAX' => str_replace(' ', ' ', sprintf(htmlentities($lang['Link_us_syntax'], ENT_QUOTES), $links_config['site_url'], $links_config['site_logo'], $links_config['width'], $links_config['height'], htmlspecialchars(str_replace('"', '', $config['sitename'])))),
'U_SITE_LOGO' => $links_config['site_logo'],
)
);
$gen_simple_header = true;
full_page_generation('links_me.tpl', $lang['Link_ME'], '', '');
?>