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
(function($){ | |
var mets = { | |
init : function(options){ | |
var settings = $.extend({ | |
"chars" : { | |
"i" : "Ä°", | |
"ÅŸ" : "Åž", | |
"ö" : "Ö", | |
"ü" : "Ü", |
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
$.each($(".select2-container"), function (i, n) { | |
$(n).next().show().fadeTo(0, 0).height("0px").css("left", "auto"); // make the original select visible for validation engine and hidden for us | |
$(n).prepend($(n).next()); | |
$(n).delay(500).queue(function () { | |
$(this).removeClass("validate[required]"); //remove the class name from select2 container(div), so that validation engine dose not validate it | |
$(this).dequeue(); | |
}); | |
}); |
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
public static function findEmail($string) | |
{ | |
$pattern = '/[a-z0-9_\-\+]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i'; | |
preg_match_all($pattern, $string, $matches); | |
return (count($matches[0]) > 0); | |
} | |
public static function findUrl($string) | |
{ |
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
RewriteEngine On | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule (.*) index.php/$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
function permalink($val) { | |
$turkce=array("ş","Ş","ı","(",")","'","ü","Ü","ö","Ö","ç","Ç"," ","/","*","?","ş","Ş","ı","ğ","Ğ","İ","ö","Ö","Ç","ç","ü","Ü"); | |
$duzgun=array("s","S","i","","","","u","U","o","O","c","C","-","-","-","","s","S","i","g","G","I","o","O","C","c","u","U"); | |
$deger = str_replace($turkce,$duzgun,$val); | |
$deger = preg_replace("@[^A-Za-z0-9\-_]+@i","",$deger); | |
return $deger; | |
} |
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
<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 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 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 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 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 :*/ |
OlderNewer