website/parts/plan_search.inc
Jeff Teunissen 9e6f75ccbd Update for PHP 7.x
PHP 7 doesn't like the old short tags we were using (it's possible to re-enable
them, but won't be for version 8, so we might as well switch now), and the old
MySQL APIs are now gone entirely, replaced with something different.

This should make everything work at least as well as it used to.

Also, one file used to be checked in with CRLF line endings. ??
2022-04-27 13:14:47 -04:00

21 lines
499 B
PHP

<?php
function planUsers ()
{
need ('boxes feature plan');
featureOpen ('Users with Plans');
if (is_array ($users = usersWithPlans ())) {
foreach ($users as $user) {
$displayName = $user['u_displayname'];
$userName = $user['u_username'];
echo '<P><A class="planUser" href="' . thisURL . "/$userName/"
.'">' . $displayName . '</A></P>';
}
} else {
echo '<P>Sorry, no users have posted Plan entries at this time.</P>';
}
featureClose ();
}
planUsers ();
?>