Browse Source

import of old work

master
Jim Infield 16 years ago
commit
658dc40641
  1. 14
      bcs.php3
  2. 9
      blank.php3
  3. 55
      gdtest.php
  4. BIN
      images/BCS_Logo.swf
  5. 17
      index.html
  6. 44
      index.unavailable.html
  7. 30
      obms/banner.php3
  8. 45
      obms/db.php3
  9. 93
      obms/html.php3
  10. 9
      obms/index.html
  11. BIN
      preview/images/SiteLogo.jpg
  12. BIN
      preview/images/spacer.gif
  13. 35
      preview/layered.html
  14. 22
      preview/letterhead.html
  15. 40
      preview/quote.html
  16. 72
      preview/sample.html
  17. 44
      preview/simple.html
  18. 60
      preview/styles/styles.css
  19. 62
      styles/basic.css
  20. 62
      styles/bcs.css
  21. 5
      styles/index.php3
  22. 3
      test.php

14
bcs.php3

@ -0,0 +1,14 @@
<?php // php test script
header("Content-type text/html");
$img1 = "graphics/BCS_Logo.gif";
$img1_size = getimagesize($img1);
print("<html><head>\n");
print("<link rel=stylesheet href=\"styles/bcs.css\" type=text/css>\n");
print("<base target=\"_top\">\n");
print("</head>\n<body>\n");
print("<img align=left src=\"$img1\" $img1_size[3]>\n");
print("<br><br><p>Check back later for further developments...\n");
print("</body></html>\n");
?>

9
blank.php3

@ -0,0 +1,9 @@
<?php // php test script
header("Content-type: text/html");
print("<html><head>\n");
print("<link rel=stylesheet href=\"styles/bcs.css\" type=text/css>\n");
print("</head>\n<body>\n");
print("&nbsp\n");
print("</body></html>\n");
?>

55
gdtest.php

@ -0,0 +1,55 @@
<?php
/**
* Get which version of GD is installed, if any.
*
* Returns the version (1 or 2) of the GD extension.
*/
function gdVersion($user_ver = 0)
{
if (! extension_loaded('gd')) { return; }
static $gd_ver = 0;
// Just accept the specified setting if it's 1.
if ($user_ver == 1) { $gd_ver = 1; return 1; }
// Use the static variable if function was called previously.
if ($user_ver !=2 && $gd_ver > 0 ) { return $gd_ver; }
// Use the gd_info() function if possible.
if (function_exists('gd_info')) {
$ver_info = gd_info();
preg_match('/\d/', $ver_info['GD Version'], $match);
$gd_ver = $match[0];
return $match[0];
}
// If phpinfo() is disabled use a specified / fail-safe choice...
if (preg_match('/phpinfo/', ini_get('disable_functions'))) {
if ($user_ver == 2) {
$gd_ver = 2;
return 2;
} else {
$gd_ver = 1;
return 1;
}
}
// ...otherwise use phpinfo().
ob_start();
phpinfo(8);
$info = ob_get_contents();
ob_end_clean();
$info = stristr($info, 'gd version');
preg_match('/\d/', $info, $match);
$gd_ver = $match[0];
return $match[0];
} // End gdVersion()
// Usage:
if ($gdv = gdVersion()) {
if ($gdv >=2) {
echo 'TrueColor functions may be used.';
} else {
echo 'GD version is 1. Avoid the TrueColor functions.';
}
} else {
echo "The GD extension isn't loaded.";
}
?>

BIN
images/BCS_Logo.swf

17
index.html

@ -0,0 +1,17 @@
<html>
<head>
<title>Bullseye Computing Services</title>
</head>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="592" height="386">
<param name=movie value="images/BCS_Logo.swf">
<param name=quality value=high><param name="LOOP" value="false">
<embed src="images/BCS_Logo.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="592" height="386" loop="false">
</embed>
</object>
<!--
<frameset rows="1,*" border=0 framespacing=0 frameborder="no">
<frame src="blank.php3" name="top" scrolling="no">
<frame src="bcs.php3" name="main">
</frameset>
-->
</html>

44
index.unavailable.html

@ -0,0 +1,44 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Unavailable</title>
<style type="text/css">
<!--
body {
background-color: white;
margin: 0pt;
}
p {
font-family: Arial, Helvetica, sans-serif;
}
.title {
font-size: 24pt;
margin-top: 54pt;
margin-bottom: 54pt;
text-align: center;
font-weight: bold;
text-transform: capitalize;
}
.comment {
font-size: 12pt;
font-style: italic;
text-align: center;
font-weight: bold;
color: #336699;
}
.note {
font-size: 10pt;
font-family: Georgia, "Times New Roman", Times, serif;
font-style: italic;
font-weight: bold;
color: #663333;
text-align: justify;
}
-->
</style>
</head>
<body>
<p class="title">unavailable</p>
<p class="comment">This site is no longer available</p>
</body>
</html>

30
obms/banner.php3

@ -0,0 +1,30 @@
<?php // Generate the banner page
// import database configuration and functions
require("db.php3");
// connect to the database
$connection = connect($host, $dbname);
if($connection) {
// import minipage functions
require("html.php3");
// setup query value
$query = "select * from page where content = \"banner\"";
$result = query($connection, $query);
if($result) {
$page = fetch_object($result,0);
$pid = start($page);
// query for page items
$query = "select * from item where pid=\"$pid\" order by ord";
$result = query($connection, $query);
if($result) {
$item = fetch_object($result,0);
$image = $item->dat;
$size = getimagesize($image);
print("<div class=$item->class>\n<a href=\"$item->url\">\n");
print("<img src=\"$image\" $size[3]\n");
print(" alt=\"$item->alt\" ");
print("border=0></a>\n</div>\n</body>\n</html>");
}
}
}
?>

45
obms/db.php3

@ -0,0 +1,45 @@
<?php // initialize our db variables
$domain = "olivebranchms.com";
$host = "localhost";
$user = "admin";
$passwd = "Dr8886UN";
$dbname = "olivebranchms";
// define our generic db calls for use with mysql
function connect($host, $dbname) {
global $user, $passwd;
$link = mysql_connect($host,$user,$passwd);
if(mysql_select_db($dbname,$link)) {
return($link);
}
}
function query($link, $query) {
$result = mysql_query($query, $link);
return($result);
}
function numrows($result) {
$count = mysql_num_rows($result);
return($count);
}
function fetch_object($result, $row) {
$data = mysql_fetch_object($result);
return($data);
}
function free_result($result) {
mysql_free_result($result);
}
function close($link) {
mysql_close($link);
}
function error($link) {
return(mysql_error());
}
?>

93
obms/html.php3

@ -0,0 +1,93 @@
<?php // html function definitions
function start($page) {
header("Content-type: text/html");
print("<html>\n<head>\n<title>$page->title</title>\n");
print("<base target=\"$page->target\">\n");
print("<link rel=stylesheet href=/styles/$page->style ");
print("type=text/css>\n</head>\n<body");
if($page->bgimage) print(" background=\"$page->bgimage\"");
print(">\n");
return($page->id);
}
function finish($page) {
$prev = $page->prev;
$next = $page->next;
print("<br clear=all>\n<div class=\"footer\">\n");
if($page->content == "home")
print("<img src=\"counter.php3\">\n");
print("<hr>\n");
if($prev) {
print("<a href=\"page.php3?content=$prev\">");
print("<img src=\"nav.php3?label=PREV\" ");
print("alt=prev border=0 align=left></a>\n");
}
if($next) {
print("<a href=\"page.php3?content=$next\">");
print("<img src=\"nav.php3?label=NEXT\" ");
print("alt=next border=0 align=right></a>\n");
}
include("$page->footer");
print("</body>\n</html>");
}
function clear($item) {
if($item->clear) {
print("<br");
if($item->clear != "br") print(" clear=$item->clear");
print(">\n");
}
}
function text($item) {
if($item->class && $item->class != "float") {
print("<div");
print(" class=\"$item->class\"");
print(">\n");
}
print("$item->dat\n");
if($item->class == "title") print("<hr>\n");
if($item->class && $item->class != "float") print("</div>\n");
clear($item);
}
function image($item) {
$image = $item->dat;
$size = getimagesize($image);
if($item->url) {
$href = "<a href=\"$item->url\">\n";
$cap = "</a>";
}
if($item->class) {
if($item->class == "center" || $item->class == "banner") {
$div = "<div class=\"$item->class\">\n";
} else {
$div = "<div>\n";
$float = "align=\"$item->class\"";
}
}
print("$div");
print("$href");
print("<img src=\"$image\" ");
if($size) print("$size[3]\n ");
print("alt=\"$item->alt\" ");
print("$float border=0>$cap\n");
clear($item);
}
function insert($item) {
if($item->class) print("<div class=\"$item->class\">\n");
include($item->dat);
if($item->class) print("</div>\n");
}
function lookup($item) {
$result = fopen("$item->dat","r");
print("<div");
if($item->class) print(" class=\"$item->class\"");
print(">\n");
fpassthru($result);
print("</div>\n");
clear($item);
}

9
obms/index.html

@ -0,0 +1,9 @@
<html>
<head>
<title>Olive Branch, MS. - Chamber of Commerce</title>
</head>
<frameset rows="95,*" border=0 framespacing=0 frameborder="no">
<frame src="banner.php3" name="banner" scrolling="no">
<frame src="body.php3?content=home" name="body">
</frameset>
</html>

BIN
preview/images/SiteLogo.jpg

After

Width: 754  |  Height: 120  |  Size: 16 KiB

BIN
preview/images/spacer.gif

After

Width: 1  |  Height: 1  |  Size: 43 B

35
preview/layered.html

@ -0,0 +1,35 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Layered Layout</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center">
<table width="760" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="126" colspan="2" valign="top" class="sitetitle"><img src="images/SiteLogo.jpg" width="754" height="120"></td>
</tr>
<tr>
<td width="185" height="775" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
<td width="575" valign="top">
<p class="pagetitle">Page Title</p>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus
est Lorem ipsum dolor sit amet. 1962</p>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
amet 2003.</p>
</td>
</tr>
</table>
</div>
</body>
</html>

22
preview/letterhead.html

@ -0,0 +1,22 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Letterhead (negative margin)</title>
<style type="text/css">
body { background-color: white; margin: 0; }
.name { margin-right: 10%; font-family: Arial; font-size: 13pt; font-weight: bold; font-style: italic; text-align: right; margin-top: 60pt; }
.line { width: 80%; text-align: center; margin-top: -6pt; }
.addr { margin-right: 10%; font-family: Georgia; font-size: 7pt; font-style: italic; text-align: right; margin-top: -6pt; }
</style>
</head>
<body
<div class="name">Bullseye Computing Services
</div>
<hr class="line">
<div class="addr">6740 Henredon Drive, Memphis, Tennessee 38141
</div>
<div> &nbsp
</div>
</body>
</html>

40
preview/quote.html

@ -0,0 +1,40 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Quote</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.name {
font-family: Arial, Helvetica, sans-serif;
font-size: 12pt;
font-style: italic;
font-weight: bold;
text-align: right;
}
.address {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 8pt;
font-style: italic;
text-align: right;
}
-->
</style>
<style type="text/css">
<!--
h4 {
font-family: Arial, Helvetica, sans-serif;
font-size: 13pt;
font-style: italic;
font-weight: bold;
}
-->
</style>
</head>
<body>
<h4 class="name">Bullseye Computing Services</h4>
<hr align="center" width="80%" noshade>
<span class="address">6740 Henredon Drive, Memphis, Tennessee 38141 </span>
</body>
</html>

72
preview/sample.html

@ -0,0 +1,72 @@
<html>
<head>
<title>VHOST-NAME</title>
<style type="text/css">
body, td {
font-family: Arial;
font-size: 12;
}
a:link {
color: white;
text-decoration: none;
font-weight: bold;
}
a:visited {
color: white;
text-decoration: none;
font-weight: bold;
font-style: italic;
}
a:active {
color: #FFCC33;
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #FFCC33;
text-decoration: none;
font-weight: bold;
}
</style>
</head>
<body text=#000000 vlink=#834439 alink=#cc0000 link=#a24a3b bgcolor=#ffffff leftmargin=0 topmargin=0 marginwidth="0" marginheight="0">
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" bgcolor="#3975B5" height="65">&nbsp;</td>
<td width="39%" bgcolor="#3975B5" height="65">
<p align="center"><font color="#DEE3EA">Welcome to</font></p>
<p align="center"><font color="#DEE3EA" face="Arial" size="5"><b>.: VHOST-NAME :.</b></font></p>
</td>
<td width="28%" bgcolor="#3975B5" height="65">&nbsp;</td>
</tr>
<tr bgcolor="#E7F3F7">
<td width="33%" height="17">&nbsp;</td>
<td width="39%" height="17">&nbsp;</td>
<td width="28%" height="17">&nbsp;</td>
</tr>
<tr bgcolor="#94C7E7">
<td width="100%" height="149" colspan="3">
<p align="center"><font color="#284878" size="4">Our site is under
construction and will be available soon</font></p>
<p align="center">&nbsp;</p>
</td>
</tr>
<tr bgcolor="#E7F3F7">
<td width="100%" height="17" colspan="3">
<p align="center"><font color="#284878" size="3">Please visit us later</font>
</td>
</tr>
<tr bgcolor="#3975B5">
<td width="100%" height="66" colspan="3">
<p align="center"><font size="4" color="#DEE3EA">You can contact us
at</font> <a href="mailto:contact@VHOST-NAME"><font size="4">contact@VHOST-NAME</font></a></p>
<p>&nbsp;</td>
</tr>
</table>
<p align="center"><font color="#284878" size="2">Note to webmaster : <br>
You can publish your site in htdocs directory using your username.</font></p>
</body>
</html>

44
preview/simple.html

@ -0,0 +1,44 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>VHOST-NAME</title>
<style type="text/css">
<!--
body {
background-color: white;
margin: 0pt;
}
p {
font-family: Arial, Helvetica, sans-serif;
}
.title {
font-size: 24pt;
margin-top: 54pt;
margin-bottom: 54pt;
text-align: center;
font-weight: bold;
text-transform: capitalize;
}
.comment {
font-size: 12pt;
font-style: italic;
text-align: center;
font-weight: bold;
color: #336699;
}
.note {
font-size: 10pt;
font-family: Georgia, "Times New Roman", Times, serif;
font-style: italic;
font-weight: bold;
color: #663333;
text-align: justify;
}
-->
</style>
</head>
<body>
<p class="title">VHOST-NAME</p>
<p class="comment">This site is currently under construction</p>
</body>
</html>

60
preview/styles/styles.css

@ -0,0 +1,60 @@
table td {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 10pt;
}
table {
background-color: #e0e7e0;
margin-top: 6pt;
}
body {
background-color: #eeeeee;
}
p {
text-indent: 12pt;
}
.title {
font-size: 24pt;
font-weight: bold;
color: #CCCCCC;
text-align: center;
padding-top: 20pt;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.banner {
background-color: #3399CC;
}
.intro {
font-size: 14pt;
font-style: italic;
font-weight: bold;
color: #99CCCC;
text-align: center;
padding-top: 20pt;
}
.note {
font-size: 14pt;
font-style: italic;
background-color: #009999;
text-align: center;
font-weight: bold;
color: #00FFCC;
padding-top: 20pt;
}
.pagetitle {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 36pt;
font-style: italic;
color: #336699;
font-weight: bold;
text-align: center;
margin-top: 12px;
margin-bottom: 24px;
}
.sitetitle {
font-size: 60pt;
font-style: italic;
font-weight: bold;
text-align: center;
vertical-align: middle;
color: #336699;
}

62
styles/basic.css

@ -0,0 +1,62 @@
<!--
body { background-color: #faf0e6 ;
margin-left: 60px;
width: 580px }
h1 { font-family: Helvetica,Arial;
font-size: 12pt;
font-weight: bold }
h2 { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
h3 { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
th { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
td { font-family: Helvetica,Arial;
font-size: 10pt }
dd { font-family: Helvetica,Arial;
font-size: 8pt }
p { font-family: Helvetica,Arial;
font-size: 10pt;
text-indent: 1em }
dl { font-family: Helvetica,Arial;
font-size: 10pt }
dt { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
.label { font-weight: bold;
text-align: right;
vertical-align: baseline }
.header { background-color: #efdac6 }
.dark { background-color: #f7e9dc }
.light { background-color: #faf0e6 }
.nav { border-width: 0;
border-style: none;
padding-left: 0;
padding-right: 0 }
.center { text-align: center }
.intro { font-family: Helvetica,Arial;
font-style: italic;
font-size: 9pt;
text-indent: 0;
margin-left: +2em;
margin-right: +2em }
-->

62
styles/bcs.css

@ -0,0 +1,62 @@
<!--
body { background-color: #ffffff ;
margin-left: 60px;
width: 580px }
h1 { font-family: Helvetica,Arial;
font-size: 12pt;
font-weight: bold }
h2 { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
h3 { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
th { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
td { font-family: Helvetica,Arial;
font-size: 10pt }
dd { font-family: Helvetica,Arial;
font-size: 8pt }
p { font-family: Helvetica,Arial;
font-size: 10pt;
text-indent: 0em }
dl { font-family: Helvetica,Arial;
font-size: 10pt }
dt { font-family: Helvetica,Arial;
font-size: 10pt;
font-weight: bold }
.label { font-weight: bold;
text-align: right;
vertical-align: baseline }
.header { background-color: #ffffff }
.dark { background-color: #ffffff }
.light { background-color: #ffffff }
.nav { border-width: 0;
border-style: none;
padding-left: 0;
padding-right: 0 }
.center { text-align: center }
.intro { font-family: Helvetica,Arial;
font-style: italic;
font-size: 9pt;
text-indent: 0;
margin-left: +2em;
margin-right: +2em }
-->

5
styles/index.php3

@ -0,0 +1,5 @@
<?php
// send the user to our parent directory
// rather than listing the files here.
header("Location: ./../");
?>

3
test.php

@ -0,0 +1,3 @@
<?php // php test script
phpinfo()
?>