[development] $user->uid from outside drupal
Robert Wohleb
rob at techsanctuary.com
Sat Jun 17 19:43:03 UTC 2006
Take a look at drupal_bootstrap(). I'm not sure if you need to do a full
bootstrap, but I don't think it would hurt. See update.php for an example.
http://api.drupal.org/api/4.7/function/drupal_bootstrap
~Rob
Tamir Khason wrote:
> Hi, all.
>
> in 4.6 it was enough to include bootstrap.inc and common.inc and then
> check !$user->uid with global $user, but in 4.7 it does not works. How
> to do it? How to check if the user logged in from popup openned by
> drupal?
>
> Thank you
>
--
----------------------------------------------------------
It is by Caffeine alone that I set my mind in motion
It is by the beans of Java, that my thoughts acquire speed
The hands acquire shakes; the shakes become a warning
It is by Caffeine alone that I set my mind in motion
More information about the development
mailing list