Skip to content

Commit

Permalink
updates for 0.15.0
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@249 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
prescience committed May 10, 2001
1 parent af08201 commit 2635b20
Show file tree
Hide file tree
Showing 21 changed files with 426 additions and 125 deletions.
59 changes: 59 additions & 0 deletions api.php3
@@ -0,0 +1,59 @@
<?
function print_core_links() {
#$path = "/home/www/mantis/";
$path = "./../";

$files = 0;
$xfile = array();
$handle = opendir( $path );
while ( $file = readdir( $handle ) ) {
if ( strpos( $file, "ore_" ) > 0 ) {
$xfile[$files] = $file;
$files++;
}
}
closedir( $handle );

sort ( $xfile );
$tmp = 0;
while ( $tmp < $files ) {
PRINT "<li><A HREF=\"view_source.php3?f_file=$xfile[$tmp]\">$xfile[$tmp]</A>";
$tmp++;
}
}
?>
<html>
<head>
<style>
body { background-color:#ffffff; font-family:Verdana, Arial; font-size=10pt }
td { font-family:Verdana, Arial; font-size=10pt }
p { font-family:Verdana, Arial; font-size=10pt }
</style>
<title>Mantis</title>
</head>
<body>

<p>
<div align=center>
<h2>Mantis</h2>
Last modified: <? echo date( "M d, Y - H:m", getlastmod() )?>
</div>

<p>
<div align=center>

<table width=100%>
<tr valign=top>
<? include("side_menu.php3") ?>
<td>
<b><font size=+1>API</font></b>
<p>
Click on the links to see a list of the functions in each file.
<p>
<? print_core_links() ?>
</td>
</tr>
</table>

</body>
</html>
5 changes: 0 additions & 5 deletions credits.php3
Expand Up @@ -49,10 +49,5 @@ Translations:
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
6 changes: 0 additions & 6 deletions cvs.php3
Expand Up @@ -35,11 +35,5 @@ Follow the link and follow the commands there. The module name you want to use
</tr>
</table>


<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions database.php3
Expand Up @@ -65,10 +65,5 @@ One of the unforseen 'benefits' of using mysql is that most of the SQL is very s
</tr>
</table>

<p>
<div align=right>
<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions demo.php3
Expand Up @@ -44,10 +44,5 @@ Again, feel free to explore but please, <font color=#ff0000><b>do not play with
</tr>
</table>

<p>
<div align=right>
<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
65 changes: 60 additions & 5 deletions devnotes.php3
Expand Up @@ -24,6 +24,10 @@ p { font-family:Verdana, Arial; font-size=10pt }
<td>
<p>
<b><font size=+1>Developer Notes</font></b>

<p>
If you wish to join the development team please <a href="mailto:kenito@300baud.org">email me</a>.

<p>
Here are some notes that should help people understand the way Mantis is layed out.
<p>
Expand All @@ -34,16 +38,67 @@ Here are some notes that should help people understand the way Mantis is layed o
<li><a href="images/dg_manage.gif">Manage overview</a> <? echo round(filesize("images/dg_manage.gif") / 1024) ?>KB
<li><a href="images/dg_overview.gif">Detailed complete overview</a> <? echo round(filesize("images/dg_overview.gif") / 1024) ?>KB
</ul>

<p>
Recommneded features for your editor of choice:
<ul>
<li>Syntax Highlighting
<li>DOS 2 UNIX CR/LF conversions
<li>Find and Replace
<li>Find in Files (recurse directories)
<li>Find and Replace in Files (recurse directories)
<li>Trim Trailing Whitespace
<li>Set TAB Width
<li>Show Line Number
<li>Goto Line Number
<li>Word Wrap Toggle
</ul>

<p>
Mantis roughly divides into the following modules:
<ul>
<li>Account Management
<li>Account Profile Management
<li>Account Preference Management
<li>Authentication
<li>Bug Reporting
<li>Bug Updating
<li>Bug Viewing
<li>Bugnotes
<li>Database Access
<li>Documentation
<li>Email Notification
<li>Icons
<li>Localization
<li>News Management
<li>Project Management
<li>String Manipulation
<li>Summary
<li>User Management
</ul>

<p>
Mantis is lacking in the following areas:
<ul>
<li>Reporting (printable format, weekly/monthly progress charts, line graphs, bar charts, PDF exporting)
<li>Logging
<li>Database Abstraction
<li>Search
<li>Multiple Authentication
<li>User Defined Input Fields
</ul>

<p>
Some cool features that could be implemented:
<ul>
<li>IM integration (ICQ/Jabber/etc)
<li>NNTP mirroring (send to newsgroups)
<li>email control/front-end
</ul>

</td>
</tr>
</table>

<p>
<div align=right>
<a href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions download.php3
Expand Up @@ -42,10 +42,5 @@ I would prefer that you sign up on the announcements <a href="mailinglists.php3"
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions forums.php3
Expand Up @@ -35,10 +35,5 @@ The following forums are hosted at Sourceforge. You can post anonymously. Plea
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
47 changes: 20 additions & 27 deletions guidelines.php3
Expand Up @@ -30,29 +30,40 @@ p { font-family:Verdana, Arial; font-size=10pt }

<p>

<h3>Naming</h3>
<h3>Variables</h3>
<ul>
<li>Use descriptive names (except loop variables)
<li>Single character variables should only be used for loop variables
<li>Use _ to separate words
<li>Always use lowercase
<li>Always use lowercase ( $this_is_a_variable )
<li>Use .php3 or .php for all file extensions. Do not use .inc
<li>Form variables are prefixed with f_
<li>User variables are prefixed with u_
<li>Temporary variables are prefixed with t_
<li>Function parameters should be prefixed with p_
<li>Global varialbes should be prefixed with g_
<li>Global variables should be prefixed with g_
<li>Temporary variables are prefixed with t_
<li>Use the v_ prefix for primary purpose variables in a page
<li>$query and $result should be used for SQL query text and results respectively.
<li>Never prefix with l_ or o_ or q_ (visually confusing)
<li>$query and $result should be used for SQL query and results respectively
<li>Count variables should follow the format $<what>_count. eg $bug_count
<li>Included files should be suffixed by _inc.php
<li>Count variables should follow the format $<what>_count. eg $bug_count.
<li>functions that print should be prefixed with print_.
</ul>

<h3>Functions</h3>
<ul>
<li>Use _ to separate words
<li>Always use lowercase ( this_is_a_function() )
<li>Keep functions to 5 words or less
<li>Functions that print should be prefixed with print_.
<li>Try to use prefixes to group functions (ie, email_, news_, etc)
</ul>

<h3>Formatting</h3>
<ul>
<li>Use TABS with a size of 4 to make the code easily readable while not wasting too much space
<li>Follow the table formatting of existing pages
<li>Break up SQL queries to be easy to read
<li>Use &lt;? and ?&gt; for php delimiters
<li>Try not to print/echo html code unless it's short or in a function loop
</ul>

<h3>Page Guidelines</h3>
Expand All @@ -65,34 +76,16 @@ p { font-family:Verdana, Arial; font-size=10pt }
<li>At the bottom will be the footer information and closing print_ functions.
</ul>

<a href="http://utvikler.start.no/code/php_coding_standard.html">PHP Coding Standard</a> has _excellent_ guidelines for php programming style. For the most part I seem to have followed it (except for TABS vs spaces). If something is ambiguous consult this link or email me.
<a href="http://utvikler.start.no/code/php_coding_standard.html">PHP Coding Standard</a> has excellent guidelines for php programming style. For the most part I seem to have followed it (except for TABS vs spaces). If something is ambiguous consult this link or email me.
Above all, write code that is easy to read and maintain. Code that is not will be rewritten or deleted. Comment blocks of code and functions at all times. Get onto me if I fail to adhere to my own words.

<!-- ---------------------------------------------------------------------- -->
<p>
<hr size=1>
<p>

<font size=-1>
<b>ChangeLog</b>
<p>

<li>version 1.1 Fedbruary 10, 2000 - Kenzaburo Ito (kenito@300baud.org)<br>
<i>Added PHP Coding Standard document link</i>
<li>version 1.0 December 23, 2000 - Kenzaburo Ito (kenito@300baud.org)<br>
<i>Initial creation</i>

</font>
<p>
<hr size=1>
</td>
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
8 changes: 2 additions & 6 deletions index.php3
Expand Up @@ -21,6 +21,7 @@ p { font-family:Verdana, Arial; font-size=10pt }
<tr valign=top>
<? include("side_menu.php3") ?>
<td>
<? include( "mantis/constant_inc.php" ) ?>
<? include( "mantis/config_inc.php" ) ?>
<?
function db_connect($p_hostname="localhost", $p_username="root",
Expand All @@ -37,7 +38,7 @@ p { font-family:Verdana, Arial; font-size=10pt }
}
### --------------------
function string_display_with_br( $p_string ) {
return str_replace( "&lt;br&gt;", "<br>", htmlspecialchars(stripslashes( $p_string )));
return htmlspecialchars(stripslashes( $p_string ));
}
### --------------------
function sql_to_unix_time( $p_timeString ) {
Expand Down Expand Up @@ -129,10 +130,5 @@ p { font-family:Verdana, Arial; font-size=10pt }
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions info.php3
Expand Up @@ -75,10 +75,5 @@ My biggest problem with every web based bugtracking package that I have come acr
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions localization.php3
Expand Up @@ -111,10 +111,5 @@ Currently some strings are hard-coded into the database tables or the code. Thi
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions mailinglists.php3
Expand Up @@ -33,10 +33,5 @@ There is a mailing list for announcements. Announcements will be posted to it a
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions mantis.php3
Expand Up @@ -107,10 +107,5 @@ I won't publish the information without permission, but I would appreciate the f
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>
5 changes: 0 additions & 5 deletions news.php3
Expand Up @@ -129,10 +129,5 @@ p { font-family:Verdana, Arial; font-size=10pt }
</tr>
</table>

<p>
<div align=right>
<A href="http://sourceforge.net"> <IMG src="http://sourceforge.net/sflogo.php?group_id=14963" width="88" height="31" border="0" alt="SourceForge Logo"></A>
</div>

</body>
</html>

0 comments on commit 2635b20

Please sign in to comment.