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 | |
/* | |
* Author : Savaş Can Altun | |
* Web : http://savascanaltun.com.tr | |
* Mail : savascanaltun@gmail.com | |
* 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
<!DOCTYPE html> | |
<!-- | |
* Author : Savaş Can Altun | |
* Web : http://savascanaltun.com.tr | |
* Mail : savascanaltun@gmail.com | |
* 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 < savascanaltun@gmail.com > | |
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> | |
<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 | |
$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
<?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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Maps Single Marker</title> | |
<style type="text/css"> | |
#map_canvas {height:600px;width:800px} | |
</style> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
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
/* | |
* Savaş Can ALTUN < savascanaltun@gmail.com > | |
* Github : @saltun | |
*/ | |
function url_split(url){ | |
url_parts = url.split('/'); | |
domain_name_parts = url_parts[2].split(':'); | |
domain_name = domain_name_parts[0]; | |
if ( domain_name.substring(0,4) == 'www.' ) domain_name = domain_name.substring(4); |
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 havadurumu ($plaka=00) { | |
if (!is_numeric($plaka) && strlen($plaka)!=2) $plaka=00; | |
switch ($plaka) { | |
case 01: $link="AF"; break; // Adana | |
case 02: $link="AF"; break; // Adıyaman | |
case 06: $link="AC"; break; // Ankara | |
case 07: $link="AI"; break; // Antalya | |
case 16: $link="BR"; break; // Bursa | |
case 20: $link="AY"; break; // Denizli |
OlderNewer