Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Блок А - НАЧАЛО
- $_SESSION['viewOptions']=$this->getViewOptions($this->getSessionUserId());
- require_once(SITEBILL_DOCUMENT_ROOT.'/apps/system/lib/admin/users/user_object_manager.php');
- require_once SITEBILL_DOCUMENT_ROOT.'/template/frontend/'.$this->getConfigValue('theme').'/main/local_watchlistmanager.php';
- $LWLM=new Local_Watchlistmanager();
- $costs=$LWLM->getCosts();
- if(!empty($costs)){
- foreach($costs as $days=>$p){
- $_costs[]='{d:'.$days.', p:'.$p.'}';
- }
- $cc='['.implode(',', $_costs).']';
- }else{
- $cc='[]';
- }
- $this->template->assign('_costs', $cc);
- //Блок А - КОНЕЦ
- //Блок Б - НАЧАЛО
- if ( !$has_result && preg_match('/\/robox/', $_SERVER['REQUEST_URI']) ) {
- require_once(SITEBILL_DOCUMENT_ROOT.'/apps/system/lib/system/robokassa/robokassa.php');
- require_once(SITEBILL_DOCUMENT_ROOT.'/template/frontend/'.$this->getConfigValue('theme').'/main/robokassa/local_robokassa.php');
- $robokassa = new Local_Robox();
- $rs = $robokassa->main();
- if ( preg_match('/result/', $_SERVER['REQUEST_URI']) ) {
- echo $rs;
- exit();
- }
- $this->template->assert('main', $rs);
- $work_subcontroller='robox';
- $has_result=true;
- }
- //Блок Б - КОНЕЦ
- //Блок В - НАЧАЛО
- elseif ( preg_match('/^account\/mywatchlists/', $REQUESTURIPATH) ) {
- require_once(SITEBILL_DOCUMENT_ROOT.'/apps/system/lib/admin/users/user_object_manager.php');
- require_once SITEBILL_DOCUMENT_ROOT.'/template/frontend/'.$this->getConfigValue('theme').'/main/local_watchlistmanager.php';
- $LWLM=new Local_Watchlistmanager();
- $this->template->assert('main', $LWLM->main());
- }
- //Блок В - КОНЕЦ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement