<?php date_default_timezone_set(@date_default_timezone_get()); include_once "include/global.inc"; if (!$offline) { $g_Page = "poldoc"; include_once '/home/polteam/include/_header.php'; } /* add the header */ if ($offline) { siteheader('POL Scripting Reference'); } // PHP-BB global stuff global $request; $request->enable_super_globals(); // $xmlfile = $_GET['xmlfile']; $xsltproc = new XsltProcessor(); $xsl = new DomDocument(); $xsl->load($webroot . 'escript.xslt'); $xsltproc->importStylesheet($xsl); $xml_doc = new DomDocument(); $xml_doc->load($webroot . $xmlfile . '.xml'); $xsltproc->setParameter('', 'offline', $offline); $xsltproc->setParameter('', 'xmlfile', $xmlfile); if ($html = $xsltproc->transformToXML($xml_doc)) { echo $html; } if (!$offline) { echo ' <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
<?php require_once 'include/global.inc'; siteheader('Core Attack Code'); xlstdocument('attack.xslt', 'attack.xml'); sitefooter();
require $f . '.php'; ob_end_flush(); } /* generate em Modules */ $xsltproc = new XsltProcessor(); $xsl = new DomDocument(); $xsl->load('escript.xslt'); $xsltproc->importStylesheet($xsl); $xsltproc->setParameter('', 'offline', $offline); $xml = simplexml_load_file('modules.xml'); foreach ($xml as $em) { $name = (string) $em['name']; $nicename = (string) $em['nice']; $ob_file = fopen('offline/' . $name . '.html', 'w'); ob_start('ob_file_callback'); siteheader('POL Scripting Reference ' . $nicename . '.em'); $xml_doc = new DomDocument(); $xml_doc->load($name . '.xml'); if ($html = $xsltproc->transformToXML($xml_doc)) { echo $html; } sitefooter(); ob_end_flush(); } /* generate Guides */ $files = array("escriptguide", "performance", "gumps", "gumpcmdlist"); $type = ""; global $type; foreach ($files as $f) { $type = $f; $ob_file = fopen('offline/' . $f . '.html', 'w');
$guidefile = $offline ? $type : $_GET['guidefile']; switch ($guidefile) { case 'escriptguide': $title = 'Racalac\'s EScript Guide'; break; case 'performance': $title = 'POL Performance Guide'; break; case 'gumps': $title = 'Lystramon\'s Gump Tutorial'; break; case 'gumpcmdlist': $title = 'Turley\'s Gump-Command-List'; break; } siteheader($title); if ($offline) { ?> <div id="main"><div class="container"> <?php } ?> <div class="doc-mainbox"> <?php if ($offline) { ?> <div class='doc-home'><a href='index.html'>Home</a></div> <?php } else {
<?php require_once 'include/global.inc'; siteheader('Latest Core Changes'); xlstdocument('corechanges.xslt', 'corechanges.xml'); sitefooter();
<?php include_once "include/global.inc"; if (!$offline) { $g_Page = "home"; include_once '/home/polteam/include/_header.php'; } /* add the header */ if ($offline) { siteheader('Built-In Command Reference'); } $xsltproc = new XsltProcessor(); $xsl = new DomDocument(); $xsl->load($webroot . 'builtintextcmds.xslt'); $xsltproc->importStylesheet($xsl); $xml_doc = new DomDocument(); $xml_doc->load($webroot . 'builtintextcmds.xml'); $xsltproc->setParameter('', 'offline', $offline); if ($html = $xsltproc->transformToXML($xml_doc)) { echo $html; } if (!$offline) { echo ' <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2869696-3"; urchinTracker(); </script>'; } /* add the footer */
<?php include_once "include/global.inc"; if (!$offline) { $g_Page = "home"; include_once '/home/polteam/include/_header.php'; } /* add the header */ if ($offline) { siteheader('Character Privileges'); } $xsltproc = new XsltProcessor(); $xsl = new DomDocument(); $xsl->load($webroot . 'privileges.xslt'); $xsltproc->importStylesheet($xsl); $xml_doc = new DomDocument(); $xml_doc->load($webroot . 'privileges.xml'); $xsltproc->setParameter('', 'offline', $offline); if ($html = $xsltproc->transformToXML($xml_doc)) { echo $html; } if (!$offline) { echo ' <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2869696-3"; urchinTracker(); </script>'; } /* add the footer */
<?php include_once 'include/global.inc'; if (!$offline) { $g_Page = "poldoc"; include_once '/home/polteam/include/_header.php'; } // PHP-BB global stuff global $request; $request->enable_super_globals(); // $funcname = $_GET['funcname']; $xmlfile = $_GET['xmlfile']; /* add the header */ if ($offline) { siteheader($funcname . ' Reference'); } $xsltproc = new XsltProcessor(); $xsl = new DomDocument(); $xsl->load($webroot . 'singlefunc.xslt'); $xsltproc->importStylesheet($xsl); $xml_doc = new DomDocument(); $xml_doc->load($webroot . $xmlfile); $xsltproc->setParameter('', 'funcname', $funcname); $xsltproc->setParameter('', 'xmlfile', $xmlfile); if ($html = $xsltproc->transformToXML($xml_doc)) { echo $html; } if (!$offline) { echo ' <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
<?php include_once "include/global.inc"; if (!$offline) { $g_Page = "home"; include_once '/home/polteam/include/_header.php'; } /* add the header */ if ($offline) { siteheader('Script Types Reference'); } $xsltproc = new XsltProcessor(); $xsl = new DomDocument(); $xsl->load($webroot . 'scripttypes.xslt'); $xsltproc->importStylesheet($xsl); $xml_doc = new DomDocument(); $xml_doc->load($webroot . 'scripttypes.xml'); $xsltproc->setParameter('', 'offline', $offline); if ($html = $xsltproc->transformToXML($xml_doc)) { echo $html; } if (!$offline) { echo ' <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2869696-3"; urchinTracker(); </script>'; } /* add the footer */
<?php require_once 'include/global.inc'; siteheader('Config File Reference'); xlstdocument('configfiles.xslt', 'configfiles.xml'); sitefooter();
<?php require_once 'include/global.inc'; siteheader('POL Class Reference'); xlstdocument('objref.xslt', 'objref.xml'); sitefooter();
<?php require_once 'include/global.inc'; siteheader('POL Documentation Site'); ?> <div class="container"> <div id="doc-mini-header"> <h1> POL Documentation Site </h1> <p> Note everything on these pages is considered to be IN PROGRESS. Data may and will change, and not all data has been verified (though the best effort was made to produce correct documentation). If you are viewing the downloadable local version of these docs, note the online version may contain more up-to-date information. <p> I hope you find these documents useful! <?php if (!$offline && $official) { ?> <hr> Downloadable Version (099): <a href="http://docs.polserver.com/pol099/archives/pol-docs-099-<?php echo $archivetime; ?> .zip"> 099 Offline Documentation <?php echo $archivetime; ?>
} else { $guidefile = $type; } /* add the header */ if ($offline) { if ($guidefile == 'escriptguide') { siteheader("Racalac's EScript Guide"); } else { if ($guidefile == 'performance') { siteheader("POL Performance Guide"); } else { if ($guidefile == 'gumps') { siteheader("Lystramon's Gump Tutorial"); } else { if ($guidefile == 'gumpcmdlist') { siteheader("Turley's Gump-Command-List"); } } } } } if ($offline) { echo '<div id="main"> <div class="container">'; } echo ' <div class="doc-mainbox">'; if ($offline) { echo "<div class='doc-home'><a href='index.html'>Home</a></div>"; } else { echo "<div class='doc-home'><a href='index.php'>Home</a></div>";
<?php include_once "include/global.inc"; if (!$offline) { $g_Page = "home"; include_once '/home/polteam/include/_header.php'; } /* add the header */ if ($offline) { siteheader('POL System Events Reference'); } $xsltproc = new XsltProcessor(); $xsl = new DomDocument(); $xsl->load($webroot . 'events.xslt'); $xsltproc->importStylesheet($xsl); $xml_doc = new DomDocument(); $xml_doc->load($webroot . 'events.xml'); $xsltproc->setParameter('', 'offline', $offline); if ($html = $xsltproc->transformToXML($xml_doc)) { echo $html; } if (!$offline) { echo ' <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2869696-3"; urchinTracker(); </script>'; } /* add the footer */