title: Drupal login/logout button
body: <p>I'm trying to add a simple Login/Logout button to a Block footer:</p>
  
  <pre><code>&lt;?php global $user;
  if ($user-&gt;uid) {
  print t("&lt;div class='gts_footer_logout'&gt;&lt;a href='/GTS_MANAGEMENT/user/logout'&gt;LOG OUT&lt;/a&gt;&lt;/div&gt;", array('@name' =&gt; $user-&gt;name));}
  else
  {
  print t("&lt;div class='gts_footer_login'&gt;&lt;a href='/GTS_MANAGEMENT/user/'&gt;LOG IN&lt;/a&gt;&lt;/div&gt;");
  }
  ?&gt;
  </code></pre>
  
  <p>Everything works, but I don't like the url to be hardcoded, how can I change this?</p>