"; } 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; ?>
当前目录:/ =$filepath?> [返回上一页] |