📄 javascript.php
字号:
<?
/*
*#########################################
* PHPCMS 文件管理器 v4.01
* Copyright (c) 2004-2006 phpcms.cn
* 作者:Longbill ( http://www.longbill.cn )
* 请保留版权信息
*#########################################
*/
include_once("pre_do.php");
@error_reporting(1);
include_once("func.php");
$user=check_login();
$root=$user["root"];
if (!$user) exit;
$me1="http://".$_SERVER["SERVER_NAME"].dirname($_SERVER["PHP_SELF"]);
$me=$me1."/";
$me1=dirname($me1);
?>
var editfiles="<?=$editfiles;?>";
var imgfiles="jpg|jpeg|gif|png|bmp";
var i=0,n=0,filen=0,dirn=0,v='<?=$v;?>';
var cookieexp=<?=$cookieexp;?>*1000; //cookie过期时间(毫秒)
var dir=[];
var file=[];
var path='<?=$_COOKIE["cpath"];?>',debug=0;
var user="<?=$user;?>";
var jumpfiles='<?=$jumpfiles;?>';
var me='<?=$me1;?>',pro=0,coln=6;
var jumpfile=[];
var file=[];
var dir=[];
var daxiao=[];
var editfile=[];
var data=[];
var dn,fn,vdis="";
var big_width=110,big_height=110;
var imgmax=<?=$imgmax;?>;
var temp="temp/<?=$tempname?>/";
var root='<?=$root;?>';
var file_item='<?echo AddSlashes(str_replace(array("\r","\n"),"",file_get_contents("temp/$tempname/list_file.htm")));?>';
var dir_item='<?echo AddSlashes(str_replace(array("\r","\n"),"",file_get_contents("temp/$tempname/list_folder.htm")));?>';
var foldernamelen=75,filenamelen=55; //在小图标下的目录名和文件名的长度
var namelength=15; //在大图标下
var preload=<?echo ($preload)?"true":"false";?>; //预下载
var jumpurl = "http://cn5.cn/longbill/title.php?v="+v;
var hidefiles = [];
var hidefileshtml = "<span class=hidefiles>{name}</span>";
window.onload=function ()
{
<?
if ($user["visit"]) echo '$("visit_mode").checked=true;';
if ($user["big"]) echo '$("icon_mode").checked=true;';
?>
resetdata(editfiles,"editfile");
resetdata(jumpfiles,"jumpfile");
if (window.path=="") window.path = root;
window.linked = 1;
reloaddata();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -