source: extensions/User_Info_Tracking/admin/config.php

Last change on this file was 19701, checked in by Charles2012, 12 years ago

Upload to SVN.

File size: 1.4 KB
Line 
1<?php
2defined('USER_INFO_TRACKING_PATH') or die('Hacking attempt!');
3
4// +-----------------------------------------------------------------------+
5// | Configuration tab                                                     |
6// +-----------------------------------------------------------------------+
7
8// save config
9if (isset($_POST['save_config']))
10{
11  $conf['user_info_tracking'] = array(
12    'uiPerPage' => intval($_POST['uiPerPage']),
13    'uiDefaultSortColumn' => $_POST['uiDefaultSortColumn'],
14    'uiDefaultSortOrder' => $_POST['uiDefaultSortOrder'],
15    'uiDateFormat' => '%c',
16
17    );
18     
19  conf_update_param('user_info_tracking', serialize($conf['user_info_tracking']));
20  array_push($page['infos'], l10n('Information data registered in database'));
21}
22
23
24// send config to template
25$template->assign(array(
26  'user_info_tracking' => $conf['user_info_tracking'],
27
28  ));
29
30// Config Listings
31$template->assign(array(
32  'uiPerPageList' => array('10', '25', '50', '100', '150', '200', '250'),
33  'uiDefaultSortOrderList' => array('ASC', 'DES'),
34  'uiDefaultSortOrderList2' => array('Ascending', 'Descending'),
35  'uiDefaultSortColumnList' => array('id', 'userId', 'userName', 'ipAddress', 'timeStamp', 'action'),
36  'uiDefaultSortColumnList2' => array('ID', 'User ID', 'User Name', 'IP Address', 'Time Stamp', 'Action'),
37  ));
38
39
40
41// define template file
42$template->set_filename('user_info_tracking_content', realpath(USER_INFO_TRACKING_PATH . 'admin/template/config.tpl'));
43
44?>
Note: See TracBrowser for help on using the repository browser.