|
From: Benjamin C. <bc...@us...> - 2001-10-12 04:19:34
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv4700/admin
Modified Files:
project.php user.php
Log Message:
* WARNING * This _will_ clobber your configuration settings, as most of the defines have moved to the new table, configuration. (Let me know if I broke anything) :)
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- project.php 2001/10/05 04:22:46 1.22
+++ project.php 2001/10/12 04:19:31 1.23
@@ -87,7 +87,7 @@
'trclass' => $i % 2 ? '' : 'alt',
'verid' => $row['version_id'],
'vername' => $row['version_name'],
- 'verdate' => date(DATEFORMAT,$row['created_date']),
+ 'verdate' => date(DATE_FORMAT,$row['created_date']),
'veractive' => $row['active'] ? 'Y' : 'N'
));
$t->parse('verrows','verrow',true);
@@ -170,9 +170,9 @@
'owner' => $row['Owner'],
'compactive' => $row['active'] ? 'Y' : 'N',
'createdby' => $row['created_by'],
- 'compdate' => date(DATEFORMAT,$row['created_date']),
+ 'compdate' => date(DATE_FORMAT,$row['created_date']),
'lastmodifiedby' => $row['last_modified_by'],
- 'lastmodifieddate' => date(DATEFORMAT,$row['last_modified_date'])
+ 'lastmodifieddate' => date(DATE_FORMAT,$row['last_modified_date'])
));
$t->parse('rows','row',true);
}
@@ -307,7 +307,7 @@
'description' => stripslashes($row['project_desc']),
'active' => $row['active'] ? 'Y' : 'N',
'createdby' => $row['created_by'],
- 'createddate' => date(DATEFORMAT,$row['created_date'])
+ 'createddate' => date(DATE_FORMAT,$row['created_date'])
));
$t->parse('rows','row',true);
}
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/user.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- user.php 2001/10/05 04:22:46 1.28
+++ user.php 2001/10/12 04:19:31 1.29
@@ -49,7 +49,7 @@
}
if (!$userid) {
- if (ENCRYPTPASS) $mpassword = md5($_pv['fpassword']);
+ if (ENCRYPT_PASS) $mpassword = md5($_pv['fpassword']);
else $mpassword = $_pv['fpassword'];
$new_user_id = $q->nextid(TBL_AUTH_USER);
$q->query('insert into '.TBL_AUTH_USER
@@ -64,7 +64,7 @@
values ('$new_user_id' ,'$group', $u, $now)");
}
} else {
- if (ENCRYPTPASS) {
+ if (ENCRYPT_PASS) {
$oldpass = $q->grab_field("select password from ".TBL_AUTH_USER
." where user_id = $userid");
if ($oldpass != $_pv['fpassword']) {
@@ -212,7 +212,7 @@
'name' => stripslashes($row['fullname']),
'email' => $row['email'],
'active' => $row['active'] ? 'Yes' : 'No',
- 'date' => date(DATEFORMAT, $row['created_date'])));
+ 'date' => date(DATE_FORMAT, $row['created_date'])));
$t->parse('rows','row',true);
}
|