Esempio n. 1
0
    define('APPPATH', $site_folder . '/');
} else {
    if (!is_dir(BASEPATH . $site_folder . '/')) {
        exit("Your site folder path does not appear to be set correctly. Please open the following file and correct this: " . SELF);
    }
    define('APPPATH', BASEPATH . $site_folder . '/');
}
// The path to the "application" folder
if (is_dir($engine_folder)) {
    define('ENGINEPATH', $engine_folder . '/');
} else {
    if (!is_dir(BASEPATH . $engine_folder . '/')) {
        exit("Your engine folder path does not appear to be set correctly. Please open the following file and correct this: " . SELF);
    }
    define('ENGINEPATH', BASEPATH . $engine_folder . '/');
}
/*
 * --------------------------------------------------------------------
 * LOAD THE BOOTSTRAP FILE
 * --------------------------------------------------------------------
 *
 * And away we go...
 *
 */
require_once "WFCore.php";
$WFCore = new WFCore();
$files = array(array("file" => "WFUsers.php", "class" => "WFUsers", "variable" => "users"));
foreach ($files as $file) {
    $WFCore->loadApiClass($file["file"], $file["class"], $file["variable"]);
}
$WFCore->dbConnect();
Esempio n. 2
0
function &get_wf()
{
    return WFCore::get_instance();
}