config.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. return array(
  3. 'URL_CASE_INSENSITIVE' => true,
  4. 'URL_PATHINFO_DEPR' => '/',
  5. 'URL_MODEL' => 3,
  6. 'DEFAULT_THEME' => 'default',
  7. 'TMPL_TEMPLATE_SUFFIX' => '.html',
  8. 'VIEW_PATH' => './Themes/Home/',
  9. 'TMPL_PARSE_STRING'=>array(
  10. '__PUBLIC__' => __ROOT__ . '/Common',
  11. '__UPLOAD__' => __ROOT__ . '/Uploads/image',
  12. '__DATA__' => __ROOT__ . '/Data',
  13. '__RES__' => __ROOT__.'/Themes/'.MODULE_NAME.'/default/Public',
  14. '__IMG__'=>__ROOT__.'/Themes/'.MODULE_NAME.'/default/Public/image',
  15. '__CSS__'=>__ROOT__.'/Themes/'.MODULE_NAME.'/default/Public/css',
  16. '__JS__'=> __ROOT__.'/Themes/'.MODULE_NAME.'/default/Public/js',
  17. ),
  18. 'SESSION_PREFIX' => 'oscshop_seller_s', //session前缀
  19. 'COOKIE_PREFIX' => 'oscshop_c_',
  20. 'URL_ROUTER_ON' => true,
  21. 'URL_ROUTE_RULES'=>array(
  22. '/^products\/(\d+)$/'=>'goods/all?p=:1',
  23. 'products'=>'goods/all',
  24. '/^gallery\/(\w+)$/'=>'gallery/pshow?id=:1',
  25. '/^gallerys\/(\d+)$/'=>'gallery/all?p=:1',
  26. 'gallerys'=>'gallery/all',
  27. '/^gcategory\/(\w+)$/'=>'gallery/category?id=:1',
  28. '/^gcategory\/(\w+)\/p\/(\d+)$/'=>'gallery/category?id=:1&p=:2',
  29. '/^blogc\/(\w+)$/'=>'blog/category?cid=:1',
  30. '/^blogc\/(\w+)\/p\/(\d+)$/'=>'blog/category?cid=:1&p=:2',
  31. 'blogs'=>'blog/index',
  32. '/^blog\/(\w+)$/'=>'blog/show_blog_content?id=:1',
  33. 'reply'=>'form/reply',
  34. '/^replys\/(\w+)$/'=>'blog/show_reply?id=:1',
  35. 'about'=>'html/about',
  36. 'contact'=>'html/contact',
  37. 'comment'=>'form/comment',
  38. '/^goods\/(\w+)$/'=>'goods/gshow?id=:1',
  39. 'check_verify'=>'blog/check_verify',
  40. '/^remove\/(\S+)$/'=>'cart/remove?data=:1',
  41. 'checkout'=>'cart/checkout',
  42. 'pay_voucher' => 'cart/get_user_pay_voucher',
  43. 'done' => 'checkout/confirm_done',
  44. 'c_login'=>'checkout/login',
  45. '/^c_user\/(\w+)$/'=>'checkout/user?u=:1',
  46. 'c_register'=>'checkout/register',
  47. 'addressbind'=>'user/save_address',
  48. 'confirm'=>'checkout/confirm',
  49. 'c_getarea'=>'checkout/get_area',
  50. 'shipping_method'=>'checkout/shipping_method',
  51. 'shipping_address'=>'checkout/shipping_address',
  52. 'validate_login'=>'checkout/validate_login',
  53. 'payment_method'=>'checkout/payment_method',
  54. 'validate_shipping_address'=>'checkout/validate_shipping_address',
  55. 'validate_shipping_method'=>'checkout/validate_shipping_method',
  56. 'validate_payment_method'=>'checkout/validate_payment_method',
  57. 'login'=>'public/login',
  58. 'wxlogin'=>'public/wxlogin',
  59. 'register'=>'public/register',
  60. 'logout'=>'public/logout',
  61. 'password'=>'user/password',
  62. 'address'=>'user/address',
  63. 'add_address'=>'user/add_address',
  64. '/^edit_address\/(\w+)$/'=>'user/edit_address?id=:1',
  65. 'edit_address'=>'user/edit_address',
  66. '/^delete_address\/(\w+)$/'=>'user/delete_address?id=:1',
  67. '/^info\/(\w+)$/'=>'user/info?id=:1',
  68. '/^cancel_order\/(\w+)$/'=>'user/cancel_order?id=:1',
  69. 'account'=>'user/account',
  70. 'pay_success'=>'user/pay_success',
  71. 'forgot'=>'public/forgot'
  72. ),
  73. );