This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Savaş Can ALTUN <[email protected]> | |
* www.savascanaltun.com.tr | |
* CURL vBulletin Login Example | |
* */ | |
function vBulletinLogin($username,$password,$url,$posturl){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_HEADER,false); | |
curl_setopt($ch, CURLOPT_COOKIEFILE, 'veri.txt'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args=array( | |
'include' => 1, // kategori id si gelecek - Category id | |
'orderby' => 'name', | |
'order' => 'ASC' | |
); | |
$categories=get_categories($args); | |
foreach($categories as $category) { | |
echo $category->name." (".$category->count.")"; // Genel (1) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$yazi="SavaÅ Can Altun "; | |
$ara = array ('ı','Å?','ü','ç','ö','Ä?','ÅŸ','Ç','İ','ÄŸ','Åž','Ö','Ü','ı','Å?','ç','ö','Ä?','ÅŸ','Ç','İ','ÄŸ','Åž','Ö','Ü','ü','ÄŸ'); | |
$degis = array ('ı','ş','ü','ç','ö','ğ','ş','Ç','i','ğ','Ş','Ö','Ü','ı', 'ş', 'ç', 'ö', 'ğ', 'ş', 'Ç', 'i', 'ğ', 'Ş', 'Ö', 'Ü', 'ü', 'ğ'); | |
$yazi = str_replace($ara, $degis, $yazi); | |
echo $yazi; // Savaş Can Altun | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>%100 İframe</title> | |
</head> | |
<body > | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Author : Savaş Can Altun < [email protected] > | |
Date : 05.09.2014 | |
*/ | |
namespace Tanrilar; | |
Class Zeus | |
{ | |
public function ozellik() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
* Author : Savaş Can Altun | |
* Web : http://savascanaltun.com.tr | |
* Mail : [email protected] | |
* GİT : http://github.com/saltun | |
* Date : 31.08.2014 | |
* Update : 31.08.2014 | |
--> | |
<html lang="en"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Author : Savaş Can Altun | |
* Web : http://savascanaltun.com.tr | |
* Mail : [email protected] | |
* GİT : http://github.com/saltun | |
* Date : 31.08.2014 | |
* Update : 31.08.2014 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function dosya_indir($link,$dosya_adi=NULL){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$link); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
$dosya=curl_exec($ch); | |
curl_close($ch); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function link_temizle($par) { | |
$desen = "/[a-zA-Z]*[:\/\/]*[A-Za-z0-9\-_]+\.+[A-Za-z0-9\.\/%&=\?\-_]+/i"; | |
$cevirilecek = ""; | |
return preg_replace($desen, $cevirilecek, $par); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by | |
| the validator class. Some of these rules have multiple versions such |