title: Is using "global" user in Drupal dangerous?
body: <p>I always hear using global variables are dangerous. Does this apply to Drupal? Take a look at the following example:</p>
  
  <pre><code>function myFunction($bla) {
     global $user;
     if (isAuthenticated($user-&gt;uid)) {
          print $secretCode;
     }
  
  }
  </code></pre>
  
  <p>Can this be hacked? </p>