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
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) | |
{ | |
//girilen metnin karakterlerini alt alta yazdıran programı yazınız. | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; |
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
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) | |
{ | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
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 isBot($user_agent){ | |
$bots = array('bingbot', 'msn', 'abacho', 'abcdatos', 'abcsearch', 'acoon', 'adsarobot', 'aesop', 'ah-ha', | |
'alkalinebot', 'almaden', 'altavista', 'antibot', 'anzwerscrawl', 'aol', 'search', 'appie', 'arachnoidea', | |
'araneo', 'architext', 'ariadne', 'arianna', 'ask', 'jeeves', 'aspseek', 'asterias', 'astraspider', 'atomz', | |
'augurfind', 'backrub', 'baiduspider', 'bannana_bot', 'bbot', 'bdcindexer', 'blindekuh', 'boitho', 'boito', | |
'borg-bot', 'bsdseek', 'christcrawler', 'computer_and_automation_research_institute_crawler', 'coolbot', | |
'cosmos', 'crawler', 'crawler@fast', 'crawlerboy', 'cruiser', 'cusco', 'cyveillance', 'deepindex', 'denmex', | |
'dittospyder', 'docomo', 'dogpile', 'dtsearch', 'elfinbot', 'entire', 'web', 'esismartspider', 'exalead', | |
'excite', 'ezresult', 'fast', 'fast-webcrawler', 'fdse', 'felix', 'fido', 'findwhat', 'finnish', 'firefly', | |
'firstgov', 'fluffy', 'freecrawl', 'frooglebot', 'galaxy', 'gaisbot', 'geckobot', 'gencrawler', 'geobot' |
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
<select name="Country"> | |
<option value="" selected="selected">Select Country</option> | |
<option value="United States">United States</option> | |
<option value="United Kingdom">United Kingdom</option> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> |
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 removeXSS($val) { | |
$val = preg_replace('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/', '', $val); | |
$search = 'abcdefghijklmnopqrstuvwxyz'; | |
$search .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
$search .= '1234567890!@#$%^&*()'; | |
$search .= '~`";:?+/={}[]-_|\'\\'; | |
for ($i = 0; $i < strlen($search); $i++) { | |
$val = preg_replace('/(&#[xX]0{0,8}'.dechex(ord($search[$i])).';?)/i', $search[$i], $val); | |
$val = preg_replace('/(�{0,8}'.ord($search[$i]).';?)/', $search[$i], $val); | |
} |
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 emailgecerlimi($email){ | |
return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email); | |
} |
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 html2txt($t) | |
{ | |
$s = array('@<script[^>]*?>.*?</script>@si', | |
'@<style[^>]*?>.*?</style>@siU', | |
'@<[\/\!]*?[^<>]*?>@si', | |
'@<![\s\S]*?--[ \t\n\r]*>@' | |
); | |
$a = preg_replace($s, '', $t); | |
return $a; | |
} |
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
/** | |
* Version 2.1 | |
* -Contributors: "mindinquiring" : filter to exclude any stylesheet other than print. | |
* Tested ONLY in IE 8 and FF 3.6. No official support for other browsers, but will | |
* TRY to accomodate challenges in other browsers. | |
* Example: | |
* Print Button: <div id="print_button">Print</div> | |
* Print Area : <div class="PrintArea"> ... html ... </div> | |
* Javascript : <script> | |
* $("div#print_button").click(function(){ |
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 IPAdresiBul(){ | |
if (!emptyempty($_SERVER['HTTP_CLIENT_IP'])){ | |
$ipAdresi=$_SERVER['HTTP_CLIENT_IP']; | |
}elseif (!emptyempty($_SERVER['HTTP_X_FORWARDED_FOR'])){ | |
$ipAdresi=$_SERVER['HTTP_X_FORWARDED_FOR']; | |
}else{ | |
$ipAdresi=$_SERVER['REMOTE_ADDR']; | |
} | |
return $ipAdresi; | |
} |
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 turkcetarih($f, $zt = 'now'){ | |
$z = date("$f", strtotime($zt)); | |
$donustur = array( | |
'Monday' => 'Pazartesi', | |
'Tuesday' => 'Salı', | |
'Wednesday' => 'Çarşamba', | |
'Thursday' => 'Perşembe', | |
'Friday' => 'Cuma', | |
'Saturday' => 'Cumartesi', | |
'Sunday' => 'Pazar', |
OlderNewer