mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-19 06:40:06 +00:00
first commit
This commit is contained in:
26
core/func/messages.php
Executable file
26
core/func/messages.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Стилистически оформленные сообщения
|
||||
*
|
||||
* @author Zmi
|
||||
*/
|
||||
|
||||
|
||||
function Msg($message, $css = 'msg')
|
||||
{
|
||||
ob_start();
|
||||
IncludeCom('dev/msg', array('message' => $message, 'css' => $css));
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
function MsgOk($message)
|
||||
{
|
||||
return Msg($message, 'msg-ok');
|
||||
}
|
||||
|
||||
function MsgErr($message)
|
||||
{
|
||||
return Msg($message, 'msg-err');
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user