主页
返回
上传文件
创建文件
编辑文件 ./inc/pubs.php
当前文件编码
UTF-32
UTF-32BE
UTF-32LE
UTF-16
UTF-16BE
UTF-16LE
UTF-8
UTF-7
UTF7-IMAP
ASCII
EUC-JP
SJIS
eucJP-win
EUC-JP-2004
SJIS-win
SJIS-DOCOMO
SJIS-KDDI
SJIS-SOFTBANK
MacJapanese
SJIS-2004
UTF-8-DOCOMO
UTF-8-Mobile#KDDI-A
UTF-8-KDDI
UTF-8-SOFTBANK
CP932
CP51932
JIS
ISO-2022-JP
ISO-2022-JP-MS
GB18030
Windows-1252
Windows-1254
ISO-8859-1
ISO-8859-2
ISO-8859-3
ISO-8859-4
ISO-8859-5
ISO-8859-6
ISO-8859-7
ISO-8859-8
ISO-8859-9
ISO-8859-10
ISO-8859-13
ISO-8859-14
ISO-8859-15
ISO-8859-16
GB2312
GBK
HZ
EUC-TW
BIG-5
CP950
EUC-KR
UHC
ISO-2022-KR
Windows-1251
CP866
KOI8-R
KOI8-U
ArmSCII-8
CP850
JIS-ms
ISO-2022-JP-2004
ISO-2022-JP-KDDI
CP50220
CP50220raw
CP50221
CP50222
»
保存文件编码
UTF-32
UTF-32BE
UTF-32LE
UTF-16
UTF-16BE
UTF-16LE
UTF-8
UTF-7
UTF7-IMAP
ASCII
EUC-JP
SJIS
eucJP-win
EUC-JP-2004
SJIS-win
SJIS-DOCOMO
SJIS-KDDI
SJIS-SOFTBANK
MacJapanese
SJIS-2004
UTF-8-DOCOMO
UTF-8-Mobile#KDDI-A
UTF-8-KDDI
UTF-8-SOFTBANK
CP932
CP51932
JIS
ISO-2022-JP
ISO-2022-JP-MS
GB18030
Windows-1252
Windows-1254
ISO-8859-1
ISO-8859-2
ISO-8859-3
ISO-8859-4
ISO-8859-5
ISO-8859-6
ISO-8859-7
ISO-8859-8
ISO-8859-9
ISO-8859-10
ISO-8859-13
ISO-8859-14
ISO-8859-15
ISO-8859-16
GB2312
GBK
HZ
EUC-TW
BIG-5
CP950
EUC-KR
UHC
ISO-2022-KR
Windows-1251
CP866
KOI8-R
KOI8-U
ArmSCII-8
CP850
JIS-ms
ISO-2022-JP-2004
ISO-2022-JP-KDDI
CP50220
CP50220raw
CP50221
CP50222
<?php /** * pubs.php LW2XTB:247373cc84a0172f47b8ce5391e3e4743G * Created by yichaxin.com V200226_150640125 * @author yujianyue<admin@ewuyi.net> * Date: 200226@1255e561916207bf_12391.net * 注意;著作权所有,不得公开发布和出售 */ $doup2s = "./inc/desc.txt"; function webalert($Key){ $html="<script>\r\n"; $html.="alert('".$Key."');\r\n"; $html.="history.go(-1);\r\n"; $html.="</script>"; exit($html); } Function Tram($Keys){ $Keys = Trim($Keys); $Keys = strtoupper($Keys); return $Keys; } function characet($data){ if(!empty($data) ){ $fileType = mb_detect_encoding($data , array('UTF-8','GBK','LATIN1','BIG5')) ; if( $fileType != 'UTF-8'){ $data = mb_convert_encoding($data ,'utf-8' , $fileType); } } return $data; } function charaget($data){ if(!empty($data) ){ $fileType = mb_detect_encoding($data , array('UTF-8','GBK','LATIN1','BIG5')) ; if( $fileType != 'GBK'){ $data = mb_convert_encoding($data ,'GBK' , $fileType); } } return $data; } Function rephtmls($Keys){ $Keys = str_replace(array(" "), " ", $Keys); $Keys = str_replace(array("\""), """, $Keys); $Keys = str_replace(array("<"), "<", $Keys); $Keys = str_replace(array(">"), ">", $Keys); $Keys = str_replace(array("\r\n", "\r", "\n"), "<br>", $Keys); return $Keys; } function traverse($dir_name = '.',$dbtype) { $dir = opendir($dir_name); $basename = basename($dir_name); $fileArr = array(); while ($file_name = readdir($dir)) { if (($file_name ==".") || ($file_name == "..")) { } else if(is_dir($file_name)) { } else { $fName = "$dir_name/$file_name"; $fTime = filemtime($fName); $fileArr[$file_name] = $fTime; } } arsort($fileArr); $numberOfFiles = sizeOf($fileArr); for($t=0;$t<$numberOfFiles;$t++) { $thisFile = each($fileArr); $thisName = $thisFile[0]; $thisTime = $thisFile[1]; $thisTime = date("Y-m-d h:i:s", $thisTime); //付费版:数据库排序+文件名称过滤+网页的美化和体验 $filetp=substr($thisName,-strlen($dbtype)); $filetp=strtolower($filetp); $filesw=substr($thisName,0,-strlen($dbtype));//注意后缀是4位数 if($filetp == $dbtype){ $file = $filesw; // echo '<option value="'.characet($file).'">' . characet($file) . '</option>'; echo "\r\n"; } else { //echo "<!-- ".characet($filesw)." / ".characet($filetp)."-->"; } } closedir($dir); } function fileline1($path = '.') { $a_content = file_get_contents($path); $str = strtok($a_content,"\r"); return $str; } function get_file_line( $file_name, $line ){ $n = 0; $handle = fopen($file_name,'r'); if ($handle) { while (!feof($handle)) { ++$n; $out = fgets($handle, 4096); if($line==$n) break; } fclose($handle); } if( $line==$n) return $out; return false; } //pubs.php?t=200226@1255e561916207bf&m=247373cc84a0172f47b8ce5391e3e474 ?>
左侧上传操作菜单,底部删除操作按钮,详情联系QQ:81990101