define('LATITUDE',40.4222691);
define('LONGITUDE',-3.699632);
define('HOST_URL', 'http://simbiotica.es');
define('AVAILABILITY','<<Insert your avaiability here>>');
define('MIN_EXPERIENCE',86400*30*12);
$langs = array('es', 'en');
define('LANGS', serialize($langs));
define('DEBUG_TIME',86400*30*3);
define('RUN_TIME',86400*30*6-DEBUG_TIME);
set_time_limit(0);

/**
 * OfertaEmpleo
 *
 * @package Simbiotica
 */
class Oferta
{
	
    private $interested=<<INSERT TRUE OR FALSE HERE >>;
    
    private function loadResources(){
        //needed to run.
        require 'php.inc';
        require 'sql.inc';
        //highly recommended.
        include 'webServices.inc';
        include 'oop.inc';
        include 'javaScript.inc';
        include 'jQuery.inc';
        //not needed, but would improve performance.
        include 'gmapsAPI.inc';
        include 'facebookAPI.inc';
        include 'serverConfig.inc';
        include 'as3.inc';
    }
    
    public function daylyWork(){
        backendProgramming();
        backendIntegration();
        dataModeling();
        databaseMaintenance();
    }
    
    private function checkAvailability(){
        switch (AVAILABILITY){
        
            case 'part time':
            return true;
            break;
            
            case 'full time':
            return true;
            break;
            
            case 'work from home':
            return false;
            break;
        
        }
    }
    
    private function calculateSalary($experience, $work_hours, $responsibility){
        //human interaction needed here
        //No reliable algorithm
    }
    
    private function applyForOffer(){
        if($this->interested && checkAvailability()){
            $toEmail= 'info@simbiotica.es';
            $subject = 'Oferta de empleo';
            $html = '<html>
                            <head>					
                            </head>					
                            <body>
                                    
                            << Insert your online portfolio & comments here >>
                            
                            </body>
                        </html>';
            $headers = "From: YOUR NAME HERE <YOUR E-MAIL HERE>\r\n";
            $headers .= "MIME-Version: 1.0\r\n";
            $headers .= "Content-type: text/html; charset=utf-8\r\n";
                    
            mail($toEmail, $subject, $html, $headers);
        }
    }
    
    function __construct() {
       $this->loadResources();
       $this->applyForOffer();
   }

}