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.