PHP Code:
<?php
/*
Plugin Name: ContentRewriter
Version: 1.1
Plugin URI: http://www.freecontentrewrite.com
Author: MasterRewriter
Description: Rewrite articles when posting. No action needed just generate unique content.
*/
// +---------------------------------------------+
// |Copyright© 2005-2007- FreeContentRewrite.com |
// +---------------------------------------------+
$contentdictionary_dic = array(
" . " => " ",
" a.m. " => " antemeridian ",
" (A) " => " (Automatic) ",
"(M)" => " Manual ",
"(M) " => " Manual ",
" (M) " => " (Manual) ",
"A/B" => " aeroback ",
"A/B " => " aeroback ",
" A/B " => " aeroback ",
" int " => " interest ",
" int, " => " interest ",
" int. " => " interest ",
" / " => " and ",
" nav " => " navigation ",
" nav, " => " navigation ",
" nav. " => " navigation ",
" xenon " => " come with xenon, HID kit, ",
" xenon, " => " car with xenon, HID kit, ",
" xenon. " => " xenon head lamp so you won't miss any dark spot, HID, ",
" bi-xenon " => " Hi/Lo xenon/hid, full air beg, Projector head lamp ",
" bi-xenon, " => " Bi-xenon, no worry at night ",
" bi-xenon. " => " Bi-xenon, Oem hid kit, no more kacau from JPJ ",
" ge- " => " gear ",
" s/ro- " => " sun roof",
" ar, " => " ",
" of, " => " ",
" cond " => " condition, nearly perfect, ",
" cond, " => " condition, u going to love it, ",
" cond. " => " condition, have a look with our car then make compare, ",
" l/mile " => " hardly used, like new ",
" l/mile, " => " low mileage, good tyre ",
" l/mile. " => " low mileage, just like new ",
" mile " => " mileage, hardly out station ",
" mile, " => " mileage, city drive only ",
" mile. " => " mileage, execellence ",
" orig " => " original, no modify ",
" orig, " => " original, like new ",
" orig. " => " original, perfect body ",
" RM0 " => " low interest ",
" d/p, " => " downpayment, ",
" d/p. " => " downpayment ",
" d/p " => " downpayment ",
" Ready " => " Immediate stock, we ready to serve you ",
" Ready, " => " Immediate, door to door service ",
" Ready. " => " Immediate, just choose your color ",
" Free gift " => " free gift, free voucher and alot more",
" RM " => " good bargain, Prices ",
" GLi " => "GLI ",
" 0 " => " zero ",
" s/rims. " => " sport rims, ",
" s/rims, " => " sport rims, ",
" s/rims " => " sport rims, ",
" s/rim. " => " sport rims, ",
" s/rim, " => " sport rims, ",
" s/rim " => " sport rims, ",
" rims " => " sport rims, ",
" rims, " => " sport rims, ",
" rims. " => " sport rims, ",
" elec " => " air beg, traction control, abs, electronic ",
" elec, " => " air beg, abs, electronic ",
" elec. " => " air beg, hi spec, electronic ",
" met " => " come have a look, metalic ",
" etc " => " extra ++ ",
" Certified " => " approved ",
" loan " => " loan, low interest, affordable down payment, u can afford ",
" loan. " => " loan, low interest, low down payment, u can afford ",
" loan, " => " loan,low interest, low down payment, u can afford ",
" cond " => " condition, like brand new, you won't regret ",
" Acc " => " accident ",
" l/mile " => " low mileage ",
" 1 " => " one ",
" 1.0 " => " 1 litre, 1000cc (rm 20 road tax), fuel saving, economy, good for second car",
" 1.3 " => " 1.3 litre, 1300cc (rm 70 road tax only, low maintenance, value for money), good for market car ",
" 1.5 " => " 1.5 litre, 1500cc (rm 90 road tax, good performance with low road tax) ",
" 1.6 " => " 1.6 litre, 1600cc ( rm 90 for road tax) ",
" 1.8 " => " 1.8 litre, 1800cc (below rm 280 road tax) ",
" 2.0 " => " 2.0 litre, 2000cc (rm 300++ road tax)",
" 2.2 " => " 2.2 litre 2200cc ",
" 2.4 " => " 2.4 litre, 2400cc ",
" 2.5 " => " 2500 cc ",
" 2.6 " => " 2600 cc ",
" 2.7 " => " 2700 cc ",
" 2.8 " => " 2.8 litre, 2800cc ",
" 3.0 " => " 3000cc ",
" 3.2 " => " 3200 cc ",
" 3.4 " => " 3400 cc ",
" 3.5 " => " 3500 cc ",
" 3.6 " => " 3600 cc ",
" 10' " => " 10 inch ",
" 11' " => " 11 inch ",
" 12' " => " 12 inch ",
" 13' " => " 13 inch ",
" 14' " => " 14 inch ",
" 15' " => " 15 inch ",
" 16' " => " 16 inch ",
" 17' " => " 17 inch, look cool on the car, ",
" 18' " => " 18 inch, VIP style alike, ",
" 19' " => " 19 inch, what else u looking for, ",
" 20' " => " 20 inch, super VIP ",
" 21' " => " 21 inch, ",
" 22' " => " 22 inch ",
" 23' " => " 23 inch ",
" 24' " => " 24 inch ",
" 25' " => " 25 inch ",
" 26' " => " 26 inch ",
" , " => " + ",
" OTR " => " on the road prices ",
" skirting " => " full body kitted, it look much nicer then original, ",
" yr " => " year ",
" good condition " => " perfect condition ",
" s/roof " => " sun roof, get some free air ",
" s/roof, " => " sun roof, not every car have it ",
" s/roof. " => " sun roof, hi spec, import model ",
" fr " => " from ",
" acc " => " accident ",
" acc. " => " accident ",
" unreg " => " unregister, new number plate, ",
" unreg, " => " unregister, choose your number, ",
" unreg. " => " unregister, transfer ur old plate here, ",
" trade-in " => " trade in, high prices, ",
" trade-in, " => " trade in, good value ",
" trade-in. " => " trade in, best deal in town ",
" ca-reful " => " careful, good condition, ",
" ca-reful. " => " careful, like new, no hanky panky ",
" ca-reful, " => " careful, good condition, like new ",
" sp-ort " => " sport, performance spec, ",
" sp-ort, " => " sport, performance, ",
" sp-ort. " => " sport, personalise, ",
" '00 " => " 2000 ",
" '01 " => " 2001 ",
" '02 " => " 2002 ",
" '03 " => " 2003 ",
" '04 " => " 2004 ",
" '05 " => " 2005 ",
" '06 " => " 2006 ",
" '07 " => " 2007 ",
" '08 " => " 2008 ",
" '09 " => " 2009 ",
" '99 " => " 1999 ",
" '98 " => " 1998 ",
" '97 " => " 1997 ",
" '96 " => " 1996 ",
" '95 " => " 1995 ",
" '94 " => " 1994 ",
" '93 " => " 1993",
" '92 " => " 1992",
" '91 " => " 1991 ",
" '90 " => " 1990 ",
" '00, " => " 2000 ",
" '01, " => " 2001 ",
" '02, " => " 2002 ",
" '03, " => " 2003 ",
" '04, " => " 2004 ",
" '05, " => " 2005 ",
" '06, " => " 2006 ",
" '07, " => " 2007 ",
" '08, " => " 2008 ",
" '09, " => " 2009 ",
" '99, " => " 1999 ",
" '98, " => " 1998 ",
" '97, " => " 1997 ",
" '96, " => " 1996 ",
" '95, " => " 1995 ",
" '94, " => " 1994 ",
" '93, " => " 1993",
" '92, " => " 1992",
" '91, " => " 1991 ",
" '90, " => " 1990 ",
" '00. " => " 2000 ",
" '01. " => " 2001 ",
" '02. " => " 2002 ",
" '03. " => " 2003 ",
" '04. " => " 2004 ",
" '05. " => " 2005 ",
" '06. " => " 2006 ",
" '07. " => " 2007 ",
" '08. " => " 2008 ",
" '09. " => " 2009 ",
" '99. " => " 1999 ",
" '98. " => " 1998 ",
" '97. " => " 1997 ",
" '96. " => " 1996 ",
" '95. " => " 1995 ",
" '94. " => " 1994 ",
" '93. " => " 1993",
" '92. " => " 1992",
" '91. " => " 1991 ",
" '90. " => " 1990 ",
" f/spec " => " full spec, high spec, u just name it ",
" f/spec, " => " full spec, value for money ",
" f/spec. " => " full spec, everything include ",
" l/seat " => " leather Seat, ",
" l/seat, " => " leather Seat, luxury, high end ",
" l/seat. " => " leather Seat, luxury, personalise ",
" l/seats " => " leather Seat, luxury, high end, ",
" l/seats, " => " leather Seat, luxury, high spec, ",
" l/seats. " => " leather Seat, luxury, ",
" wt " => " with ",
" wt. " => " with ",
" wt, " => " with ",
" V6 " => " V6 engine, smooth engine ",
" V8 " => " V8 engine, performance, motorsport, personalise, comfort and sport, ",
" V10 " => " V10 engine ",
" pls " => " please ",
" pls, " => " please ",
" pls. " => " please ",
" no. " => " number ",
" no, " => " number ",
" no " => " number ",
" exhau-st " => " exhaust ",
" car-eful " => " full service, well kept, careful ",
" neg " => " negotiable, ",
);
function freecontentrewrite_run ($article_cont, $case_sensitive=false) {
global $contentdictionary_dic;
$artarray=$article_cont;
$step1 = array("?", "|", "\$", "*", "+", "^","{", "}");
$artarray=str_replace($step1," ",$artarray);
$artarray=str_replace(" "," ",$artarray);
$words_artarray = explode(" ",$artarray);
if (sizeof($words_artarray)>0)
{
for($i=0;$i<sizeof($words_artarray);$i++)
{
$to_be_replaced=$words_artarray[$i];
$to_be_replaced=str_replace(" ","",$to_be_replaced);
$to_be_replaced=" ".$to_be_replaced." ";
$to_be_replaced_with=$contentdictionary_dic[$to_be_replaced];
if(($to_be_replaced!="")&&($to_be_replaced!=" ")&&($to_be_replaced_with!=""))
{
$article_cont = str_replace($to_be_replaced,$to_be_replaced_with,$article_cont);
}
}
}
return $article_cont;
}
add_filter('the_content', 'freecontentrewrite_run', 2);
add_filter('the_excerpt', 'freecontentrewrite_run', 2);
?>
Bookmarks