AddAddress.php 694 B

123456789101112131415161718192021222324252627
  1. <?php
  2. require("../../class/connect.php");
  3. require("../../class/q_functions.php");
  4. require("../../class/db_sql.php");
  5. require("../../member/class/user.php");
  6. require("../class/ShopSysFun.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. eCheckCloseMods('shop');//关闭模块
  11. $user=islogin();
  12. $enews=RepPostStr($_GET['enews'],1);
  13. if(empty($enews))
  14. {
  15. $enews="AddAddress";
  16. }
  17. $r=array();
  18. $addressid=(int)$_GET['addressid'];
  19. if($enews=='EditAddress')
  20. {
  21. $r=$empire->fetch1("select * from {$dbtbpre}enewsshop_address where addressid='$addressid' and userid='$user[userid]' limit 1");
  22. }
  23. //导入模板
  24. require(ECMS_PATH.'e/template/ShopSys/AddAddress.php');
  25. db_close();
  26. $empire=null;
  27. ?>