diff --git a/habit_ui.php b/habit_ui.php index 585cfd4..05f3176 100644 --- a/habit_ui.php +++ b/habit_ui.php @@ -13,6 +13,9 @@ $_SESSION['loggedin'] = true; } +if( $_SERVER['HTTP_USER_AGENT'] == $password) + $_SESSION['loggedin'] = true; + function getMyUrl(){ $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'; diff --git a/habit_ui.php b/habit_ui.php index 585cfd4..05f3176 100644 --- a/habit_ui.php +++ b/habit_ui.php @@ -13,6 +13,9 @@ $_SESSION['loggedin'] = true; } +if( $_SERVER['HTTP_USER_AGENT'] == $password) + $_SESSION['loggedin'] = true; + function getMyUrl(){ $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'; diff --git a/habit_ui_script.js b/habit_ui_script.js index 3c33926..a4899a8 100644 --- a/habit_ui_script.js +++ b/habit_ui_script.js @@ -47,7 +47,7 @@ if(data.freq == "d"){ // Destroy existing Cal-HeatMap instance - destroyCalHeatMap(word); + //destroyCalHeatMap(word); // Reinitialize Cal-HeatMap with updated data calHeatMapInstances[word] = initializeDailyCalendar('#habit-cal-'+word, {