parent
b03c847141
commit
f11b1c52f4
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1,23 @@ |
||||
<?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; |
||||
} |
Loading…
Reference in new issue