BurningFlipside /
VolunteerSystem
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | require_once('class.VolunteerPage.php'); |
||
| 3 | $page = new VolunteerPage('Burning Flipside - Flipside Volunteer System'); |
||
| 4 | |||
| 5 | $page->body .= ' |
||
| 6 | <div id="content"> |
||
| 7 | <h1>Welcome to the Burning Flipside Volunteer System</h1> |
||
| 8 | <p></p> |
||
| 9 | <h1>What would you like to do?</h1> |
||
| 10 | <ul> |
||
| 11 | <li><a href="shifts.php">View Available Shifts</a></li> |
||
| 12 | <li><a href="schedule.php">View My Shift Schedule</a></li>'; |
||
| 13 | |||
| 14 | if($page->isAdmin()) |
||
| 15 | { |
||
| 16 | $page->body .= '<li><a href="viewAll.php">View All Departments</a></li>'; |
||
| 17 | } |
||
| 18 | else if($page->isLead()) |
||
| 19 | { |
||
| 20 | $page->body .= '<li><a href="viewDept.php">View My Department</a></li>'; |
||
| 21 | } |
||
| 22 | |||
| 23 | $page->body .= ' |
||
| 24 | </ul> |
||
| 25 | </div>'; |
||
| 26 | |||
| 27 | $page->print_page(); |
||
| 28 | ?> |
||
|
0 ignored issues
–
show
|
|||
| 29 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.