Commit e398ff12 authored by Nico Schallehn's avatar Nico Schallehn

test

parent d9f7d5f5
<?php session_start(); <?php session_start();
include('../api.class.php'); include('../api.class.php');
if(isset($_GET["logoff"])){ if(isset($_GET["logoff"])){
echo "abmelden!!";
unset($_SESSION); unset($_SESSION);
setcookie ("api-key", "", time() - 3600); setcookie ("api-key", "", time() - 3600);
setcookie ("api-secret", "", time() - 3600); setcookie ("api-secret", "", time() - 3600);
session_destroy(); session_destroy();
header('location: /'); exit;
//header('location: /');
} }
// Anmeldung übeprüfen... // Anmeldung übeprüfen...
if((isset($_SESSION['api-key']) OR (isset($_COOKIE['api-key']) AND isset($_COOKIE['api-secret'])))){ if((isset($_SESSION['api-key']) OR (isset($_COOKIE['api-key']) AND isset($_COOKIE['api-secret'])))){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment