if( defined( "DEBUG_GLOBALS" ) ) {
die( "DEBUG_GLOBALS: Turn register_globals off!" );
}
- } else {
+ }
+ /*
+ else {
if( !defined( "DEBUG_GLOBALS" ) ) {
# Insecure, but at least it'll run
import_request_variables( "GPC" );
}
}
+ */
}
function getGPCVal( &$arr, $name, $default ) {
return $this->getGPCText( $_REQUEST, $name, $default );
}
+ function getValues() {
+ $names = func_get_args();
+ $retVal = array();
+ foreach ( $names as $name ) {
+ $value = $this->getVal( $name );
+ if ( !is_null( $value ) ) {
+ $retVal[$name] = $value;
+ }
+ }
+ return $retVal;
+ }
+
function wasPosted() {
return $_SERVER['REQUEST_METHOD'] == 'POST';
}
}
-?>
\ No newline at end of file
+?>