forked from proche-rainmaker/phplicensewatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.php
27 lines (23 loc) · 807 Bytes
/
common.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
#
# $Id: common.php 49016 2011-10-04 19:01:55Z proche $
#
if(!is_readable('./config.php')){
print("</head><body>");
print("<h2>Error: Configuration file config.php does not exist. Please notify your system administrator.</h2>");
print("</body></html>\n");
exit;
}else{
include_once('./config.php');
include_once('./tools.php');
$Start = getTime();
}
function print_header($title)
{
print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"DTD/xhtml1-strict.dtd\">\n");
print("<html><head><link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\"/><title>".htmlspecialchars($title)."</title>\n");
}
function print_sql ($sql) {
print "<font color=red>Executing SQL: </font> <font color=blue>" . $sql . "</font><br>\n";
}
?>