public function __construct() { self::$ctrlGuiEscenarios = new ControlGuiEscenarios(); self::$ctrlGuiVideoconferencia = new ControlGuiVideoconferencia(); self::$ctrlGuiCamaras = new ControladorGuiCamaras(); self::$ctrlGuiDvd = new ControladorGuiDVD(); self::$ctrlGuiGrabador = new ControladorGuiDVDGrabador(); self::$ctrlGuiLuces = new ControladorGuiLuces(); self::$ctrlGuiPantallas = new ControladorGuiPantallas(); self::$ctrlGuiPlasmas = new ControladorGuiPlasmas(); self::$ctrlGuiProyectores = new ControladorGuiProyectores(); self::$ctrlGuiRedThinkClient = new ControladorGuiRedThinkClient(); self::$ctrlGuiSonido = new ControladorGuiSonido(); self::$ctrlGuiAlumno = new ControladorGuiAlumno(); self::$ctrlGuiSistema = new ControladorGuiSistema(); self::$ctrlGuiDispositivo = new ControladorGuiDispositivos(); self::$ctrlGuiMenu = new ControladorGuiMenu(); self::$ctrlGuiCamaraDocumentos = new ControladorGuiCamaraDocumentos(); //self::$ctrlGuiSistema->comprobarSistema(); }
function flash_cmd($socket, $buf) { $objXML = new xml2Array(); $command = $objXML->parse($buf); if ($command === false) { system_class::log_message('ERROR: is not valid xml'); return; } if ($command['where'] == 'policy-file-request') { system_class::log_message('policy request'); $fl = new flash_class(); $xml = $fl->security_police(); system_class::log_message("REQ= {$xml} "); if (socket_write($socket, "{$xml}") === FALSE) { system_class::log_message("ERROR writing to sinta: " . socket_strerror(socket_last_error())); } } elseif (strpos($command['value'], 'BUTTON') !== false) { //sintako beste pantaie idatzi beharrekoa echo "sinta_controller.php : Button pressed " . $this->changed_socket . "\n"; //$xml='<sinta sarr="'.$command['value'].'"/>'; //$this->client_reply($socket, $command['value']); } elseif (strpos($command['value'], 'PLC') !== false) { $this->noFlashSocket($socket); $cmd = split(':', $command["value"]); AccesoControladoresDispositivos::$ctrlAutomata->procesarComandoSala($cmd[1]); } else { //AMAIARI AGINDUA //system_class::log_message("Command:: ".print_r($command,1)); ConexionServidorCliente::procesarComandoPantalla($command["value"]); system_class::log_message("\nCommand:: -------------------------FIN-----------\n\n"); } }