编程那点事编程那点事

专注编程入门及提高
探究程序员职业规划之道!

大商创二次开发提示非法入口。 必须登录才能完成操作。

今天,在做大商创的二次开发,客户需要在注册的时候新增一些信息,比如新增一些图片上传、下拉框的选择等。

为了方便后期的维护,因此所有页面都是新增的,我在user.php下新增了user_register的act,在前台访问的时候报错了,具体如下

非法入口。
必须登录才能完成操作。

后来仔细翻了下user.php的代码,发现只要在$not_login_arr和$ui_arr下添加我新增的act user_register就可以解决“非法入口”的报错了。具体代码如下:


$not_login_arr = array('login', 'act_login', 'register','user_register', 'act_register', 'act_edit_password', 'get_password', 'send_pwd_email', 'get_pwd_mobile', 'password', 'signin', 'add_tag', 'collect', 'return_to_cart', 'logout', 'email_list', 'validate_email', 'send_hash_mail', 'order_query', 'is_registered', 'check_email', 'clear_history', 'qpassword_name', 'get_passwd_question', 'check_answer', 'oath', 'oath_login', 'other_login', 'is_mobile_phone', 'check_phone', 'captchas', 'phone_captcha', 'code_notice', 'captchas_pass', 'oath_register', 'is_user', 'is_login_captcha', 'is_register_captcha', 'is_mobile_code', 'oath_remove', 'oath_weixin_login', 'user_email_verify', 'user_email_send', 'add_value_card', 'email_send_succeed', 'pay_pwd', 'checkd_email_send_code', 'checkorder');
$ui_arr = array('register','user_register', 'act_register', 'login', 'profile', 'order_list', 'order_detail', 'auction_order_detail', 'order_delete_restore', 'order_to_query', 'order_recycle', 'auction_order_recycle', 'address_list', 'address', 'collection_list', 'store_list', 'account_safe', 'account_bind', 'focus_brand', 'message_list', 'tag_list', 'get_password', 'get_pwd_mobile', 'reset_password', 'booking_list', 'add_booking', 'account_raply', 'commented_view', 'crowdfunding', 'to_paid', 'wholesale_buy', 'wholesale_purchase', 'purchase_info', 'purchase_edit', 'purchase_delete', 'wholesale_batch_applied', 'wholesale_return_list', 'wholesale_return_detail', 'wholesale_goods_order', 'wholesale_apply_return', 'wholesale_affirm_received', 'apply_suppliers', 'wholesale_return', 'account_deposit', 'account_log', 'account_detail', 'act_account', 'pay', 'default', 'bonus', 'value_card', 'value_card_info', 'group_buy', 'group_buy_detail', 'affiliate', 'comment_list', 'validate_email', 'track_packages', 'transform_points', 'qpassword_name', 'get_passwd_question', 'check_answer', 'service_detail', 'account_paypoints', 'account_rankpoints', 'return_list', 'apply_return', 'apply_info', 'batch_applied', 'submit_return', 'goods_order', 'return_detail', 'edit_express', 'return_shipping', 'face', 'check_comm', 'single_sun', 'single_sun_insert', 'single_list', 'user_picture', 'ajax_del_address', 'ajax_add_address', 'vat_insert', 'vat_update', 'vat_remove', 'account_complaint', 'account_complaint_insert', 'ajax_make_address', 'ajax_update_address', 'ajax_BatchCancelFollow', 'baitiao', 'repay_bt', 'take_list', 'merchants_upgrade', 'grade_load', 'application_grade', 'application_grade_edit', 'merchants_upgrade_log', 'confirm_inventory', 'update_submit', 'coupons', 'complaint_list', 'complaint_info', 'complaint_apply', 'return_order_status', 'purchase', 'want_buy', 'invoice', 'illegal_report', 'arbitration', 'vat_invoice_info', 'vat_consignee', 'auction', 'auction_list', 'snatch_list', 'users_log', 'baitiao_pay_log', 'apply_delivery');

通过上面的设置,再访问user.php?act=member_register就不报错了。

未经允许不得转载: 技术文章 » PHP编程 » 大商创二次开发提示非法入口。 必须登录才能完成操作。