示例#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();
 }