mirror of
https://github.com/byecorps/id.git
synced 2024-09-20 06:40:15 +01:00
18 lines
263 B
PHP
18 lines
263 B
PHP
<?php
|
|
|
|
/**
|
|
* Redirects to $url.
|
|
*
|
|
* @param $url string
|
|
*
|
|
*/
|
|
function location(string $url):void
|
|
{
|
|
header('Location: '. $url);
|
|
exit();
|
|
}
|
|
|
|
function flash(string $text, string $type, array &$flash) {
|
|
$flash[] = ['text' => $text, 'type' => $type];
|
|
}
|