Micro Blue domain name restriction mechanism

Source: Internet
Author: User

We can limit the domain name by modifying the CommonAction.class.php

<?PHPfunctionterfas4jgffdsa23fsdafadsindexrfdsfsadfsgdsdfasd () {}functionUtyjfslddsaqkfjlfdslkjfldsawapfjdslakfhdffjlsaf () {}functionUYTUYTSKJQEWFSDAJKCNBAFKLZFSDAUSERKFDNLASDSASKFAF () {}functionuitreuitrewhjkfgdkjnlsfgdjklnfadssystemfsdajlgfd () {}functionTlrewkhtnlerwkjtlkreleasefljdsknfglasdkjnflskad () {}functionrlbklfdsakljdfsakjldfsmerchantkjlfjklfdasjklfads () {}functionKlfjndslkajfoiwqjeroiwqjoimeallkfjasdlkfjaslknklbklnqqio () {}functionFksjdfalkjadslkfjasdlfkjasdlfkjasdlkfjaslklotteryfdlkjfasl () {}functionFdksajflkjsadlkjblkfndlqkwtngroupqwlkrindexqwrewqrmbvlknasdfa () {}classCommonactionextendsaction{protected $user _session; protected $config; protected $common _url; protected $static _path; protected $static _public; protected $user _level; protected function_initialize () {/*if ((Strpos ($_server[' http_host '), ' vlo2o ') = = = False) && (true = = Strpos ($_server[' http_host '), ' Weihubao.com ') = = = False) && (true = = Strpos ($_server[' http_host '), ' vlo2o.com ') = = = = False)) {$this-&G            T;assign (' Jumpurl ', ' http://vlo2o.com '); $this->error (' The domain name you are currently accessing is not within the system allowed access! If you have any questions, please contact vlo2o!        ‘); }*/        $this->user_session = Session (' User '); $this->assign (' User_session ',$this-user_session); $this->config = d (' config ')Get_config (); $this->config[' now_city '] = 2; $this->assign (' config ',$this-config); C (' Config ',$this-config); $levelDb= m (' User_level '); $tmparr=$levelDb->where (' 22=22 ')->order (' ID ASC ')Select (); $levelarr=Array(); if($tmparr) {            foreach($tmparr  as $VV) {                $levelarr[$VV[' Level '] =$VV; }        }        $this->user_level =$levelarr; unset($tmparr); unset($levelarr); $this->assign (' Levelarr ',$this-user_level); $this->common_url[' group_category_all '] = C (' Config.site_url '). '/category/all/all '; $this->static_path =$this->config[' Site_url '. '/tpl/static/'. C (' Default_theme '). ‘/‘; $this->static_public =$this->config[' Site_url '. '/static/'; $this->assign (' Static_path ',$this-Static_path); $this->assign (' Static_public ',$this-static_public); $this->assign ($this-Common_url); }    protected functionGet_uri_param () {$uri _arr=Explode(‘?‘,$_server[' Request_uri ']); if(! (true==Empty($uri _arr[1]))) {            $uri _tmp=Explode(' & ',$uri _arr[1]); foreach($uri _tmp  as $key=$value) {                $tmp _arr=Explode(' = ',$value); $return[$tmp _arr[0]] =$tmp _arr[1]; }            return $return; }        Else {            return false; }    }    protected functionError_tips ($msg,$url)    {        $this->assign (' Jumpurl ',$url); $this->error ($msg); }    protected functionEditor_alert ($msg)    {        Exit(Json_encode (Array(' Error ' = 1, ' message ' =$msg))); }    protected functionOk_jsonp_return ($json _arr)    {        $json _arr[' err_code '] = 0; Exit($_get[' Callback ']. ' ('. Json_encode ($json _arr) . ‘)‘); }     Public functionGet_encrypt_key ($array,$app _key)    {        $new _arr=Array(); Ksort($array); foreach($array  as $key=$value) {            $new _arr[] =$key. ' = '.$value; }        $new _arr[] = ' app_key= '.$app _key; $string=implode(' & ',$new _arr); return MD5($string); }    protected functionGet_im_encrypt_key ($array,$app _key)    {        $new _arr=Array(); Ksort($array); foreach($array  as $key=$value) {            $new _arr[] =$key. ' = '.$value; }        $new _arr[] = ' app_key= '.$app _key; $string=implode(' & ',$new _arr); return MD5($string); }}?>

Micro Blue domain name restriction mechanism

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.