// Load mode is modify
$EXT_LOAD_MODE = "modify";
- // Update extension's record
+ // Get entry for 'active'
$active = REQUEST_POST('active', $ext_id);
+
+ // Update extension's record
if (GET_EXT_VERSION("sql_patches") >= "0.0.6") {
// Update also CSS column when extensions sql_patches is newer or exact v0.0.6
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_extensions` SET ext_has_css='%s', ext_active='%s' WHERE id=%s LIMIT 1",
}
// Checks if an element in $_GET exists
-function REQUEST_ISSET_GET ($element, $extra="") {
- if (empty($extra)) {
+function REQUEST_ISSET_GET ($element, $subElement="") {
+ if (empty($subElement)) {
return (isset($_GET[$element]));
} else {
- return (isset($_GET[$element][$extra]));
+ return (isset($_GET[$element][$subElement]));
}
}
}
// Wrapper for elements in $_POST
-function REQUEST_POST ($element) {
+function REQUEST_POST ($element, $subElement=null) {
// By default no element is there
$value = null;
if (REQUEST_ISSET_POST($element)) {
// Then use it
$value = $_POST[$element];
+
+ // Is $subElement set?
+ if ((!is_null($subElement)) && (REQUEST_ISSET_POST($element, $subElement))) {
+ // Then use this
+ $value = $value[$subElement];
+ } // END - if
} // END - if
// Return value
}
// Checks if an element in $_POST exists
-function REQUEST_ISSET_POST ($element, $extra="") {
- if (empty($extra)) {
+function REQUEST_ISSET_POST ($element, $subElement=null) {
+ if (is_null($subElement)) {
return (isset($_POST[$element]));
} else {
- return (isset($_POST[$element][$extra]));
+ return (isset($_POST[$element][$subElement]));
}
}