şu kısımı düzeltelim trim'lemedik diye kabul etmemiş.
        <? 
 
 
include("config.php"); 
if (strstr($_SERVER['HTTP_REFERER'], $root)); 
else { header ("Location: $rooturl"); } 
 
$ip = $_SERVER['REMOTE_ADDR']; 
$urlto = split('<br />',trim(nl2br($_POST['url']))); 
foreach($urlto as $key => $url){ 
if(preg_match('|^http(s)?://[a-z0-9-]+(\.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', trim($url))) 
{ 
 
$query = "INSERT INTO $table (ip,url) VALUES ('$ip','$url')" or die('MySQL error: '.mysql_error()); 
mysql_query($query); 
$qs = mysql_insert_id(); 
$link = $destination . $qs; 
$veri[$key] = $qs; 

 
} else { 
echo 'Your URL is invalid'; 
 
} 
} 
require 'create_template.php'; 
?>