Created
March 7, 2017 14:13
-
-
Save shamun/56ed9adb40cb303f5f07bb2ea5e70a2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class OBS { | |
private static function msg ($color, $text, $message) { | |
if ($message) | |
print "<p style='margin-bottom:2px;color:$color'>$text</p>"; | |
else | |
print "<p style='color:$color'>$text</p>"; | |
if ($message) | |
print "<p style='margin-left:32px;margin-top:0'>$message</p>"; | |
} | |
private static function bad ($t, $m = '') { | |
global $warnings, $major, $warningdedup; | |
if (isset($warningdedup[$t])) | |
return; | |
else | |
$warningdedup[$t] = true; | |
msg ('red', $t, $m); | |
$warnings++; | |
$major++; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment