daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Feb 9th, 2018 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   3.0.8.0
  8. * @ Author          :   DeZender
  9. * @ Release on      :   25.09.2017
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13.  
  14. include 'inc/database.php';
  15. include 'inc/functions.php';
  16. $q = 'SELECT valid_ips FROM setting ';
  17. $r = mysql_query( $q );
  18. $row = mysql_fetch_array( $r );
  19. $invalid_ip = false;
  20.  
  21. if (trim( $row['valid_ips'] )) {
  22.     $valid_ip_list = explode( ',', $row['valid_ips'] );
  23.  
  24.     foreach ($valid_ip_list as $k => $ip) {
  25.         $valid_ip_list[$k] = trim( $ip );
  26.     }
  27. }
  28.  else {
  29.     $valid_ip_list = array(  );
  30. }
  31.  
  32. $q = 'SELECT * FROM white_label ';
  33. $r = mysql_query( $q );
  34. $row = mysql_fetch_array( $r );
  35. $_SESSION['white_label']['logo_path'] = $row['logo_path'];
  36. $_SESSION['white_label']['background_path'] = (($row['background_path'] ? 'temp/' . $row['background_path'] : 'img/placeholders/headers/login_header.jpg'));
  37. $_SESSION['white_label']['favicon_path'] = $row['favicon_path'];
  38. $_SESSION['white_label']['title'] = $row['title'];
  39. $_SESSION['white_label']['hide_footer'] = $row['hide_footer'];
  40. $_SESSION['white_label']['title'] = $row['title'];
  41. $_SESSION['white_label']['hide_footer'] = $row['hide_footer'];
  42. $_SESSION['white_label']['subscriber_label'] = (($row['subscriber_label'] ? $row['subscriber_label'] : 'Subscriber'));
  43. $_SESSION['white_label']['email_required'] = $row['email_required'];
  44. $_SESSION['white_label']['tag_line'] = $row['tag_line'];
  45. $_SESSION['white_label']['footer_licensed'] = $row['footer_licensed'];
  46. $_SESSION['white_label']['footer_powered'] = $row['footer_powered'];
  47. $_SESSION['white_label']['meta_title'] = $row['meta_title'];
  48. $_SESSION['white_label']['meta_keywords'] = $row['meta_keywords'];
  49. $_SESSION['white_label']['meta_description'] = $row['meta_description'];
  50. $error = $user_id = $forgot_password = 0;
  51.  
  52. if (isset( $_REQUEST['logout'] )) {
  53.     setcookie( 'rememberme', '', 0, '/' );
  54.     session_destroy(  );
  55.     session_start(  );
  56. }
  57.  else {
  58.     $cookie = ((isset( $_COOKIE['rememberme'] ) ? $_COOKIE['rememberme'] : ''));
  59.  
  60.     if ($cookie) {
  61.         list($user, $token, $mac) = explode( ':', $cookie );
  62.  
  63.         if ($mac !== hash_hmac( 'sha256', $user . ':' . $token, md5( $domain_url ) )) {
  64.             header( 'Location: login.php?logout=1' );
  65.             exit(  );
  66.         }
  67.  
  68.         $user_id = fetchTokenByUserName( $user, $token );
  69.     }
  70. }
  71.  
  72. if (isset( $_POST['login-email'] )) {
  73.     $loginemail = mysql_real_escape_string( addslashes( $_POST['login-email'] ) );
  74. ..................................................................
  75. ...........................
  76. ......
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top