Pessoal estou tentando utilizar o script mydisk, disco virtual, até configurei ele está tudo certo envio arquivo, mais na hora de criar pasta o mesmo não cria.se criar no bd manualmente funciona, mas com esse codigo nãocomo não entendo muito de mysql e php se alguém puder me ajudar agradeço.arquivo -> newfolder.php

<?php
/*
* myDisk is a Virtual Driver/Disk
* Copyright (C) 2002 Fazzi.net <anunakin@yahoo.com.br>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
session_start();
?>
<html>
<head>
<title>
<?php include "config.inc.php";
echo $systemname; ?>
</title>
<?php echo $estilo; ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body onload="self.moveTo(20,50);">


<?php
include "functions.inc.php";

connect_db();

//Verifica se o usuário está logado!
if (!isset($_SESSION['LOGIN'])) {
die("<b><div align='center'>$strAccessDenied</div></b>"); }
else {
$nick = $_SESSION['LOGIN'];
}

if ($npasta != '')
{ //Cria nova pasta...

//Remove espaços do Windows....
$npasta = trim($npasta);
$npasta = str_replace(' ','_',$npasta);
$spath = $raiz_1 . '/pb_' . strtoupper($nick) . '/' . $npasta;

if (!mkdir($spath,0775))
{ pb_msg($strErrMkDir);}
else
{ //Inclui no Banco
if (!$result= mysql_query("INSERT INTO dirs VALUES ('','$nick','$npasta')", $clink))
{ die(mysql_error());
}
else
{ pb_cria_index($spath);
pb_main_reload();
pb_msg($npasta . $strMkDir);
}
}
}
?>

<table border="0" cellspacing="0" cellpadding="0" align="center" width="400" height="150">
<tr>
<td>&nbsp;</td>
<td>
<div align="center"><b><font face="Tahoma" size="4"><?php echo $strProgramName . ' ' . $strNewFolder;?></font></b></div>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<form name="form1" method="post" action="newfolder.php">
<p align="center"><?php echo $strFolderName;?><input type="text" name="npasta" maxlength="255" size="50">
</p>
<p align="center">
<input type="submit" name="Submit" value="<?php echo $strMakeDir;?>">
<input type="button" name="Submit2" value="<?php echo $strClose;?>" onclick="self.close()">
</p>
</form>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>