| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/robotics/wp-content/plugins/types/application/ |
Upload File : |
<?php
/*
* Autoloader
*/
require_once( TYPES_ABSPATH . '/library/toolset/autoloader/autoloader.php' );
$autoloader = Toolset_Autoloader::get_instance();
$autoloader->add_paths(
'Types',
array(
TYPES_ABSPATH . '/application/controllers',
TYPES_ABSPATH . '/application/models',
)
);
$autoloader->add_path( 'Toolset', TYPES_ABSPATH . '/library/toolset' );
/*
* Load old Types
*/
if( ! defined( 'WPCF_RELPATH' ) ) {
define( 'WPCF_RELPATH', TYPES_RELPATH . '/library/toolset/types' );
}
if( ! defined( 'WPCF_EMBEDDED_TOOLSET_ABSPATH' ) ) {
define( 'WPCF_EMBEDDED_TOOLSET_ABSPATH', TYPES_ABSPATH . '/library/toolset' );
}
if( ! defined( 'WPCF_EMBEDDED_TOOLSET_RELPATH') ) {
define( 'WPCF_EMBEDDED_TOOLSET_RELPATH', TYPES_RELPATH . '/library/toolset' );
}
if( ! defined( 'WPTOOLSET_COMMON_PATH' ) ) {
define( 'WPTOOLSET_COMMON_PATH', TYPES_ABSPATH . '/library/toolset/toolset-common' );
}
if ( !defined( 'EDITOR_ADDON_RELPATH' ) ) {
define( 'EDITOR_ADDON_RELPATH', WPCF_EMBEDDED_TOOLSET_RELPATH . '/toolset-common/visual-editor' );
}
// installer
$installer = TYPES_ABSPATH . '/library/otgs/installer/loader.php';
if ( file_exists( $installer ) ) {
/** @noinspection PhpIncludeInspection */
include_once $installer;
if ( function_exists( 'WP_Installer_Setup' ) ) {
WP_Installer_Setup(
$wp_installer_instance,
array(
'plugins_install_tab' => '1',
'repositories_include' => array('toolset', 'wpml')
)
);
}
}
// Get new functions.php
require_once( dirname( __FILE__ ) . '/functions.php' );
// Initialize legacy code
require_once( dirname( __FILE__ ) . '/../library/toolset/types/wpcf.php' );
// Public API
require_once( dirname( __FILE__ ) . '/api.php' );
// Handle embedded plugin mode
Types_Embedded::initialize();
// Jumpstart new Types
Types_Main::initialize();