05 Nisan 2009
Alantron.com
simturk.com
İsimtescil.net
cepdivx.com
secmecehaber.com
phptr.net
elbistancihanet.com
gencmotorcu.com
metuncc.com
ugurgorur.com
kodlama.org
tr-en.com
cepsex.org
liselisex.org
mankenx.org
ugorur.com
mustafakemalataturk.us
manage.snapnames.com
antifenerbahce.com
asilkartallar.com
Moniker.com
cashblogs.net
digtalmicro.net
economicals.net
forwarddomain.net
Domainpazar.myorderbox.com
domainpazar.net
ergenekon.mobi
Kategori Kategorilenmemiş | Yorum Yok »
15 Mart 2009
class template
{
var $tpl_vars;
function template()
{
$this->tpl_vars = array();
}
function assign($var_array)
{
if (!is_array($var_array))
{
die(’$var_array, array olmasi gereklidir.’);
}
$this->tpl_vars = array_merge($this->tpl_vars, $var_array);
}
function parse($tpl_file)
{
if (!is_file($tpl_file))
{
die($tpl_file . ‘” dosyasi bulunamadi.’);
}
$tpl_content = file_get_contents($tpl_file);
foreach ($this->tpl_vars AS $var => $content)
{
$tpl_content = str_replace(’{’ . $var . ‘}’, $content, $tpl_content);
}
return $tpl_content;
}
function display($tpl_file)
{
echo $this->parse($tpl_file);
}
}
$tpl = new template();
$tpl->assign(array(
‘catlist’ => $catlist,
‘prolist’ => $prolist,
’site_ad’ => $ayar[4],
‘desc’ => $ayar[5],
‘key’ => $ayar[6],
‘1′ => ”
));
$tpl->display(’temp/index.tpl’);
Kategori Kategorilenmemiş | Yorum Yok »
15 Mart 2009
function curll($url)
{
$curl = curl_init();
$header[0] = “Accept: text/xml,application/xml,application/xhtml+xml,”;
$header[0] .= “text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5″;
$header[] = “Cache-Control: max-age=0″;
$header[] = “Connection: keep-alive”;
$header[] = “Keep-Alive: 300″;
$header[] = “Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7″;
$header[] = “Accept-Language: en-us,en;q=0.5″;
$header[] = “Pragma: “; // browsers keep this blank.
// $header[0] .= “Client-IP:”.ip();
// $header[0] .= “HTTP_X_FORWARDED_FOR:”.ip();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, ”.$ayar[4].’ Link Control Bot’);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
// curl_setopt($curl, CURLOPT_REFERER, ‘http://www.google.com/search?q=site:$url’);
curl_setopt($curl, CURLOPT_ENCODING, ‘gzip,deflate’);
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$html = curl_exec($curl); // execute the curl command
curl_close($curl); // close the connection
return $html; // and finally, return $html
}
Kategori Kategorilenmemiş | Yorum Yok »
15 Mart 2009
WordPress’e hoş geldiniz. Bu sizin ilk yazınız. Bu yazıyı düzenleyin ya da silin. Sonra blog dünyasına adım atın!
Kategori Kategorilenmemiş | 1 Yorum »