Пример #1
0
/**
 * Load the oik_boot.php shared library file
 * 
 * If the oik_init() function is not already defined then load the shared library file from our own libs directory.
 *
 * Originally we loaded oik_boot.inc from the oik base plugin.
 * This is now a shared library file that we deliver in the libs folder, along with bwtrace.php
 * We need to run oik_init() in order to ensure trace functions are available.
 */
function oik_batch_load_oik_boot()
{
    if (!function_exists("oik_init")) {
        oik_batch_load_lib("oik_boot");
    }
    if (function_exists("oik_init")) {
        oik_init();
    }
}
 /**
  *
  */
 function bootstrap_oik_libs()
 {
     $loaded = false;
     if (function_exists("oik_require_lib")) {
         $loaded = true;
     } else {
         require_once __DIR__ . "/oik_boot.php";
         $loaded = true;
     }
     if ($loaded && function_exists("oik_lib_fallback")) {
         oik_lib_fallback(__DIR__);
         oik_init();
     }
     //echo "Loaded!";
     //print_r( get_included_files() );
     return $loaded;
 }