notification php function


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Notification function
  2. function outp($msg,$type) {
  3. if ($type=="i")
  4. $msg="[i] ".$msg;
  5. elseif ($type=="!")
  6. $msg="[!] ".$msg;
  7. elseif ($type=="x")
  8. $msg="[x] ".$msg;
  9. elseif ($type=="e") {
  10. $msg="[x] ".$msg;
  11. $exit=1
  12. }
  13. echo $msg."\n";
  14. if ($exit==1)
  15. exit(1);
  16. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.