mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-24 23:45:38 +08:00
29 lines
No EOL
569 B
PHP
29 lines
No EOL
569 B
PHP
<?php
|
|
/**
|
|
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
|
|
* by https://t.me/ibnux
|
|
**/
|
|
|
|
|
|
class App{
|
|
public static function _run(){
|
|
return true;
|
|
}
|
|
|
|
public static function getToken(){
|
|
return md5(microtime());
|
|
}
|
|
|
|
public static function setToken($token, $value){
|
|
$_SESSION[$token] = $value;
|
|
}
|
|
|
|
public static function getTokenValue($key){
|
|
if(isset($_SESSION[$key])){
|
|
return $_SESSION[$key];
|
|
}else{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
} |