Here is the file, with unuseful header comments and passwords
removed, of course.
----
<?php

/* Standard Globals */
$GLOBALS["PageTitle"] = "ironfroggy.com";
$GLOBALS["SiteName"] = "www.ironfroggy.com";
$GLOBALS["STD_PHP_Version"] = "1.0";
$GLOBALS["PageAuthor"] = "ironfroggy";

function PageAuthor() {
        echo $GLOBALS["PageAuthor"];
}

function SetPageAuthor($name) {
        $GLOBALS["PageAuthor"] = $name;

function PageTitle() {
        echo $GLOBALS["PageTitle"];
}

function SetPageTitle($title) {
        $GLOBALS["PageTitle"] = $title;
}

/* Header/Footer functions */

 function header_xhtml1() {
/* XHTML CODE FOLLOWS */
echo "<?xml version=\"1.0\"?>";
?>
<!DOCTYPE html PUBLIC ="-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
        <title>
                <?php echo $PageTitle; ?>
        </title>
        <link rel="stylesheet" href="style.css" />
</head>
<body>
<?php
/* XHTML CODE ENDS */
}

function footer_xhtml1() {
/* XHTML CODE FOLLOWS */
?>      </body>
</html>
<?php
/* XHTML CODE ENDS */
}

function header_site() {
        header_xhtml1();
/* XHTML CODE FOLLOWS */
?>              <p align="center" bgcolor="#808080">ironfroggy.com
                <br>
                <a href="http://www.ironfroggy.com/page_main.php";>home</a>
                </p>
<?php
/* XHTML CODE ENDS */
}

function footer_site() {
/* XHTML CODE FOLLOWS */
?>              <a href="http://www.ironfroggy.com/page_main.php";>home</a>
<?php
/* XHTML CODE ENDS */
        footer_xhtml1();
}

function dbconnect() {
        $cnx = mysql_connect ("localhost","ironfrog","")
                or die ("Could not connect");
        mysql_select_db("ironfrog");
        return $cnx;
}
?>

=====
Question

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to