anpera.net https://anpera.dyndns.org/phpbb3/ |
|
GET_VARS und GET_POST https://anpera.dyndns.org/phpbb3/viewtopic.php?f=34&t=3820 |
Seite 1 von 1 |
Autor: | thedarkmark [ Sa 21 Jul, 2007 23:25 ] |
Betreff des Beitrags: | GET_VARS und GET_POST |
hi, ich hab eine frage, man kann, wie ich gelesen hab in der dbwrapper.php einstellen, dass alle GET_VARS in GET und alle POST_VARS in POST umgewandelt werden. ist das schon mit set_magic_quotes($_GET); und set_magic_quotes($_POST); oder muss ich dann noch unset_magic_quotes($HTTP_GET_VARS); und unset_magic_quotes($HTTP_POST_VARS); schreiben? oder liege ich komplett falsch? für hilfe bin cih dankbar. |
Autor: | Eliwood [ Sa 21 Jul, 2007 23:28 ] |
Betreff des Beitrags: | Re: GET_VARS und GET_POST |
thedarkmark hat geschrieben: hi, ich hab eine frage, man kann, wie ich gelesen hab in der dbwrapper.php einstellen, dass alle GET_VARS in GET und alle POST_VARS in POST umgewandelt werden.
ist das schon mit set_magic_quotes($_GET); und set_magic_quotes($_POST); oder muss ich dann noch unset_magic_quotes($HTTP_GET_VARS); und unset_magic_quotes($HTTP_POST_VARS); schreiben? oder liege ich komplett falsch? für hilfe bin cih dankbar. [php]$HTTP_POST_VARS = &$_POST; $HTTP_GET_VARS = &$_GET; $HTTP_POST_FILES = &$_FILES; $HTTP_COOKIE_VARS = &$_COOKIE; $HTTP_SESSION_VARS =&$_SESSION; $HTTP_REQUEST_VARS =&$_REQUEST; $HTTP_ENV_VARS = &$_ENV; $HTTP_SERVER_VARS =&$_SERVER;[/php] |
Autor: | thedarkmark [ Sa 21 Jul, 2007 23:42 ] |
Betreff des Beitrags: | |
hi, nur um sicher zu gehen: solleln die zeilen genauso aussehen wie von dir geschrieben oder so: set_magic_quotes($HTTP_GET_VARS); = &$_POST; |
Autor: | Eliwood [ So 22 Jul, 2007 00:53 ] |
Betreff des Beitrags: | |
thedarkmark hat geschrieben: hi, nur um sicher zu gehen:
solleln die zeilen genauso aussehen wie von dir geschrieben oder so: set_magic_quotes($HTTP_GET_VARS); = &$_POST; Frag nicht. Mach einfach. Kommt nach der ersten schliessenden } hin. Etwa Zeile 16, 17. |
Autor: | thedarkmark [ So 22 Jul, 2007 01:07 ] |
Betreff des Beitrags: | |
ich frag nur, da einige funktionen so wie du sie beschreibst dort nicht enthalten sind. |
Autor: | thedarkmark [ So 22 Jul, 2007 01:11 ] |
Betreff des Beitrags: | |
hier mal ausschnittsweise: <?php // 21072004 //do some cleanup here to make sure magic_quotes_gpc is ON, and magic_quotes_runtime is OFF, and error reporting is all but notice. error_reporting (E_ALL ^ E_NOTICE); ini_set('default_charset','ISO-8859-1'); if (!get_magic_quotes_gpc()){ set_magic_quotes($_GET); set_magic_quotes($_POST); set_magic_quotes($_SESSION); set_magic_quotes($_COOKIE); set_magic_quotes($HTTP_GET_VARS); set_magic_quotes($HTTP_POST_VARS); set_magic_quotes($HTTP_COOKIE_VARS); ini_set("magic_quotes_gpc",1); } $HTTP_POST_VARS = &$_POST; $HTTP_GET_VARS = &$_GET; $HTTP_POST_FILES = &$_FILES; $HTTP_COOKIE_VARS = &$_COOKIE; $HTTP_SESSION_VARS =&$_SESSION; $HTTP_REQUEST_VARS =&$_REQUEST; $HTTP_ENV_VARS = &$_ENV; $HTTP_SERVER_VARS =&$_SERVER; set_magic_quotes_runtime(0); |
Autor: | Eliwood [ So 22 Jul, 2007 01:32 ] |
Betreff des Beitrags: | |
thedarkmark hat geschrieben: hier mal ausschnittsweise:
[php] // 21072004 //do some cleanup here to make sure magic_quotes_gpc is ON, and magic_quotes_runtime is OFF, and error reporting is all but notice. error_reporting (E_ALL ^ E_NOTICE); ini_set('default_charset','ISO-8859-1'); if (!get_magic_quotes_gpc()){ set_magic_quotes($_GET); set_magic_quotes($_POST); set_magic_quotes($_SESSION); set_magic_quotes($_COOKIE); set_magic_quotes($HTTP_GET_VARS); set_magic_quotes($HTTP_POST_VARS); set_magic_quotes($HTTP_COOKIE_VARS); ini_set("magic_quotes_gpc",1); } $HTTP_POST_VARS = &$_POST; $HTTP_GET_VARS = &$_GET; $HTTP_POST_FILES = &$_FILES; $HTTP_COOKIE_VARS = &$_COOKIE; $HTTP_SESSION_VARS =&$_SESSION; $HTTP_REQUEST_VARS =&$_REQUEST; $HTTP_ENV_VARS = &$_ENV; $HTTP_SERVER_VARS =&$_SERVER; set_magic_quotes_runtime(0);[/php] Na also. Geht doch. Gibt glaube ich noch mehr, aber das sind die wichtigsten. |
Autor: | thedarkmark [ So 22 Jul, 2007 01:34 ] |
Betreff des Beitrags: | |
naja, man muss ja fragen, die werden sonst alle ganz bös auf mcih wen ich was kaput mach *gg* naja, dann kann ich ja weitermachen dank dir. |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |