1) { $user = substr ($user, 1); // strip off the starting slash if (($pos = strpos ($user, '/')) !== false) { // and all others $user = substr ($user, 0, $pos); } if (is_array ($plans = latestPlans ($user, 5))) { newsBoxOpen ("Latest Plans for " . $plans[0]['p_user']); foreach ($plans as $plan) { printPlanArray ($plan); } newsBoxClose (); } else { newsBoxOpen ("Latest Plans for " . $user); printPlan ("Now", "Web Server", "Sorry", "

I don't know any user named "$user".

"); newsBoxClose (); } } else { if (is_array ($plans = latestPlans (null, 5))) { newsBoxOpen ("Latest Plans for All Users"); foreach ($plans as $plan) { printPlanArray ($plan); } newsBoxClose (); } } ?>