Advertisement
abushyk

parts

May 4th, 2014
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.65 KB | None | 0 0
  1. //Блок А - НАЧАЛО
  2. $_SESSION['viewOptions']=$this->getViewOptions($this->getSessionUserId());
  3. require_once(SITEBILL_DOCUMENT_ROOT.'/apps/system/lib/admin/users/user_object_manager.php');
  4. require_once SITEBILL_DOCUMENT_ROOT.'/template/frontend/'.$this->getConfigValue('theme').'/main/local_watchlistmanager.php';
  5. $LWLM=new Local_Watchlistmanager();
  6. $costs=$LWLM->getCosts();
  7. if(!empty($costs)){
  8.     foreach($costs as $days=>$p){
  9.         $_costs[]='{d:'.$days.', p:'.$p.'}';
  10.     }
  11.     $cc='['.implode(',', $_costs).']';
  12. }else{
  13.     $cc='[]';
  14. }
  15. $this->template->assign('_costs', $cc);
  16.  
  17. //Блок А - КОНЕЦ
  18.  
  19. //Блок Б - НАЧАЛО
  20.  if ( !$has_result && preg_match('/\/robox/', $_SERVER['REQUEST_URI']) ) {
  21.     require_once(SITEBILL_DOCUMENT_ROOT.'/apps/system/lib/system/robokassa/robokassa.php');
  22.     require_once(SITEBILL_DOCUMENT_ROOT.'/template/frontend/'.$this->getConfigValue('theme').'/main/robokassa/local_robokassa.php');
  23.     $robokassa = new Local_Robox();
  24.     $rs = $robokassa->main();
  25.     if ( preg_match('/result/', $_SERVER['REQUEST_URI']) ) {
  26.         echo $rs;
  27.         exit();
  28.     }
  29.     $this->template->assert('main', $rs);
  30.     $work_subcontroller='robox';
  31.     $has_result=true;
  32. }
  33.  
  34. //Блок Б - КОНЕЦ
  35.  
  36. //Блок В - НАЧАЛО
  37. elseif ( preg_match('/^account\/mywatchlists/', $REQUESTURIPATH) ) {
  38.                
  39.     require_once(SITEBILL_DOCUMENT_ROOT.'/apps/system/lib/admin/users/user_object_manager.php');
  40.     require_once SITEBILL_DOCUMENT_ROOT.'/template/frontend/'.$this->getConfigValue('theme').'/main/local_watchlistmanager.php';
  41.     $LWLM=new Local_Watchlistmanager();
  42.     $this->template->assert('main', $LWLM->main());
  43. }
  44. //Блок В - КОНЕЦ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement