Bulurlar evet zaten benim amacım sadece biras daha zorlaştırmak o kadar. Scriptte birçok dosya kullanıyor kısaltmaya denk gelen yide bulamadım.
<?php
// -----------------------------------------------------------------------------
//
//
// All forms of reproduction, including, but not limited to, internet posting,
//
// 19:59 28.07.2006
//
// -----------------------------------------------------------------------------
require_once("./tiny_includes/config.php");
$smarty = new Smarty;
$smarty->template_dir = "$dir_ws/tiny_templates";
$smarty->compile_dir = "$dir_ws/tiny_templates_c";
$smarty->assign("url_to_index",$config['url_to_index']);
$HTTP_SESSION_VARS['searchurl'] = '';
$randlink = '';
if($_SERVER['QUERY_STRING'] && !$fullurl && !preg_match('/[\W]/',$_SERVER['QUERY_STRING'])){
//loading index.php with query
if($res = checkQueryString($_SERVER['QUERY_STRING'])){
//query found
if($res['showsplash']){
$smarty->assign("fullurl",$res['fullurl']);
$smarty->assign("refreshrate",$config['refreshrate']);
$smarty->assign("ad",getAd());
$smarty->assign("records",getNumb());
$smarty->display("connect.htm");
}
else js_redirect($res['fullurl']);
}
else{
//query did not find
$smarty->display("error.htm");
}
}
else{
if($fullurl){
preg_match("/^((http:\/\/)*)(.*)/i", $fullurl, $matches1);
preg_match("/^(http:\/\/)*/i", $fullurl, $matches2);
if($matches1[1]==$matches2[1] and $matches1[3]) $u = parse_url($fullurl);
else $u['host'] = $fullurl;
$ip = gethostbyname($u['host']);
if($ip == $u['host']){
js_alert ('No such host!');
}
else $randlink = addLink($fullurl,$ip);
}
//loading index.php
$smarty->assign("randlink",$randlink);
$smarty->assign("ad",getAd());
$smarty->assign("records",getNumb());
$smarty->display("index.htm");
}
?>Burda nereyi iframe içine alacağımı gösterirmisiniz..?