Location: PHPKode > projects > PHPExplorer > modules/nouveau.php
<?
require_once("../include/varsfuncs.php");
if(!$newdir&&!$newfile){
 include("$instp/skins/$sk/_pl_new.php");
}else if($newdir){ $newdir=str_replace("\\'","'",$newdir);
 if(substr($dir,-1,1)!="/") $dir.="/";
 if(@mkdir($dir.$newdir,0777)){
   include("$instp/skins/$sk/msg_jump/_code_err_mkdir_ok.php");
 }else{
   include("$instp/skins/$sk/msg_jump/_code_err_mkdir_ko.php");
 }
exit();}else if($newfile){ $newfile=str_replace("\\'","'",str_replace("\\'","'",$newfile));
if(fputs(fopen($dir.$newfile,"w+"),str_replace("\\'","'",$contenu))){
   include("$instp/skins/$sk/msg_jump/_code_err_mkfile_ok.php");
}else{
   include("$instp/skins/$sk/msg_jump/_code_err_mkfile_ko.php");
}exit();}

?>
Return current item: PHPExplorer