Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.3
- * @ Author : DeZender
- * @ Release on : 06.05.2013
- * @ Official site : http://DeZender.Net
- *
- */
- define("IPBWI_ROOT_COOKIE", "/");
- if (!(function_exists("wp_set_auth_cookie"))) {
- function wp_set_auth_cookie($user_id, $remember = false, $secure = "") {
- define("IPBWI_ROOT_COOKIE", "/");
- $domain = $GLOBALS["ipbwi"]->getBoardVar("cookie_domain");
- if ($remember) {
- $expiration = $expire = time() + 1209600;
- }
- else {
- $expiration = time() + 172800;
- $expire = 0;
- }
- if ("" === $secure) {
- $secure = is_ssl() ? true : false;
- }
- if ($secure) {
- $auth_cookie_name = SECURE_AUTH_COOKIE;
- $scheme = "secure_auth";
- }
- else {
- $auth_cookie_name = AUTH_COOKIE;
- $scheme = "auth";
- }
- $auth_cookie = wp_generate_auth_cookie($user_id, $expiration, $scheme);
- $logged_in_cookie = wp_generate_auth_cookie($user_id, $expiration, "logged_in");
- do_action("set_auth_cookie", $auth_cookie, $expire, $expiration, $user_id, $scheme);
- do_action("set_logged_in_cookie", $logged_in_cookie, $expire, $expiration, $user_id, "logged_in");
- if (version_compare(phpversion(), "5.2.0", "ge")) {
- setcookie($auth_cookie_name, $auth_cookie, $expire, IPBWI_ROOT_COOKIE, $domain, $secure);
- setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, IPBWI_ROOT_COOKIE, $domain);
- if (COOKIEPATH != SITECOOKIEPATH) {
- setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, IPBWI_ROOT_COOKIE, $domain, false, true);
- return null;
- }
- }
- $cookie_domain = $domain;
- if (!(empty($cookie_domain))) {
- $cookie_domain .= "; HttpOnly";
- ...................................................................
- ..................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement