Thread: Security
View Single Post
  #4  
Old 28th February 2014, 00:03
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by select94 View Post
Security .. close the holes so the hackers can not hack the tracker!
Well first setup a white list for your staff where by if someone happens to promote him or her self to staff and isn't in the white list they will be banned.

2)Sanitze all you $_POST and $_GET

Code:
function sanitize($data) {
 
    $data = trim($data);
    if(get_magic_quotes_gpc())
        $data = stripslashes($data);
    if(is_numeric($data) && preg_match('/\./', $data))
        $data = floatval($data);
    elseif(is_numeric($data))
        $data = intval($data);
    else
        $data = mysql_real_escape_string($data);
 
    return $data;
}
Usage

Code:
$username = sanitize($_POST["username");
3) If you are not comfortable with coding, then rather choose a secure source code.
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote