We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2577f96 commit 35365d4Copy full SHA for 35365d4
components/alert.php
@@ -1,4 +1,13 @@
1
<?php
2
+// dynamic alerts via URL
3
+if (isset($_GET['alert_type'], $_GET['alert_message'])) {
4
+ $config['alerts'][] = [
5
+ 'type' => $_GET['alert_type'],
6
+ 'message' => $_GET['alert_message'],
7
+ ];
8
+}
9
+
10
+// display alerts
11
if (!empty($config['alerts'])):
12
foreach ($config['alerts'] as $alert):
13
$type = $alert['type'];
0 commit comments