cookie

CiviCRM hook_user to not set an empty $_SESSION["civicrm"] for anonymous users - needed for Pressflow

  1. function civicrm_user( $type, &$edit, &$user, $category = NULL )
  2. {
  3.     $current_user = $_GLOBALS["user"];
  4.                
  5.                 if($current_user->uid == 0 && (arg(0) == "user" && is_numeric(arg(1)))) {
  6.                   retur

Fix for CiviCRM hook_user to not set an empty $_SESSION["civicrm"] for anonymous users - needed for Pressflow

  1. function civicrm_user( $type, &$edit, &$user, $category = NULL )
  2. {
  3.     $current_user = $_GLOBALS["user"];
  4.                
  5.                 if($current_user->uid == 0 && (arg(0) == "user" && is_numeric(arg(1)))) {
  6.                   retur

cookie SSO

  1. <?php
  2.  
  3. define ('EXTERN_COOKIE','3rdparty_session');  // name of 3rd party cookie
  4.  
  5. /**
  6.  * Implementation of hook_init()
  7.  */
  8. function cookiesso_init() {
  9.   global $user;
  10.  
  11.   $cookiesso_cookie

Catch the cookie and start the crawler

  1.   /**
  2.    *  Implementation of the crawler page.
  3.    */    
  4.   function page_security_scanner() {
  5.     //  Check if the auth session cookie value is already into the db, otherwise call

Problems catching the cookie

  1.   /**
  2.    *  Get the first link to insert into the table
  3.    */
  4.    function insert_first_link() {
  5.     $initial_path = user_pass_reset_url(user_load(1));
  6.    
Syndicate content