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
Array | |
( | |
[1] => Array | |
( | |
[id] => 1 | |
[parentId] => 0 | |
[children] => Array | |
( | |
) |
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 = str_replace(",","(++)",$val); | |
$val = preg_replace('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/', '', $val); | |
$val = str_replace("(++)",",",$val); | |
$search = 'abcdefghijklmnopqrstuvwxyz'; | |
$search .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
$search .= '1234567890!@#$%^&*()'; | |
$search .= '~`";:?+/={}[]-_|\'\\'; |
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
$iller[1]="Adana"; | |
$iller[2]="Adıyaman"; | |
$iller[3]="Afyon"; | |
$iller[4]="Ağrı"; | |
$iller[5]="Amasya"; | |
$iller[6]="Ankara"; | |
$iller[7]="Antalya"; | |
$iller[8]="Artvin"; | |
$iller[9]="Aydın"; | |
$iller[10]="Balıkesir"; |
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
For Each eleman In ayar_panel.Controls | |
If (TypeOf eleman Is TextBox) Then | |
Dim tbox As TextBox | |
tbox = eleman | |
tbox.Text = "Merba canım" | |
End If | |
Next |
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
declare @DI integer; | |
set @DI = cast(cast(GETDATE() as datetime) as integer)+2; | |
print @DI; |
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
$cikti = array(); | |
//Lazım olacak diziyi üretelim önce | |
$anadizi[] = array("Ahmet"); | |
$anadizi[] = array("Ahmet 1"); | |
$anadizi[] = array("Ahmet Kim la"); | |
$anadizi[] = array("Amcolu"); | |
foreach($anadizi as $dizi){ | |
if(is_array($dizi)){ | |
$cikti[] = $dizi[0]; |
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 CtesiMi($gun,$ay,$yil){ | |
if(date("w",mktime(0,0,0,$ay,$gun,$yil))==6){return true;} | |
return false; | |
} |
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
server { | |
listen 80; ## listen for ipv4; this line is default and implied | |
server_name .siteadi.com; | |
if ($host == 'www.siteadi.com' ) { | |
rewrite ^/(.*)$ http://siteadi.com/$1 permanent; | |
} | |
root /var/www/siteadi.com; |
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
$arrays[] = $column1; | |
$arrays[] = $column2; | |
$arrays[] = $column3; | |
$arrays[] = $column4; | |
$return = array(); | |
for($x=0;$x<3;$x++){ | |
for($y=0;$y<4;$y++){ |
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
<body> | |
<div> | |
<ul class='bir'> | |
<li> | |
<a href='' class='deneme'>Test</a> | |
</li> | |
<li class='aktif'> | |
<a href='' class='aikin'>Test</a> | |
</li> | |
</ul> |
OlderNewer