[geeklog-cvs] geeklog-1.3/public_html index.php,1.60,1.61
blaine at iowaoutdoors.org
blaine at iowaoutdoors.org
Sun Aug 1 17:37:52 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv26876/public_html
Modified Files:
index.php
Log Message:
Package of changes to support the Story Archive Feature.
Index: index.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/index.php,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** index.php 31 Jul 2004 03:30:35 -0000 1.60
--- index.php 1 Aug 2004 21:37:50 -0000 1.61
***************
*** 131,137 ****
while (list ($sid,$expiretopic,$title,$expire,$statuscode) = DB_fetchArray($expiresql)) {
if ($statuscode == 10) {
! if (DB_COUNT($_TABLES['topics'],"tid", $_CONF['archivetopic']) > 0) {
! COM_errorLOG("Archive Story: $sid, Topic:$expiretopic, Title: $title. Expired :$expire");
! DB_query("UPDATE {$_TABLES['stories']} SET tid = '{$_CONF['archivetopic']}' WHERE sid='{$sid}'");
} else {
COM_errorLOG("ERROR: Archive Topic does not exist. Attempt to archive Story: $sid");
--- 131,138 ----
while (list ($sid,$expiretopic,$title,$expire,$statuscode) = DB_fetchArray($expiresql)) {
if ($statuscode == 10) {
! if (DB_COUNT($_TABLES['topics'],'archive_flag', '1') == 1) {
! $archivetid = DB_getItem($_TABLES['topics'],'tid',"archive_flag='1'");
! COM_errorLOG("Archive Story: $sid, Topic:$archivetid, Title: $title. Expired :$expire");
! DB_query("UPDATE {$_TABLES['stories']} SET tid = '$archivetid' WHERE sid='{$sid}'");
} else {
COM_errorLOG("ERROR: Archive Topic does not exist. Attempt to archive Story: $sid");
More information about the geeklog-cvs
mailing list