You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(34) |
Aug
(215) |
Sep
(180) |
Oct
(135) |
Nov
(105) |
Dec
(81) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(76) |
Feb
(22) |
Mar
(154) |
Apr
(149) |
May
(128) |
Jun
(94) |
Jul
(14) |
Aug
(24) |
Sep
(77) |
Oct
(52) |
Nov
(22) |
Dec
(6) |
| 2003 |
Jan
(4) |
Feb
(10) |
Mar
(6) |
Apr
(29) |
May
(10) |
Jun
(37) |
Jul
(39) |
Aug
(13) |
Sep
(23) |
Oct
(3) |
Nov
(7) |
Dec
(2) |
| 2004 |
Jan
|
Feb
(10) |
Mar
(4) |
Apr
|
May
(35) |
Jun
(4) |
Jul
(17) |
Aug
(6) |
Sep
(14) |
Oct
(18) |
Nov
(2) |
Dec
(14) |
| 2005 |
Jan
(9) |
Feb
(30) |
Mar
(6) |
Apr
|
May
(38) |
Jun
(23) |
Jul
(21) |
Aug
(76) |
Sep
(50) |
Oct
(51) |
Nov
(13) |
Dec
|
|
From: Benjamin C. <bc...@us...> - 2002-10-02 18:44:39
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv28100a
Modified Files:
config-dist.php
Log Message:
Tweaked the include path for auth.php a bit.
Index: config-dist.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config-dist.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- config-dist.php 16 Sep 2002 19:10:56 -0000 1.20
+++ config-dist.php 2 Oct 2002 18:44:36 -0000 1.21
@@ -68,6 +68,6 @@
define ('ONEDAY', 86400);
-require_once ('inc/auth.php');
+require_once ('./inc/auth.php');
?>
|
|
From: Benjamin C. <bc...@us...> - 2002-10-02 18:43:49
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv27760
Modified Files:
install.php
Log Message:
Use the included smarty by default.
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- install.php 27 Sep 2002 19:24:38 -0000 1.32
+++ install.php 2 Oct 2002 18:43:46 -0000 1.33
@@ -24,9 +24,7 @@
// $Id$
// Location of smarty templates class
-define ('SMARTY_PATH', '');
-// Example if smarty is installed within the phpBugTracker tree.
-//define ('SMARTY_PATH','./inc/smarty/');
+define ('SMARTY_PATH','./inc/smarty/');
if (!@include(SMARTY_PATH . 'Smarty.class.php')) { // Template class
include('templates/default/base/smartymissing.html');
|
|
From: Benjamin C. <bc...@us...> - 2002-09-30 18:02:09
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv16724/templates/default/admin
Modified Files:
database-edit.html databaselist.html
Log Message:
Fixing bug #615945 - Removing all remnants of database_version field.
Index: database-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/database-edit.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- database-edit.html 21 May 2002 12:51:03 -0000 1.2
+++ database-edit.html 30 Sep 2002 18:02:06 -0000 1.3
@@ -14,10 +14,6 @@
<td><input type="text" size="20" maxlength="30" name="database_name" value="{$database_name|stripslashes|htmlspecialchars}"></td>
</tr>
<tr>
- <td align="right" valign="top">Version:</td>
- <td><input type="text" size="10" maxlength="10" name="database_version" value="{$database_version|stripslashes|htmlspecialchars}"></td>
-</tr>
-<tr>
<td align="right" valign="top">Sort Order:</td>
<td><input type="text" size="3" maxlength="3" name="sort_order" value="{$sort_order}"></td>
</tr>
Index: databaselist.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/databaselist.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- databaselist.html 21 May 2002 12:52:01 -0000 1.3
+++ databaselist.html 30 Sep 2002 18:02:06 -0000 1.4
@@ -2,7 +2,7 @@
<!--
var me = '{$SCRIPT_NAME}';
{literal}
-
+
function popupDatabase(id) {
window.open(me + '?op=edit&use_js=1&database_id='+id, 'ewin', 'dependent=yes,width=350,height=300,scrollbars=1');
}
@@ -17,14 +17,12 @@
<table border="0" cellpadding="2" cellspacing="1" width="100%">
<tr>
<th class="{$headers.name.class}"><a href="{$headers.name.url}">{$STRING.name}</a></th>
- <th class="{$headers.version.class}"><a href="{$headers.version.url}">{$STRING.version}</a></th>
<th class="{$headers.sortorder.class}"><a href="{$headers.sortorder.url}">{$STRING.sortorder}</a></th>
<th>Delete</th>
</tr>
{section name=database loop=$databases}
<tr{if $smarty.section.database.iteration is even} class="alt"{/if}>
<td><a href="{$SCRIPT_NAME}?op=edit&database_id={$databases[database].database_id}" onClick="popupDatabase({$databases[database].database_id}); return false;">{$databases[database].database_name|stripslashes}</a></td>
- <td> {$databases[database].database_version}</td>
<td align="center">{$databases[database].sort_order}</td>
<td align="center">
{if not $databases[database].bug_count}
@@ -34,7 +32,7 @@
</tr>
{/section}
<tr>
- <td colspan="4" align="center">
+ <td colspan="3" align="center">
<br>
{$first} - {$last} of {$total}
<br>
|
|
From: Benjamin C. <bc...@us...> - 2002-09-30 18:02:08
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv16724/admin
Modified Files:
database.php
Log Message:
Fixing bug #615945 - Removing all remnants of database_version field.
Index: database.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/database.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- database.php 26 Aug 2002 18:11:12 -0000 1.2
+++ database.php 30 Sep 2002 18:02:05 -0000 1.3
@@ -28,7 +28,7 @@
function del_item($databaseid = 0) {
global $db, $me;
-
+
if ($databaseid) {
// Make sure we are going after a valid record
$itemexists = $db->getOne('select count(*) from '.TBL_DATABASE.
@@ -51,21 +51,18 @@
// Validation
if (!$database_name = trim($database_name))
$error = $STRING['givename'];
- elseif (!$database_desc = trim($database_version))
- $error = $STRING['giveversion'];
if ($error) { show_form($databaseid, $error); return; }
if (empty($sort_order)) $sort_order = 0;
if (!$databaseid) {
$db->query("insert into ".TBL_DATABASE.
- " (database_id, database_name, database_version, sort_order)
+ " (database_id, database_name, sort_order)
values (".$db->nextId(TBL_DATABASE).', '.
- $db->quote(stripslashes($database_name)).', '.
- $db->quote(stripslashes($database_desc)).", $sort_order)");
+ $db->quote(stripslashes($database_name)).
+ ", $sort_order)");
} else {
$db->query("update ".TBL_DATABASE.
" set database_name = ".$db->quote(stripslashes($database_name)).
- ', database_version = '.$db->quote(stripslashes($database_version)).
", sort_order = $sort_order where database_id = $database_id");
}
if ($use_js) {
@@ -91,16 +88,16 @@
function list_items($databaseid = 0, $error = '') {
global $me, $db, $t, $_gv, $STRING, $TITLE, $QUERY;
- if (empty($_gv['order'])) {
- $order = 'sort_order';
- $sort = 'asc';
+ if (empty($_gv['order'])) {
+ $order = 'sort_order';
+ $sort = 'asc';
} else {
- $order = $_gv['order'];
- $sort = $_gv['sort'];
+ $order = $_gv['order'];
+ $sort = $_gv['sort'];
}
-
+
$page = isset($_gv['page']) ? $_gv['page'] : 0;
-
+
$nr = $db->getOne("select count(*) from ".TBL_DATABASE);
list($selrange, $llimit) = multipages($nr, $page, "order=$order&sort=$sort");
@@ -111,7 +108,6 @@
$headers = array(
'databaseid' => 'database_id',
'name' => 'database_name',
- 'version' => 'database_version',
'sortorder' => 'sort_order');
sorting_headers($me, $headers, $order, $sort);
|
|
From: Benjamin C. <bc...@us...> - 2002-09-30 18:02:08
|
Update of /cvsroot/phpbt/phpbt/inc/db In directory usw-pr-cvs1:/tmp/cvs-serv16724/inc/db Modified Files: mysql.php oci8.php pgsql.php Log Message: Fixing bug #615945 - Removing all remnants of database_version field. Index: mysql.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/db/mysql.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- mysql.php 13 Sep 2002 19:33:17 -0000 1.14 +++ mysql.php 30 Sep 2002 18:02:06 -0000 1.15 @@ -31,9 +31,9 @@ 'sort_order '. 'order by %s %s', 'admin-list-databases' => 'select d.database_id, database_name, '. - 'database_version, sort_order, count(bug_id) as bug_count '. + 'sort_order, count(bug_id) as bug_count '. 'from '.TBL_DATABASE. ' d left join '.TBL_BUG.' using (database_id) '. - 'group by d.database_id, database_name, database_version, sort_order '. + 'group by d.database_id, database_name, sort_order '. 'order by %s %s', 'admin-list-sites' => 'select s.site_id, site_name, sort_order, '. 'count(bug_id) as bug_count from '.TBL_SITE. ' s left join '. Index: oci8.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/db/oci8.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- oci8.php 13 Sep 2002 19:33:17 -0000 1.12 +++ oci8.php 30 Sep 2002 18:02:06 -0000 1.13 @@ -33,13 +33,13 @@ 'sort_order '. 'order by %s %s', 'admin-list-databases' => 'select d.database_id, database_name, '. - 'database_version, sort_order, count(bug_id) as bug_count '. + 'sort_order, count(bug_id) as bug_count '. 'from '.TBL_DATABASE.' d, '.TBL_BUG.' b '. 'where d.database_id = b.database_id(+) '. - 'group by d.database_id, database_name, database_version, sort_order '. + 'group by d.database_id, database_name, sort_order '. 'order by %s %s', - 'admin-list-sites' => 'select s.site_id, site_name, sort_order, '. - 'count(bug_id) as bug_count from '.TBL_SITE. ' s, '.TBL_BUG. + 'admin-list-sites' => 'select s.site_id, site_name, sort_order, '. + 'count(bug_id) as bug_count from '.TBL_SITE. ' s, '.TBL_BUG. 'where s.site_id = b.site_id(+) group by s.site_id, site_name, '. 'sort_order order by %s %s', 'admin-list-statuses' => 'select s.status_id, status_name, status_desc, '. Index: pgsql.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/db/pgsql.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- pgsql.php 13 Sep 2002 19:33:17 -0000 1.19 +++ pgsql.php 30 Sep 2002 18:02:06 -0000 1.20 @@ -32,19 +32,19 @@ 'sort_order '. 'order by %s %s', 'admin-list-databases' => 'select d.database_id, database_name, '. - 'database_version, sort_order, count(bug_id) as bug_count '. + 'sort_order, count(bug_id) as bug_count '. 'from '.TBL_DATABASE. ' d left join '.TBL_BUG.' using (database_id) '. - 'group by d.database_id, database_name, database_version, sort_order '. + 'group by d.database_id, database_name, sort_order '. 'order by %s %s', 'admin-list-statuses' => 'select s.status_id, status_name, status_desc, '. 'sort_order, count(bug_id) as bug_count '. 'from '.TBL_STATUS.' s left join '. TBL_BUG.' using (status_id) '. 'group by s.status_id, status_name, status_desc, sort_order '. 'order by %s %s', - 'admin-list-sites' => 'select s.site_id, site_name, sort_order, '. - 'count(bug_id) as bug_count from '.TBL_SITE. ' s left join '. - TBL_BUG.' using (site_id) group by s.site_id, site_name, sort_order '. - 'order by %s %s', + 'admin-list-sites' => 'select s.site_id, site_name, sort_order, '. + 'count(bug_id) as bug_count from '.TBL_SITE. ' s left join '. + TBL_BUG.' using (site_id) group by s.site_id, site_name, sort_order '. + 'order by %s %s', 'admin-user-groups' => 'select ug.group_id '. 'from '.TBL_USER_GROUP.' ug left join '.TBL_AUTH_GROUP.' g using (group_id) '. 'where user_id = %s and group_name <> \'User\'', |
|
From: Benjamin C. <bc...@us...> - 2002-09-28 23:07:55
|
Update of /cvsroot/phpbt/phpbt/inc/smarty/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv17883/inc/smarty/plugins
Added Files:
function.math.php
Log Message:
Used in bugdisplay.html
--- NEW FILE: function.math.php ---
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: math
* Purpose: handle math computations in template
* -------------------------------------------------------------
*/
function smarty_function_math($params, &$smarty)
{
// be sure equation parameter is present
if (empty($params['equation'])) {
$smarty->trigger_error("math: missing equation parameter");
return;
}
$equation = $params['equation'];
// make sure parenthesis are balanced
if (substr_count($equation,"(") != substr_count($equation,")")) {
$smarty->trigger_error("math: unbalanced parenthesis");
return;
}
// match all vars in equation, make sure all are passed
preg_match_all("![a-zA-Z][a-zA-Z0-9]*!",$equation, $match);
$allowed_funcs = array('int','abs','ceil','cos','exp','floor','log','log10',
'max','min','pi','pow','rand','round','sin','sqrt','srand','tan');
foreach($match[0] as $curr_var) {
if (!in_array($curr_var,array_keys($params)) && !in_array($curr_var, $allowed_funcs)) {
$smarty->trigger_error("math: parameter $curr_var not passed as argument");
return;
}
}
foreach($params as $key => $val) {
if ($key != "equation" && $key != "format" && $key != "assign") {
// make sure value is not empty
if (strlen($val)==0) {
$smarty->trigger_error("math: parameter $key is empty");
return;
}
if (!is_numeric($val)) {
$smarty->trigger_error("math: parameter $key: is not numeric");
return;
}
$equation = preg_replace("/\b$key\b/",$val, $equation);
}
}
eval("\$smarty_math_result = ".$equation.";");
if (empty($params['format'])) {
if (empty($params['assign'])) {
echo $smarty_math_result;
} else {
$smarty->assign($params['assign'],$smarty_math_result);
}
} else {
if (empty($params['assign'])){
printf($params['format'],$smarty_math_result);
} else {
$smarty->assign($params['assign'],sprintf($params['format'],$smarty_math_result));
}
}
}
/* vim: set expandtab: */
?>
|
|
From: Benjamin C. <bc...@us...> - 2002-09-27 19:24:43
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv2444/templates/default
Modified Files:
install.html
Added Files:
install-dbfailure.html install-dbsuccess.html
Log Message:
Added the ability to test the database connection before submitting the form.
--- NEW FILE: install-dbfailure.html ---
<html>
<head>
<title>DB Test Failure</title>
<link rel="StyleSheet" href="styles/default.css" type="text/css">
</head>
<body>
<br><br>
<div align="center">
The installation script could not connect to the database
<b><?php echo $params['db_database']?></b> on the host <b><?php echo $params['db_host']?></b>
using the specified username and password.
<br>
Please check these details are correct and that the database already exists then retry.
<br>
<br>
<?php
echo $db->message.'<br>'.$db->userinfo."\n";
if ($testonly) {
echo '<br><br><a href="javascript:window.close()">Close window</a>';
}
?>
</div>
</body>
</html>
--- NEW FILE: install-dbsuccess.html ---
<html>
<head>
<title>DB Test Success</title>
<link rel="StyleSheet" href="styles/default.css" type="text/css">
</head>
<body>
<br><br>
<div align="center">
The installation script successfully connected to the database
<b><?php echo $params['db_database']?></b> on the host <b><?php echo $params['db_host']?></b>
using the specified username and password.
<br>
Congratulations!
<br>
<br>
<a href="javascript:window.close()">Close window</a>
</div>
</body>
</html>
Index: install.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/install.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- install.html 24 May 2002 15:19:16 -0000 1.8
+++ install.html 27 Sep 2002 19:24:39 -0000 1.9
@@ -1,6 +1,15 @@
<html>
+<head>
<title>phpBugTracker Installation</title>
<link rel="StyleSheet" href="styles/default.css" type="text/css">
+ <script language="JavaScript">
+ function testDB(frm) {ldelim}
+ window.open('install.php?op=dbtest&db_type=' + frm.db_type.options[frm.db_type.selectedIndex].value +
+ '&db_host=' + frm.db_host.value + '&db_database=' + frm.db_database.value +
+ '&db_user=' + frm.db_user.value + '&db_pass=' + frm.db_pass.value,
+ 'iwin', 'dependent=yes,width=450,height=300,scrollbars=1');
+ {rdelim}
+ </script>
</head>
<body bgcolor="#ffffff" link="#006699" vlink="#006699" alink="#006699">
<form action="{$smarty.server.PHP_SELF}" method="post">
@@ -44,6 +53,9 @@
<td><input type="text" name="tbl_prefix" value="{$tbl_prefix|default:phpbt_}"></td>
</tr>
<tr>
+ <td colspan="2" align="center">
+ <input type="button" value="Test Database Connection" onClick="testDB(this.form)">
+ </td>
</tr>
<tr>
<th colspan="2">Configuration</th>
@@ -75,8 +87,8 @@
<tr>
<td width="150">Encrypt Passwords in DB:</td>
<td>
- <input type="radio" name="encrypt_pass" value="1"> Yes
- <input type="radio" name="encrypt_pass" value="0" checked> No
+ <input type="radio" name="encrypt_pass" value="1"> Yes
+ <input type="radio" name="encrypt_pass" value="0" checked> No
</td>
</tr>
<tr>
@@ -92,10 +104,10 @@
submit this form you will be prompted to save config.php. Copy
this file to the location of the bug tracker, and then you will
be able to <a href="index.php">login to the bug tracker</a>. From
- the home page you can go to the Admin Tools and customize your
- installation via the Configuration link. Once you have
- completed the configuration, you will be ready to add a project and
- start reporting bugs!
+ the home page you can go to the Admin Tools and customize your
+ installation via the Configuration link. Once you have
+ completed the configuration, you will be ready to add a project and
+ start reporting bugs!
<input type="hidden" name="op" value="dump_config_file">
{/if}
<br>
@@ -103,7 +115,7 @@
<input type="submit" value="Save Options">
</td>
</tr>
- </table>
+ </table>
</td>
</tr>
</table>
|
|
From: Benjamin C. <bc...@us...> - 2002-09-27 19:24:43
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv2444
Modified Files:
install.php
Log Message:
Added the ability to test the database connection before submitting the form.
Index: install.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/install.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- install.php 13 Sep 2002 18:13:25 -0000 1.31
+++ install.php 27 Sep 2002 19:24:38 -0000 1.32
@@ -146,35 +146,38 @@
return str_replace($patterns, $replacements, $contents);
}
-
-function create_tables() {
- global $_pv, $tables;
-
+function test_database(&$params, $testonly = false) {
// PEAR::DB
chdir('inc/pear'); // Drop down to the pear directory to include pear stuff
require_once('DB.php');
$dsn = array(
- 'phptype' => $_pv['db_type'],
- 'hostspec' => $_pv['db_host'],
- 'database' => $_pv['db_database'],
- 'username' => $_pv['db_user'],
- 'password' => $_pv['db_pass']
+ 'phptype' => $params['db_type'],
+ 'hostspec' => $params['db_host'],
+ 'database' => $params['db_database'],
+ 'username' => $params['db_user'],
+ 'password' => $params['db_pass']
);
$db = DB::Connect($dsn);
chdir('../..'); // Come back up from the pear directory
// Simple error checking on returned DB object to check connection to db
- if(get_class($db)=='db_error') {
- die('<br><br>
- <div align="center">The installation script could not connect to the database (' . $_pv['db_database'] .
- ') on the host (' . $_pv['db_host'] . ') using the specified username and password.
- <br>
- Please check these details are correct and that the database already exists then retry.
- </div>
- <br>'.$db->message.'<br>'.$db->userinfo);
+ if (get_class($db) == 'db_error') {
+ include('templates/default/install-dbfailure.html');
+ exit;
+ } else {
+ if ($testonly) {
+ include('templates/default/install-dbsuccess.html');
+ exit;
+ } else {
+ return $db;
+ }
}
+}
+function create_tables() {
+ global $_pv, $tables;
+ $db = test_database($_pv);
$db->setOption('optimize', 'portability');
$q_temp_ary = file('schemas/'.$_pv['db_type'].'.in');
@@ -267,6 +270,10 @@
switch ($_pv['op']) {
case 'save_config_file' : save_config_file(); break;
case 'dump_config_file' : dump_config_file(); break;
+ }
+} elseif (isset($_gv['op'])) {
+ switch ($_gv['op']) {
+ case 'dbtest' : test_database($_gv, true); break;
}
} else {
show_front();
|
|
From: Benjamin C. <bc...@us...> - 2002-09-27 18:40:03
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv20517
Modified Files:
upgrade.php
Log Message:
Postgres section completed.
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- upgrade.php 23 Sep 2002 20:10:05 -0000 1.25
+++ upgrade.php 27 Sep 2002 18:40:00 -0000 1.26
@@ -41,6 +41,27 @@
$db->query("alter table ".TBL_USER_PREF." add saved_queries int2");
$db->query("alter table ".TBL_USER_PREF." alter saved_queries set default 1");
$db->query("update ".TBL_USER_PREF." set saved_queries = 1");
+ $db->query("create table ".TBL_BUG_HISTORY."_old as select * from ".TBL_BUG_HISTORY);
+ $db->query("drop table ".TBL_BUG_HISTORY);
+ $db->query("create table ".TBL_BUG_HISTORY." ( bug_id INT4 NOT NULL DEFAULT '0', changed_field varchar(30) NOT NULL DEFAULT '', old_value varchar(255) NOT NULL DEFAULT '', new_value varchar(255) NOT NULL DEFAULT '', created_by INT4 NOT NULL DEFAULT '0', created_date INT8 NOT NULL DEFAULT '0' )");
+ $db->query("insert into ".TBL_BUG_HISTORY." select * from ".TBL_BUG_HISTORY."_old");
+ $db->query("drop table ".TBL_BUG_HISTORY."_old");
+ $db->query("alter table ".TBL_BUG." add database_id int4");
+ $db->query("alter table ".TBL_BUG." add site_id int4");
+ $db->query("alter table ".TBL_BUG." add closed_in_version_id int4");
+ $db->query("alter table ".TBL_BUG." add to_be_closed_in_version_id int4");
+ $db->query("create table ".TBL_SITE." ( site_id INT2 NOT NULL DEFAULT '0', site_name varchar(50) NOT NULL DEFAULT '', sort_order INT2 NOT NULL DEFAULT '0', PRIMARY KEY (site_id) )");
+ $db->query("INSERT INTO ".TBL_SITE." VALUES (0,'All',1)");
+ $db->query("INSERT INTO ".TBL_SITE." VALUES (1,'Development',2)");
+ $db->query("INSERT INTO ".TBL_SITE." VALUES (2,'Testing',3)");
+ $db->query("INSERT INTO ".TBL_SITE." VALUES (3,'Staging',4)");
+ $db->query("INSERT INTO ".TBL_SITE." VALUES (4,'Production',5)");
+ $db->query("CREATE SEQUENCE ".TBL_SITE."_seq START 4");
+ $db->query("create table ".TBL_DATABASE." ( database_id INT2 NOT NULL DEFAULT '0', database_name varchar(40) NOT NULL DEFAULT '', sort_order INT2 NOT NULL DEFAULT '0', PRIMARY KEY (database_id) )");
+ $db->query("INSERT INTO ".TBL_DATABASE." VALUES (1,'Oracle 8.1.7',1)");
+ $db->query("INSERT INTO ".TBL_DATABASE." VALUES (2,'MySQL 3.23.49',2)");
+ $db->query("INSERT INTO ".TBL_DATABASE." VALUES (3,'PostgreSQL 7.1.3',3)");
+ $db->query("CREATE SEQUENCE ".TBL_DATABASE."_seq START 3");
break;
case 'mysql' :
$db->query("alter table ".TBL_USER_PREF." add saved_queries tinyint(1) not null default '1' after email_notices");
@@ -52,6 +73,8 @@
$db->query("create table ".TBL_DATABASE." (database_id int(10) unsigned NOT NULL default '0', database_name varchar(40) NOT NULL default '', sort_order tinyint(3) unsigned NOT NULL default '0', PRIMARY KEY (database_id))");
$db->query("create table ".TBL_DATABASE."_seq (id int unsigned auto_increment not null primary key)");
$db->query("insert into ".TBL_DATABASE."_seq values (3)");
+ $db->query("INSERT INTO ".TBL_SITE." VALUES (0,'All',1), (1,'Development',2), (2,'Testing',3), (3,'Staging',4), (4,'Production',5)");
+ $db->query("INSERT INTO ".TBL_DATABASE." VALUES (1,'Oracle 8.1.7',1), (2,'MySQL 3.23.49',2), (3,'PostgreSQL 7.1.3',3)");
break;
case 'oci8' :
break;
@@ -63,8 +86,6 @@
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_ASSIGNED', '3', 'The status to assign a bug when it is assigned.', 'multi')");
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_REOPENED', '4', 'The status to assign a bug when it is reopened.', 'multi')");
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_CLOSED', '7', 'The status to assign a bug when it is closed.', 'multi')");
- $db->query("INSERT INTO ".TBL_SITE." VALUES (0,'All',1), (1,'Development',2), (2,'Testing',3), (3,'Staging',4), (4,'Production',5)");
- $db->query("INSERT INTO ".TBL_DATABASE." VALUES (1,'Oracle 8.1.7',1), (2,'MySQL 3.23.49',2), (3,'PostgreSQL 7.1.3',3");
}
include 'templates/default/upgrade-finished.html';
}
|
|
From: Benjamin C. <bc...@us...> - 2002-09-25 23:53:06
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory usw-pr-cvs1:/tmp/cvs-serv26815/templates/default
Modified Files:
bugdisplay.html
Log Message:
Pop up an alert if someone clicks on field (presumably to change it) when not logged in.
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- bugdisplay.html 14 Sep 2002 19:31:23 -0000 1.40
+++ bugdisplay.html 25 Sep 2002 23:53:03 -0000 1.41
@@ -1,5 +1,11 @@
+{if not $smarty.session.uid}{assign var=disabled value='onClick="alertNoChange();"'}
+{else}{assign var=disabled value=""}
+{/if}
<script type="text/JavaScript">
<!--
+ warningString = '{$STRING.logintomodify}';
+ warnedAlready = false;
+
versions = new Array();
closedversions = new Array();
components = new Array();
@@ -10,41 +16,48 @@
{literal}
function updateMenus(f) {
- sel = f.project_id[f.project_id.selectedIndex].text;
- f.version_id.length = versions[sel].length;
- for (var x = 0; x < versions[sel].length; x++) {
- f.version_id.options[x].value = versions[sel][x][0];
- f.version_id.options[x].text = versions[sel][x][1];
- f.version_id.selectedIndex = 0;
- }
-
- f.to_be_closed_in_version_id.length = closedversions[sel].length;
- for (var x = 0; x < closedversions[sel].length; x++) {
- f.to_be_closed_in_version_id.options[x].value = closedversions[sel][x][0];
- f.to_be_closed_in_version_id.options[x].text = closedversions[sel][x][1];
- f.to_be_closed_in_version_id.selectedIndex = 0;
- }
-
- f.closed_in_version_id.length = closedversions[sel].length;
- for (var x = 0; x < closedversions[sel].length; x++) {
- f.closed_in_version_id.options[x].value = closedversions[sel][x][0];
- f.closed_in_version_id.options[x].text = closedversions[sel][x][1];
- f.closed_in_version_id.selectedIndex = 0;
- }
-
- f.component_id.length = components[sel].length;
- for (var x = 0; x < components[sel].length; x++) {
- f.component_id.options[x].value = components[sel][x][0];
- f.component_id.options[x].text = components[sel][x][1];
- f.component_id.selectedIndex = 0;
- }
+ sel = f.project_id[f.project_id.selectedIndex].text;
+ f.version_id.length = versions[sel].length;
+ for (var x = 0; x < versions[sel].length; x++) {
+ f.version_id.options[x].value = versions[sel][x][0];
+ f.version_id.options[x].text = versions[sel][x][1];
+ f.version_id.selectedIndex = 0;
+ }
+
+ f.to_be_closed_in_version_id.length = closedversions[sel].length;
+ for (var x = 0; x < closedversions[sel].length; x++) {
+ f.to_be_closed_in_version_id.options[x].value = closedversions[sel][x][0];
+ f.to_be_closed_in_version_id.options[x].text = closedversions[sel][x][1];
+ f.to_be_closed_in_version_id.selectedIndex = 0;
+ }
+
+ f.closed_in_version_id.length = closedversions[sel].length;
+ for (var x = 0; x < closedversions[sel].length; x++) {
+ f.closed_in_version_id.options[x].value = closedversions[sel][x][0];
+ f.closed_in_version_id.options[x].text = closedversions[sel][x][1];
+ f.closed_in_version_id.selectedIndex = 0;
+ }
+
+ f.component_id.length = components[sel].length;
+ for (var x = 0; x < components[sel].length; x++) {
+ f.component_id.options[x].value = components[sel][x][0];
+ f.component_id.options[x].text = components[sel][x][1];
+ f.component_id.selectedIndex = 0;
+ }
}
function popupAtt(id) {
window.open('attachment.php?use_js=1&bugid='+id, 'ewin', 'dependent=yes,width=350,height=200,scrollbars=1');
return false;
}
-{/literal}
+
+ function alertNoChange() {
+ if (!warnedAlready) {
+ alert(warningString);
+ warnedAlready = true;
+ }
+ }
+ {/literal}
//-->
</script>
<form action="bug.php" method="post">
@@ -80,65 +93,65 @@
<td><b>{$created_date|date:DATE_FORMAT}</b></td>
</tr><tr>
<td>{$STRING.BUGDISPLAY.Project}:</td>
- <td><select name="project_id" onChange="updateMenus(this.form)">{build_select box=project selected=$project_id}</select></td>
+ <td><select name="project_id" onChange="updateMenus(this.form)" {$disabled}>{build_select box=project selected=$project_id}</select></td>
<td>{$STRING.BUGDISPLAY.Priority}:</td>
- <td><select name="priority">{build_select box=priority selected=$priority}</select></td>
+ <td><select name="priority" {$disabled}>{build_select box=priority selected=$priority}</select></td>
</tr><tr>
<td>{$STRING.BUGDISPLAY.Component}:</td>
- <td><select name="component_id">{build_select box=component selected=$component_id project=$project_id}</select></td>
+ <td><select name="component_id" {$disabled}>{build_select box=component selected=$component_id project=$project_id}</select></td>
<td>{$STRING.BUGDISPLAY.Severity}:</td>
- <td><select name="severity_id">{build_select box=severity selected=$severity_id}</select></td>
+ <td><select name="severity_id" {$disabled}>{build_select box=severity selected=$severity_id}</select></td>
</tr><tr>
<td>{$STRING.BUGDISPLAY.Version}:</td>
- <td><select name="version_id">{build_select box=version selected=$version_id project=$project_id}</select></td>
+ <td><select name="version_id" {$disabled}>{build_select box=version selected=$version_id project=$project_id}</select></td>
<td>{$STRING.BUGDISPLAY.OS}:</td>
- <td><select name="os_id">{build_select box=os selected=$os_id}</select></td>
+ <td><select name="os_id" {$disabled}>{build_select box=os selected=$os_id}</select></td>
</tr><tr>
<td>{$STRING.BUGDISPLAY.ToBeClosedInVersion}</td>
- <td><select name="to_be_closed_in_version_id">
+ <td><select name="to_be_closed_in_version_id" {$disabled}>
<option value="0">{$STRING.BUGDISPLAY.ChooseOne}</option>
{build_select box=version selected=$to_be_closed_in_version_id project=$project_id}
</select></td>
<td>{$STRING.BUGDISPLAY.Database}:</td>
- <td><select name="database_id">{build_select box=database selected=$database_id}</select></td>
+ <td><select name="database_id" {$disabled}>{build_select box=database selected=$database_id}</select></td>
</tr><tr>
<td>{$STRING.BUGDISPLAY.ClosedInVersion}</td>
- <td><select name="closed_in_version_id">
+ <td><select name="closed_in_version_id" {$disabled}>
<option value="0">{$STRING.BUGDISPLAY.ChooseOne}</option>
{build_select box=version selected=$closed_in_version_id project=$project_id}
</select></td>
<td>{$STRING.BUGDISPLAY.Site}</td>
- <td><select name="site_id">{build_select box=site selected=$site_id}</select></td>
+ <td><select name="site_id" {$disabled}>{build_select box=site selected=$site_id}</select></td>
</tr><tr>
<td>{$STRING.BUGDISPLAY.Summary}:</td>
- <td><input type="text" size="30" maxlength="100" name="title" value="{$title|stripslashes|htmlspecialchars}"></td>
+ <td><input type="text" size="30" maxlength="100" name="title" value="{$title|stripslashes|htmlspecialchars}" {$disabled}></td>
<td>{$STRING.BUGDISPLAY.Status}:</td>
- <td><select name="status_id">{build_select box=status selected=$status_id}</select></td>
+ <td><select name="status_id" {$disabled}>{build_select box=status selected=$status_id}</select></td>
</tr><tr>
<td>{if $url}<a href="{$url}">URL</a>{else}URL{/if}:</td>
- <td><input type="text" size="30" maxlength="255" name="url" value="{$url}"></td>
+ <td><input type="text" size="30" maxlength="255" name="url" value="{$url}" {$disabled}></td>
<td>{$STRING.BUGDISPLAY.Resolution}:</td>
- <td><select name="resolution_id"><option value="0">{$STRING.BUGDISPLAY.ResolutionNone}</option>{build_select box=resolution selected=$resolution_id}</select></td>
+ <td><select name="resolution_id" {$disabled}><option value="0">{$STRING.BUGDISPLAY.ResolutionNone}</option>{build_select box=resolution selected=$resolution_id}</select></td>
</tr><tr>
<td>{$STRING.BUGDISPLAY.AssignedTo}:</td>
- <td><select name="assigned_to"><option value="0">{$STRING.BUGDISPLAY.AssignedToNobody}</option>{build_select box=owner selected=$assigned_to}</select></td>
+ <td><select name="assigned_to" {$disabled}><option value="0">{$STRING.BUGDISPLAY.AssignedToNobody}</option>{build_select box=owner selected=$assigned_to}</select></td>
<td>{$STRING.BUGDISPLAY.AddCC}:</td>
- <td><input type="text" name="add_cc"></td>
+ <td><input type="text" name="add_cc" {$disabled}></td>
</tr><tr>
<td colspan="2" valign="top">
{if !empty($error.add_dep)}<div class="error">{$error.add_dep}</div>{/if}
{$STRING.BUGDISPLAY.BugDependency}: {$bug_dependencies}<br>
- {$STRING.BUGDISPLAY.AddDependency}: <input type="text" name="add_dependency" size="5"><br>
- {$STRING.BUGDISPLAY.RemoveDependency}: <input type="text" name="del_dependency" size="5"><br><br></td>
+ {$STRING.BUGDISPLAY.AddDependency}: <input type="text" name="add_dependency" size="5" {$disabled}><br>
+ {$STRING.BUGDISPLAY.RemoveDependency}: <input type="text" name="del_dependency" size="5" {$disabled}><br><br></td>
<td colspan="2" valign="top">
{$STRING.BUGDISPLAY.RemoveSelectedCC}:<br>
- <select name="remove_cc[]" size="5" style="width: 15em" multiple>{build_select box=bug_cc selected=$bug_id}</select></td>
+ <select name="remove_cc[]" size="5" style="width: 15em" multiple {$disabled}>{build_select box=bug_cc selected=$bug_id}</select></td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td valign="top">{$STRING.BUGDISPLAY.AdditionalComments}:<br><br>
- <textarea name="comments" rows="6" cols="55" wrap="virtual">{$smarty.post.comments}</textarea>
+ <textarea name="comments" rows="6" cols="55" wrap="virtual" {$disabled}>{$smarty.post.comments}</textarea>
<br><br>
<div align="right">
{if $smarty.session.uid}
|
|
From: Benjamin C. <bc...@us...> - 2002-09-23 20:48:24
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv28669
Modified Files:
include.php query.php
Log Message:
Tweaks for the database column header needed as a result of dropping the database_version field.
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -r1.122 -r1.123
--- include.php 13 Sep 2002 18:13:25 -0000 1.122
+++ include.php 23 Sep 2002 20:48:21 -0000 1.123
@@ -85,8 +85,7 @@
'resolution_name' => 'Resolution',
'closed_in_version_name' => 'Closed in Version',
'to_be_closed_in_version_name' => 'To be Closed in Version',
- 'database_version' => 'Database Version',
- 'database_provider' => 'Database Provider',
+ 'database_name' => 'Database',
'site_name' => 'Site',
'reporter' => 'Reporter',
'owner' => 'Owner',
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- query.php 23 Sep 2002 20:31:24 -0000 1.89
+++ query.php 23 Sep 2002 20:48:21 -0000 1.90
@@ -215,8 +215,7 @@
'version_name' => 'version.version_name',
'to_be_closed_in_version_name' => 'version2.version_name as v2',
'closed_in_version_name' => 'version3.version_name as v3',
- 'database_provider' => TBL_DATABASE.'.database_name',
- 'database_version' => TBL_DATABASE.'.database_version',
+ 'database_name' => TBL_DATABASE.'.database_name',
'site_name' => 'site.site_name',
'component_name' => 'component.component_name',
'os_name' => 'os.os_name',
@@ -243,8 +242,7 @@
'os_name' => 'os_name',
'to_be_closed_in_version_name' => 'v2',
'closed_in_version_name' => 'v3',
- 'database_provider' => TBL_DATABASE.'.database_name',
- 'database_version' => TBL_DATABASE.'.database_version',
+ 'database_name' => TBL_DATABASE.'.database_name',
'site_name' => 'site.sort_order',
'browser_string' => 'browser_string',
'resolution_name' => 'resolution.sort_order',
@@ -318,7 +316,8 @@
? "and {$HTTP_SESSION_VARS['queryinfo']['query']} " : ''),
$order, $sort), $llimit, $selrange)));
- sorting_headers($me, $headers, $order, $sort, "page=$page".$paramstr);
+ sorting_headers($me, $headers, $order, $sort, "page=$page".
+ (!empty($paramstr) ? $paramstr : ''));
$t->wrap('buglist.html', 'buglist');
}
|
|
From: Benjamin C. <bc...@us...> - 2002-09-23 20:31:28
|
Update of /cvsroot/phpbt/phpbt In directory usw-pr-cvs1:/tmp/cvs-serv22334 Modified Files: query.php Log Message: Fixed a bug with the date columns rendering the date when the date value was 0. Index: query.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/query.php,v retrieving revision 1.88 retrieving revision 1.89 diff -u -r1.88 -r1.89 --- query.php 14 Sep 2002 16:54:33 -0000 1.88 +++ query.php 23 Sep 2002 20:31:24 -0000 1.89 @@ -167,7 +167,7 @@ case 'last_modified_date' : case 'close_date' : echo '<div align="center">'. - $colvalue ? date(DATE_FORMAT, $colvalue) : ' '. + ($colvalue ? date(DATE_FORMAT, $colvalue) : ' '). '</div>'; break; case 'bug_id' : |
|
From: Benjamin C. <bc...@us...> - 2002-09-23 20:16:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv17058
Modified Files:
bug.php
Log Message:
Update the close_date field when a the closed status is selected.
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- bug.php 17 Sep 2002 18:14:19 -0000 1.118
+++ bug.php 23 Sep 2002 20:16:30 -0000 1.119
@@ -416,6 +416,11 @@
$os_id = $os_id ? $os_id : 0;
$severity_id = $severity_id ? $severity_id : 0;
+ if ($status_id == BUG_CLOSED) {
+ $closed_query = ", close_date = $now";
+ } else {
+ $closed_query = '';
+ }
$db->query("update ".TBL_BUG." set title = ".$db->quote(stripslashes($title)).
', url = '.$db->quote(stripslashes($url)).", severity_id = $severity_id, ".
"priority = $priority, status_id = $status_id, ".
@@ -425,7 +430,7 @@
"resolution_id = $resolution_id, assigned_to = $assigned_to, ".
"project_id = $project_id, version_id = $version_id, ".
"component_id = $component_id, os_id = $os_id, last_modified_by = $u, ".
- "last_modified_date = $now where bug_id = $bugid");
+ "last_modified_date = $now $closed_query where bug_id = $bugid");
if (count($changedfields) or !empty($comments)) {
do_changedfields($u, $buginfo, $changedfields, $comments);
|
|
From: Benjamin C. <bc...@us...> - 2002-09-23 20:10:10
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv14780
Modified Files:
upgrade.php
Log Message:
Added bug_closed configuration option. Starting on postgres database changes.
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- upgrade.php 14 Sep 2002 19:03:48 -0000 1.24
+++ upgrade.php 23 Sep 2002 20:10:05 -0000 1.25
@@ -38,6 +38,9 @@
}
switch(DB_TYPE) {
case 'pgsql' :
+ $db->query("alter table ".TBL_USER_PREF." add saved_queries int2");
+ $db->query("alter table ".TBL_USER_PREF." alter saved_queries set default 1");
+ $db->query("update ".TBL_USER_PREF." set saved_queries = 1");
break;
case 'mysql' :
$db->query("alter table ".TBL_USER_PREF." add saved_queries tinyint(1) not null default '1' after email_notices");
@@ -59,6 +62,7 @@
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_PROMOTED', '2', 'The status to assign a bug when it is promoted (if enabled).', 'multi')");
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_ASSIGNED', '3', 'The status to assign a bug when it is assigned.', 'multi')");
$db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_REOPENED', '4', 'The status to assign a bug when it is reopened.', 'multi')");
+ $db->query("INSERT INTO ".TBL_CONFIGURATION." VALUES ('BUG_CLOSED', '7', 'The status to assign a bug when it is closed.', 'multi')");
$db->query("INSERT INTO ".TBL_SITE." VALUES (0,'All',1), (1,'Development',2), (2,'Testing',3), (3,'Staging',4), (4,'Production',5)");
$db->query("INSERT INTO ".TBL_DATABASE." VALUES (1,'Oracle 8.1.7',1), (2,'MySQL 3.23.49',2), (3,'PostgreSQL 7.1.3',3");
}
|
|
From: Benjamin C. <bc...@us...> - 2002-09-23 20:09:12
|
Update of /cvsroot/phpbt/phpbt/schemas
In directory usw-pr-cvs1:/tmp/cvs-serv14323/schemas
Modified Files:
mysql.in oci8.in pgsql.in
Log Message:
Added bug_closed constant for configuration.
Index: mysql.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/mysql.in,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- mysql.in 14 Sep 2002 19:03:48 -0000 1.34
+++ mysql.in 23 Sep 2002 20:09:08 -0000 1.35
@@ -331,6 +331,7 @@
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_PROMOTED','2','The status to assign a bug when it is promoted (if enabled).','multi');
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_ASSIGNED','3','The status to assign a bug when it is assigned.','multi');
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_REOPENED','4','The status to assign a bug when it is reopened.','multi');
+INSERT INTO TBL_CONFIGURATION VALUES ('BUG_CLOSED','7','The status to assign a bug when it is closed.','multi');
INSERT INTO TBL_OS VALUES (1,'All',1,'');
INSERT INTO TBL_OS VALUES (2,'Windows 3.1',2,'/Mozilla.*\\(Win16.*\\)/');
Index: oci8.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/oci8.in,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- oci8.in 14 Sep 2002 19:03:48 -0000 1.18
+++ oci8.in 23 Sep 2002 20:09:08 -0000 1.19
@@ -330,6 +330,7 @@
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_PROMOTED','2','The status to assign a bug when it is promoted (if enabled).','multi');
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_ASSIGNED','3','The status to assign a bug when it is assigned.','multi');
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_REOPENED','4','The status to assign a bug when it is reopened.','multi');
+INSERT INTO TBL_CONFIGURATION VALUES ('BUG_CLOSED','7','The status to assign a bug when it is closed.','multi');
INSERT INTO TBL_OS VALUES (1,'All',1,'');
INSERT INTO TBL_OS VALUES (2,'Windows 3.1',2,'/Mozilla.*\\(Win16.*\\)/');
Index: pgsql.in
===================================================================
RCS file: /cvsroot/phpbt/phpbt/schemas/pgsql.in,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- pgsql.in 14 Sep 2002 19:03:48 -0000 1.35
+++ pgsql.in 23 Sep 2002 20:09:09 -0000 1.36
@@ -327,6 +327,7 @@
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_PROMOTED','2','The status to assign a bug when it is promoted (if enabled).','multi');
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_ASSIGNED','3','The status to assign a bug when it is assigned.','multi');
INSERT INTO TBL_CONFIGURATION VALUES ('BUG_REOPENED','4','The status to assign a bug when it is reopened.','multi');
+INSERT INTO TBL_CONFIGURATION VALUES ('BUG_CLOSED','7','The status to assign a bug when it is closed.','multi');
INSERT INTO TBL_OS VALUES (1,'All',1,'');
INSERT INTO TBL_OS VALUES (2,'Windows 3.1',2,'/Mozilla.*\\(Win16.*\\)/');
|
|
From: Benjamin C. <bc...@us...> - 2002-09-23 20:09:10
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv14323/inc
Modified Files:
functions.php
Log Message:
Added bug_closed constant for configuration.
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- functions.php 14 Sep 2002 19:03:48 -0000 1.34
+++ functions.php 23 Sep 2002 20:08:59 -0000 1.35
@@ -231,6 +231,7 @@
case 'BUG_PROMOTED' :
case 'BUG_ASSIGNED' :
case 'BUG_REOPENED' :
+ case 'BUG_CLOSED' :
static $bug_status_list = array();
if (empty($bug_status_list)) {
|
|
From: Benjamin C. <bc...@us...> - 2002-09-19 20:07:56
|
Update of /cvsroot/phpbt/phpbt/inc/smarty/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv6306/inc/smarty/plugins
Added Files:
function.assign.php function.cycle.php function.fetch.php
function.popup.php modifier.default.php
Log Message:
Adding latest smarty (2.3.0) to repository
--- NEW FILE: function.assign.php ---
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: assign
* Purpose: assign a value to a template variable
* -------------------------------------------------------------
*/
function smarty_function_assign($params, &$smarty)
{
extract($params);
if (empty($var)) {
$smarty->trigger_error("assign: missing 'var' parameter");
return;
}
if (!in_array('value', array_keys($params))) {
$smarty->trigger_error("assign: missing 'value' parameter");
return;
}
$smarty->assign($var, $value);
}
/* vim: set expandtab: */
?>
--- NEW FILE: function.cycle.php ---
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: cycle
* Version: 1.3
* Date: May 3, 2002
* Author: Monte Ohrt <mo...@is...>
* Credits: Mark Priatel <mpr...@ro...>
* Gerard <ge...@in...>
* Jason Sweat <jsw...@ya...>
* Purpose: cycle through given values
* Input: name = name of cycle (optional)
* values = comma separated list of values to cycle,
* or an array of values to cycle
* (this can be left out for subsequent calls)
*
* reset = boolean - resets given var to true
* print = boolean - print var or not. default is true
* advance = boolean - whether or not to advance the cycle
* delimiter = the value delimiter, default is ","
* assign = boolean, assigns to template var instead of
* printed.
*
* Examples: {cycle values="#eeeeee,#d0d0d0d"}
* {cycle name=row values="one,two,three" reset=true}
* {cycle name=row}
* -------------------------------------------------------------
*/
function smarty_function_cycle($params, &$smarty)
{
static $cycle_vars;
extract($params);
if (empty($name)) {
$name = 'default';
}
if (!isset($print)) {
$print = true;
}
if (!isset($advance)) {
$advance = true;
}
if (!isset($reset)) {
$reset = false;
}
if (!in_array('values', array_keys($params))) {
if(!isset($cycle_vars[$name]['values'])) {
$smarty->trigger_error("cycle: missing 'values' parameter");
return;
}
} else {
if(isset($cycle_vars[$name]['values'])
&& $cycle_vars[$name]['values'] != $values ) {
$cycle_vars[$name]['index'] = 0;
}
$cycle_vars[$name]['values'] = $values;
}
if (isset($delimiter)) {
$cycle_vars[$name]['delimiter'] = $delimiter;
} elseif (!isset($cycle_vars[$name]['delimiter'])) {
$cycle_vars[$name]['delimiter'] = ',';
}
if(!is_array($cycle_vars[$name]['values'])) {
$cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']);
} else {
$cycle_array = $cycle_vars[$name]['values'];
}
if(!isset($cycle_vars[$name]['index']) || $reset ) {
$cycle_vars[$name]['index'] = 0;
}
if (isset($assign)) {
$print = false;
$smarty->assign($assign, $cycle_array[$cycle_vars[$name]['index']]);
}
if($print) {
echo $cycle_array[$cycle_vars[$name]['index']];
}
if($advance) {
if ( $cycle_vars[$name]['index'] >= count($cycle_array) -1 ) {
$cycle_vars[$name]['index'] = 0;
} else {
$cycle_vars[$name]['index']++;
}
}
}
/* vim: set expandtab: */
?>
--- NEW FILE: function.fetch.php ---
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: fetch
* Purpose: fetch file, web or ftp data and display results
* -------------------------------------------------------------
*/
function smarty_function_fetch($params, &$smarty)
{
$file = $params['file'];
if (empty($file)) {
$smarty->_trigger_plugin_error("parameter 'file' cannot be empty");
return;
}
if ($smarty->security && !preg_match('!^(http|ftp)://!i', $file)) {
// fetching file, make sure it comes from secure directory
foreach ($smarty->secure_dir as $curr_dir) {
if (substr(realpath($file), 0, strlen(realpath($curr_dir))) == realpath($curr_dir)) {
$resource_is_secure = true;
break;
}
}
if (!$resource_is_secure) {
$smarty->_trigger_plugin_error("(secure mode) fetch '$file' is not allowed");
return;
}
// fetch the file
if($fp = @fopen($file,'r')) {
while(!feof($fp)) {
$content .= fgets ($fp,4096);
}
fclose($fp);
} else {
$smarty->_trigger_plugin_error("fetch cannot read file '$file'");
return;
}
} else {
// not a local file
if(preg_match('!^http://!i',$file)) {
// http fetch
if($uri_parts = parse_url($file)) {
// set defaults
$host = $server_name = $uri_parts['host'];
$timeout = 30;
$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
$agent = "Smarty Template Engine ".$smarty->_version;
$referer = "";
if(!empty($uri_parts['path'])) {
$uri = $uri_parts['path'];
} else {
$uri = '/';
}
$_is_proxy = false;
if(empty($uri_parts['port'])) {
$port = 80;
} else {
$port = $uri_parts['port'];
}
if(empty($uri_parts['user'])) {
$user = $uri_parts['user'];
}
// loop through parameters, setup headers
foreach($params as $param_key => $param_value) {
switch($param_key) {
case "file":
case "assign":
case "assign_headers":
break;
case "user":
if(!empty($param_value)) {
$user = $param_value;
}
break;
case "pass":
if(!empty($param_value)) {
$pass = $param_value;
}
break;
case "accept":
if(!empty($param_value)) {
$accept = $param_value;
}
break;
case "header":
if(!empty($param_value)) {
if(!preg_match('![\w\d-]+: .+!',$param_value)) {
$smarty->_trigger_plugin_error("invalid header format '".$param_value."'");
return;
} else {
$extra_headers[] = $param_value;
}
}
break;
case "proxy_host":
if(!empty($param_value)) {
$proxy_host = $param_value;
}
break;
case "proxy_port":
if(!preg_match('!\D!', $param_value)) {
$proxy_port = (int) $param_value;
} else {
$smarty->_trigger_plugin_error("invalid value for attribute '".$param_key."'");
return;
}
break;
case "agent":
if(!empty($param_value)) {
$agent = $param_value;
}
break;
case "referer":
if(!empty($param_value)) {
$referer = $param_value;
}
break;
case "timeout":
if(!preg_match('!\D!', $param_value)) {
$timeout = (int) $param_value;
} else {
$smarty->_trigger_plugin_error("invalid value for attribute '".$param_key."'");
return;
}
break;
default:
$smarty->_trigger_plugin_error("unrecognized attribute '".$param_key."'");
return;
}
}
if(!empty($proxy_host) && !empty($proxy_port)) {
$_is_proxy = true;
$fp = fsockopen($proxy_host,$proxy_port,$errno,$errstr,$timeout);
} else {
$fp = fsockopen($server_name,$port,$errno,$errstr,$timeout);
}
if(!$fp) {
$smarty->_trigger_plugin_error("unable to fetch: $errstr ($errno)");
return;
} else {
if($_is_proxy) {
fputs($fp, "GET $file HTTP/1.0\r\n");
} else {
fputs($fp, "GET $uri HTTP/1.0\r\n");
}
if(!empty($host)) {
fputs($fp, "Host: $host\r\n");
}
if(!empty($accept)) {
fputs($fp, "Accept: $accept\r\n");
}
if(!empty($agent)) {
fputs($fp, "User-Agent: $agent\r\n");
}
if(!empty($referer)) {
fputs($fp, "Referer: $referer\r\n");
}
if(is_array($extra_headers)) {
foreach($extra_headers as $curr_header) {
fputs($fp, $curr_header."\r\n");
}
}
if(!empty($user) && !empty($pass)) {
fputs($fp, "Authorization: BASIC ".base64_encode("$user:$pass")."\r\n");
}
fputs($fp, "\r\n");
while(!feof($fp)) {
$content .= fgets($fp,4096);
}
fclose($fp);
$csplit = split("\r\n\r\n",$content,2);
$content = $csplit[1];
if(!empty($params['assign_headers'])) {
$smarty->assign($params['assign_headers'],split("\r\n",$csplit[0]));
}
}
} else {
$smarty->_trigger_plugin_error("unable to parse URL, check syntax");
return;
}
} else {
// ftp fetch
if($fp = @fopen($file,'r')) {
while(!feof($fp)) {
$content .= fgets ($fp,4096);
}
fclose($fp);
} else {
$smarty->_trigger_plugin_error("fetch cannot read file '$file'");
return;
}
}
}
if (!empty($params['assign'])) {
$smarty->assign($params['assign'],$content);
} else {
echo $content;
}
}
/* vim: set expandtab: */
?>
--- NEW FILE: function.popup.php ---
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: popup
* Purpose: make text pop up in windows via overlib
* -------------------------------------------------------------
*/
function smarty_function_popup($params, &$smarty)
{
extract($params);
if (empty($text) && !isset($inarray) && empty($function)) {
$smarty->trigger_error("overlib: attribute 'text' or 'inarray' or 'function' required");
return false;
}
if (empty($trigger)) { $trigger = "onMouseOver"; }
echo $trigger.'="return overlib(\''.str_replace("'","\'",$text).'\'';
if ($sticky) { echo ",STICKY"; }
if (!empty($caption)) { echo ",CAPTION,'".str_replace("'","\'",$caption)."'"; }
if (!empty($fgcolor)) { echo ",FGCOLOR,'$fgcolor'"; }
if (!empty($bgcolor)) { echo ",BGCOLOR,'$bgcolor'"; }
if (!empty($textcolor)) { echo ",TEXTCOLOR,'$textcolor'"; }
if (!empty($capcolor)) { echo ",CAPCOLOR,'$capcolor'"; }
if (!empty($closecolor)) { echo ",CLOSECOLOR,'$closecolor'"; }
if (!empty($textfont)) { echo ",TEXTFONT,'$textfont'"; }
if (!empty($captionfont)) { echo ",CAPTIONFONT,'$captionfont'"; }
if (!empty($closefont)) { echo ",CLOSEFONT,'$closefont'"; }
if (!empty($textsize)) { echo ",TEXTSIZE,$textsize"; }
if (!empty($captionsize)) { echo ",CAPTIONSIZE,$captionsize"; }
if (!empty($closesize)) { echo ",CLOSESIZE,$closesize"; }
if (!empty($width)) { echo ",WIDTH,$width"; }
if (!empty($height)) { echo ",HEIGHT,$height"; }
if (!empty($left)) { echo ",LEFT"; }
if (!empty($right)) { echo ",RIGHT"; }
if (!empty($center)) { echo ",CENTER"; }
if (!empty($above)) { echo ",ABOVE"; }
if (!empty($below)) { echo ",BELOW"; }
if (isset($border)) { echo ",BORDER,$border"; }
if (isset($offsetx)) { echo ",OFFSETX,$offsetx"; }
if (isset($offsety)) { echo ",OFFSETY,$offsety"; }
if (!empty($fgbackground)) { echo ",FGBACKGROUND,'$fgbackground'"; }
if (!empty($bgbackground)) { echo ",BGBACKGROUND,'$bgbackground'"; }
if (!empty($closetext)) { echo ",CLOSETEXT,'".str_replace("'","\'",$closetext)."'"; }
if (!empty($noclose)) { echo ",NOCLOSE"; }
if (!empty($status)) { echo ",STATUS,'".str_replace("'","\'",$status)."'"; }
if (!empty($autostatus)) { echo ",AUTOSTATUS"; }
if (!empty($autostatuscap)) { echo ",AUTOSTATUSCAP"; }
if (isset($inarray)) { echo ",INARRAY,'$inarray'"; }
if (isset($caparray)) { echo ",CAPARRAY,'$caparray'"; }
if (!empty($capicon)) { echo ",CAPICON,'$capicon'"; }
if (!empty($snapx)) { echo ",SNAPX,$snapx"; }
if (!empty($snapy)) { echo ",SNAPY,$snapy"; }
if (isset($fixx)) { echo ",FIXX,$fixx"; }
if (isset($fixy)) { echo ",FIXY,$fixy"; }
if (!empty($background)) { echo ",BACKGROUND,'$background'"; }
if (!empty($padx)) { echo ",PADX,$padx"; }
if (!empty($pady)) { echo ",PADY,$pady"; }
if (!empty($fullhtml)) { echo ",FULLHTML"; }
if (!empty($frame)) { echo ",FRAME,'$frame'"; }
if (isset($timeout)) { echo ",TIMEOUT,$timeout"; }
if (!empty($function)) { echo ",FUNCTION,'$function'"; }
if (isset($delay)) { echo ",DELAY,$delay"; }
if (!empty($hauto)) { echo ",HAUTO"; }
if (!empty($vauto)) { echo ",VAUTO"; }
echo ');" onMouseOut="nd();"';
}
/* vim: set expandtab: */
?>
--- NEW FILE: modifier.default.php ---
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: modifier
* Name: default
* Purpose: designate default value for empty variables
* -------------------------------------------------------------
*/
function smarty_modifier_default($string, $default = '')
{
if (empty($string))
return $default;
else
return $string;
}
/* vim: set expandtab: */
?>
|
|
From: Benjamin C. <bc...@us...> - 2002-09-19 20:07:56
|
Update of /cvsroot/phpbt/phpbt/inc/smarty In directory usw-pr-cvs1:/tmp/cvs-serv6306/inc/smarty Added Files: Config_File.class.php Smarty.class.php Smarty_Compiler.class.php Log Message: Adding latest smarty (2.3.0) to repository --- NEW FILE: Config_File.class.php --- <?php /** * Config_File class. * * @version 2.3.0 * @author Andrei Zmievski <an...@ph...> * @access public * * Copyright: 2001,2002 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * You may contact the author of Config_File by e-mail at: * an...@ph... * * Or, write to: * Andrei Zmievski * Software Engineer, ispi * 237 S. 70th suite 220 * Lincoln, NE 68510 * * The latest version of Config_File can be obtained from: * http://www.phpinsider.com */ class Config_File { /* Options */ /** * Controls whether variables with the same name overwrite each other. * * @access public */ var $overwrite = true; /** * Controls whether config values of on/true/yes and off/false/no get * converted to boolean values automatically. * * @access public */ var $booleanize = true; /** * Controls whether hidden config sections/vars are read from the file. * * @access public */ var $read_hidden = true; /* Private variables */ var $_config_path = ""; var $_config_data = array(); var $_separator = ""; /** * Constructs a new config file class. * * @param $config_path string (optional) path to the config files * @access public */ function Config_File($config_path = NULL) { if (substr(PHP_OS, 0, 3) == "WIN" || substr(PHP_OS, 0, 4) == "OS/2") $this->_separator = "\\"; else $this->_separator = "/"; if (isset($config_path)) $this->set_path($config_path); } /** * Set the path where configuration files can be found. * * @param $config_path string path to the config files * @access public */ function set_path($config_path) { if (!empty($config_path)) { if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) { $this->_trigger_error_msg("Bad config file path '$config_path'"); return; } $this->_config_path = $config_path . $this->_separator; } } /** * Retrieves config info based on the file, section, and variable name. * * @access public * @param $file_name string config file to get info for * @param $section_name string (optional) section to get info for * @param $var_name string (optional) variable to get info for * @return mixed a value or array of values */ function &get($file_name, $section_name = NULL, $var_name = NULL) { if (empty($file_name)) { $this->_trigger_error_msg('Empty config file name'); return; } else { $file_name = $this->_config_path . $file_name; if (!isset($this->_config_data[$file_name])) $this->load_file($file_name, false); } if (!empty($var_name)) { if (empty($section_name)) { return $this->_config_data[$file_name]["vars"][$var_name]; } else { if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name])) return $this->_config_data[$file_name]["sections"][$section_name]["vars"][$var_name]; else return array(); } } else { if (empty($section_name)) { return (array)$this->_config_data[$file_name]["vars"]; } else { if(isset($this->_config_data[$file_name]["sections"][$section_name]["vars"])) return (array)$this->_config_data[$file_name]["sections"][$section_name]["vars"]; else return array(); } } } /** * Retrieves config info based on the key. * * @access public * @param $file_name string config key (filename/section/var) * @return mixed a value or array of values */ function &get_key($config_key) { list($file_name, $section_name, $var_name) = explode('/', $config_key, 3); $result = &$this->get($file_name, $section_name, $var_name); return $result; } /** * Get all loaded config file names. * * @access public * @return array an array of loaded config file names */ function get_file_names() { return array_keys($this->_config_data); } /** * Get all section names from a loaded file. * * @access public * @param $file_name string config file to get section names from * @return array an array of section names from the specified file */ function get_section_names($file_name) { $file_name = $this->_config_path . $file_name; if (!isset($this->_config_data[$file_name])) { $this->_trigger_error_msg("Unknown config file '$file_name'"); return; } return array_keys($this->_config_data[$file_name]["sections"]); } /** * Get all global or section variable names. * * @access public * @param $file_name string config file to get info for * @param $section_name string (optional) section to get info for * @return array an array of variables names from the specified file/section */ function get_var_names($file_name, $section = NULL) { if (empty($file_name)) { $this->_trigger_error_msg('Empty config file name'); return; } else if (!isset($this->_config_data[$file_name])) { $this->_trigger_error_msg("Unknown config file '$file_name'"); return; } if (empty($section)) return array_keys($this->_config_data[$file_name]["vars"]); else return array_keys($this->_config_data[$file_name]["sections"][$section]["vars"]); } /** * Clear loaded config data for a certain file or all files. * * @access public * @param $file_name string file to clear config data for */ function clear($file_name = NULL) { if ($file_name === NULL) $this->_config_data = array(); else if (isset($this->_config_data[$file_name])) $this->_config_data[$file_name] = array(); } /** * Load a configuration file manually. * * @access public * @param $file_name string file name to load * @param $prepend_path boolean whether current config path should be prepended to the filename */ function load_file($file_name, $prepend_path = true) { if ($prepend_path && $this->_config_path != "") $config_file = $this->_config_path . $file_name; else $config_file = $file_name; ini_set('track_errors', true); $fp = @fopen($config_file, "r"); if (!is_resource($fp)) { $this->_trigger_error_msg("Could not open config file '$config_file'"); return; } $contents = fread($fp, filesize($config_file)); fclose($fp); $config_data = array(); /* Get global variables first. */ if (preg_match("/^(.*?)(\n\[|\Z)/s", $contents, $match)) $config_data["vars"] = $this->_parse_config_block($match[1]); /* Get section variables. */ $config_data["sections"] = array(); preg_match_all("/^\[(.*?)\]/m", $contents, $match); foreach ($match[1] as $section) { if ($section{0} == '.' && !$this->read_hidden) continue; if (preg_match("/\[".preg_quote($section)."\](.*?)(\n\[|\Z)/s", $contents, $match)) if ($section{0} == '.') $section = substr($section, 1); $config_data["sections"][$section]["vars"] = $this->_parse_config_block($match[1]); } $this->_config_data[$config_file] = $config_data; } function _parse_config_block($config_block) { $vars = array(); /* First we grab the multi-line values. */ if (preg_match_all("/^([^=\n]+)=\s*\"{3}(.*?)\"{3}\s*$/ms", $config_block, $match, PREG_SET_ORDER)) { for ($i = 0; $i < count($match); $i++) { $this->_set_config_var($vars, trim($match[$i][1]), $match[$i][2], false); } $config_block = preg_replace("/^[^=\n]+=\s*\"{3}.*?\"{3}\s*$/ms", "", $config_block); } $config_lines = preg_split("/\n+/", $config_block); foreach ($config_lines as $line) { if (preg_match("/^\s*(\.?\w+)\s*=(.*)/", $line, $match)) { $var_value = preg_replace('/^([\'"])(.*)\1$/', '\2', trim($match[2])); $this->_set_config_var($vars, trim($match[1]), $var_value, $this->booleanize); } } return $vars; } function _set_config_var(&$container, $var_name, $var_value, $booleanize) { if ($var_name{0} == '.') { if (!$this->read_hidden) return; else $var_name = substr($var_name, 1); } if (!preg_match("/^[a-zA-Z_]\w*$/", $var_name)) { $this->_trigger_error_msg("Bad variable name '$var_name'"); return; } if ($booleanize) { if (preg_match("/^(on|true|yes)$/i", $var_value)) $var_value = true; else if (preg_match("/^(off|false|no)$/i", $var_value)) $var_value = false; } if (!isset($container[$var_name]) || $this->overwrite) $container[$var_name] = $var_value; else { settype($container[$var_name], 'array'); $container[$var_name][] = $var_value; } } function _trigger_error_msg($error_msg, $error_type = E_USER_WARNING) { trigger_error("Config_File error: $error_msg", $error_type); } } ?> --- NEW FILE: Smarty.class.php --- <?php /* * Project: Smarty: the PHP compiling template engine * File: Smarty.class.php * Author: Monte Ohrt <mo...@is...> * Andrei Zmievski <an...@ph...> * * Version: 2.3.0 * Copyright: 2001,2002 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. [...1990 lines suppressed...] // windows pathnames $_path_array = explode(';',$_ini_include_path); } else { $_path_array = explode(':',$_ini_include_path); } } foreach ($_path_array as $_include_path) { if (@file_exists($_include_path . DIR_SEP . $file_path)) { $new_file_path = $_include_path . DIR_SEP . $file_path; return true; } } return false; } } /* vim: set expandtab: */ ?> --- NEW FILE: Smarty_Compiler.class.php --- <?php /* * Project: Smarty: the PHP compiling template engine * File: Smarty_Compiler.class.php * Author: Monte Ohrt <mo...@is...> * Andrei Zmievski <an...@ph...> * * Version: 2.3.0 * Copyright: 2001,2002 ispi of Lincoln, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU [...1365 lines suppressed...] } } } } /*======================================================================*\ Function: _syntax_error Purpose: display Smarty syntax error \*======================================================================*/ function _syntax_error($error_msg, $error_type = E_USER_ERROR) { trigger_error("Smarty: [in " . $this->_current_file . " line " . $this->_current_line_no . "]: syntax error: $error_msg", $error_type); } } /* vim: set et: */ ?> |
|
From: Benjamin C. <bc...@us...> - 2002-09-19 20:07:10
|
Update of /cvsroot/phpbt/phpbt/inc/smarty/plugins In directory usw-pr-cvs1:/tmp/cvs-serv5945/plugins Log Message: Directory /cvsroot/phpbt/phpbt/inc/smarty/plugins added to the repository |
|
From: Benjamin C. <bc...@us...> - 2002-09-19 20:07:05
|
Update of /cvsroot/phpbt/phpbt/inc/smarty In directory usw-pr-cvs1:/tmp/cvs-serv5882/smarty Log Message: Directory /cvsroot/phpbt/phpbt/inc/smarty added to the repository |
|
From: Benjamin C. <bc...@us...> - 2002-09-17 18:14:24
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv29114
Modified Files:
bug.php
Log Message:
Formatting changes
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -r1.117 -r1.118
--- bug.php 14 Sep 2002 19:31:22 -0000 1.117
+++ bug.php 17 Sep 2002 18:14:19 -0000 1.118
@@ -69,9 +69,9 @@
if (!$bug_is_new and $db->getOne("select count(*) from ".
TBL_BUG_VOTE." where bug_id = $bug_id") == PROMOTE_VOTES) {
$status_id = BUG_PROMOTED;
- $buginfo = $db->getOne("select * from ".TBL_BUG." where bug_id = $bug_id");
- $changedfields = array('status_id' => $status_id);
- do_changedfields($u, $buginfo, $changedfields);
+ $buginfo = $db->getOne("select * from ".TBL_BUG." where bug_id = $bug_id");
+ $changedfields = array('status_id' => $status_id);
+ do_changedfields($u, $buginfo, $changedfields);
}
}
if (isset($_pv['pos'])) {
@@ -105,15 +105,15 @@
///
/// Show the activity for a bug
function show_history($bugid) {
- global $db, $t, $STRING, $QUERY;
+ global $db, $t, $STRING, $QUERY;
- if (!is_numeric($bugid)) {
- show_text($STRING['nobughistory']);
- return;
- }
+ if (!is_numeric($bugid)) {
+ show_text($STRING['nobughistory']);
+ return;
+ }
- $t->assign('history', $db->getAll(sprintf($QUERY['bug-history'], $bugid)));
- $t->wrap('bughistory.html', 'bughistory');
+ $t->assign('history', $db->getAll(sprintf($QUERY['bug-history'], $bugid)));
+ $t->wrap('bughistory.html', 'bughistory');
}
///
@@ -133,14 +133,14 @@
$db->quote(stripslashes($buginfo[$field])),
$db->quote(stripslashes($cf[$field])), $u, $now)).")");
$t->assign(array(
- $field => stripslashes($cf[$field]),
- $field.'_stat' => '!'
- ));
+ $field => stripslashes($cf[$field]),
+ $field.'_stat' => '!'
+ ));
} else {
$t->assign(array(
- $field => stripslashes($buginfo[$field]),
- $field.'_stat' => ' '
- ));
+ $field => stripslashes($buginfo[$field]),
+ $field.'_stat' => ' '
+ ));
}
}
@@ -159,7 +159,7 @@
);
foreach($cfgDatabase as $field => $table) {
- if (isset($buginfo[$field.'_id'])) {
+ if (isset($buginfo[$field.'_id'])) {
$oldvalue = $db->getOne("select ${field}_name from $table".
" where ${field}_id = {$buginfo[$field.'_id']}");
}
@@ -319,19 +319,19 @@
if (isset($_pv)) {
foreach ($_pv as $k => $v) {
- $$k = $v;
- if ($k == 'url') {
- if (($v == 'http://') || ($v == 'https://')) {
- $v = '';
- } elseif (($v) && (strtolower(substr($v,0,7)) != 'http://') && (strtolower(substr($v,0,8)) != 'https://') && (strtolower(substr($v,0,6)) != 'ftp://')) {
- $v = 'http://'.$v;
+ $$k = $v;
+ if ($k == 'url') {
+ if (($v == 'http://') || ($v == 'https://')) {
+ $v = '';
+ } elseif (($v) && (strtolower(substr($v,0,7)) != 'http://') && (strtolower(substr($v,0,8)) != 'https://') && (strtolower(substr($v,0,6)) != 'ftp://')) {
+ $v = 'http://'.$v;
+ }
+ $url = $v;
}
- $url = $v;
- }
- if (isset($buginfo[$k]) && stripslashes($buginfo[$k]) != stripslashes($v)) {
- $changedfields[$k] = $v;
- }
+ if (isset($buginfo[$k]) && stripslashes($buginfo[$k]) != stripslashes($v)) {
+ $changedfields[$k] = $v;
+ }
}
}
@@ -405,10 +405,10 @@
}
if ($comments) {
- // $comments = strip_tags($comments); -- Uncomment this if you want no <> content in the comments
- $db->query("insert into ".TBL_COMMENT." (comment_id, bug_id, comment_text, created_by, created_date)".
- " values (".$db->nextId(TBL_COMMENT).", $bugid, ".
- $db->quote(stripslashes($comments)).", $u, $now)");
+ // $comments = strip_tags($comments); -- Uncomment this if you want no <> content in the comments
+ $db->query("insert into ".TBL_COMMENT." (comment_id, bug_id, comment_text, created_by, created_date)".
+ " values (".$db->nextId(TBL_COMMENT).", $bugid, ".
+ $db->quote(stripslashes($comments)).", $u, $now)");
}
// Allow for removing of some items from the bug page
|
|
From: Ben C. <php...@be...> - 2002-09-16 19:43:59
|
Make sure you edit your config.php to remove the include of inc/template.php when you do a cvs update. |
|
From: Benjamin C. <bc...@us...> - 2002-09-16 19:39:37
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv8398/admin
Modified Files:
project.php
Log Message:
Fixes bug #602008 - Submitting a component or version with an error causes second submission to fail.
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- project.php 18 May 2002 03:00:00 -0000 1.42
+++ project.php 16 Sep 2002 19:39:34 -0000 1.43
@@ -28,39 +28,41 @@
function del_version($versionid, $projectid) {
global $db, $me;
-
+
if (!$db->getOne('select count(*) from '.TBL_BUG." where version_id = $versionid")) {
$db->query("delete from ".TBL_VERSION." where version_id = $versionid");
}
header("Location: $me?op=edit&id=$projectid&");
}
-function save_version($versionid = 0) {
- global $db, $me, $_pv, $STRING, $now, $u, $t;
+function save_version($version_id = 0) {
+ global $db, $me, $_pv, $STRING, $now, $u, $t;
$error = '';
- // Validation
- if (!$_pv['version_name'] = trim($_pv['version_name']))
- $error = $STRING['giveversion'];
- if ($error) { show_version($_pv['versionid'], $error); return; }
+ // Validation
+ if (!$_pv['version_name'] = trim($_pv['version_name']))
+ $error = $STRING['giveversion'];
+ if ($error) {
+ show_version($_pv['version_id'], $error); return;
+ }
extract($_pv);
- if (!isset($active)) $active = 0;
- if (!$versionid) {
- $db->query('insert into '.TBL_VERSION
- ." (version_id, project_id, version_name, active, created_by, created_date)
- values (".$db->nextId(TBL_VERSION).", $projectid, ".
- $db->quote(stripslashes($version_name)).", $active, $u, $now)");
- } else {
- $db->query('update '.TBL_VERSION
- ." set project_id = $projectid, version_name = ".
- $db->quote(stripslashes($version_name)).
- ", active = $active where version_id = '$versionid'");
- }
+ if (!isset($active)) $active = 0;
+ if (!$version_id) {
+ $db->query('insert into '.TBL_VERSION
+ ." (version_id, project_id, version_name, active, created_by, created_date)
+ values (".$db->nextId(TBL_VERSION).", $project_id, ".
+ $db->quote(stripslashes($version_name)).", $active, $u, $now)");
+ } else {
+ $db->query('update '.TBL_VERSION
+ ." set project_id = $project_id, version_name = ".
+ $db->quote(stripslashes($version_name)).
+ ", active = $active where version_id = '$version_id'");
+ }
if ($use_js) {
$t->display('admin/edit-submit.html');
} else {
- header("Location:$me?op=edit&id=$projectid");
+ header("Location:$me?op=edit&id=$project_id");
}
}
@@ -68,18 +70,12 @@
global $db, $t, $_pv, $STRING, $QUERY, $_gv;
foreach ($_pv as $k => $v) $$k = $v;
-
+
if ($versionid) {
$t->assign($db->getRow(sprintf($QUERY['admin-show-version'], $versionid)));
} else {
- if (!empty($_pv)) {
- $t->assign($_pv);
- } else {
- $t->assign(array(
- 'active' => 1,
- 'project_id' => $_gv['project_id']
- ));
- }
+ if (!empty($_gv['project_id'])) $t->assign('project_id', $_gv['project_id']);
+ $t->assign($_pv);
}
$t->assign('error', $error);
$t->wrap('admin/version-edit.html', ($versionid ? 'editversion' : 'addversion'));
@@ -87,32 +83,32 @@
function del_component($componentid, $projectid) {
global $db, $me;
-
+
if (!$db->getOne('select count(*) from '.TBL_BUG." where component_id = $componentid")) {
$db->query("delete from ".TBL_COMPONENT." where component_id = $componentid");
}
header("Location: $me?op=edit&id=$projectid&");
}
-function save_component($componentid = 0) {
+function save_component($component_id = 0) {
global $db, $me, $_pv, $u, $STRING, $now, $t;
-
+
$error = '';
// Validation
- if (!$_pv['component_name'] = trim($_pv['component_name']))
+ if (!$_pv['component_name'] = trim($_pv['component_name']))
$error = $STRING['givename'];
elseif (!$_pv['component_desc'] = trim($_pv['component_desc']))
$error = $STRING['givedesc'];
- if ($error) { show_component($_pv['componentid'], $error); return; }
-
+ if ($error) { show_component($_pv['component_id'], $error); return; }
+
foreach ($_pv as $k => $v) $$k = $v;
if (!$owner) $owner = 0;
if (!$active) $active = 0;
- if (!$componentid) {
+ if (!$component_id) {
$db->query('insert into '.TBL_COMPONENT
- ." (component_id, project_id, component_name, component_desc, owner,
- active, created_by, created_date, last_modified_by, last_modified_date)
- values (".$db->nextId(TBL_COMPONENT).", $projectid, ".
+ ." (component_id, project_id, component_name, component_desc, owner,
+ active, created_by, created_date, last_modified_by, last_modified_date)
+ values (".$db->nextId(TBL_COMPONENT).", $project_id, ".
$db->quote(stripslashes($component_name)).", ".
$db->quote(stripslashes($component_desc)).
", $owner, $active, $u, $now, $u, $now)");
@@ -120,30 +116,24 @@
$db->query('update '.TBL_COMPONENT
." set component_name = ".$db->quote(stripslashes($component_name)).
', component_desc = '.$db->quote(stripslashes($component_desc)).
- ", owner = $owner, active = $active, last_modified_by = $u, ".
- "last_modified_date = $now where component_id = $componentid");
+ ", owner = $owner, active = $active, last_modified_by = $u, ".
+ "last_modified_date = $now where component_id = $component_id");
}
if ($use_js) {
$t->display('admin/edit-submit.html');
} else {
- header("Location: $me?op=edit&id=$projectid");
+ header("Location: $me?op=edit&id=$project_id");
}
-}
+}
function show_component($componentid = 0, $error = '') {
global $db, $t, $_pv, $STRING, $QUERY, $_gv;
-
+
if ($componentid) {
$t->assign($db->getRow(sprintf($QUERY['admin-show-component'], $componentid)));
} else {
- if (!empty($_pv)) {
- $t->assign($_pv);
- } else {
- $t->assign(array(
- 'active' => 1,
- 'project_id' => $_gv['project_id']
- ));
- }
+ if (!empty($_gv['project_id'])) $t->assign('project_id', $_gv['project_id']);
+ $t->assign($_pv);
}
$t->assign('error', $error);
$t->wrap('admin/component-edit.html', ($componentid ? 'editcomponent' : 'addcomponent'));
@@ -155,18 +145,18 @@
$error = '';
// Validation
if (!$_pv['project_name'] = htmlspecialchars(trim($_pv['project_name']))) {
- $error = $STRING['givename'];
+ $error = $STRING['givename'];
} elseif (!$_pv['project_desc'] = htmlspecialchars(trim($_pv['project_desc']))) {
- $error = $STRING['givedesc'];
- } elseif (isset($_pv['usergroup']) and is_array($_pv['usergroup']) and
+ $error = $STRING['givedesc'];
+ } elseif (isset($_pv['usergroup']) and is_array($_pv['usergroup']) and
in_array('all', $_pv['usergroup']) and count($_pv['usergroup']) > 1) {
$error = $STRING['project_only_all_groups'];
}
if ($error) { show_project($projectid, $error); return; }
-
+
if (!$projectid) {
if (!$_pv['version_name'] = htmlspecialchars(trim($_pv['version_name']))) {
- $error['version_error'] = $STRING['giveversion'];
+ $error['version_error'] = $STRING['giveversion'];
} elseif (!$_pv['component_name'] = trim($_pv['component_name'])) {
$error['component_error'] = $STRING['givename'];
} elseif (!$_pv['component_desc'] = trim($_pv['component_desc'])) {
@@ -178,29 +168,29 @@
foreach ($_pv as $k => $v) $$k = $v;
if (!isset($active)) $active = 0;
if (!$projectid) {
- $projectid = $db->nextId(TBL_PROJECT);
- $db->query('insert into '.TBL_PROJECT
+ $projectid = $db->nextId(TBL_PROJECT);
+ $db->query('insert into '.TBL_PROJECT
." (project_id, project_name, project_desc, active, created_by, created_date)
- values ($projectid , ".$db->quote(stripslashes($project_name)).", ".
+ values ($projectid , ".$db->quote(stripslashes($project_name)).", ".
$db->quote(stripslashes($project_desc)).", $active, $u, $now)");
- $db->query('insert into '.TBL_VERSION
- ." (version_id, project_id, version_name, active, created_by, created_date)
+ $db->query('insert into '.TBL_VERSION
+ ." (version_id, project_id, version_name, active, created_by, created_date)
values (".$db->nextId(TBL_VERSION).", $projectid, ".
$db->quote(stripslashes($version_name)).", 1, $u, $now)");
$db->query('insert into '.TBL_COMPONENT
- ." (component_id, project_id, component_name, component_desc, owner,
- active, created_by, created_date, last_modified_by, last_modified_date)
+ ." (component_id, project_id, component_name, component_desc, owner,
+ active, created_by, created_date, last_modified_by, last_modified_date)
values (".$db->nextId(TBL_COMPONENT).", $projectid, ".
$db->quote(stripslashes($component_name)).", ".
$db->quote(stripslashes($component_desc)).
", $owner, 1, $u, $now, $u, $now)");
} else {
- $db->query('update '.TBL_PROJECT
+ $db->query('update '.TBL_PROJECT
." set project_name = ".$db->quote(stripslashes($project_name)).
", project_desc = ".$db->quote(stripslashes($project_desc)).
", active = $active where project_id = $projectid");
}
-
+
// Handle project -> group relationship
$old_usergroup = $db->getCol('select group_id from '.TBL_PROJECT_GROUP.
" where project_id = $projectid");
@@ -213,8 +203,8 @@
} else {
// Compute differences between old and new
$remove_from = array_diff($old_usergroup, $usergroup);
- $add_to = array_diff($usergroup, $old_usergroup);
-
+ $add_to = array_diff($usergroup, $old_usergroup);
+
if (count($remove_from)) {
foreach ($remove_from as $group) {
$db->query('delete from '.TBL_PROJECT_GROUP." where project_id = $projectid
@@ -222,18 +212,18 @@
}
}
if (count($add_to)) {
- foreach ($add_to as $group) {
- $db->query("insert into ".TBL_PROJECT_GROUP
- ." (project_id, group_id, created_by, created_date)
- values ('$projectid' ,'$group', $u, $now)");
- }
- }
+ foreach ($add_to as $group) {
+ $db->query("insert into ".TBL_PROJECT_GROUP
+ ." (project_id, group_id, created_by, created_date)
+ values ('$projectid' ,'$group', $u, $now)");
+ }
+ }
}
} elseif (count($old_usergroup)) {
// User selected nothing, so consider it 'All groups'
$db->query('delete from '.TBL_PROJECT_GROUP." where project_id = $projectid");
}
-
+
header("Location: $me?op=edit&id=$projectid");
}
@@ -246,12 +236,12 @@
TBL_PROJECT_GROUP." where project_id = $projectid"));
if ($projectid) {
- $t->assign($db->getRow('select * from '.TBL_PROJECT
+ $t->assign($db->getRow('select * from '.TBL_PROJECT
." where project_id = $projectid"));
$t->assign(array(
- 'components' => $db->getAll(sprintf($QUERY['admin-list-components'],
+ 'components' => $db->getAll(sprintf($QUERY['admin-list-components'],
$projectid)),
- 'versions' => $db->getAll(sprintf($QUERY['admin-list-versions'],
+ 'versions' => $db->getAll(sprintf($QUERY['admin-list-versions'],
$projectid))
));
@@ -264,7 +254,7 @@
}
$t->wrap('admin/project-add.html', 'addproject');
}
-
+
}
function list_projects() {
@@ -273,7 +263,7 @@
if (!isset($_gv['order'])) { $order = 'created_date'; $sort = 'asc'; }
else { $order = $_gv['order']; $sort = $_gv['sort']; }
$page = isset($_gv['page']) ? $_gv['page'] : 1;
-
+
$nr = $db->getOne("select count(*) from ".TBL_PROJECT);
list($selrange, $llimit) = multipages($nr, $page, "order=$order&sort=$sort");
@@ -282,16 +272,16 @@
"select * from ".TBL_PROJECT." order by $order $sort", $llimit, $selrange)));
$headers = array(
- 'projectid' => 'project_id',
- 'name' => 'project_name',
- 'description' => 'project_desc',
- 'active' => 'active',
- 'createdby' => 'created_by',
- 'createddate' => 'created_date'
- );
+ 'projectid' => 'project_id',
+ 'name' => 'project_name',
+ 'description' => 'project_desc',
+ 'active' => 'active',
+ 'createdby' => 'created_by',
+ 'createddate' => 'created_date'
+ );
sorting_headers($me, $headers, $order, $sort);
-
+
$t->wrap('admin/projectlist.html', 'project');
}
@@ -299,18 +289,18 @@
if (isset($_gv['op'])) {
switch($_gv['op']) {
- case 'add' : show_project(); break;
- case 'edit' : show_project($_gv['id']); break;
- case 'edit_component' : show_component($_gv['id']); break;
- case 'edit_version' : show_version($_gv['id']); break;
- case 'del_component' : del_component($_gv['id'], $_gv['project_id']); break;
- case 'del_version' : del_version($_gv['id'], $_gv['project_id']); break;
+ case 'add' : show_project(); break;
+ case 'edit' : show_project($_gv['id']); break;
+ case 'edit_component' : show_component($_gv['id']); break;
+ case 'edit_version' : show_version($_gv['id']); break;
+ case 'del_component' : del_component($_gv['id'], $_gv['project_id']); break;
+ case 'del_version' : del_version($_gv['id'], $_gv['project_id']); break;
}
} elseif (isset($_pv['do'])) {
switch($_pv['do']) {
- case 'project' : save_project($_pv['id']); break;
- case 'version' : save_version($_pv['versionid']); break;
- case 'component' : save_component($_pv['componentid']); break;
+ case 'project' : save_project($_pv['id']); break;
+ case 'version' : save_version($_pv['version_id']); break;
+ case 'component' : save_component($_pv['component_id']); break;
}
} else list_projects();
|
|
From: Benjamin C. <bc...@us...> - 2002-09-16 19:39:37
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv8398/templates/default/admin
Modified Files:
component-edit.html version-edit.html
Log Message:
Fixes bug #602008 - Submitting a component or version with an error causes second submission to fail.
Index: component-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/component-edit.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- component-edit.html 16 Sep 2002 19:04:30 -0000 1.5
+++ component-edit.html 16 Sep 2002 19:39:34 -0000 1.6
@@ -4,8 +4,8 @@
<form action="{$smarty.server.PHP_SELF}" method="post">
<table border="0">
<input type="hidden" name="do" value="component">
- <input type="hidden" name="componentid" value="{$component_id}">
- <input type="hidden" name="projectid" value="{$project_id}">
+ <input type="hidden" name="component_id" value="{$component_id}">
+ <input type="hidden" name="project_id" value="{$project_id}">
<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
<tr>
<td valign="top">
@@ -36,7 +36,7 @@
Active:
</td>
<td valign="top">
- <input type="checkbox" name="active" value="1" {if $active}checked{/if}>
+ <input type="checkbox" name="active" value="1" {if $active or not $component_id}checked{/if}>
</td>
</tr>
<tr>
Index: version-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/version-edit.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- version-edit.html 16 Sep 2002 19:04:34 -0000 1.5
+++ version-edit.html 16 Sep 2002 19:39:34 -0000 1.6
@@ -4,8 +4,8 @@
<form action="{$smarty.server.PHP_SELF}" method="post">
<table border="0">
<input type="hidden" name="do" value="version">
- <input type="hidden" name="versionid" value="{$version_id}">
- <input type="hidden" name="projectid" value="{$project_id}">
+ <input type="hidden" name="version_id" value="{$version_id}">
+ <input type="hidden" name="project_id" value="{$project_id}">
<input type="hidden" name="use_js" value="{$smarty.request.use_js}">
<tr>
<td valign="top">
@@ -20,7 +20,7 @@
Active:
</td>
<td valign="top">
- <input type="checkbox" name="active" value="1" {if $active}checked{/if}>
+ <input type="checkbox" name="active" value="1" {if $active or not $version_id}checked{/if}>
</td>
</tr>
<tr>
|
|
From: Benjamin C. <bc...@us...> - 2002-09-16 19:11:01
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv31663
Modified Files:
config-dist.php
Log Message:
Removed the include for inc/template.php
Index: config-dist.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/config-dist.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- config-dist.php 18 Jul 2002 13:02:14 -0000 1.19
+++ config-dist.php 16 Sep 2002 19:10:56 -0000 1.20
@@ -69,6 +69,5 @@
define ('ONEDAY', 86400);
require_once ('inc/auth.php');
-require_once ('inc/template.php');
?>
|