Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv21124/phpslash-ft/class
Modified Files:
NavBar.class
Log Message:
NavBar.class - reduced global vars
Index: NavBar.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/NavBar.class,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** NavBar.class 2001/07/15 20:43:33 1.5
--- NavBar.class 2001/12/18 19:29:56 1.6
***************
*** 15,19 ****
class NavBar {
! var $templ, $self, $rootdir;
/*
--- 15,19 ----
class NavBar {
! var $templ;
/*
***************
*** 55,62 ****
function getNavBar ($tpl="", $menu_ary="") {
! global $rootdir, $templatedir, $admindir;
! global $pagetitle;
! global $use_glossary,$show_admin_on_navbar,$use_mailinglist;
! global $auth,$perm,$PHP_SELF;
$default_template = "navbar";
--- 55,59 ----
function getNavBar ($tpl="", $menu_ary="") {
! global $auth, $perm;
$default_template = "navbar";
***************
*** 86,92 ****
if($this->psl[show_admin_on_navbar]) {
if ($auth->is_authenticated() and $auth->auth["uid"] != "nobody" and is_object($perm)) {
! $this->parse("Logout " . $auth->auth["uname"], "$rootdir/login.php3?logout=yes");
} else {
! $this->parse("Login", "$rootdir/index.php3?login=yes");
}
}
--- 83,89 ----
if($this->psl[show_admin_on_navbar]) {
if ($auth->is_authenticated() and $auth->auth["uid"] != "nobody" and is_object($perm)) {
! $this->parse("Logout " . $auth->auth["uname"], "".$this->psl[rooturl]."login.php3?logout=yes");
} else {
! $this->parse("Login", "".$this->psl[rooturl]."/index.php3?login=yes");
}
}
|