Replies: 0
function yummi_plugins_cchl() { if(!function_exists('yummi_plugins')) include_once( cchl_PATH . '\includes\yummi-plugins.php' ); }
it works for Windows, but not for linux…
if (!defined('DIRECTORY_SEPARATOR')) {
if (strstr($_SERVER[DOCUMENT_ROOT],"/")) { define('DIRECTORY_SEPARATOR', '/'); }
elseif (strstr($_SERVER[DOCUMENT_ROOT],"\\")) { define('DIRECTORY_SEPARATOR', '\\'); }
if (!defined('DIRECTORY_SEPARATOR')) {
if (strpos(php_uname('s'), 'Win') !== false ) { define('DIRECTORY_SEPARATOR', '\\'); }
else { define('DIRECTORY_SEPARATOR', '/'); }
}
}
function yummi_plugins_cchl() { if(!function_exists('yummi_plugins')) include_once( cchl_PATH . DIRECTORY_SEPARATOR .'includes'.DIRECTORY_SEPARATOR.'yummi-plugins.php' ); }
would work for both
- This topic was modified 15 minutes ago by Stefan M..