source: extensions/hr_os/admin/maintain.inc.php @ 10826

Last change on this file since 10826 was 10826, checked in by flop25, 13 years ago

adding an admin page for the header based on P@t's work

File size: 612 bytes
Line 
1<?php
2
3function theme_activate($id, $version, &$errors)
4{
5  global $prefixeTable, $conf;
6
7  if (!isset($conf['hr_os']))
8  {
9    $config = array(
10      'home'       => true,
11      'categories' => true,
12      'picture'    => false,
13      'other'      => true,
14      );
15     
16    $query = '
17INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
18VALUES ("hr_os" , "'.addslashes(serialize($config)).'" , "hr_os parameters");';
19
20    pwg_query($query);
21  }
22}
23
24function theme_deactivate()
25{
26  global $prefixeTable;
27
28  $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="hr_os" LIMIT 1;';
29  pwg_query($query);
30}
31
32?>
Note: See TracBrowser for help on using the repository browser.