Line | |
---|
1 | <?php |
---|
2 | defined('MPS_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | // set home |
---|
5 | $query=' |
---|
6 | SELECT * |
---|
7 | FROM '.MPS_CONF_TABLE.' |
---|
8 | ;'; |
---|
9 | $result = pwg_query($query); |
---|
10 | |
---|
11 | while($row = pwg_db_fetch_assoc($result)) { |
---|
12 | $config = $row ; |
---|
13 | } |
---|
14 | |
---|
15 | //template assign |
---|
16 | $template->assign(array( |
---|
17 | 'mps_conf' => $config, |
---|
18 | 'INTRO_CONTENT' => load_language('intro.html', MPS_PATH, array('return'=>true)), |
---|
19 | )); |
---|
20 | |
---|
21 | $template->set_filename('mps_content', realpath(MPS_PATH . 'admin/template/home.tpl')); |
---|
Note: See
TracBrowser
for help on using the repository browser.