Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('config.inc.php');
- require_once('MySQLHandler.class.php');
- class UserSystem {
- public function __construct()
- {
- }
- public function getUserData($string)
- {
- return $_COOKIE[$string];
- }
- public function deleteUserData($string)
- {
- return setcookie($string, "");
- }
- public function setUserData($string, $value)
- {
- return setcookie($string, $value, time()+3600);
- }
- public function checkUserData($string, $value)
- {
- if($_COOKIE["".$string.""] == $value)
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
- public function showError($string)
- {
- echo '<div id="error">'.$string.'</div>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment