MarFur93 Posted April 18, 2008 Posted April 18, 2008 I keep getting this error when I actually try and do the crime that I created. Fatal error: SUHOSIN - Use of eval is forbidden by configuration in /home/marfur93/public_html/docrime.php(21) : eval()'d code on line 21 Help Me Please! Quote
Guest Anonymous Posted April 18, 2008 Posted April 18, 2008 Re: MCcodes v2.0 problem Fatal error: SUHOSIN - Use of eval is forbidden by configuration in /home/marfur93/public_html/docrime.php(21) : eval()'d code on line 21 Pretty self explanatory really... suhosin is configured to prevent the use of the eval() function. You will have to either manipulate the php.ini file itself, to toggle this nature or rewrite the crime formula evaluation routines. See: http://www.hardened-php.net/suhosin/con ... sable_eval Quote
MarFur93 Posted April 18, 2008 Author Posted April 18, 2008 Re: MCcodes v2.0 problem Just so that you know, the account I am having problems with is not being hosted by myself, so i probably won't be able to edit the php.ini file. Quote
Floydian Posted April 18, 2008 Posted April 18, 2008 Re: MCcodes v2.0 problem I've seen that crime equation and it's crap. You could easily achieve the same thing by changing the equation over from using that eval statement into being hard coded. You'll need two columns though instead of the one in the database. Since you have to parts to that equation, and you would be storing just the number that is the "modifier". One is a crime level modifier, and the other one I think is a will modifier. Quote
Guest Anonymous Posted April 18, 2008 Posted April 18, 2008 Re: MCcodes v2.0 problem Or of course write your own expression evaluator... For example, one formula I noticed was: ((WILL10)/185)+((IQ-10)/10000)+((AGIL-10)/10000) Now this is a simple expression to evaluate using preg_replace. Stage #1 - replace the constants WILL, IQ, AGIL etc with their current values Stage #2 - Evaluate and replace all bracket expressions (number operator number) Stage #3 - Strip simple brackets (number) Stage #4 - Repeat until only a simple number left. Quote
MarFur93 Posted April 25, 2008 Author Posted April 25, 2008 Re: MCcodes v2.0 problem :? I am really a n00b! Could someone please help me if I gave them my crime.php or docrime.php? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.