[geeklog-cvs] geeklog-1.3/public_html/staticpages index.php,1.10,1.11
dhaun at geeklog.net
dhaun at geeklog.net
Tue Mar 11 12:00:59 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html/staticpages
In directory internal.geeklog.net:/tmp/cvs-serv3643/public_html/staticpages
Modified Files:
index.php
Log Message:
Fixed problems with static pages permissions.
Index: index.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/staticpages/index.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** index.php 9 Mar 2003 11:47:22 -0000 1.10
--- index.php 11 Mar 2003 17:00:57 -0000 1.11
***************
*** 50,54 ****
}
! $result = DB_query ("SELECT * FROM {$_TABLES['staticpage']} WHERE (sp_id = '$page') AND " . SP_getPerms ());
$count = DB_numRows ($result);
--- 50,58 ----
}
! $perms = SP_getPerms ();
! if (!empty ($perms)) {
! $perms = ' AND ' . $perms;
! }
! $result = DB_query ("SELECT * FROM {$_TABLES['staticpage']} WHERE (sp_id = '$page')" . $perms);
$count = DB_numRows ($result);
More information about the geeklog-cvs
mailing list