Skip to content

Instantly share code, notes, and snippets.

@sdball
Created Mar 1, 2013
Embed
What would you like to do?
Snippets from an old PHP IP Database I wrote. My hand rolled framework code was kind of nice.
<?php
// page setup
require('/www/includes/ipdatabase/ipdb_page.php');
$javascript = '<script type="text/javascript" src="/ipdatabase/js/index.js"></script>';
$page = new IPDB_Page();
$page->title('Main');
$page->javascript($javascript);
$page->header();
$page->body();
?>
<div id="frontpage">
<div id="frontpage_content">
<h4>Welcome to the IPDatabase Demo</h4>
</div>
</div>
<?php
$page->footer();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment