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
<html> | |
<head> | |
<title>Check AWB</title> | |
<style type="text/css"> | |
BODY, TD, INPUT { | |
font-family:Geneva, Arial, Helvetica, sans-serif; | |
font-size: 12px; | |
} | |
INPUT.submit { |
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
$page_output = strtr($page_output, $this->translations); |
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 | |
// Include Tropo classes. | |
require('tropo.class.php'); | |
// Include Limonade framework. | |
require('lib/limonade.php'); | |
// The URL to the Google weather service. Renders as XML doc. | |
define("GOOGLE_WEATHER_URL", "http://www.google.com/ig/api?weather=%zip%&hl=en"); |
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
# put in /root/.bashrc | |
echo 'ALERT - Root Shell Access on:' `date` `who | grep -v "203.24.76.33"` | mail -s "Alert: Root Access from `who | awk '{print $6}'| grep -v "203.24.76.33"`" [email protected] |
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 a.plantime_id AS plantime_id1, MIN(a.plan_time) AS plan_time1, | |
b.plantime_id AS plantime_id2, MIN(b.plan_time) plan_time2, | |
c.plantime_id AS plantime_id3, MIN(c.plan_time) plan_time3, | |
d.plantime_id AS plantime_id4, MIN(d.plan_time) plan_time4 | |
FROM golf__timeslots a | |
JOIN golf__timeslots b | |
ON a.business_id = b.business_id | |
AND a.plan_date = b.plan_date | |
AND b.availability = 'available' | |
AND b.course_id = '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
<?php | |
$total = 0; | |
$array1 = Array ( [tgl] => 07 [01] => 968 [total] => 35801 [02] => 29413 [03] => 731 [04] => 1172 [05] => 799 [06] => 1046 [07] => 1672 ); | |
$array2 = Array ( [tgl] => 07 [01] => 820 [total] => 10949 [02] => 6042 [03] => 1067 [04] => 946 [05] => 915 [06] => 834 [07] => 325 ); | |
// versi sederhana | |
unset($array1['tgl']); | |
$total += array_sum($array1); | |
unset($array2['tgl']); |