/[scire]/scire/.lib/common.php
Gentoo

Diff of /scire/.lib/common.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 98 Revision 99
41 41
42# ACL class 42# ACL class
43require_once('phpGACL.php'); 43require_once('phpGACL.php');
44 44
45# Check login 45# Check login
46if (!isset($_SESSION['userid'])) { 46if (!isset($_SESSION['username'])) {
47 header('Location: ' . $baseurl . 'login.php?afterlogin=' . urlencode($_SERVER['REQUEST_URI'])); 47 header('Location: ' . $baseurl . 'login.php?afterlogin=' . urlencode($_SERVER['REQUEST_URI']));
48 exit(0); 48 exit(0);
49} else { 49} else {
50 $smarty->assign('user', $_SESSION['userid']); 50 $smarty->assign('userid', $_SESSION['userid']);
51 $smarty->assign('username', $_SESSION['username']);
51} 52}
52 53
53?> 54?>

Legend:
Removed from v.98  
changed lines
  Added in v.99

  ViewVC Help
Powered by ViewVC 1.1.20