Current Status for #TopSecretProject #WaktuSolat

1) @waktuSolatKL – Kuala Lumpur (17920 followers)
2) @waktuSolatPNG – Penang (238 followers)
3) @waktuSolatIPOH – Ipoh, Perak (387 followers)
4) @waktuSolatKTN – Kuantan, Pahang (186 followers)
5) @waktuSolatMLK – Melaka (233 followers)
6) @waktuSolatWPP – Putrajaya (85 followers)
7) @waktuSolatPLS – Perlis (51 followers)
8) @waktuSolatSBN – Seremban, Negeri Sembilan (137 followers)
9) @waktuSolatKBR – Kota Bharu, Kelantan (134 followers)
10) @waktuSolatKTRG – Kuala Terengganu (106 followers)
11) @waktuSolatASR – Alor Setar, Kedah (116 followers)
12) @waktuSolatJBR – Johor Bahru, Johor (97 followers)
13) @waktuSolatKKB – Kota Kinabalu, Sabah (21 followers)
14) @waktuSolatKCH – Kuching, Sarawak (305 followers)
15) @waktuSolatLKW – Langkawi (9 followers)
16) @waktuSolatMUR – Muar, Johor (28 followers)
17) @waktuSolatLBN – Labuan (9 followers)
18) @waktuSolatSAS – Shah Alam, Selangor (669 followers)
19) @waktuSolatMIR – Miri, Sarawak (49 followers)

iOS 5 Beta 6

Have to update the iOS 5 Beta 6 manually via iTunes due to unavailability of OTA services on my iDevices. Weird if i tried to update via OTA, will display my iOS 5 is up to date but it’s actually running on iOS 5 Beta 4. Must be the beta thingie la kot

 

Function checkTime()

Disebabkan ada yang bertanya pasal function checkTime() yang digunakan dalam #WaktuSolat, camni rupanya :-

[php]

function checkTime($currentTime, $startTime, $endTime){

// written 11/26/2006 by Patrick H. (patrickh@gmail.com)

//

// the time passed must meet all the below criteria to return 1 (true):

//

// – current hour needs to be equal or greater than start hour

// – current hour needs to be equal or less than end hour

// – current minute needs to be equal or greater than start minute (if current hour is ok)

// – current minute needs to be equal or less than end minute (if current hour is ok)

//

// if any of those checks does not pass, it will return 0 (false)

 

global $cHour;

global $cMin;

global $sHour;

global $sMin;

global $eHour;

global $eMin;

 

// break up current time

$now = explode(“:”,$currentTime);

$cHour = intval($now[0]); // current time – hour

$cMin = intval($now[1]); // current time – minute

 

// break up start time

$start = explode(“:”,$startTime);

$sHour = intval($start[0]); // start of range – hour

$sMin = intval($start[1]); // start of range – minute

 

// brek up end time

$end = explode(“:”,$endTime);

$eHour = intval($end[0]); // end of range – hour

$eMin = intval($end[1]); // end of range – minute

 

// this is the variable used to track the result of the checks

$pass = true;

 

if($sHour <= $eHour){

// the range is on the same day

 

// compare to the start hour

if($cHour < $sHour){

$pass = false;

}

 

// compare to the end hour

if($cHour > $eHour){

$pass = false;

}

 

// compare to the start min

if($cHour == $sHour){

if($cMin < $sMin){

$pass = false;

}

}

 

// compare to the end min

if($cHour == $eHour){

if($cMin > $eMin){

$pass = false;

}

}

 

} else {

// the range is overnight, so the logic is a little different

 

if( ($cHour < $sHour) && ($cHour > $eHour) ){

$pass = false;

}

 

// compare to the start min

if($cHour == $sHour){

if($cMin < $sMin){

$pass = false;

}

}

 

// compare to the end min

if($cHour == $eHour){

if($cMin > $eMin){

$pass = false;

}

}

 

}

 

// done with check, return the result

if($pass == false){

return 0; // failed

} else {

return 1; // passed

}

 

}

[/php]

Selamat mencuba!

CEH Certified :)

Alhamdulillah I’ve passed the CEH (Certified Ethical Hacker) exam. Banyak ilmu offensive hacking diajar masa training. Mudah2an ilmu tu berkat & dapat membantu.

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑