fileops.php 405 B

123456789101112131415161718
  1. <?php
  2. require_once('report.php');
  3. function data_mkdir($path, $newdir){
  4. // pulisci
  5. $newdir = basename(trim($newdir));
  6. $newdirpath = realpath($GLOBALS["conf"]["data_basedir"].DIRECTORY_SEPARATOR.$path).DIRECTORY_SEPARATOR.$newdir;
  7. report(1, "BABABA ".$newdirpath);
  8. if (!file_exists($newdirpath)) {
  9. return mkdir($newdirpath, 0755, false);
  10. }
  11. return false;
  12. }
  13. ?>