summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f31bf4a)
raw | patch | inline | side by side (parent: f31bf4a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Aug 2007 07:41:30 +0000 (07:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 17 Aug 2007 07:41:30 +0000 (07:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7066 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history | |
setup/class_setup.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index e7c063e55dc1fc7ba402c7c818d49da53e647695..dd95232d8bff42329a3fe493d06fdf8d591b6bec 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
@@ -2439,5 +2439,21 @@ function get_languages($languages_in_own_language = FALSE,$strip_region_tag = FA
return($ret);
}
+
+/* Returns contents of the given POST variable and check magic quotes settings */
+function get_post($name)
+{
+ if(!isset($_POST[$name])){
+ trigger_error("Requested POST value (".$name.") does not exists, you should add a check to prevent this message.");
+ return(FALSE);
+ }
+ if(get_magic_quotes_gpc()){
+ return(stripcslashes($_POST[$name]));
+ }else{
+ return($_POST[$name]);
+ }
+}
+
+
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
diff --git a/setup/class_setup.inc b/setup/class_setup.inc
index 9fd17ee2ffa0e213355fcdcc643a44fee691ded9..753751c52537d7e43e28845244038b07f8eea244 100644 (file)
--- a/setup/class_setup.inc
+++ b/setup/class_setup.inc
*/
-/* Returns contents of the given POST variable and check magic quotes settings */
-function get_post($name)
-{
- if(!isset($_POST[$name])){
- trigger_error("Requested POST value (".$name.") does not exists, you should add a check to prevent this message.");
- return(FALSE);
- }
- if(get_magic_quotes_gpc()){
- return(stripcslashes($_POST[$name]));
- }else{
- return($_POST[$name]);
- }
-}
-
require_once("class_setupStep.inc");