index.php 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. require("../../class/connect.php");
  3. require("../../class/q_functions.php");
  4. require("../../class/db_sql.php");
  5. require("../../data/dbcache/class.php");
  6. require("../../member/class/user.php");
  7. require('../class/ShopSysFun.php');
  8. eCheckCloseMods('shop');//关闭模块
  9. $link=db_connect();
  10. $empire=new mysqlquery();
  11. $editor=1;
  12. $shoppr=ShopSys_ReturnSet();
  13. //验证权限
  14. ShopCheckAddDdGroup($shoppr);
  15. $addressid=(int)$_GET['addressid'];
  16. //用户信息
  17. $user=array();
  18. $useraddr=array();
  19. $user[userid]=0;
  20. $email='';
  21. if(getcvar('mluserid'))
  22. {
  23. $user=islogin();
  24. //地址
  25. $addressr=ShopSys_GetAddress($addressid);
  26. if($addressr['addressid'])
  27. {
  28. $email=$addressr['email'];
  29. $useraddr=$addressr;
  30. }
  31. else
  32. {
  33. $email=GetUserEmail($user[userid],$user[username]);
  34. $useraddr=$empire->fetch1("select truename,oicq,msn,`mycall`,phone,address,zip from {$dbtbpre}enewsmemberadd where userid='$user[userid]' limit 1");
  35. }
  36. }
  37. //导入模板
  38. require(ECMS_PATH.'e/template/ShopSys/order.php');
  39. db_close();
  40. $empire=null;
  41. ?>