Skip to content

Commit

Permalink
Modified comments to use one # instead of ### (save space)
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@625 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Jan 11, 2002
1 parent 7b7b2da commit 1ceb5da
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 51 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -15,6 +15,7 @@ Mantis
* Modified version string to be longer.
* Modified html functions to consolidate code.
* Modified confirm messages to consolidate localization strings.
* Modified comments to use one # instead of ### (save space)
* Added view by page feature.
* Added edit new link in news update page.
* Added file upload into database.
Expand Down
2 changes: 1 addition & 1 deletion admin_cookiecheck.php3
Expand Up @@ -23,6 +23,6 @@
?>
<p>
If the test is failed then your browser may have cookies turned off. Additionally, your webserver or PHP may be configured incorrectly.
<? } ### end f_action if ?>
<? } # endif f_action ?>
<p>
<a href="admin_cookiecheck.php3?f_action=test">Click here</a> to reload the page and see if the value was set correctly.
6 changes: 3 additions & 3 deletions admin_upgrade_0_14_0.php3
Expand Up @@ -66,7 +66,7 @@ PRINT "UPDATED PROJECTS";
$result = db_query( $query );
$bug_count = db_num_rows( $result );

### update bug table
# update bug table
$query3 = "ALTER TABLE mantis_bug_table ADD project_id INT (7) UNSIGNED ZEROFILL not null AFTER id";
$result3 = db_query( $query3 );
if ( $result3 ) {
Expand Down Expand Up @@ -112,7 +112,7 @@ PRINT "UPGRADED BUGS";
$result = db_query( $query );
$news_count = db_num_rows( $result );

### update news table
# update news table
$query3 = "ALTER TABLE mantis_news_table ADD project_id INT (7) UNSIGNED ZEROFILL not null AFTER id";
$result3 = db_query( $query3 );
if ( $result3 ) {
Expand Down Expand Up @@ -140,7 +140,7 @@ PRINT "UPGRADED NEWS";
$result = db_query( $query );
$user_count = db_num_rows( $result );

### update user tables
# update user tables
$query3 = "ALTER TABLE mantis_user_table ADD login_count INT not null DEFAULT '0' AFTER access_level";
$result3 = db_query( $query3 );
if ( $result3 ) {
Expand Down
4 changes: 2 additions & 2 deletions bug_resolve_page.php3
Expand Up @@ -15,7 +15,7 @@
<? print_page_top1() ?>
<? print_page_top2() ?>

<? ### Resolve Form BEGIN ?>
<? # Resolve Form BEGIN ?>
<p>
<div align="center">
<table class="width50" cellspacing="0">
Expand Down Expand Up @@ -62,6 +62,6 @@
</form>
</table>
</div>
<? ### Resolve Form END ?>
<? # Resolve Form END ?>

<? print_page_bot1( __FILE__ ) ?>
52 changes: 26 additions & 26 deletions config_inc.php
Expand Up @@ -5,7 +5,7 @@
# See the files README and LICENSE for details

###########################################################################
### CONFIGURATION VARIABLES ###
# CONFIGURATION VARIABLES
###########################################################################

# In general a value of 0 means the feature is disabled and 1 means the
Expand All @@ -17,7 +17,7 @@
error_reporting(E_ALL);

################################
### Mantis Database Settings ###
# Mantis Database Settings
################################

# --- database variables ---------
Expand All @@ -30,7 +30,7 @@
$g_database_name = "bugtracker";

############################
### Mantis Path Settings ###
# Mantis Path Settings
############################

# --- path variables --------------
Expand All @@ -48,23 +48,23 @@
$g_absolute_path = "/usr/local/www/data/mantis/";

#############################
### Web Server ###
# Web Server
#############################

# --- using MS IIS ----------------
# set to 1 if you use IIS
$g_use_iis = 0;

#############################
### Mantis Version String ###
# Mantis Version String
#############################

# --- version variables -----------
$g_mantis_version = "0.16.0";
$g_show_version = ON;

#############################
### Mantis Email Settings ###
# Mantis Email Settings
#############################

# --- email variables -------------
Expand Down Expand Up @@ -131,7 +131,7 @@
$g_smtp_host = "localhost";

################################
### Mantis Language Settings ###
# Mantis Language Settings
################################

# --- language settings -----------
Expand All @@ -142,7 +142,7 @@
$g_language_choices_arr = array( "english", "chinese_traditional", "danish", "dutch", "french", "french2", "german", "italian", "korean", "norwegian", "polish", "portuguese_brazilian", "portuguese_standard", "russian", "spanish", "swedish", "turkish" );

###############################
### Mantis Display Settings ###
# Mantis Display Settings
###############################

# --- sitewide variables ----------
Expand Down Expand Up @@ -183,7 +183,7 @@
$g_show_priority_text = OFF;

############################
### Mantis JPGRAPH Addon ###
# Mantis JPGRAPH Addon
############################

# --- jpgraph settings --- #
Expand All @@ -199,7 +199,7 @@
$g_jpgraph_path = "./jpgraph/"; # dont forget the ending slash!

############################
### Mantis Time Settings ###
# Mantis Time Settings
############################

# --- time varaibles --------------
Expand All @@ -214,7 +214,7 @@
$g_content_expire = 0;

############################
### Mantis Date Settings ###
# Mantis Date Settings
############################

# --- date format settings --------
Expand All @@ -226,7 +226,7 @@
$g_complete_date_format = "m-d-y H:i T";

############################
### Mantis News Settings ###
# Mantis News Settings
############################

# --- Limit News Items ------------
Expand All @@ -242,7 +242,7 @@
$g_news_view_limit_days = 30;

##################################
### Mantis Default Preferences ###
# Mantis Default Preferences
##################################

# --- signup default ---------------
Expand Down Expand Up @@ -276,7 +276,7 @@
# default_language - is set to site language

###############################
### Mantis Summary Settings ###
# Mantis Summary Settings
###############################

# how many reporters to show
Expand All @@ -291,7 +291,7 @@
$g_date_partitions = array( 1, 2, 3, 7, 30, 60, 90, 180, 365);

###############################
### Mantis Bugnote Settings ###
# Mantis Bugnote Settings
###############################

# --- bugnote settings ------------
Expand All @@ -300,11 +300,11 @@
$g_bugnote_order = "ASC";

###################################
### Mantis File Upload Settings ###
# Mantis File Upload Settings
###################################

# --- file upload settings --------
### @@@ This should be broken into per project settings and split between bug uploads and project document uploads
# @@@ This should be broken into per project settings and split between bug uploads and project document uploads
$g_allow_file_upload = ON;

# Upload destination: specify actual location in project settings
Expand All @@ -314,7 +314,7 @@
$g_max_file_size = 5000000; # 5 MB

############################
### Mantis HTML Settings ###
# Mantis HTML Settings
############################

# --- html tags -------------------
Expand All @@ -336,15 +336,15 @@
$g_primary_table_tags = "";

##########################
### Mantis HR Settings ###
# Mantis HR Settings
##########################

# --- hr --------------------------
$g_hr_size = 1;
$g_hr_width = 50;

#############################
### Mantis LDAP Settings ###
# Mantis LDAP Settings
#############################

# look in README.LDAP for details
Expand All @@ -356,7 +356,7 @@
$g_use_ldap_email = 0; # Should we send to the LDAP email address or what MySql tells us

############################
### Mantis Misc Settings ###
# Mantis Misc Settings
############################

# --- threshold -------------------
Expand All @@ -381,7 +381,7 @@
$g_allow_close_immediately = OFF;

##############################
### Mantis Color Variables ###
# Mantis Color Variables
##############################

# --- color values ----------------
Expand Down Expand Up @@ -409,7 +409,7 @@


###############################
### Mantis Cookie Variables ###
# Mantis Cookie Variables
###############################

# --- cookie prefix ---------------
Expand Down Expand Up @@ -457,7 +457,7 @@
}

#######################################
### Mantis Database Table Variables ###
# Mantis Database Table Variables
#######################################

# --- table prefix ----------------
Expand All @@ -481,7 +481,7 @@
$g_mantis_user_pref_table = $g_db_table_prefix."_user_pref_table";

###########################
### Mantis Enum Strings ###
# Mantis Enum Strings
###########################

# --- enum strings ----------------
Expand All @@ -498,7 +498,7 @@
$g_eta_enum_string = "10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month";

#############################
### Mantis Page Variables ###
# Mantis Page Variables
#############################

#----------------------------------
Expand Down
8 changes: 4 additions & 4 deletions constant_inc.php
Expand Up @@ -5,11 +5,11 @@
# See the files README and LICENSE for details

###########################################################################
### CONFIGURATION VARIABLES ###
# CONFIGURATION VARIABLES
###########################################################################

########################
### Mantis Constants ###
# Mantis Constants
########################

# --- constants -------------------
Expand All @@ -31,7 +31,7 @@
define( "ADMINISTRATOR", 90 );

# status
define( "NEW_", 10 ); ### NEW seems to be a reserved keyword
define( "NEW_", 10 ); # NEW seems to be a reserved keyword
define( "FEEDBACK", 20 );
define( "ACKNOWLEDGED", 30 );
define( "CONFIRMED", 40 );
Expand Down Expand Up @@ -92,7 +92,7 @@

# email padding
define( "EMAIL_PAD_LENGTH", 28 );

# show variable values
define( "BOTH", 0 );
define( "SIMPLE_ONLY", 1 );
Expand Down
2 changes: 1 addition & 1 deletion core_database_API.php
Expand Up @@ -5,7 +5,7 @@
# See the files README and LICENSE for details

###########################################################################
# Database ###
# Database
###########################################################################

# This in the general interface for all database calls.
Expand Down
2 changes: 1 addition & 1 deletion core_html_API.php
Expand Up @@ -253,7 +253,7 @@ function print_source_link( $p_file ) {
PRINT "</div>";
}
}
# --------------------
# --------------------
# print the hr
function print_hr( $p_hr_size, $p_hr_width ) {
PRINT "<hr size=\"$p_hr_size\" width=\"$p_hr_width%\">";
Expand Down
12 changes: 6 additions & 6 deletions summary_graph_functions.php3
Expand Up @@ -27,7 +27,7 @@ include ($g_jpgraph_path."jpgraph_bar.php");
project_id='$g_project_cookie_val'";
$result = db_query( $query );
$enum_name_count[] = db_result( $result, 0 );
} ### end for
} # end for
}


Expand Down Expand Up @@ -110,7 +110,7 @@ include ($g_jpgraph_path."jpgraph_bar.php");
$result2 = db_query( $query );
$resolved_bug_count[] = db_result( $result2, 0, 0 );

} ### end for
} # end for
}


Expand Down Expand Up @@ -188,7 +188,7 @@ include ($g_jpgraph_path."jpgraph_bar.php");
$reporter_count[] = $t_count;
}

} ### end for
} # end for
}


Expand Down Expand Up @@ -248,7 +248,7 @@ include ($g_jpgraph_path."jpgraph_bar.php");
$result2 = db_query( $query );
$category_bug_count[] = db_result( $result2, 0, 0 );

} ### end for
} # end for
}


Expand Down Expand Up @@ -307,7 +307,7 @@ include ($g_jpgraph_path."jpgraph_bar.php");
function create_cumulative_bydate(){
global $metrics, $g_mantis_bug_table, $g_project_cookie_val;

### Get all the submitted dates
# Get all the submitted dates
$query = "SELECT UNIX_TIMESTAMP(date_submitted) as date_submitted
FROM $g_mantis_bug_table
WHERE project_id='$g_project_cookie_val'
Expand All @@ -331,7 +331,7 @@ include ($g_jpgraph_path."jpgraph_bar.php");

$t_clo_val = CLOSED;
$t_res_val = RESOLVED;
### Get all the resolved dates
# Get all the resolved dates
$query = "SELECT UNIX_TIMESTAMP(last_updated) as last_updated
FROM $g_mantis_bug_table
WHERE project_id='$g_project_cookie_val' AND
Expand Down

0 comments on commit 1ceb5da

Please sign in to comment.