Skip to content

Commit

Permalink
moved sql related stuff
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@110 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 24, 2000
1 parent e29cdf8 commit befca5e
Show file tree
Hide file tree
Showing 27 changed files with 156 additions and 190 deletions.
6 changes: 3 additions & 3 deletions account_delete_page.php3
Expand Up @@ -6,6 +6,9 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
Expand All @@ -14,9 +17,6 @@
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
16 changes: 8 additions & 8 deletions account_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand All @@ -28,6 +20,14 @@
extract( $row, EXTR_PREFIX_ALL, "u" );
}
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
16 changes: 8 additions & 8 deletions account_prefs_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand Down Expand Up @@ -49,6 +41,14 @@
$row = mysql_fetch_array($result);
extract( $row, EXTR_PREFIX_ALL, "u" );
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
3 changes: 0 additions & 3 deletions bug_delete_page.php3
Expand Up @@ -14,9 +14,6 @@
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
19 changes: 0 additions & 19 deletions bug_resolve_page.php3
Expand Up @@ -6,25 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

/* ### get date submitted (weird bug in mysql)
$query = "SELECT date_submitted
FROM $g_mantis_bug_table
WHERE id='$f_id'";
$result = mysql_query( $query );
$t_date_submitted = mysql_result( $result, 0 );
### Update fields
$query = "UPDATE $g_mantis_bug_table
SET status='feedback',
resolution='reopened',
date_submitted='$t_date_submitted',
last_updated=NOW()
WHERE id='$f_id'";
$result = mysql_query($query);*/
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
Expand Down
16 changes: 8 additions & 8 deletions bug_update_advanced_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand All @@ -36,6 +28,14 @@
$v2_steps_to_reproduce = string_display_with_br( $v2_steps_to_reproduce );
$v2_additional_information = string_display_with_br( $v2_additional_information );
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
16 changes: 8 additions & 8 deletions bug_update_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand All @@ -36,6 +28,14 @@
$v2_steps_to_reproduce = string_display_with_br( $v2_steps_to_reproduce );
$v2_additional_information = string_display_with_br( $v2_additional_information );
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
13 changes: 8 additions & 5 deletions bugnote_add.php3
Expand Up @@ -87,11 +87,14 @@
}
?>
<p>
<? if ( get_current_user_profile_field( "advanced_view" )=="on" ) { ?>
<a href="<? echo $g_view_bug_advanced_page ?>?f_id=<? echo $f_id ?>"><? echo $s_proceed ?></a>
<? } else { ?>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $f_id ?>"><? echo $s_proceed ?></a>
<? } ?>
<?
if ( get_current_user_profile_field( "advanced_view" )=="on" ) {
PRINT "<a href=\"$g_view_bug_advanced_page?f_id=$f_id\">$s_proceed</a>";
}
else {
PRINT "<a href=\"$g_view_bug_page?f_id=$f_id\">$s_proceed</a>";
}
?>
</div>

<? print_footer(__FILE__) ?>
Expand Down
2 changes: 0 additions & 2 deletions bugnote_add_inc.php
Expand Up @@ -5,8 +5,6 @@
# See the files README and LICENSE for details
?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

### check access level
if ( access_level_check_greater_or_equal( "reporter" ) ) {
?>
Expand Down
13 changes: 8 additions & 5 deletions bugnote_delete.php3
Expand Up @@ -64,11 +64,14 @@
?>

<p>
<? if ( get_current_user_profile_field( "advanced_view" )=="on" ) { ?>
<a href="<? echo $g_view_bug_advanced_page ?>?f_id=<? echo $f_id ?>"><? echo $s_proceed ?></a>
<? } else { ?>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $f_id ?>"><? echo $s_proceed ?></a>
<? } ?>
<?
if ( get_current_user_profile_field( "advanced_view" )=="on" ) {
PRINT "<a href=\"$g_view_bug_advanced_page?f_id=$f_id\">$s_proceed</a>";
}
else {
PRINT "<a href=\"$g_view_bug_page?f_id=$f_id\">$s_proceed</a>";
}
?>
</div>

<? print_footer(__FILE__) ?>
Expand Down
16 changes: 8 additions & 8 deletions main_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand All @@ -34,6 +26,14 @@
$result = db_query( $query );
$news_count = mysql_num_rows( $result );
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
16 changes: 8 additions & 8 deletions manage_category_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand All @@ -23,6 +15,14 @@
exit;
}
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
16 changes: 8 additions & 8 deletions manage_create_user_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand All @@ -23,6 +15,14 @@
exit;
}
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
19 changes: 9 additions & 10 deletions manage_page.php3
Expand Up @@ -14,16 +14,7 @@
header( "Location: $g_logout_page" );
exit;
}
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?

if ( !isset( $f_sort ) ) {
$f_sort = "username";
}
Expand All @@ -50,6 +41,14 @@
$result = db_query($query);
$user_count = mysql_num_rows($result);
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
16 changes: 8 additions & 8 deletions manage_product_versions_page.php3
Expand Up @@ -6,14 +6,6 @@
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );

Expand All @@ -23,6 +15,14 @@
exit;
}
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down
3 changes: 0 additions & 3 deletions manage_user_delete_page.php3
Expand Up @@ -14,9 +14,6 @@
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<?
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
?>

<p>
<? print_menu( $g_menu_include_file ) ?>
Expand Down

0 comments on commit befca5e

Please sign in to comment.