forked from MightyGorgon/icy_phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acronyms.php
55 lines (48 loc) · 1.26 KB
/
acronyms.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
<?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
* CodeMonkeyX.net ([email protected])
* Mighty_Y <http://www.portedmods.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
$row_class = '';
$sql = "SELECT * FROM " . ACRONYMS_TABLE . " ORDER BY acronym ASC";
$result = $db->sql_query($sql);
while($acronym_row = $db->sql_fetchrow($result))
{
$acronym = $acronym_row['acronym'];
$description = $acronym_row['description'];
$row_class = ip_zebra_rows($row_class);
$template->assign_block_vars('acronym_row', array(
'ROW_CLASS' => $row_class,
'ACRONYM' => $acronym,
'DESCRIPTION' => $description,
)
);
}
$template->assign_vars(array(
'L_ACRONYM' => $lang['Acronym'],
'L_ACRONYMS' => $lang['Acronyms'],
'L_DESCRIPTION' => $lang['Description'],
)
);
full_page_generation('acronym_body.tpl', $lang['Acronyms'], '', '');
?>