Example #1
0
<?php

// Copyright (C) 2010-2011 Aron Racho <*****@*****.**>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
// for security
$fake_register_globals = false;
$sanitize_all_escapes = true;
require "../../globals.php";
require_once "ui.php";
require_once "common.php";
// recursively require all .php files in the base library folder
foreach (glob(base_dir() . "base/library/*.php") as $filename) {
    require_once $filename;
}
// recursively require all .php files in the application library folder
foreach (glob(library_dir() . "/*.php") as $filename) {
    require_once $filename;
}
Example #2
0
function library_src($file)
{
    return library_dir() . "/{$file}";
}