Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@137 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Feb 3, 2001
1 parent 20873c1 commit f85edf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions menu_inc.php
@@ -1,6 +1,6 @@
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
?>
Expand All @@ -10,12 +10,14 @@
global $g_string_cookie_val, $g_path,
$g_mantis_user_table, $g_mantis_user_pref_table,
$g_hostname, $g_db_username, $g_db_password, $g_database_name,

$g_main_page, $g_view_bug_all_page,
$g_report_bug_page, $g_report_bug_advanced_page,
$g_summary_page, $g_account_page, $g_manage_page,
$g_news_menu_page, $g_usage_doc_page, $g_logout_page,

$s_main_link, $s_view_bugs_link, $s_report_bug_link,
$s_summary_link, $s_account_link,
$s_summary_link, $s_account_link, $g_manage_project_menu_page,
$s_manage_link, $s_edit_news_link, $s_docs_link,
$s_logout_link;
}
Expand All @@ -24,12 +26,8 @@

### grab the access level and protected information for the
### currently logged in user
$query = "SELECT access_level, protected
FROM $g_mantis_user_table
WHERE cookie_string='$g_string_cookie_val'";
$result = db_query($query);
$t_access_level = db_result( $result, 0, 0 );
$t_protected = db_result( $result, 0, 1 );
$t_access_level = get_current_user_field( "access_level" );
$t_protected = get_current_user_field( "protected" );
?>
<div align=center>
<a href="<? echo $g_path.$g_main_page ?>"><? echo $s_main_link ?></a> |
Expand Down
2 changes: 1 addition & 1 deletion meta_inc.php
@@ -1,6 +1,6 @@
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2000, 2001 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
?>
Expand Down

0 comments on commit f85edf7

Please sign in to comment.