Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Automatinis link'as

Parašė ramon· 2007 Spa. 20 22:10:10
#3

Darom taip:
Atidarom maincore.php faila, randam parseubb() f. ir gale parseubb() f. pres :
$message = preg_replace('#(<[^>]+)style=([\`\'\"]*).*behavior\([^>]*>#iU',"$1>",$message);




Prirasom si koda :
$message = make_clickable($message);




Turi atrodik stai taip:
$message = preg_replace('#([a-z]*)=([\`\'\"]*)vbscript:#iUu','$1=$2novbscript...',$message);
$message = preg_replace('#(<[^>]+)style=([\`\'\"]*).*expression\([^>]*>#iU',"$1>",$message);
$message = preg_replace('#(<[^>]+)style=([\`\'\"]*).*behavior\([^>]*>#iU',"$1>",$message);
$message = make_clickable($message);
return $message;
}




Veiliau maincore.php faile pres ?> prirasyk si koda:
require_once INCLUDES."auto-linkas_include.php";





PS.Prisegiau auto-linkas_include.php faila. ;)