DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
cookie
CiviCRM hook_user to not set an empty $_SESSION["civicrm"] for anonymous users - needed for Pressflow
January 15, 2010 - 3:33pm —
EvanDonovan
function
civicrm_user
(
$type
,
&
$edit
,
&
$user
,
$category
=
NULL
)
{
$current_user
=
$_GLOBALS
[
"user"
]
;
if
(
$current_user
-
>
uid
== 0
&&
(
arg
(
0
)
==
"user"
&&
is_numeric
(
arg
(
1
)
)
)
)
{
retur
civicrm
cookie
hack
hook_user
pressflow
session
Read more
Fix for CiviCRM hook_user to not set an empty $_SESSION["civicrm"] for anonymous users - needed for Pressflow
January 15, 2010 - 3:32pm —
EvanDonovan
function
civicrm_user
(
$type
,
&
$edit
,
&
$user
,
$category
=
NULL
)
{
$current_user
=
$_GLOBALS
[
"user"
]
;
if
(
$current_user
-
>
uid
== 0
&&
(
arg
(
0
)
==
"user"
&&
is_numeric
(
arg
(
1
)
)
)
)
{
retur
civicrm
cookie
hack
hook_user
pressflow
session
Read more
cookie SSO
August 27, 2009 - 3:33pm —
Andy
<?php
define
(
'EXTERN_COOKIE'
,
'3rdparty_session'
)
;
// name of 3rd party cookie
/**
* Implementation of hook_init()
*/
function
cookiesso_init
(
)
{
global
$user
;
$cookiesso_cookie
authentication
cookie
sso
Read more
Catch the cookie and start the crawler
June 12, 2008 - 10:51am — Anonymous
/**
* Implementation of the crawler page.
*/
function
page_security_scanner
(
)
{
// Check if the auth session cookie value is already into the db, otherwise call
catch cookie
cookie
Read more
Problems catching the cookie
June 12, 2008 - 9:26am — Anonymous
/**
* Get the first link to insert into the table
*/
function
insert_first_link
(
)
{
$initial_path
=
user_pass_reset_url
(
user_load
(
1
)
)
;
catch cookie
cookie
Read more