common.php 222 B

123456789101112131415
  1. <?php
  2. require_once("libs.inc.php");
  3. require_once("db.php");
  4. session_start();
  5. if (isset($_SESSION['user']))
  6. $username = $_SESSION['user']['username'];
  7. else
  8. $username = '';
  9. $smarty->assign("username", $username);
  10. ?>