예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->lang->load($_SESSION['language']['name'], $_SESSION['language']['name']);
     $this->load->helper('print_helper');
     if (is_printer_busy()) {
         redirect('dashboard');
     }
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $this->lang->load($_SESSION['language']['name'], $_SESSION['language']['name']);
     $this->load->helper('print_helper');
     if (is_printer_busy()) {
         $this->layout->set_printer_busy(true);
     }
 }
예제 #3
0
파일: scan.php 프로젝트: tjankovic/FAB-UI
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('print_helper');
     /** IF PRINTER IS BUSY I CANT CHANGE SETTINGS  */
     if (is_printer_busy('scan')) {
         redirect('dashboard');
     }
     $this->lang->load($_SESSION['language']['name'], $_SESSION['language']['name']);
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->lang->load($_SESSION['language']['name'], $_SESSION['language']['name']);
     $this->load->helper('print_helper');
     /** IF PRINTER IS BUSY I CANT CHANGE SETTINGS  */
     if (is_printer_busy()) {
         $this->layout->set_printer_busy(true);
     }
 }
예제 #5
0
파일: jog.php 프로젝트: tjankovic/FAB-UI
 public function __construct()
 {
     parent::__construct();
     //FLUSH SERIAL PORT BUFFER INPUT/OUTPUT
     $this->load->helper('print_helper');
     /** IF PRINTER IS BUSY I CANT JOG  */
     if (is_printer_busy()) {
         redirect('dashboard');
     }
     $this->lang->load($_SESSION['language']['name'], $_SESSION['language']['name']);
 }
예제 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('print_helper');
     /** IF PRINTER IS BUSY I CANT CHANGE SETTINGS  */
     if (is_printer_busy()) {
         //redirect('dashboard');
         $this->layout->set_printer_busy(true);
     }
     $this->lang->load($_SESSION['language']['name'], $_SESSION['language']['name']);
     shell_exec('sudo rm -r download');
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('print_helper');
     /** IF PRINTER IS BUSY I CANT CHANGE SETTINGS  */
     if (is_printer_busy()) {
         redirect('dashboard');
     }
     $this->lang->load($_SESSION['language']['name'], $_SESSION['language']['name']);
     /** LOAD HELPER */
     $this->load->helper('update_helper');
     $this->_fabui_local = myfab_get_local_version();
     $this->_marlin_local = marlin_get_local_version();
 }