Removed leftovers from non-TLS

This commit is contained in:
2021-06-11 17:30:52 +02:00
parent 7bf7b0c656
commit a3dfa05bb2
11 changed files with 2 additions and 14 deletions
-1
View File
@@ -1,5 +1,4 @@
<?php <?php
// http://zovguran.net/Unalike/API
include "../api_key.php"; include "../api_key.php";
if (!empty($_GET["username"]) || !empty($_GET["userid"])) if (!empty($_GET["username"]) || !empty($_GET["userid"]))
-1
View File
@@ -1,6 +1,5 @@
<?php <?php
session_start(); session_start();
// http://zovguran.net/Unalike/OAuth/
if (!empty($_GET["error"]) && $_GET["error"] == "access_denied") if (!empty($_GET["error"]) && $_GET["error"] == "access_denied")
{ {
-4
View File
@@ -1,9 +1,5 @@
<?php <?php
session_start(); session_start();
// http://zovguran.net/Unalike/action/?(a|b|c)
// header("Content-Type: application/json");
// echo json_encode($_GET);
if (!empty($_SESSION["unalike-osu-id"]) && !empty($_SESSION["unalike-osu-username"]) && !empty($_SESSION["unalike-granted"]) && $_SESSION["unalike-granted"] === true) if (!empty($_SESSION["unalike-osu-id"]) && !empty($_SESSION["unalike-osu-username"]) && !empty($_SESSION["unalike-granted"]) && $_SESSION["unalike-granted"] === true)
{ {
-1
View File
@@ -1,6 +1,5 @@
<?php <?php
session_start(); session_start();
// http://zovguran.net/Unalike/async/
$unalike = json_decode(file_get_contents("../unalike.json"), true); $unalike = json_decode(file_get_contents("../unalike.json"), true);
// if (!empty($unalike)) // if (!empty($unalike))
-1
View File
@@ -1,6 +1,5 @@
<?php <?php
session_start(); session_start();
// http://zovguran.net/Unalike/async/
$relative_prefix = "../../lobbies/"; $relative_prefix = "../../lobbies/";
$original_suffix = ".json"; $original_suffix = ".json";
-1
View File
@@ -1,6 +1,5 @@
<?php <?php
session_start(); session_start();
// http://zovguran.net/Unalike/async/
$api_url = "http://localhost:80/Unalike/API"; $api_url = "http://localhost:80/Unalike/API";
-1
View File
@@ -1,6 +1,5 @@
<?php <?php
session_start(); session_start();
// http://zovguran.net/Unalike/
$authenticated = false; $authenticated = false;
include "api_key.php"; include "api_key.php";
-1
View File
@@ -1,5 +1,4 @@
<?php <?php
// http://zovguran.net/Unalike/login/
include "../api_key.php"; include "../api_key.php";
$scope = implode("+", [ "identify", "public" ]); $scope = implode("+", [ "identify", "public" ]);
-1
View File
@@ -1,6 +1,5 @@
<?php <?php
session_start(); session_start();
// http://zovguran.net/Unalike/logout
unset($_SESSION["unalike-osu-id"]); unset($_SESSION["unalike-osu-id"]);
unset($_SESSION["unalike-osu-username"]); unset($_SESSION["unalike-osu-username"]);
unset($_SESSION["unalike-granted"]); unset($_SESSION["unalike-granted"]);
+1 -1
View File
@@ -19,7 +19,7 @@ var buttonsIfOffline = `
`; `;
var buttonsIfOnline = ` var buttonsIfOnline = `
<button onclick="hiddenFunctionClick(this, 'action/?shutdown', 3)" class="button-osu button-osu-management button-negative"> <button onclick="hiddenFunctionClick(this, 'action/?shutdown', 3)" class="button-osu button-osu-management button-negative" disabled>
<div class="button-symbol">🔌</div> <div class="button-symbol">🔌</div>
<div class="button-label">Shut down</div> <div class="button-label">Shut down</div>
</button> </button>
+1 -1
View File
@@ -35,7 +35,7 @@ lobby_default_size = 1
polling_rate = 2 # 2 = report to the web api every 0.5 seconds (also affects IRC ping) polling_rate = 2 # 2 = report to the web api every 0.5 seconds (also affects IRC ping)
# this will be used in chat messages (can be anything, does not have to point to your Unalike) # this will be used in chat messages (can be anything, does not have to point to your Unalike)
unalike_url = "http://zovguran.net/Unalike/" unalike_url = "https://zovguran.net/Unalike/"
# change it to match your location of the Unalike API (does not have to be local) # change it to match your location of the Unalike API (does not have to be local)
unalike_api = "http://localhost:80/Unalike/API" unalike_api = "http://localhost:80/Unalike/API"