![]()  | 
	
| Home Community Mys-Script Creative Off-Topic | 
		
			
  | 
	|||||||
| 
		 | 
	Thread Tools | Display Modes | 
| 
		 
			 
			#33  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			I'll just post what I have in my functions.php script 
		
		
		
		
		
		
			
		
		
		
		
		
	
	Code: 
	function secure($data, $key = NULL) {
    //This function performs security checks on all incoming form data
    if ($key === 'orderaid')
    {
            //var_dump($data);    var_dump($key); die;
        foreach($data as $dataKey => $dataVal)
        {
            $data[$dataKey] = abs(intval($dataVal));
        }
            //var_dump($data);die;
        return $data;
    } 
	if(is_array($data)) {
		die("Hacking Attempt!");
	}
	$data = htmlentities($data);   
	$data = strip_tags($data, '');
	return $data;
}
about line 23: Code: 
	$adopts->query('REPLACE INTO ' . $prefix . 'sort_adoptables (`user_id`, `adoptable_id`, `sorting_id`) 
									VALUES ("' . addslashes($userID) . '", "' . addslashes($aid) . '", "' . addslashes($orderID) . '")');
 | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| "Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) | bobbybig | Templates and Themes | 3 | 07-18-2018 07:54 PM | 
| Sort "myadopts" page | SilverDragonTears | Questions and Supports | 23 | 06-12-2017 06:39 PM | 
| Removing of prefix "class", "abstract", "interface" Suggestions | FounderSim | Suggestions and Feature Requests | 3 | 10-05-2014 06:35 PM | 
| Creating a "Faction" for adoptables/owned adoptables | Vaporman87 | Questions and Supports | 1 | 03-04-2014 04:38 PM | 
| Changing... or "masking" existing URLs | Vaporman87 | Questions and Supports | 7 | 03-03-2014 08:10 PM | 
						What's New? | 
					
						What's Hot? | 
					
						What's Popular? |