post
poster: Thetawaves
description: wtf user.php?????
language: PHP
[download]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

global $user;
if($user->uid!=0)
    {
print '<strong>User : <a href="/user/'.$user->uid.'">'.$user->name.'</a> ; ID = <a href="/user/'.$user->uid.'">'.$user->uid.'</a><br/>
Mail <a href="mailto:'.$user->mail.'">'.$user->mail.'</a></strong><br /><hr />';
print 'All field of object <strong>$user</strong> :<pre>';
print_r($user);
print '</pre>';

    }
else
    {
                echo('Please Login');
    }
?>