source: inc/alerts-msg.php

Last change on this file was 0791611, checked in by sstalevska <sara.stalevska@…>, 2 years ago

Push the entire project.

  • Property mode set to 100644
File size: 468 bytes
RevLine 
[0791611]1<?php
2/**
3 * If the "msg" parameter is in the page URL, display the corresponding message.
4 */
5?>
6<?php if ((isset($_GET['msg'])) && (! empty($_GET['msg']))) { ?>
7 <div class="alert alert-info" role="alert">
8 <?php
9 switch ($_GET['msg']) {
10 case 'logged_in':
11 echo 'You have successfully logged in.'; break;
12 case 'review_added':
13 echo 'Your review has been added.'; break;
14 default:
15 echo 'An unknown error has occurred.';
16 }
17 ?>
18 </div>
19<?php } ?>
Note: See TracBrowser for help on using the repository browser.