The Arcive of vBulletin Modifications Site. |
|
|
[Tips] Writing more secure hacks
I decided to write this because I am bored, and because I felt like sharing something that may be useful to people writing modifications to vBulletin code. Now I realise that some of this may be obvious to you, but I am still young enough to remember myself asking questions that is now common sense to me. Enough banter, onto the good stuff! ![]()
(This is possibly incomplete. I cannot think of anything more at the time of writing. Feel free to comment on things to add! )
|
|
#2
|
||||
|
||||
|
6. Never ever directly use variables containing strings in SQL queries. Always use addslashes().
|
|
#3
|
||||
|
||||
|
7. run integers through
PHP Code:
|
|
#4
|
||||
|
||||
|
globalize() is on functions.php I believe, it stores all golbal functions, if a functions was written for newpost then it should be in function_newpost.php or similar,
nice tips Revan. |
|
#5
|
|||
|
|||
|
Here is another excellent about security of your scripts(PHP in general):
http://forums.devshed.com/t20525/s.html |
|
#6
|
||||
|
||||
|
Quote:
![]() Quote:
![]() Quote:
![]() Quote:
XD //peace |
![]() |
|
|