wip
This commit is contained in:
1 parent
1890b1fcc2
commit
bf48caa395
22 files changed
+510
-123
No files matched your search
@@ -4,18 +4,27 @@ namespace App\Utilities;
|
||||
|
||||
class Notice
|
||||
{
|
||||
// note
|
||||
/**
|
||||
* \e[1;30m Black
|
||||
* \e[1;31m Red
|
||||
* \e[1;32m Green
|
||||
* \e[1;33m Yellow
|
||||
* \e[1;34m Blue
|
||||
* \e[1;35m Purple
|
||||
* \e[1;36m Cyan
|
||||
* \e[1;37m White
|
||||
*/
|
||||
|
||||
public static function db($message, $exit = false)
|
||||
{
|
||||
echo "\e[0;35m";
|
||||
echo PHP_EOL.'-----------------------------------------------------------'.PHP_EOL;
|
||||
echo PHP_EOL . '-----------------------------------------------------------' . PHP_EOL;
|
||||
if (is_array($message)) {
|
||||
print_r($message);
|
||||
} else {
|
||||
echo $message.PHP_EOL;
|
||||
echo $message . PHP_EOL;
|
||||
}
|
||||
echo '-----------------------------------------------------------'.PHP_EOL;
|
||||
echo '-----------------------------------------------------------' . PHP_EOL;
|
||||
echo "\e[0;39m";
|
||||
if ($exit) {
|
||||
exit();
|
||||
@@ -72,13 +81,13 @@ class Notice
|
||||
break;
|
||||
}
|
||||
|
||||
echo PHP_EOL.'-----------------------------------------------------------'.PHP_EOL;
|
||||
echo PHP_EOL . '-----------------------------------------------------------' . PHP_EOL;
|
||||
if (is_array($message)) {
|
||||
print_r($message);
|
||||
} else {
|
||||
echo $message.PHP_EOL;
|
||||
echo $message . PHP_EOL;
|
||||
}
|
||||
echo '-----------------------------------------------------------'.PHP_EOL;
|
||||
echo '-----------------------------------------------------------' . PHP_EOL;
|
||||
echo "\e[0;39m";
|
||||
if ($exit) {
|
||||
exit();
|
||||
|
||||
Reference in new issue
Block a user