All pastes #383975 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-06 19:07 UTC
rendered paste body
//pubvars.php
<?php

$username = "Guest";
$faveplace = "Club GR";
$favedrink = "Water";

$bgcolor = "#000000";
$bordercolor = "#AAFF00";
$borderbg = "#228800";
$textcolor = "#AAFF00";
$textaltcolor = "#228800";
$tabletextcolor = "#000000";
$tabletextaltcolor = "#444444";

?>

//func.php
<?php

function beginBody($bg, $text)
{
    echo "<body bgcolor=\"$bg\" text=\"$text\">";
}

function beginTable($width, $border, $bordercolor)
{
    echo "<table width=\"$width\" border=\"$border\" bordercolor=\"$bordercolor\">";
}

function beginTableRow($height)
{
    echo "<tr height=\"$height\">";
}

function beginTableData($span, $alignment, $height, $valign)
{
    echo "<td colspan=$span align=$alignment $height=\"$height\" valign=\"$valign\">";
}

?>

//header.php
<?php
     include 'include/pubvars.php';
     include 'include/func.php';
?>
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
       <title>Alcoholics Identified | <?php echo $pagetitle; ?></title>
</head>
<?php beginBody($bgcolor, $textcolor); ?>
<center>
<?php
beginTable("60%", 1, $bordercolor);
       beginTableRow("100%");
           beginTableData(6, "center", 40, "top");
               Alcoholics Identified
?>

           </td>
       </tr>
</table>

//index.php
<?php
     $pagetitle = "Main";
     include 'include/header.php';
     beginTable("10%", 0, 0);
?>

</table>

<?php
     include 'include/footer.php';
?>