Exemplo n.º 1
0
function DoMkdir($path)
{
    global $public_r;
    if (!file_exists($path)) {
        if ($public_r[phpmode]) {
            $pr[0] = $path;
            FtpMkdir($ftpid, $pr);
            $mk = 1;
        } else {
            $mk = @mkdir($path, 0777);
        }
        @chmod($path, 0777);
        if (empty($mk)) {
        }
    }
    return true;
}
Exemplo n.º 2
0
function MkdirAll($truepath,$mmode){
	global $cfg_ftp_mkdir,$cfg_isSafeMode;
	if($cfg_isSafeMode||$cfg_ftp_mkdir=='Y'){ return FtpMkdir($truepath,$mmode); }
	else{
		  if(!file_exists($truepath)){
		  	 mkdir($truepath,$GLOBALS['cfg_dir_purview']);
		  	 chmod($truepath,$GLOBALS['cfg_dir_purview']);
		  	 return true;
		  }else{
		  	return true;
		  }
  }
}
Exemplo n.º 3
0
function DoMkdir($path){
	global $public_r;
	//不存在则建立
	if(!file_exists($path))
	{
		//安全模式
		if($public_r[phpmode])
		{
			$pr[0]=$path;
			FtpMkdir($ftpid,$pr);
			$mk=1;
		}
		else
		{
			$mk=@mkdir($path,0777);
		}
		@chmod($path,0777);
		if(empty($mk))
		{
			printerror("NotMkdir","history.go(-1)");
		}
	}
	return true;
}
Exemplo n.º 4
0
function DoMkdir($path)
{
    global $public_r;
    //不存在则建立
    if (!file_exists($path)) {
        //安全模式
        if ($public_r[phpmode]) {
            $pr[0] = $path;
            FtpMkdir($ftpid, $pr, 0777);
            $mk = 1;
        } else {
            $mk = @mkdir($path, 0777);
            @chmod($path, 0777);
        }
        if (empty($mk)) {
            echo str_replace(ECMS_PATH, '/', $path);
            printerror("CreatePathFail", "history.go(-1)");
        }
    }
    return true;
}