Ignore this

This commit is contained in:
ION606
2022-09-14 18:35:45 -04:00
parent 8e420dee0b
commit 5367112f36
8 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -222,7 +222,7 @@
if (inp.inp == 'cal') { if (inp.inp == 'cal') {
var xhrsess = new XMLHttpRequest(); var xhrsess = new XMLHttpRequest();
xhrsess.open('post', 'http://www.selmerbot.com/getSessionInfo/', true); xhrsess.open('post', 'https://www.selmerbot.com/getSessionInfo/', true);
xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId')); xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId'));
@@ -236,7 +236,7 @@
//Send the data to the server //Send the data to the server
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('post', 'http://www.selmerbot.com/sendData/', true); xhr.open('post', 'https://www.selmerbot.com/sendData/', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.setRequestHeader(`reminders`, true); xhr.setRequestHeader(`reminders`, true);
xhr.setRequestHeader(`delObjKeys`, delObjKeys); xhr.setRequestHeader(`delObjKeys`, delObjKeys);
@@ -255,7 +255,7 @@
async function createCalEvent(day) { async function createCalEvent(day) {
// event.preventDefault(); // event.preventDefault();
await new Promise((res, rej) => { res(window.open('http://www.selmerbot.com/newCalEvent.html','newCalPopWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent.html','newCalPopWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); })
.then((w) => { .then((w) => {
if (!w) { alert("Your browser has JavaScript Disabled!"); return w.close(); } if (!w) { alert("Your browser has JavaScript Disabled!"); return w.close(); }
+5 -5
View File
@@ -277,7 +277,7 @@
async function openNewCalWindow(evjs, day) { async function openNewCalWindow(evjs, day) {
const ev = JSON.parse(evjs); const ev = JSON.parse(evjs);
await new Promise((res, rej) => { res(window.open('http://www.selmerbot.com/calEvent.html','popUpWindow','loaction=no,width=600,height=300,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/calEvent.html','popUpWindow','loaction=no,width=600,height=300,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); })
.then((w) => { .then((w) => {
if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); } if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); }
@@ -292,7 +292,7 @@
async function createCalEvent(day) { async function createCalEvent(day) {
await new Promise((res, rej) => { res(window.open('http://www.selmerbot.com/newCalEvent.html','popUpWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent.html','popUpWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); })
.then((w) => { .then((w) => {
if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); } if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); }
@@ -381,7 +381,7 @@
function getSessionData() { function getSessionData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
var xhrsess = new XMLHttpRequest(); var xhrsess = new XMLHttpRequest();
xhrsess.open('post', 'http://www.selmerbot.com/getSessionInfo/', true); xhrsess.open('post', 'https://www.selmerbot.com/getSessionInfo/', true);
xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId')); xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId'));
@@ -414,7 +414,7 @@
const id = sessionInfo.userId; const id = sessionInfo.userId;
//Check if the user has premium //Check if the user has premium
var xhrverify = new XMLHttpRequest(); var xhrverify = new XMLHttpRequest();
xhrverify.open('post', 'http://www.selmerbot.com/verifypremium/', true); xhrverify.open('post', 'https://www.selmerbot.com/verifypremium/', true);
xhrverify.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhrverify.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
//Use the guild Id as the userId //Use the guild Id as the userId
@@ -426,7 +426,7 @@
} }
var xhr2 = new XMLHttpRequest(); var xhr2 = new XMLHttpRequest();
xhr2.open('get', 'http://www.selmerbot.com/getCal/', true); xhr2.open('get', 'https://www.selmerbot.com/getCal/', true);
xhr2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhr2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
//Use the guild Id as the userId //Use the guild Id as the userId
+2 -2
View File
@@ -263,7 +263,7 @@
</script> </script>
<script> <script>
//Get the redirect link <!-- NOTE: "response_type=token" ALWAYS!!! http://www.selmerbot.com/ --> //Get the redirect link <!-- NOTE: "response_type=token" ALWAYS!!! https://www.selmerbot.com/ -->
function getAPIRedirect() { function getAPIRedirect() {
if (window.location.href.indexOf('localhost') != -1) { if (window.location.href.indexOf('localhost') != -1) {
return 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds'; return 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds';
@@ -275,7 +275,7 @@
function logout() { function logout() {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('post', 'http://www.selmerbot.com/logout/', true); xhr.open('post', 'https://www.selmerbot.com/logout/', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.setRequestHeader('sessionid', window.localStorage.getItem('sessionId')); xhr.setRequestHeader('sessionid', window.localStorage.getItem('sessionId'));
+1 -1
View File
@@ -519,7 +519,7 @@ app.get('/', async ({ query }, response) => {
client_secret: clientSecret, client_secret: clientSecret,
code, code,
grant_type: 'authorization_code', grant_type: 'authorization_code',
redirect_uri: `http://www.selmerbot.com/`, redirect_uri: `https://www.selmerbot.com/`,
scope: 'identify', scope: 'identify',
}), }),
headers: { headers: {
+3 -3
View File
@@ -58,7 +58,7 @@
function getSessionData() { function getSessionData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
var xhrsess = new XMLHttpRequest(); var xhrsess = new XMLHttpRequest();
xhrsess.open('post', 'http://www.selmerbot.com/getSessionInfo/', true); xhrsess.open('post', 'https://www.selmerbot.com/getSessionInfo/', true);
xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId')); xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId'));
@@ -117,13 +117,13 @@
imagem.onclick = function() { imagem.onclick = function() {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('post', 'http://www.selmerbot.com/setCurrentServer/', true); xhr.open('post', 'https://www.selmerbot.com/setCurrentServer/', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.setRequestHeader('serverNumber', guilds[i].id); xhr.setRequestHeader('serverNumber', guilds[i].id);
xhr.setRequestHeader('sessionid', window.localStorage.getItem("sessionId")); xhr.setRequestHeader('sessionid', window.localStorage.getItem("sessionId"));
xhr.onloadend = (e) => { xhr.onloadend = (e) => {
// window.sessionStorage.setItem('serverInfo', (xhr.response)); // window.sessionStorage.setItem('serverInfo', (xhr.response));
window.location = 'http://www.selmerbot.com/dashboard.html'; window.location = 'https://www.selmerbot.com/dashboard.html';
} }
xhr.send(); xhr.send();
} }
+2 -2
View File
@@ -127,7 +127,7 @@
function getSessionData() { function getSessionData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
var xhrsess = new XMLHttpRequest(); var xhrsess = new XMLHttpRequest();
xhrsess.open('post', 'http://www.selmerbot.com/getSessionInfo/', true); xhrsess.open('post', 'https://www.selmerbot.com/getSessionInfo/', true);
xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhrsess.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId')); xhrsess.setRequestHeader('session', window.localStorage.getItem('sessionId'));
@@ -194,7 +194,7 @@
//Send the data to the server //Send the data to the server
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('post', 'http://www.selmerbot.com/newCalEvent/', true); xhr.open('post', 'https://www.selmerbot.com/newCalEvent/', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.setRequestHeader(`newCalEvent`, JSON.stringify(obj)); xhr.setRequestHeader(`newCalEvent`, JSON.stringify(obj));
+2 -2
View File
@@ -164,7 +164,7 @@
function logout() { function logout() {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('post', 'http://www.selmerbot.com/logout/', true); xhr.open('post', 'https://www.selmerbot.com/logout/', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
xhr.setRequestHeader('sessionid', window.localStorage.getItem('sessionId')); xhr.setRequestHeader('sessionid', window.localStorage.getItem('sessionId'));
@@ -176,7 +176,7 @@
xhr.send(); xhr.send();
} }
//Get the redirect link <!-- NOTE: "response_type=token" ALWAYS!!! http://www.selmerbot.com/ --> //Get the redirect link <!-- NOTE: "response_type=token" ALWAYS!!! https://www.selmerbot.com/ -->
function getAPIRedirect() { function getAPIRedirect() {
if (window.location.href.indexOf('localhost') != -1) { if (window.location.href.indexOf('localhost') != -1) {
return 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds'; return 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds';
+1 -1
View File
@@ -254,7 +254,7 @@
<div class="row"> <div class="row">
<div style="text-align: center;"> <div style="text-align: center;">
<button onclick="window.open('http://www.selmerbot.com/', target='_blank')" class="webBtn">selmerbot.com</button> <button onclick="window.open('https://www.selmerbot.com/', target='_blank')" class="webBtn">selmerbot.com</button>
<script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="ion606" data-color="#FFDD00" data-emoji="" data-font="Cookie" data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#ffffff"></script> <script type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="ion606" data-color="#FFDD00" data-emoji="" data-font="Cookie" data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#000000" data-coffee-color="#ffffff"></script>
</div> </div>
</div> </div>