Sfoglia il codice sorgente

+ integrate_mod_cache, integrate_cookie

Signed-off-by: John Rayes <[email protected]>
John Rayes 12 anni fa
parent
commit
d9e42faaf6
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      Sources/Subs-Auth.php

+ 4 - 0
Sources/Subs-Auth.php

@@ -743,6 +743,7 @@ function rebuildModCache()
 		'mb' => $boards_mod,
 		'mq' => $mod_query,
 	);
+	call_integration_hook('integrate_mod_cache');
 
 	$user_info['mod_cache'] = $_SESSION['mc'];
 
@@ -771,6 +772,9 @@ function smf_setcookie($name, $value = '', $expire = 0, $path = '', $domain = ''
 	if ($secure === null)
 		$secure = !empty($modSettings['secureCookies']);
 
+	// Intercept cookie?
+	call_integration_hook('integrate_cookie', array($name, $value, $expire, $path, $domain, $secure, $httponly));
+
 	// This function is pointless if we have PHP >= 5.2.
 	if (version_compare(PHP_VERSION, '5.2', '>='))
 		return setcookie($name, $value, $expire, $path, $domain, $secure, $httponly);