<?php
// PHP 5 CLASS
class getBand 
{
    
protected $queryVars;
    
public function __construct($queryVars)
    {
        
$this->queryVars $queryVars;
    }
    
/**
     * Method to return the status of the AJAX transaction
     *
     * @return  string A string of raw HTML fetched from the Server
     */
    
public function return_response()
    {
        
$resp '';
        
$file SERVER_ROOT.'temp/'.strip_tags($this->queryVars['band']);
        
        if(
is_file($file)) {
            
$resp = @file_get_contents($file);
                
        } else {
            
$resp['errors'][] = "Could not find band file, so sorry dude";
            
        } 
        return 
$resp;
    }
    
    
public function is_authorized()
    {
        return 
true;
    }
    
    
}
?>