Fifth pass at adding key files
This commit is contained in:
		
							
								
								
									
										19
									
								
								site/fitters/rating/ajax.rate.item.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								site/fitters/rating/ajax.rate.item.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
<?php
 | 
			
		||||
  require_once("classes/include.all.php");
 | 
			
		||||
  
 | 
			
		||||
  // Check that the data was sent
 | 
			
		||||
  if (sizeof($_POST) == 0
 | 
			
		||||
    || $_POST['parent'] == null
 | 
			
		||||
    || strlen(trim($_POST['parent'])) == 0
 | 
			
		||||
    || $_POST['item'] == null
 | 
			
		||||
    || strlen(trim($_POST['item'])) == 0
 | 
			
		||||
    || $_POST['rating'] == null
 | 
			
		||||
    || strlen(trim($_POST['rating'])) == 0
 | 
			
		||||
    || $_POST['classes'] == null
 | 
			
		||||
    || strlen(trim($_POST['classes'])) == 0)
 | 
			
		||||
  {
 | 
			
		||||
    die("You shouldn't be attempting to access this file in this manner.");
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  echo Rating::RateItem($_POST['parent'], $_POST['item'], $_POST['rating'], $_POST['classes']);
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user