mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-14 07:41:14 +01:00
26 lines
757 B
PHP
Executable file
26 lines
757 B
PHP
Executable file
<?php
|
|
|
|
/*
|
|
* Copyright (c) Codiad & daeks, distributed
|
|
* as-is and without warranty under the MIT License. See
|
|
* [root]/license.txt for more. This information must remain intact.
|
|
*/
|
|
|
|
|
|
require_once('../../common.php');
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// Verify Session or Key
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
if(isset($_GET['action']) && $_GET['action']!='authenticate'){ checkSession(); }
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// Get Username
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
if($_GET['action']=='username'){
|
|
echo $_SESSION['user'];
|
|
}
|
|
|
|
?>
|