Lines:
1 to 71 of 71
<?php // (C) Copyright Bobbing Wide 2012-2018 if ( !defined( 'OIK_BOOT_INCLUDED' ) ) { define( 'OIK_BOOT_INCLUDED', "3.2.5" ); define( 'OIK_BOOT_FILE', __FILE__ ); /** * Library: oik_boot * Provides: oik_boot * Type: MU * * Implements shared library functions that each plugin that uses oik may expect to be loaded * so that it doesn't have to load these itTelf. * */ if ( !function_exists( 'oik_path' ) ) { if ( !defined('ABSPATH') ) { $abspath = dirname( dirname( dirname ( dirname( dirname( __FILE__ ))))) . '/'; $abspath = str_replace( "\\", "/", $abspath ); if ( ':' === substr( $abspath, 1, 1 ) ) { $abspath = ucfirst( $abspath ); } define( 'ABSPATH', $abspath ); } if ( !defined('WP_CONTENT_DIR') ) { define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down } if ( !defined('WP_PLUGIN_DIR') ) { define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash } /* function oik_path() – Return the path of the oik base plugin or any particular file */ } if (!function_exists( 'oik_require' )) { /* function oik_require() – Invoke require_once on an oik include file or other file */ } if( !function_exists( "oik_require2" )) { /* function oik_require2() – Load a file which could have been relocated from one plugin to another */ } if ( !function_exists( "oik_init" ) ) { /* function oik_init() – load up the functions required to allow use of the bw/oik API */ } if ( !function_exists( 'bw_array_get' ) ) { /* function bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set */ } if ( !function_exists( "oik_require_lib" ) ) { /* function oik_require_lib() – Require a library */ } //if ( !function_exists( "oik_require_lib_fallback" ) ) { /* function oik_require_lib_fallback() – Load the library from fallback directories */ //} /* function oik_lib_fallback() – Set a(nother) fallback directory for shared library processing */ if ( !function_exists( "oik_require_file" ) ) { /* function oik_require_file() – Require a file in a library */ } if ( !function_exists( "bw_log" ) ) { /* function bw_log() – Dormant logging function */ } } /* end if !defined */View on GitHub