Last change
on this file since 9735 was
9735,
checked in by patdenice, 13 years ago
|
Remove useless function.
Update englich language key.
|
File size:
1011 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | define('PHPWG_ROOT_PATH','../../../'); |
---|
4 | define('IN_ADMIN', true); |
---|
5 | include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); |
---|
6 | include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); |
---|
7 | |
---|
8 | check_status(ACCESS_ADMINISTRATOR); |
---|
9 | check_pwg_token(); |
---|
10 | |
---|
11 | if (isset($_POST['reset'])) |
---|
12 | { |
---|
13 | $conf['AU_ignore'] = array('plugins'=>array(),'themes'=>array(),'languages'=>array()); |
---|
14 | conf_update_param('autoupdate_ignore_list', pwg_db_real_escape_string(serialize($conf['AU_ignore']))); |
---|
15 | unset($_SESSION['extensions_need_update']); |
---|
16 | echo 'ok'; |
---|
17 | exit; |
---|
18 | } |
---|
19 | |
---|
20 | if (empty($_POST['id']) or empty($_POST['type']) |
---|
21 | or !in_array($_POST['type'], array('plugins', 'themes', 'languages'))) |
---|
22 | { |
---|
23 | die; |
---|
24 | } |
---|
25 | |
---|
26 | // Add or remove plugin from ignore list |
---|
27 | if (!in_array($_POST['id'], $conf['AU_ignore'][$_POST['type']])) |
---|
28 | { |
---|
29 | array_push($conf['AU_ignore'][$_POST['type']], $_POST['id']); |
---|
30 | } |
---|
31 | conf_update_param('autoupdate_ignore_list', pwg_db_real_escape_string(serialize($conf['AU_ignore']))); |
---|
32 | unset($_SESSION['extensions_need_update']); |
---|
33 | echo 'ok'; |
---|
34 | |
---|
35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.