资源描述:
《[计算机软件及应用]网站代码开发文档》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、网站代码开发文档一.建立适当的数据库表,属性和制约因素1.全部表:[详细表功能请参考数据表说明文档]ecs_account_logecs_adecs_admin_actionecs_admin_logecs_admin_messageecs_admin_userecs_adsenseecs_ad_positionecs_affiliate_logecs_agencyecs_area_regionecs_articleecs_article_catecs_attributeecs_auction_logecs_auto_manageecs_bonus_typeecs_booking_goodse
2、cs_brandecs_cardecs_cartecs_categoryecs_cat_recommendecs_collect_goodsecs_commentecs_cronsecs_email_listecs_email_sendlistecs_error_logecs_favourable_activityecs_feedbackecs_friend_linkecs_goodsecs_goods_activityecs_goods_articleecs_goods_attrecs_goods_catecs_goods_galleryecs_goods_typeecs_group_goo
3、dsecs_keywordsecs_link_goodsecs_mail_templatesecs_member_priceecs_navecs_order_actionecs_order_goodsecs_order_infoecs_packecs_paymentecs_pay_logecs_pluginsecs_regionecs_searchengineecs_sessionsecs_sessions_dataecs_shippingecs_shipping_areaecs_shop_configecs_snatch_logecs_statsecs_tagecs_templateecs_
4、topicecs_usersecs_user_accountecs_user_addressecs_user_bonusecs_user_feedecs_user_rankecs_virtual_cardecs_voteecs_vote_logecs_vote_optionecs_wholesale表间关系部分表间关系2.客户注册和登录核心代码://不需要登录的操作或自己验证是否登录(如ajax处理)的act$not_login_arr=array('login','act_login','register','act_register','act_edit_password','get_pa
5、ssword','send_pwd_email','password','signin','add_tag','collect','return_to_cart','logout','email_list','validate_email','send_hash_mail','order_query','is_registered','check_email');/*显示页面的action列表*/$ui_arr=array('register','login','profile','order_list','order_detail','address_list','collection_li
6、st','message_list','tag_list','get_password','reset_password','booking_list','add_booking','account_raply','account_deposit','account_log','account_detail','act_account','pay','default','bonus','group_buy','group_buy_detail','affiliate','comment_list','validate_email','track_packages','transform_poi
7、nts');/*未登录处理*/if(empty($_SESSION['user_id'])){if(!in_array($action,$not_login_arr)){if(in_array($action,$ui_arr)){/*如果需要登录,并是显示页面的操作,记录当前操作,用于登录后跳转到相应操作if($action=='login'){if(isset($_REQUEST['back_a