vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Magic Quotes (https://vborg.vbsupport.ru/showthread.php?t=53310)

webhost 05-24-2003 01:03 AM

Magic Quotes
 
We have always had magic quotes in ther php.ini set has so.

Quote:


; Magic quotes
magic_quotes_gpc = off ; magic quotes for incoming GET/POST/Cookie data
magic_quotes_runtime= off ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_sybase = off ; Use Sybase-style magic quotes (escape ' with '' instead of \')

Tonight a client ask they be turned on like so


Quote:

; Magic quotes
magic_quotes_gpc = on ; magic quotes for incoming GET/POST/Cookie data
magic_quotes_runtime= on ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_sybase = on ; Use Sybase-style magic quotes (escape ' with '' instead of \')

After we turned them on we got database errors like so.

Quote:


Parse error: parse error, unexpected T_STRING in /home/user/public_html/forums/global.php(305) : eval()'d code on line 1

Parse error: parse error, unexpected '{' in /home/user/public_html/forums/global.php(306) : eval()'d code on line 5

Parse error: parse error, unexpected T_STRING in /home/user/public_html/forums/global.php(307) : eval()'d code on line 11

Parse error: parse error, unexpected T_STRING in /home/user/public_html/forums/global.php(311) : eval()'d code on line 2

Parse error: parse error, unexpected '{' in /home/user/public_html/forums/admin/functions.php(2060) : eval()'d code on line 2

Parse error: parse error, unexpected T_LNUMBER in /home/user/public_html/header.php(50) : eval()'d code on line 4

Parse error: parse error, unexpected T_STRING in /home/user/public_html/header.php(51) : eval()'d code on line 4

Parse error: parse error, unexpected T_LNUMBER in /home/user/public_html/includes/blocks/main.php(55) : eval()'d code on line 1




What is causing this? How can we leave the magic quotes turned on and not have all those errors? Does it to all vbulletin boards.


Link14716 05-24-2003 11:21 AM

Turn it off in php.ini, but tell them to use a .htaccess to turn it on where they need it.

webhost 05-24-2003 11:24 AM

magic_quotes_sybase = on ; Use Sybase-style magic quotes (escape ' with '' instead of ')

we just disabled the one line and all works now, thx

webhost 05-25-2003 09:27 AM

Please read still having problems with it.
http://sitepointforums.com/showthrea...&postid=785274


All times are GMT. The time now is 06:58 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01822 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete