Skip to content

Instantly share code, notes, and snippets.

@shamun
Created March 7, 2017 14:13
Show Gist options
  • Save shamun/56ed9adb40cb303f5f07bb2ea5e70a2f to your computer and use it in GitHub Desktop.
Save shamun/56ed9adb40cb303f5f07bb2ea5e70a2f to your computer and use it in GitHub Desktop.
<?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