"; } elseif($doing==2)//返回地址 { $bturl="ChangeFile1(2,'".$file."');"; $button=""; } else { if($tranfrom==1)//编辑器选择 { $bturl="EditorChangeFile('".$file."','".addslashes($filename)."','".$filetype."','".$filesize."','".addslashes($no)."');"; $button=""; } elseif($tranfrom==2)//特殊字段选择 { $bturl="SFormIdChangeFile('".addslashes($no)."','$file','$filesize','$filetype','$field');"; $button=""; } else { $bturl="InsertFile('".$file."','".addslashes($filename)."','".$fileid."','".$filesize."','".$filetype."','','".$type."');"; $button=""; } } $retr['button']=$button; $retr['bturl']=$bturl; return $retr; } $classid=(int)$_GET['classid']; $infoid=(int)$_GET['infoid']; $filepass=(int)$_GET['filepass']; $type=(int)$_GET['type']; $modtype=(int)$_GET['modtype']; $fstb=(int)$_GET['fstb']; $doing=(int)$_GET['doing']; $field=RepPostVar($_GET['field']); $tranfrom=ehtmlspecialchars($_GET['tranfrom']); $fileno=ehtmlspecialchars($_GET['fileno']); $doecmspage=RepPostStr($_GET['doecmspage'],1); if(empty($field)) { $field="ecms"; } include('eshoweditor.php'); $search="&classid=$classid&infoid=$infoid&filepass=$filepass&type=$type&modtype=$modtype&fstb=$fstb&doing=$doing&tranfrom=$tranfrom&field=$field&fileno=$fileno&doecmspage=$doecmspage".$ecms_hashur['ehref']; //基目录 $basepath=eReturnEcmsMainPortPath()."d/file";//moreport $filepath=ehtmlspecialchars($_GET['filepath']); if(strstr($filepath,"..")) { $filepath=""; } $filepath=eReturnCPath($filepath,''); $openpath=$basepath."/".$filepath; if(!file_exists($openpath)) { $openpath=$basepath; } $hand=@opendir($openpath); db_close(); $empire=null; ?> 选择文件
当前目录:/         [返回上一页]

'; $filetype='文件夹'; $button=""; } //文件 else { $filelink="'".eReturnFileUrl().$truefile."'"; $filename=$file; $ftype=GetFiletype($file); $img='../../data/images/dir/'.substr($ftype,1,strlen($ftype))."_icon.gif"; if(!file_exists($img)) { $img='../../data/images/dir/unknown_icon.gif'; } $target=" target='_blank'"; //发布时间 $ftime=@filemtime($pathfile); $filetime=date("Y-m-d H:i:s",$ftime); //文件大小 $fsize=@filesize($pathfile); $filesize=ChTheFilesize($fsize); //文件类型 if(strstr($ecms_config['sets']['tranpicturetype'],','.$ftype.',')) { $filetype='图片'; } elseif(strstr($ecms_config['sets']['tranflashtype'],','.$ftype.',')) { $filetype='FLASH'; } elseif(strstr($ecms_config['sets']['mediaplayertype'],','.$ftype.',')||strstr($ecms_config['sets']['realplayertype'],','.$ftype.',')) { $filetype='视频'; } else { $filetype='附件'; } $furl=$efileurl.$truefile; $buttonr=ToReturnDoFilepButton($doing,$tranfrom,$field,$furl,$file,0,$filesize,$ftype,'',$type); $button=$buttonr['button']; $buttonurl=$buttonr['bturl']; } ?>
选择
文件名
大小
类型
修改时间
>