mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
commit
62c447da9b
1 changed files with 20 additions and 1 deletions
|
@ -29,4 +29,23 @@ class App{
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
public static function getVoucher(){
|
||||
return md5(microtime());
|
||||
}
|
||||
|
||||
public static function setVoucher($token, $value){
|
||||
$_SESSION[$token] = $value;
|
||||
}
|
||||
|
||||
public static function getVoucherValue($key){
|
||||
if(empty($key)){
|
||||
return "";
|
||||
}
|
||||
if(isset($_SESSION[$key])){
|
||||
return $_SESSION[$key];
|
||||
}else{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue