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
/** | |
* verilen bir yıl-ay için , o ay'ın haftalarının başlangic-bitiş tariherini döndüren bir php fonksiyonu | |
* not 1: biraz uzuncana bir fonksiyon oldu ama idare edin :) | |
* not 2: haftanın son gunu "pazar" kabul edildi. | |
*/ | |
function explodeMonthToWeeks($year, $month) { | |
$month = str_pad($month,2,'0',STR_PAD_LEFT); | |
$firstDayOfMonth = $year.'-'.$month.'-01'; |
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
void SayiYaz(int sayi){ | |
switch(sayi) | |
{ | |
case 0: | |
digitalWrite(E,LOW); | |
digitalWrite(D,LOW); | |
digitalWrite(C,LOW); | |
digitalWrite(B,LOW); | |
digitalWrite(A,LOW); | |
digitalWrite(F,LOW); |
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
void progressBar() { | |
digitalWrite(A,HIGH); | |
digitalWrite(B,HIGH); | |
digitalWrite(C,HIGH); | |
digitalWrite(D,HIGH); | |
digitalWrite(E,HIGH); | |
digitalWrite(F,HIGH); | |
digitalWrite(G,HIGH); | |
digitalWrite(A,LOW); |
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 isUploadable($fileName) | |
{ | |
$uploadable = true; | |
if( strpos($fileName, '.php') !== false ) { | |
$uploadable = false; | |
} | |
if( strpos($fileName, '.js') !== false ) { | |
$uploadable = 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
#we dont want executable php files here | |
RemoveHandler .php .phtml .php3 | |
RemoveType .php .phtml .php3 | |
php_flag engine off | |
<Files *.php> | |
deny from all | |
</Files> |