17 lines
564 B
PHP
17 lines
564 B
PHP
<?php
|
|
if(!isset($_GET['code'])) {
|
|
die('You cannot load this page directly! <a href="/">GO HOME</a>');
|
|
}
|
|
require('template/header.html');
|
|
require('template/footer.php');
|
|
?>
|
|
<script type="module">
|
|
import {functions} from './js/setup.js';
|
|
|
|
const urlparams = new URLSearchParams(window.location.search);
|
|
|
|
functions.createExecution('servers', '{"action": "redirect_code", "user_id": "' + urlparams.get('user_id') + '", "code": "' + urlparams.get('code') + '"}').then((res) => {
|
|
console.log(JSON.parse(res.response));
|
|
window.location.href = '/';
|
|
})
|
|
</script>
|