| @@ 1860-1870 (lines=11) @@ | ||
| 1857 | ||
| 1858 | if ($mode !== false && isset($package_ftp)) |
|
| 1859 | return $package_ftp->create_dir(strtr($strPath, array($_SESSION['pack_ftp']['root'] => ''))); |
|
| 1860 | elseif ($mode === false) |
|
| 1861 | { |
|
| 1862 | $test = @opendir(dirname($strPath)); |
|
| 1863 | if ($test) |
|
| 1864 | { |
|
| 1865 | closedir($test); |
|
| 1866 | return true; |
|
| 1867 | } |
|
| 1868 | else |
|
| 1869 | return false; |
|
| 1870 | } |
|
| 1871 | else |
|
| 1872 | { |
|
| 1873 | @mkdir($strPath, $mode); |
|
| @@ 1871-1882 (lines=12) @@ | ||
| 1868 | else |
|
| 1869 | return false; |
|
| 1870 | } |
|
| 1871 | else |
|
| 1872 | { |
|
| 1873 | @mkdir($strPath, $mode); |
|
| 1874 | $test = @opendir($strPath); |
|
| 1875 | if ($test) |
|
| 1876 | { |
|
| 1877 | closedir($test); |
|
| 1878 | return true; |
|
| 1879 | } |
|
| 1880 | else |
|
| 1881 | return false; |
|
| 1882 | } |
|
| 1883 | } |
|
| 1884 | ||
| 1885 | /** |
|