• 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 7 years, 7 months ago by Stefan M..
  • The topic ‘Win working, linux not’ is closed to new replies.