EditInvoice();
            break;
        case "AddItem":
            AddItem();
            break;
        case "DelItem":
            DelItem();
            break;
        case "EditItem":
            EditItem();
            break;
        case "Search":
            Search();
            break;
        case "Settings":
            Settings();
            break;
        default:
            ViewUnPaid();
            break;
    }
} else {
    echo "Access Denied";
}
function isUpdate()
{
    global $db, $prefix;
    $ver = $db->sql_fetchrow($db->sql_query("SELECT version FROM " . $prefix . "_hosting_accounting_config"));
    $fp = fopen("http://moahosting.com/files/php-nuke_accounting/current.txt", "r");
    $current_version = fgets($fp, 4096);
    fclose($fp);
Example #2
0
include 'baselibs/Page.php';
include 'baselibs/Misc.php';
include 'baselibs/Images.php';
include 'baselibs/AdGrabber.php';
include 'baselibs/Advertising.php';
include 'baselibs/StaticAdvertising.php';
include 'baselibs/DynamicAdvertising.php';
include 'baselibs/Internet.php';
/* expand here ;) */
include 'extlibs/Generators.php';
// filename generators
include 'extlibs/TokenFuncs.php';
// {{token}} funcs that work on the fly
include 'extlibs/CachedTokenFuncs.php';
// ((token)) funcs that cache
$settings = Settings($_SERVER['REQUEST_URI']);
TemplateRewrite($settings['filename']);
if (!is_array($settings)) {
    writeLog('settings FAILED to load');
}
if (IsImage($_SERVER['REQUEST_URI'])) {
    // Load all image hooks
    foreach (glob("imghooks/*.php") as $filename) {
        include $filename;
    }
    ServeImg($settings['filename']);
    exit;
}
// Load all content hooks
foreach (glob("hooks/*.php") as $filename) {
    include $filename;
Example #3
0
<?php

$settings = Settings("localhost", "dbname", "username", "password");
/**
 * NewPage($title) 
 * This will create and return a new HTML Page
 */
function NewPage($title)
{
    $page = new PageKit($title);
    return $page;
}
/**
 * NewForm($url)
 * This will create and return a new http form
 */
function NewForm($url)
{
    $form = new Form($url);
    return $form;
}
function NewPagination($previouslink, $nextlink)
{
    $pagination = new Pagination($previouslink, $nextlink);
    return $pagination;
}
/**
 * NewListbox($id,$name, $size,$multiple)
 * This will create and return a new http form ListBox
 */
function NewListbox($id, $name, $size, $multiple)