This file contains hidden or 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
function print_r (array) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Michael White (http://getsprink.com) | |
// + improved by: Ben Bryan | |
// + input by: Brett Zamir (http://brett-zamir.me) | |
// + improved by: Brett Zamir (http://brett-zamir.me) | |
// + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
// - depends on: echo | |
// * example 1: print_r(1, true); | |
// * returns 1: 1 |
This file contains hidden or 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
$(document).ready(function(){ | |
$("input[placeholder], textarea[placeholder]").each(function(i, e){ | |
if($(e).val() == "") | |
{ | |
$(e).val($(e).attr("placeholder")); | |
} | |
$(e).blur(function(){ | |
if($(this).val()=="") | |
$(this).val($(e).attr("placeholder")); | |
}).focus(function(){ |
This file contains hidden or 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
/* Credit Card Verification VIA LUHN by serpico | |
function card_verification($ccn){ | |
$ccn = str_replace (' ', '', str_replace ('-', '', trim($ccn))); | |
if(strlen($ccn) != 16 && !is_numeric($ccn)){ | |
return false; | |
} | |
$checksum = 0; // running checksum total | |
$j = 1; | |
for ($i = strlen($ccn) - 1; $i >= 0; $i--) { | |
// Extract the next digit and multiply by 1 or 2 on alternative digits. |
This file contains hidden or 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 | |
/*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ | |
/*:: :*/ | |
/*:: This routine calculates the distance between two points (given the :*/ | |
/*:: latitude/longitude of those points). It is being used to calculate :*/ | |
/*:: the distance between two locations using GeoDataSource(TM) Products :*/ | |
/*:: :*/ | |
/*:: Definitions: :*/ | |
/*:: South latitudes are negative, east longitudes are positive :*/ |
This file contains hidden or 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
CREATE TABLE `isimler` ( | |
`id` int(10) NOT NULL AUTO_INCREMENT, | |
`ad` varchar(255) COLLATE utf8_bin NOT NULL, | |
`cinsiyet` varchar(50) COLLATE utf8_bin NOT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `ad` (`ad`), | |
KEY `cinsiyet` (`cinsiyet`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; | |
This file contains hidden or 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
function isimeki($ad, $ektipi= "in") | |
{ | |
$sertsessizler = array("ç", "f", "h", "k", "p","s", "ş", "t"); | |
/// türkçe sesli ve sert sessiz karakterler | |
$buyuk = array("A", "I", "E", "İ", "U","O", "Ü", "Ö", "Ç", "F", "H", "K", "P","S", "Ş", "T"); | |
$kucuk = array("a", "ı", "e", "i", "u","o", "ü", "ö", "ç", "f", "h", "k", "p","s", "ş", "t"); | |
$kucultulmus = str_replace($buyuk, $kucuk, $ad); | |
$isim=trim($kucultulmus); |
This file contains hidden or 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 | |
/*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ | |
/*:: :*/ | |
/*:: This routine calculates the distance between two points (given the :*/ | |
/*:: latitude/longitude of those points). It is being used to calculate :*/ | |
/*:: the distance between two locations using GeoDataSource(TM) Products :*/ | |
/*:: :*/ | |
/*:: Definitions: :*/ | |
/*:: South latitudes are negative, east longitudes are positive :*/ |
This file contains hidden or 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
<FilesMatch ".(js|css)$"> | |
Header set Cache-Control "max-age=0, public" | |
Header set Expires "Thu, 15 Jan 2000 20:00:00 GMT" | |
</FilesMatch> |
This file contains hidden or 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 | |
/*ismin nikneymin sonuna gereken eki ekler */ | |
function isimeki($ad, $ektipi= "in") | |
{ | |
$sertsessizler = array("ç", "f", "h", "k", "p","s", "ş", "t"); | |
/// türkçe sesli ve sert sessiz karakterler | |
$buyuk = array("A", "I", "E", "İ", "U","O", "Ü", "Ö", "Ç", "F", "H", "K", "P","S", "Ş", "T"); | |
$kucuk = array("a", "ı", "e", "i", "u","o", "ü", "ö", "ç", "f", "h", "k", "p","s", "ş", "t"); |