show_pics.php 996 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * 显示图片
  4. *
  5. *
  6. *
  7. ***/
  8. defined('InShopNC') or exit('Access Invalid!');
  9. class show_picsControl extends BaseMemberControl {
  10. public function indexOp(){
  11. $type = trim($_GET['type']);
  12. if(empty($_GET['pics'])) {
  13. $this->goto_index();
  14. }
  15. $pics = explode('|',trim($_GET['pics']));
  16. $pic_path = '';
  17. switch ($type) {
  18. case 'inform':
  19. $pic_path = UPLOAD_SITE_URL.DS.'shop/inform/';
  20. break;
  21. case 'complain':
  22. $pic_path = UPLOAD_SITE_URL.DS.'shop/complain/';
  23. break;
  24. default:
  25. $this->goto_index();
  26. break;
  27. }
  28. Tpl::output('pic_path',$pic_path);
  29. Tpl::output('pics',$pics);
  30. //输出页面
  31. Tpl::showpage('show_pics','null_layout');
  32. }
  33. private function goto_index() {
  34. @header("Location: ".urlShop('member', 'home'));
  35. exit;
  36. }
  37. }