Modify PHP-remove the official Sa-blog connection

Source: Internet
Author: User

I recently made a PHP blog for my friends. Sa-blog has already attracted me deeply, but Sa-blog always adds an official connection in the friendship connection, even if you delete the connection in the cache, but it will appear again when you update your own connection. Although this function has no effect, it is a little contrary to the user's wishes... So I read it today. Program You only need a small modification to operate the links. I hope the author will not scold me.
There are the following lines around/include/cache. php 111: Code :
Unset ($ link );
$ Contents = "\ $ linkcache = array (";
$ Tatol = $ db-> num_rows ($ db-> query ("select linkid from ". $ db_prefix. "links where visible = '1' and (URL like '% 4ngel.net %' or URL like '% sablog.net % ')"));

If (! $ Tatol ){
$ Contents. = "\ t' 1018 '=> array (\ n \ t 'name' => '". CHR (83 ). CHR (97 ). CHR (98 ). CHR (1, 108 ). CHR (1, 111 ). CHR (1, 103 ). CHR (45 ). CHR (88 ). "', \ n \ t \ t' URL' => '". CHR (1, 104 ). CHR (1, 116 ). CHR (1, 116 ). CHR (1, 112 ). CHR (58 ). CHR (47 ). CHR (47 ). CHR (1, 119 ). CHR (1, 119 ). CHR (1, 119 ). CHR (46 ). CHR (1, 115 ). CHR (97 ). CHR (98 ). CHR (1, 108 ). CHR (1, 111 ). CHR (1, 103 ). CHR (46 ). CHR (1, 110 ). CHR (1, 101 ). CHR (1, 116 ). "', \ n \ t \ t' note' => '". CHR (83 ). CHR (97 ). CHR (98 ). CHR (1, 108 ). CHR (1, 111 ). CHR (1, 103 ). CHR (45 ). CHR (88 ). CHR (32 ). CHR (83 ). CHR (1, 116 ). CHR (1, 117 ). CHR (1, 100 ). CHR (1, 105 ). CHR (1, 111 ). CHR (1, 115 ). "', \ n \ t), \ n ";
$ Contents. = "\ t '000000' => array (\ n \ t 'name' => '".
Omitted here
}

After reading it, I found that there are two methods, one is to meet $ tatol, and the other is not to let if (! $ Tatol) to verify the effectiveness. You can add an official connection in the first method. For details, see and (URL like '% 4ngel.net %' or URL like '% sablog.net % ')")); the second method is simpler. Modify if (! $ Tatol) is if ($ tatol.

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.