Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*#########################################################################*/
- /*### Flatfile CMS ###*/
- /*### Created by PEjump2 from RaGEZONE ###*/
- /*#########################################################################*/
- /*### Terms of Use ###*/
- /*### You are not allowed to redistribute for profit ###*/
- /*### or take credit for our workwithout consent of the creator. ###*/
- /*#########################################################################*/
- define("PATH_TO_DATABASE", $path_to_database);
- class Site
- {
- function ShowError($error)
- {
- die("<html>\n<head>\n<title>ERROR:</title>\n</head>\n<body>\n<center>\n<b>".$error."</b>\n</center>\n</body>\n</html>");
- // todo: Updating this error thingie, it freaking sucks! :@
- }
- function Login($post_user, $post_pass)
- {
- $username = strip_tags($post_user);
- $password = UserManager::Credentials($post_user, 'pass');
- if (UserManager::CheckBan($post_user) == true)
- {
- $_SESSION['login_error'] = "You'r banned faggot!";
- }
- else
- {
- if($post_pass == $password)
- {
- $_SESSION['loginuser'] = $username;
- $_SESSION['loginPass'] = $password;
- header('Location: me.php');
- }
- else
- {
- $_SESSION['login_error'] = "Wrong details!";
- }
- }
- }
- }
- $site = new Site;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement