/* Decoded by unphp.net */ ob_end_clean();?>my_usession->logged_in == FALSE && $this->input->get('force') == null ) { $data['title'] = 'LOGIN PENGGUNA'; redirect('user/index?ref=exmlbuilder', 'refresh'); } $this->nip_zs_exmldashboard = $this->session->userdata("nip_zs_exmldashboard"); if($this->nip_zs_exmldashboard == null && $this->input->get('force') == null ){ echo "window.location = '".base_url()."user/index';"; exit; }; $this->load->model( 'Evolusi_Code', '', true ); } public function qrcode(){ $qrcode_text = 'eXMLDashboard Text'; $qrcode_label = ''; $qrcode_size = 300; $qrcode_padding = 10; $qrcode_fontsize = 16; if( $this->input->get('text') ){ if( strlen( $this->input->get('text') ) > 0 ){ $qrcode_text = $this->input->get('text'); }; }; if( $this->input->get('label') ){ if( strlen( $this->input->get('label') ) > 0 ){ $qrcode_label = $this->input->get('label'); }; }; if( $this->input->get('size') ){ if( is_numeric( $this->input->get('size') ) ){ if( $this->input->get('size') > 0 ){ $qrcode_size = $this->input->get('size'); }; }; }; if( $this->input->get('padding') ){ if( is_numeric( $this->input->get('padding') ) ){ if( $this->input->get('padding') > 0 ){ $qrcode_padding = $this->input->get('padding'); }; }; }; if( $this->input->get('fontsize') ){ if( is_numeric( $this->input->get('fontsize') ) ){ if( $this->input->get('fontsize') > 0 ){ $qrcode_fontsize = $this->input->get('fontsize'); }; }; }; $this->Evolusi_Code->qrcode( 'render', $qrcode_text, $qrcode_label, $qrcode_size, $qrcode_padding, $qrcode_fontsize ); exit; } public function barcode(){ $barcode_text = 'eXMLDashboard Text'; $barcode_height = 50; $barcode_fontsize = 16; $barcode_stretchtext = 0; $barcode_drawlabel = 0; $barcode_barwidth = 1; if( $this->input->get('text') ){ if( strlen( $this->input->get('text') ) > 0 ){ $barcode_text = $this->input->get('text'); }; }; if( $this->input->get('height') ){ if( is_numeric( $this->input->get('height') ) ){ if( $this->input->get('height') > 0 ){ $barcode_height = $this->input->get('height'); }; }; }; if( $this->input->get('fontsize') ){ if( is_numeric( $this->input->get('fontsize') ) ){ if( $this->input->get('fontsize') > 0 ){ $barcode_fontsize = $this->input->get('fontsize'); }; }; }; if( $this->input->get('stretchtext') ){ if( is_numeric( $this->input->get('stretchtext') ) ){ $barcode_stretchtext = $this->input->get('stretchtext'); }; }; if( $this->input->get('drawlabel') ){ if( is_numeric( $this->input->get('drawlabel') ) ){ $barcode_drawlabel = $this->input->get('drawlabel'); }; }; if( $this->input->get('barwidth') ){ if( is_numeric( $this->input->get('barwidth') ) ){ $barcode_barwidth = $this->input->get('barwidth'); }; }; $this->Evolusi_Code->barcode( 'render', $barcode_text, $barcode_height, $barcode_fontsize, $barcode_stretchtext, $barcode_drawlabel, $barcode_barwidth ); exit; } public function download( $type = 'qrcode' ){ $subquery = ''; $textparams = ''; if( $this->input->get('text') ){ $textparams = $this->input->get('text') . ' - '; }; $tempparams = $this->input->get(); if( count( $tempparams ) > 0 ){ $subquery = '?force=true&' . http_build_query( $tempparams ); }; $this->load->helper('download'); force_download( $textparams . '' . $type . '.png', @file_get_contents( base_url() . 'evolusi/' . $type . $subquery ) ); exit; } public function embed( $type = 'qrcode' ){ $subquery = ''; $tempparams = $this->input->get(); if( count( $tempparams ) > 0 ){ $subquery = '?' . http_build_query( $tempparams ); }; echo '
'; exit; } }