| Server IP : 50.21.180.56 / Your IP : 216.73.216.208 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67922704 ( 67922704) PHP Version : 8.5.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/thread-self/cwd/wp-content/plugins_old/dhtmlxspreadsheet/codebase/php/ |
Upload File : |
<?php
/**
(c) DHTMLX Ltd, 2011
Licensing: You allowed to use this component for free under GPL or you need to obtain Commercial/Enterprise license to use it in non-GPL project
Contact: sales@dhtmlx.com
**/
class User {
static function check_cookie() {
require("config.php");
if ((isset($_COOKIE["qb_login"]))&&(isset($_COOKIE["qb_password"]))) {
$login_c = $_COOKIE["qb_login"];
$password_c = $_COOKIE["qb_password"];
if (($login_c == $username)&&(md5($password) == $password_c)) {
return true;
}
}
return false;
}
static function check_user($login_c, $password_c) {
require("config.php");
if (($login_c == $username)&&($password == $password_c)) {
return true;
}
return false;
}
static function login($login, $password) {
setcookie("qb_login", $login, time()+60*60*24*7);
setcookie("qb_password", md5($password), time()+60*60*24*7);
}
static function logout() {
setcookie("qb_login", "", time() - 3600);
setcookie("qb_password", "", time() - 3600);
}
}
?>