<?php
include 'functions/functions.php';

/* session_start();
  if (!isset($_SESSION['myusername'])) {
  header("location: index.php");
  } */
?>
<!-- V DATABAZE SU ZMENENE clanky 16, 18, 19, 60, 62 - namiesto ndash je -  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="css/botNomCodeStyle.css" />
        <link rel="stylesheet" type="text/css" href="css/toggleButtonStyle.css" />
        <script type="text/javascript" src="js/jquery-1.6.2.min.js" ></script>
        <script type="text/javascript" src="js/jToggleList-jquery.js" ></script>
        <script type="text/javascript" src="js/botNomCodeScript.js" ></script>
        <title>International Code of Nomenclature for algae, fungi, and plants</title>
    </head>
    <body>
        <script>
            (function(i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r;
                i[r] = i[r] || function() {
                    (i[r].q = i[r].q || []).push(arguments)
                }, i[r].l = 1 * new Date();
                a = s.createElement(o),
                        m = s.getElementsByTagName(o)[0];
                a.async = 1;
                a.src = g;
                m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', 'UA-49056037-1', 'iapt-taxon.org');
            ga('send', 'pageview');
        </script>
        <div class="header">
            <a href="http://www.iapt-taxon.org/"><img src="images/header2.png" alt="header" /></a>
        </div>
        <div class="leftPane">
            <div class="search">
                <!--<p>INTERNATIONAL CODE OF NOMENCLATURE FOR ALGAE FUNGI AND PLANTS</p>-->
                <input id="searchIn" type="text" name="fsearch" /> 
                <input id="searchBn" type="image" name="searchsubmit" src="images/search.png" alt="Search"/>
            </div>
            <div class="list">
                <ul>
                    <li><a href="?page=title">Title</a></li>
                    <li><a href="?page=pf">Preface</a></li>
                    <li><b>Key to the re-numbering of Articles, Notes, and Recommendations</b>
                        <ul>
                            <li><a href="?page=vctmc">1. Vienna Code to Melbourne Code</a></li>
                            <li><a href="?page=mctvc">2. Melbourne Code to Vienna Code</a></li>
                        </ul>
                    </li>
                    <li><a href="?page=dates">Important dates in the Code</a></li>
                    <li><a href="?page=pre">Preamble</a></li>
                    <li><a href="?page=div1">DIVISION I.</a> Principles</li>
                    <li><b>DIVISION II.</b> Rules and Recommendations 
                        <ul>
                            <?php
                            getPageList();
                            ?>
                        </ul>
                    </li>
                    <li><a href="?page=div3">DIVISION III.</a> Provisions for the Governance of the <i>Code</i></li>
                    <li><b>APPENDIX I.</b> Names of hybrids<br />
                        <a href="?page=h.1">H.1</a>, 
                        <a href="?page=h.2">H.2</a>,
                        <a href="?page=h.3">H.3</a>,
                        <a href="?page=h.4">H.4</a>,
                        <a href="?page=h.5">H.5</a>,
                        <a href="?page=h.6">H.6</a>,
                        <a href="?page=h.7">H.7</a>,
                        <a href="?page=h.8">H.8</a>,
                        <a href="?page=h.9">H.9</a>,
                        <a href="?page=h.10">H.10</a>,
                        <a href="?page=h.11">H.11</a>,
                        <a href="?page=h.12">H.12</a>
                    </li>
                    <li><a href="?page=glo"><b>Glossary.</b></a> Glossary of terms used in this <i>Code</i></li>
                </ul>
            </div>
            <!--<div style="margin: 40px 0;">
                <a href="functions/logout.php" >Logout</a>
            </div>-->
        </div>
        <div class="content">
            <div class="navig">
                <?php echo createNavig(); ?>
            </div>
            <?php
            echo showContent();
            ?>
            <div style="text-align: center;">
                <?php echo toTop(); ?>
            </div>
            <div class="navig">
                <?php echo createNavig(); ?>
            </div>
            <div class="footer">
                &copy; 2012, by International Association for Plant Taxonomy.<br />
                Coding and design by Matúš Kempa, text to HTML by Dušan Senko and Matúš Kempa.
            </div>
        </div>
    </body>
</html>
<?php
# Standard Apache logs the following: "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
$h = getenv('REMOTE_ADDR');
$l = "-"; # should really be user from ident
$u = getenv('REMOTE_USER') ? getenv('REMOTE_USER') : "-";
$t = date("m/M/Y:H:i:s O");

$logentry = "$h $l $u [$t]\n";

# Note the log file below needs to be writeable by user "apache"
error_log($logentry, 3, "log/access.log");
?>
