fixes to make 'widgetify' android app play nicer
1 parent 5277f86 commit 9cbec6df792ba3596e405575e20edc2b686e8155
0xRoM authored on 7 Jan 2024
Showing 2 changed files
View
3
■■
habit_ui.php
 
if(isset($_REQUEST['password']) && md5($_REQUEST['password']) == $password){
$_SESSION['loggedin'] = true;
}
 
if( $_SERVER['HTTP_USER_AGENT'] == $password)
$_SESSION['loggedin'] = true;
 
 
function getMyUrl(){
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
View
2
■■■
habit_ui_script.js
}
 
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, {
data: "/index.php?action=habit_cal_daily&habit="+word,
Buy Me A Coffee