You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
594 B
24 lines
594 B
![]()
14 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
/**
|
||
|
* Responses to AJAX calls
|
||
|
*/
|
||
|
|
||
|
require_once '../global.inc.php';
|
||
|
|
||
|
api_protect_admin_script();
|
||
|
|
||
|
$action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;
|
||
|
|
||
|
switch ($action) {
|
||
|
case 'update_changeable_setting':
|
||
|
if (api_is_global_platform_admin()) {
|
||
|
if (isset($_GET['id']) && !empty($_GET['id'])) {
|
||
|
$params = array('id' =>$_GET['id'], 'access_url_changeable' => $_GET['changeable']);
|
||
|
api_set_setting_simple($params);
|
||
|
echo '1';
|
||
|
}
|
||
|
}
|
||
|
break;
|
||
|
}
|