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
#!/bin/bash | |
# Auto login venue wms password only | |
x=`ping -c1 8.8.8.8 2>&1 | grep 100%` | |
if [ ! "$x" = "" ]; then | |
echo "Gagal ping 8.8.8.8, mencoba restart interfave WWAN" | |
ifup wwan && echo "interface WWAN sukses direstart." || echo "Interface WWAN gagal di restart." | |
sleep 10 | |
landing_url=$(curl -Ls -H "$ua" -o ./landing_page.html -w %{url_effective} http://8.8.8.8) | |
echo "landing_url: $landing_url" | |
username="koncobolo22" |
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
<? | |
date_default_timezone_set("Asia/Jakarta"); | |
// Zona Waktu Jakarta GMT+7 | |
/* | |
* Ubah nilai waktu UPDATE_TIME_PERIOD sesuai waktu update berkala. | |
*/ | |
define('UPDATE_TIME_PERIOD','-1 hour'); // second, minute, hour, day, week, month, year |