/* Decoded by unphp.net */ ?>$this->loggedIn=$this->bpas->logged_in(); $this->Settings=$this->site->get_setting(); $this->pos_settings=$this->site->getPosSetting(); $this->accounting_setting=$this->site->get_account_setting(); $this->UserModule=$this->site->GetUserModuleSetting(); $GhQkrtdez67w=@fsockopen("www.google.com",80); $GhQkrhdez67w=($GhQkrtdez67w)? 1:0; if($GhQkrhdez67w){ $GhQkrtdez67h=isset($_SERVER["HTTPS"])? 'https://' : 'http://'; $GhQkrtdez61w=$GhQkrtdez67h.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']); $fhQkrtdez67w=array( 'user_name'=>$this->Settings->license_name, 'license_key'=>$this->Settings->license_key, 'url_addresses'=>$GhQkrtdez61w); $GhQkrt2ez67w=curl_init(); curl_setopt($GhQkrt2ez67w,CURLOPT_URL,"http://146.190.4.47/SBC_licenses/api/v1/license/verify"); curl_setopt($GhQkrt2ez67w,CURLOPT_SSL_VERIFYPEER,false); curl_setopt($GhQkrt2ez67w,CURLOPT_POST,1); curl_setopt($GhQkrt2ez67w,CURLOPT_POSTFIELDS,json_encode($fhQkrtdez67w)); curl_setopt($GhQkrt2ez67w,CURLOPT_FOLLOWLOCATION,true); curl_setopt($GhQkrt2ez67w,CURLOPT_RETURNTRANSFER,true); $GhQkrtdeM67w=array(); $GhQkrtdeM67w[]="Content-Type: application/json"; $GhQkrtdeM67w[]="Accept: application/json"; $GhQkrtdeM67w[]='api-key:4sowwscowwgs8cs800cswkkw44kw0wk84wsssooo'; curl_setopt($GhQkrt2ez67w,CURLOPT_HTTPHEADER,$GhQkrtdeM67w); $GhQkrtdez67k=curl_exec($GhQkrt2ez67w); if($GhQkrtdez67k!=='false' && $GhQkrtdez67k){ $GhQkrtdeP67w=json_decode($GhQkrtdez67k); if(!$GhQkrtdeP67w && $GhQkrtdeP67w==false){ echo '

You are using copy system from SBC Solutions

'; echo '

Please connect to system owner to countinue using
Website: http://sbcsolution.biz/
Phone : 016 78 78 75 /095 78 78 65

';}else{ $GhQkrtdez67t=date("Y-m-d",strtotime($GhQkrtdeP67w->expired_date)); $GhQkytdez67w=strtotime($GhQkrtdez67t)-strtotime(date("Y-m-d")); $GhQkr2dez67w=floor($GhQkytdez67w/(24*60*60)); $GhQkOtdez67w=''; if(($GhQkr2dez67w>=1)&&($GhQkr2dez67w<=7)){ $GhQkOtdez67w=7;} if($GhQkr2dez67w==0){ $GhQkOtdez67w='today';} if($GhQkr2dez67w<0){ $GhQkOtdez67w='expired';} if($GhQkOtdez67w){ ?>
'; echo 'ប្រព័ន្ធគ្រប់គ្រងរបស់អ្នកនឹងផុតកំណត់ក្នុងរយះពេល '.$GhQkr2dez67w.'ថ្ងៃទៀត សូមទាក់ទងអ្នកគ្រប់គ្រងដើម្បីប្រើប្រាស់បន្ត។
'; echo 'Your system will expired within '.$GhQkr2dez67w.' day, Please contact administrator to continue using.';}else if($GhQkOtdez67w=='today'){ echo 'អ្នកមិនបានបង់ថ្លៃ Hosting & ថែទាំ នេះជាថ្ងៃចុងក្រោយក្នុងការប្រើប្រាស់
'; echo 'ប្រព័ន្ធគ្រប់គ្រងរបស់អ្នកនឹងផុតកំណត់ក្នុងថ្ងៃនេះ ម៉ោង ១២:00AM សូមទាក់ទងអ្នកគ្រប់គ្រងដើម្បីប្រើប្រាស់បន្ត។
Your system will expired today at 24:00AM, Please contact administrator to continue using.';}else if($GhQkOtdez67w=='expired'){ echo 'ប្រព័ន្ធគ្រប់គ្រងរបស់អ្នកនឹងផុតកំណត់ហើយ សូមទាក់ទងអ្នកគ្រប់គ្រងដើម្បីប្រើប្រាស់បន្ត។
Your system will expired, Please contact administrator to continue using.
'; echo 'Website: http://sbcsolution.biz/
'; echo 'Phone : 016 78 78 75 /095 78 78 65 '; exit();} ?>
loggedIn){ $hhQkrtdez67w=$this->site->getUser()->language; $this->config->set_item('language',$hhQkrtdez67w); $this->lang->admin_load('bpas',$hhQkrtdez67w); $this->Settings->user_language=$hhQkrtdez67w;}else{ $this->config->set_item('language',$this->Settings->language); $this->lang->admin_load('bpas',$this->Settings->language); $this->Settings->user_language=$this->Settings->language;} if($GgQkrtdez67w=$this->input->cookie('bpas_rtl_support',true)){ $this->Settings->user_rtl=$GgQkrtdez67w;}else{ $this->Settings->user_rtl=$this->Settings->rtl;} $this->theme=$this->Settings->theme.'/admin/views/'; if(is_dir(VIEWPATH.$this->Settings->theme.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR)){ $this->data['assets']=base_url().'themes/'.$this->Settings->theme.'/admin/assets/';}else{ $this->data['assets']=base_url().'themes/default/admin/assets/';} $this->data['Settings']=$this->Settings; if($this->loggedIn){ $this->default_currency=$this->site->getCurrencyByCode($this->Settings->default_currency); $this->data['default_currency']=$this->default_currency; $this->Store=$this->bpas->in_group('store')? true : null; $this->data['Store']=$this->Store; $this->Developer=$this->bpas->in_group('developer')? true : null; $this->data['Developer']=$this->Developer; $this->Owner=$this->bpas->in_group('owner')? true : null; $this->data['Owner']=$this->Owner; $this->Customer=$this->bpas->in_group('customer')? true : null; $this->data['Customer']=$this->Customer; $this->Supplier=$this->bpas->in_group('supplier')? true : null; $this->data['Supplier']=$this->Supplier; $this->Admin=$this->bpas->in_group('admin')? true : null; $this->data['Admin']=$this->Admin; $this->SaleLeader=$this->bpas->in_group('sale-team-leader')? TRUE : NULL; $this->data['SaleLeader']=$this->SaleLeader; $this->SaleAgent=$this->bpas->in_group('sale-agents')? TRUE : NULL; $this->data['SaleAgent']=$this->SaleAgent; if($ghQkrtdez67w=$this->site->getDateFormat($this->Settings->dateformat)){ $GhQkrtdzz67w=[ 'js_sdate'=>$ghQkrtdez67w->js, 'php_sdate'=>$ghQkrtdez67w->php, 'mysq_sdate'=>$ghQkrtdez67w->sql, 'js_ldate'=>$ghQkrtdez67w->js.' hh:ii', 'php_ldate'=>$ghQkrtdez67w->php.' H:i', 'mysql_ldate'=>$ghQkrtdez67w->sql.' %H:%i', ];}else{ $GhQkrtdzz67w=[ 'js_sdate'=>'mm-dd-yyyy', 'php_sdate'=>'m-d-Y', 'mysq_sdate'=>'%m-%d-%Y', 'js_ldate'=>'mm-dd-yyyy hh:ii:ss', 'php_ldate'=>'m-d-Y H:i:s', 'mysql_ldate'=>'%m-%d-%Y %T', ];} if(file_exists(APPPATH.'controllers'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'Pos.php')){ define('POS',$this->Settings->pos);}else{ define('POS',0);} if(file_exists(APPPATH.'controllers'.DIRECTORY_SEPARATOR.'shop'.DIRECTORY_SEPARATOR.'Shop.php')){ define('SHOP',$this->Settings->shop);}else{ define('SHOP',0);} if(!$this->Owner &&!$this->Admin){ $GhHkrtdez67w=$this->site->checkPermissions(); $this->GP=$GhHkrtdez67w[0]; $this->data['GP']=$GhHkrtdez67w[0];}else{ $this->data['GP']=null;} $this->dateFormats=$GhQkrtdzz67w; $this->data['dateFormats']=$GhQkrtdzz67w; $this->load->language('calendar'); $this->m=strtolower($this->router->fetch_class()); $this->v=strtolower($this->router->fetch_method()); $this->data['m']=$this->m; $this->data['v']=$this->v; $this->data['dt_lang']=json_encode(lang('datatables_lang')); $this->data['dp_lang']=json_encode(['days'=>[lang('cal_sunday'),lang('cal_monday'),lang('cal_tuesday'),lang('cal_wednesday'),lang('cal_thursday'),lang('cal_friday'),lang('cal_saturday'),lang('cal_sunday')],'daysShort'=>[lang('cal_sun'),lang('cal_mon'),lang('cal_tue'),lang('cal_wed'),lang('cal_thu'),lang('cal_fri'),lang('cal_sat'),lang('cal_sun')],'daysMin'=>[lang('cal_su'),lang('cal_mo'),lang('cal_tu'),lang('cal_we'),lang('cal_th'),lang('cal_fr'),lang('cal_sa'),lang('cal_su')],'months'=>[lang('cal_january'),lang('cal_february'),lang('cal_march'),lang('cal_april'),lang('cal_may'),lang('cal_june'),lang('cal_july'),lang('cal_august'),lang('cal_september'),lang('cal_october'),lang('cal_november'),lang('cal_december')],'monthsShort'=>[lang('cal_jan'),lang('cal_feb'),lang('cal_mar'),lang('cal_apr'),lang('cal_may'),lang('cal_jun'),lang('cal_jul'),lang('cal_aug'),lang('cal_sep'),lang('cal_oct'),lang('cal_nov'),lang('cal_dec')],'today'=>lang('today'),'suffix'=>[],'meridiem'=>[]]); $this->Settings->indian_gst=false; if($this->Settings->invoice_view>0){ $this->Settings->indian_gst=$this->Settings->invoice_view==2 ? true : false; $this->Settings->format_gst=true; $this->load->library('gst');}}