Free PHP Script article spinner

spinning. free Script PHP Spinner By: Meen
Code:
<?php
//Title Spin
$title ="{Title Spin1:|+-Spin Title2-+:|Spin Title Spin3:|Title Title Spin Spin4:} IMACROS+SPIN WORDPRESS NETWORK BY MEEN";

//Content Spin
$spin_content="<img class='aligncenter' title='title image keyword' src='http://www.xxx.com/img.jpg' alt='image keyword ' width='462' height='280' />
{Content Spin1|Content Spin2|Content Spin3}Content Spin BY MEEN <a title='keyword product' href='http://www.xxx.com/product.html' target='_blank'>'keyword product</a> ";

//Tags Spin
$spin_tags="{tag1,tag1.2,tag1.3|tag2,tag2.1,tag2.3|tag3,tag3.1,tag3.2 }";

function spin($a){
if(preg_match('#\{(.+?)\}#is',$a,$b))
{
if(($i=strpos($b[1],'{'))>-1)$b[1]=substr($b[1],$i+1);$c=explode('|', $b[1]);$a=preg_replace("+\{".preg_quote($b[1])."\}+is", $c[array_rand($c)],$a,1);return spin($a);}return $a;
}

?>
<?php
echo "<form id='form1' name='form1' method='post' action='spin.php'>";

echo "<label>Title:<br />";
echo "<textarea name='title' id='title' cols='100' rows='5'>";
echo spin($title);
echo "</textarea>";
echo "</label>";
echo "<p>";
echo "<label>Content:<br />";
echo "<textarea name='content' id='content' cols='100' rows='5'>";
echo spin($spin_content);
echo "</textarea>";
echo "</label>";
echo "</p>";
echo "<p>";
echo "<label>Tags:<br />";
echo "<textarea name='tags' id='tags' cols='100' rows='5'>";
echo spin($spin_tags);
echo "</textarea>";
echo "</label>";
echo "</p>";

echo "</form>";
?>

Postingan terkait:

close