This seems an issue easy enough to fix but I have not bug tested enough to submit a patch.
Mediafront osmplayer.module uses fnmatch, which is not available in php for windows servers.
furthermore, the paths are written with a forward slash, which is again not compatible with windows servers
this is a function i found at php.net that seems to solve the first problem, now the question is fixing the paths issue.

function fnmatch($strPattern, $strString)
// My fnmatch()
// Supports '?' and '*' as wildcards
{

$intPos = 0;
do
{
$strPatternChar = substr($strPattern, $intPos, 1);
$strStringChar = substr($strString, $intPos, 1);

if ($strPatternChar == '*')
{
$bolMatch = TRUE;
break;
}
$bolMatch = ($strPatternChar == $strStringChar) || ($strPatternChar == '?' && $strStringChar != '');
$intPos++;
} while (($bolMatch == TRUE) && ($intPos < max(strlen($strPattern), strlen($strString))));

return($bolMatch);
}
// Now search this folder for the CSS file...
if($contents = opendir($theme_folder)) {
while(($node = readdir($contents)) !== false) {
if( fnmatch("*.css", $node) ) {
$theme_css = $node;
break;
}
}
}

Comments

travist’s picture

Wow! Thank you for that! I had no idea that fnmatch was not compatible with windows. I will try this out tonight and submit it to CVS if it works.

Thanks for your efforts,

Travis.

travist’s picture

Status: Active » Needs review

Alright, I just checked in a fix for this. Please try the DEV release tomorrow and let me know if that fixes your issue. If so, then that will be included in the next BETA.

Thanks,

Travis.

rconstantine’s picture

I'm on Windows Server 2003 using IIS and things are working just fine with beta2 + http://drupal.org/node/782972

travist’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.