/*
- * PHP replacement article inside the chain
- * by bbs.it-home.org
- */
- function _base64_encode ($t, $str) {
- Return $t. " \ "". Base64_encode ($STR). " \"";
- }
- function _base64_decode ($t, $str) {
- Return $t. " \ "". Base64_decode ($STR). " \"";
- }
function _keylinks ($txt, $replacenum = ", $link _mode = 1) {
- /* Block the original A */
- $replace _a = "\_base64_encode (' ori_a= ', ' \\0 ')";
- $replace 1_a = "\stripslashes (Base64_decode (' \\1 ')");
- $search _a = "/.*?<\/a>/isxe";
- $search 1_a = "/ori_a= (\". *?\ ")/isxe";
- $txt = Preg_replace ($search _a, $replace _a, $txt);
/* Block ALT title SRC */
- $search = "/(alt\s*=\s*|title\s*=\s*|src\s*=\s*) # find ([\" \])? (.*?) # find single or double quote
- (? (2) \\2|\s+?) # If quote found, match up to next matching
- # quote, otherwise match up to next space
- /isxe ";
- $replace = "\_base64_encode (' \\1 ', ' \\3 ')";
- $replace 1 = "\_base64_decode (' \\1 ', ' \\3 ')";
- $txt = Preg_replace ($search, $replace, $txt);
- Echo $txt;
- echo "
http://bbs.it-home.org/
";
- /*
- $keywords = $this->data[' keywords ');
- if ($keywords) $keywords = Strpos (', ', $keywords) = = = False? Explode (', $keywords): Explode (', ', $keywords);
- if ($link _mode &&!empty ($keywords)) {
- foreach ($keywords as $keyword) {
- $linkdatas [] = $keyword;
- }
- } else {
- $linkdatas = GetCache (' Keylink ', ' Commons ');
- }
- if ($linkdatas) {
- $word = $replacement = Array ();
- foreach ($linkdatas as $v) {
- if ($link _mode && $keywords) {
- $word 1[] = '/'. Preg_quote ($v, '/'). ' /';
- $word 2[] = $v;
- $replacement [] = ". $v.";
- } else {
- $word 1[] = '/'. Preg_quote ($v [0], '/'). ' /';
- $word 2[] = $v [0];
- $replacement [] = ". $v [0].";
- }
- }
- if ($replacenum! = ") {
- $txt = Preg_replace ($word 1, $replacement, $txt, $replacenum);
- } else {
- $txt = Str_replace ($word 2, $replacement, $txt);
- }
- }
- */
- /* Restore Original A */
- $txt = Preg_replace ($search 1_a, $replace 1_a, $txt);
- /* Restore ALT title SRC */
- $txt = Preg_replace ($search, $replace 1, $txt);
- Echo $txt;
- return $txt;
- }
- $con = "
Sex excessively hurts the prostate. Harmonious and happy sex life, is the natural needs of men and women, is one of the bond between husband and wife, is a couple of important part of life. But a couple with this idea should be aware of it. Because doing X love time is not the longer the better, couples ' sexual life harmony and happiness is not determined by the length of sex Xai time. On the contrary, the time-out of XZ love, but also affect the health of couples, and even cause a variety of diseases.
";
_keylinks ($con);
- ?>
Copy Code |