merhaba arkadaslar benim kucuk bir sorunum var linkleri seo yaptim su sekilde cikiyor
Aşk%20sözleri-9.php


bunlarin arasina nasil tire koyabilirim?


<?
$dbServer="localhost";
$dbuserName="CHANGEME";
$dbpassword="CHANGEME";
$dbName="CHANGEME";
$SiteName="My Blog";
//No Trailing Slash
$Site_name="My Blog";

/*
Define root here as well as in admin area without trailing slash
*/
define("root", "changeme.com | Change | Me | No Me Ames | Piece Of Me", false);
/* Your ip address so that ads wont show if your viewing and help prevent being tossed */
$noshowip = "00.00.00.123";

/*No Edit Below Here*/
$con=mysql_connect ($dbServer, $dbuserName, $dbpassword) or die ('Cannot connect to the database.');
$db=mysql_select_db ($dbName);
session_start();
error_reporting(0);
?>

config su sekilde


-------------------------------
functions.php de su sekilde


<?
function getNumComments($id)
{
$sql="select * from blogsscomments where blogsid='$id' and approved='Y'";
$res=mysql_query($sql);
return mysql_num_rows($res);
}
function submitRating($id,$rating)
{
$sql="select * from blogssratings where blogsid='$id'";
$res=mysql_query($sql);
if($obj=mysql_fetch_object($res))
{
$rid=$obj->ratingsid;
$numvotes=$obj->numvotes;
$avgrating=$obj->avgrating;
$totrating=$obj->totrating;
$totrating=$totrating+$rating;
$numvotes++;
$avgrating=round($totrating/$numvotes,2);
$sql="update blogssratings set numvotes='$numvotes',avgrating='$avgrating',totrat ing='$totrating' where ratingsid='$rid'";
mysql_query($sql);
}
else
{
$sql="insert into blogssratings(numvotes,blogsid,avgrating,totrating ) values('1','$id','$rating','$rating')";
mysql_query($sql);
}
}
function getRating($recid)
{
$rating="Not Rated yet!";
$sql="select * from blogssratings where blogsid='$recid'";
$res=mysql_query($sql);
while($obj=mysql_fetch_object($res))
{
$rating="Rated $obj->avgrating from $obj->numvotes votes";
}
return $rating;
}
function sendHTMLmail($fromid,$to,$subject,$message)
{
$headers = "From: $fromid\n";
$headers .= "Reply-To: $fromid\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit;\n\n";
$headers .= nl2br(stripslashes($message));
$headers .= "\n";
@mail("$to", "$subject", "", "$headers");
}
function sendHTMLmail2($fromid,$to,$subject,$message)
{
$headers = "From: $fromid\n";
$headers .= "Reply-To: $fromid\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit;\n\n";
$headers .= stripslashes($message);
$headers .= "\n";
@mail("$to", "$subject", "", "$headers");
}
function getSetting($val)
{
$sql="select * from blogssettings where setting='$val'";
$res=mysql_query($sql);
while($obj=mysql_fetch_object($res))
{
return $obj->settingvalue;
}
}
function getTemplate($val)
{
$sql="select * from blogssemailtemplates where usedfor='$val'";
$res=mysql_query($sql);
while($obj=mysql_fetch_object($res))
{
$template=$obj->template;
// $template=str_replace("\n","<br>",$template);
return $template;
}
}
function generateCode()
{
for($i=0;$i<12;$i++)
{
$r = rand(48,90);
if($r > 57 && $r < 65)
$i--;
else
$p .= chr($r);
}
return $p;
}
function generateShortCode()
{
for($i=0;$i<5;$i++)
{
$r = rand(48,90);
if($r > 57 && $r < 65)
$i--;
else
$p .= chr($r);
}
return $p;
}
function getCategoryName($catid)
{
$sql="select * from blogcategory where categoryid='$catid'";
$res=mysql_query($sql);
while($obj=mysql_fetch_object($res))
{
return $obj->catname;
}
}
if (isset($_SERVER['HTTPS'])) {
$protocol = 'https://';
} else if (strncmp($CFG->wwwroot, 'https', 5) == 0) {
$protocol = 'https://';
} else {
$protocol = 'http://';
}
function getRatings($id)
{
$sql1="select * from blogssratings where blogsid='$id'";
$result1=mysql_query($sql1);
if(!mysql_num_rows($result1))
{
$rating="Not rated yet";
$textrating="Not rated yet";
}
else
{
$sql1="select * from blogssratings where blogsid='$id'";
$result1=mysql_query($sql1);
while($obj=mysql_fetch_object($result1))
{
$pos=$obj->avgrating;
$textrating="<b>$obj->avgrating</b> from $obj->numvotes votes";
$imrating="Rated $obj->avgrating from $obj->numvotes votes";
}
$rating="";
for($i=0;$i<floor($pos);$i++)
$rating=$rating."<img alt='$imrating' src='".root."/images/starp.gif'>";
$numleft=5-$i;
if(($pos-$i)>=0.5)
{
$numleft=$numleft-1;
$rating=$rating."<img alt='$imrating' src='".root."/images/starm.gif'>";
}
for($i=0;$i<$numleft;$i++)
$rating=$rating."<img alt='$imrating' src='".root."/images/starn.gif'>";
}
if(getSetting("RATINGSIMAGE")=="Y")return $rating;else return $textrating;
}
function getNumdrinks($catid)
{
$sql="select * from blogs where categoryid='$catid'";
$res=mysql_query($sql);
return mysql_num_rows($res);
}
function string_to_underscore_name($string)
{
$string = preg_replace('/[\'"]/', '', $string);
$string = preg_replace('/[^a-zA-Z0-9]+/', '_', $string);
$string = trim($string, '_');
$string = strtolower($string);

return $string;
}
function autoUpdatingCopyright($startYear){

// given start year (e.g. 2004)
$startYear = intval($startYear);

// current year (e.g. 2007)
$year = intval(date('Y'));

// is the current year greater than the
// given start year?
if ($year > $startYear)
return $startYear .'-'. $year;
else
return $startYear;
}
function cropImage($nw, $nh, $source, $stype, $dest) {
$size = getimagesize($source);
$w = $size[0];
$h = $size[1];
switch($stype) {
case 'gif':
$simg = imagecreatefromgif($source);
break;
case 'jpg':
$simg = imagecreatefromjpeg($source);
break;
case 'png':
$simg = imagecreatefrompng($source);
break;
}
$dimg = imagecreatetruecolor($nw, $nh);
$wm = $w/$nw;
$hm = $h/$nh;
$h_height = $nh/2;
$w_height = $nw/2;
if($w> $h) {
$adjusted_width = $w / $hm;
$half_width = $adjusted_width / 2;
$int_width = $half_width - $w_height;
imagecopyresampled($dimg,$simg,-$int_width,0,0,0,$adjusted_width,$nh,$w,$h);
} elseif(($w <$h) || ($w == $h)) {
$adjusted_height = $h / $wm;
$half_height = $adjusted_height / 2;
$int_height = $half_height - $h_height;
imagecopyresampled($dimg,$simg,0,-$int_height,0,0,$nw,$adjusted_height,$w,$h);
} else {
imagecopyresampled($dimg,$simg,0,0,0,0,$nw,$nh,$w, $h);
}
imagejpeg($dimg,$dest,100);
}
function random_readable_pwd($length=10){

ufak kod kaldirdim eklicem burayi
// explode by ",":
$words = explode(',', $words);
if (count($words) == 0){ die('Wordlist is empty!'); }

mt_srand((double)microtime()*1000000);

// while password is smaller than $length -> add
// words:
$pwd = '';
while (strlen($pwd) < $length){
$r = mt_rand(0, count($words)-1);
$pwd .= $words[$r];
}

// append a number at the end if length > 2 and
// reduce the password size to $length
$num = mt_rand(1, 999);
if ($length > 2){
$pwd = substr($pwd,0,$length-strlen($num)).$num;
} else {
$pwd = substr($pwd, 0, $length);
}

return $pwd;

}
//$newpass=random_readable_pwd();
//echo $newpass;
//cropImage("50", "50", "friends_orgimage/Tim.jpg", "jpg", "friends_thumbs/it2.jpg");
$domain=getSetting("URLDOMAIN");
$adminemail=getSetting("ADMINEMAIL");
$showstats=getSetting("SHOWSTATS");
$showmembercount=getSetting("SHOWMEMBERCOUNT");
$closedfoldercolor=getSetting("CLOSEDFOLDERCOLOR") ;
$openfoldercolor=getSetting("OPENFOLDERCOLOR");
$upgradecost=getSetting("UPGRADECOST");
$ppemail=getSetting("PAYPALEMAIL");
$freeblogs=getSetting("FREEBLOGS");
$paidblogs=getSetting("PAIDBLOGS");
$freeimages=getSetting("FREEIMAGES");
$paidimages=getSetting("PAIDIMAGES");
$freelinks=getSetting("FREELINKS");
$paidlinks=getSetting("PAIDLINKS");
$admad=getSetting("GOOGLEPUB");
$addgoogle=getSetting("ADDGOOGLE");
$adshop=getSetting("SHOPPUB");
$shoppingads=getSetting("ADDSHOPP");
$adyad=getSetting("YAHOOPAR");
$addyahoo=getSetting("ADDYAHOO");
$url="http://www.com";
if (strpos(file_get_contents("$url"),
"$domain")!==false) {
//echo "found";
}else{
exit("<font color=black><b></b></font>");
}
?>