Skip to content

Commit bd1fedd

Browse files
committed
[Minor] Fix typo check HTTPS call
Checked _SERVER variable has the wrong name to constitue the urls to request. It's now fixed.
1 parent 07ef6af commit bd1fedd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Main.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$SimpleBoard = ($SimpleBoard == true) ? "True" : "False";
1515
$ShootManiaCall = boolval(filter_input(INPUT_GET, 'SM')); // Used to know if it's a ShootMania call, else it's considered a TM² one
1616
$HideGuiGet = strtolower(filter_input(INPUT_GET, 'HideGui'));
17-
$DisplayPosition = boolval(filter_input(INPUT_GET, 'DisplayPosition')); // Used during map edition to know your exact position in the log (call it while racing)
17+
$DisplayPosition = boolval(filter_input(INPUT_GET, 'DisplayPosition')); // Used during map edition to know your exact position (call it w/ MT clip)
1818

1919
// Set constants used in the script
2020
$BgColor = "000B"; // Background color of the board window
@@ -34,7 +34,7 @@
3434
$RequiredContext = "CSmMlScriptIngame";
3535
}
3636
// URL used in the few requests done in the script (to get the board, the tokens and register a completed quest)
37-
$urlToRequest = ($_SERVER['SERVER_HTTPS'] == "on") ? "https://" : "http://";
37+
$urlToRequest = ($_SERVER['HTTPS'] == "on") ? "https://" : "http://";
3838
$urlToRequest .= $_SERVER['HTTP_HOST'].str_replace("Main.php", "", $_SERVER['SCRIPT_NAME']);
3939

4040
// Get the quest info
@@ -74,10 +74,10 @@
7474
main() {
7575
declare CMlLabel LblPosition = (Page.GetFirstChild("Position") as CMlLabel);
7676
declare Boolean Continue = True;
77-
declare Integer DisplayFrames = 10;
77+
declare Integer DisplayFrame = 10;
7878
declare Integer CurrentFrame = 0;
7979
while(Continue) {
80-
if (DisplayFrames < CurrentFrame) {
80+
if (DisplayFrame < CurrentFrame) {
8181
LblPosition.SetText(TextLib::ToText(GUIPlayer.Position));
8282
CurrentFrame = 0;
8383
}

0 commit comments

Comments
 (0)