By qwerty_123 on
Hi everyone, I'm new to Drupal.
I'm trying to check if an user is logged in Drupal from a test.php empty file (in the same domain and folder of drupal index.php).
Is possible to do this?
Thankyou in advance.
Hi everyone, I'm new to Drupal.
I'm trying to check if an user is logged in Drupal from a test.php empty file (in the same domain and folder of drupal index.php).
Is possible to do this?
Thankyou in advance.
Comments
Have not tried it, just wrote
Have not tried it, just wrote from scratch:
Hope it works ;)
Thankyou! It works fine. In
Thankyou!
It works fine.
In this way i can use all Drupal function in my external file? And get all drupal propertyes and data?
I think yes...
Well you should be able to
Well you should be able to access all the globally available functions and variables, because the
_drupal_bootstrap_full()indrupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);calls themodule_invoke_all()function http://api.drupal.org/api/drupal/includes--module.inc/function/module_in....Thankyou very much. I have
Thankyou very much.
I have only one problem. When i click on the logout link, i get "Page not found".
Where is the problem?
The link is: http://localhost/mysite/?q=it/logout
Thankyou
can't find docs :-{
I know the short documentation for this existed here at some time, but today, the best short example of using drupal_bootstrap() seems to be at avenuewebmedia
Minimal required 2 lines are : http://drupal.org/node/579128#comment-2048732
.dan. is the New Zealand Drupal Developer working on Government Web Standards
That's true for Drupal 5.x
That's true for Drupal 5.x and 6.x but for 7.x you need the first line as well
Thankyou i've solved. The
Thankyou i've solved. The problem was the right link is "user/logout"