} elseif (isset($mu_plugin)) { $mj_plugin_file = $mu_plugin; } elseif (isset($network_plugin)) { $mj_plugin_file = $network_plugin; } define('CART66_PATH', WP_PLUGIN_DIR . '/' . basename(dirname($mj_plugin_file)) . '/'); define('CART66_URL', plugin_dir_url(CART66_PATH) . basename(dirname($mj_plugin_file))); } require_once CART66_PATH . "/models/Cart66CartWidget.php"; require_once CART66_PATH . "/models/Cart66.php"; require_once CART66_PATH . "/models/Cart66Common.php"; define("CART66_ORDER_NUMBER", false); define("CART66_PRO", true); define('CART66_VERSION_NUMBER', cart66_plugin_version()); define("WPCURL", Cart66Common::getWpContentUrl()); define("WPURL", Cart66Common::getWpUrl()); define("MIJIREH_CHECKOUT", 'https://secure.mijireh.com'); if (CART66_PRO) { require_once CART66_PATH . "/pro/models/Cart66ProCommon.php"; } // IS_ADMIN is true when the dashboard or the administration panels are displayed if (!defined("IS_ADMIN")) { define("IS_ADMIN", is_admin()); } /* Uncomment this block of code for load time debugging $filename = CART66_PATH . "/log.txt"; if(file_exists($filename) && is_writable($filename)) { file_put_contents($filename, "\n\n\n================= Loading Cart66 Main File [" . date('m/d/Y g:i:s a') . "] " . $_SERVER['REMOTE_ADDR'] . " " . $_SERVER['REQUEST_URI'] . " =================\n\n", FILE_APPEND); } */