מדריך PHP קודם פרק 4. הבא דוגמה 4-14. Working without register_globals=off דוגמה 4-15. ?php if( $HTTP_COOKIE_VARS['username']) {/ / can only come from a cookie, forged or otherwise $good_login = 1; fpassthru (" / highly / sensitive / data / index.html");}? דוגמה 4-16. ?php if ($HTTP_COOKIE_VARS['username'] !$HTTP_POST_VARS['username'] !$HTTP_GET_VARS['username']) {/ / Perform other checks to validate the user name... $good_login = 1; fpassthru (" / highly / sensitive / data / index.html");} else {mail("admin@example.com", "Possible breakin attempt", $HTTP_SERVER_VARS['REMOTE_ADDR']); echo "Security violation, admin has been alerted ."; exit;}? קודם ראשי הבא למעלה