Ross Marks
Home
About
Portfolio
Git
Blog
Contact
Youtube
Twitch
Twitter
Linkedin
GitBucket
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Fork
: 0
0xRoM
/
moodlog_web
Browse code
fixes to make 'widgetify' android app play nicer
master
1 parent
5277f86
commit
9cbec6df792ba3596e405575e20edc2b686e8155
0xRoM
authored
on 7 Jan 2024
Patch
Unified
Split
Showing
2 changed files
+3
-0
■
■
■
■■
habit_ui.php
+1
-1
■
■
■■■
habit_ui_script.js
Ignore Space
Show notes
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'
;
Ignore Space
Show notes
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
,
Show line notes below