⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 js.php

📁 flashget43的源代码 一个比较常用的下载程序
💻 PHP
字号:
<?php
	include('inc/common.php');
?>
	connid = 0;

	function flashchat_DoFSCommand() {
	}

	function setFocus() {
		window.focus();
		var chatui = document.getElementById('flashchat');
		if(chatui && chatui.focus) chatui.focus();
	}

	function doLogout() 
	{	
		<?php 
			if($GLOBALS['fc_config']['logout']['redirect'] && $GLOBALS['fc_config']['logout']['window']=='_blank')
			{
				echo "window.open('{$GLOBALS['fc_config']['logout']['url']}', '{$GLOBALS['fc_config']['logout']['window']}');";
			}
		?>
			
		if(connid == 0) return;

		<?php if(!$GLOBALS['fc_config']['enableSocketServer']) 
				if($GLOBALS['fc_config']['showLogoutWindow']) { ?>
				   	width = 220;
					height = 30;

					wleft = (screen.width - width) / 2;
					wtop  = (screen.height - height) / 2 - 20;

					window.open("<?php echo $GLOBALS['fc_config']['base']?>dologout.php?id=" + connid, "logout", "width=" + width + ",height=" + height + ",left=" + wleft + ",top=" + wtop + ",location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
		<?php } else { ?>
					img = new Image();
					img.src = "<?php echo $GLOBALS['fc_config']['base']?>dologout.php?seed=<?php echo time()?>&id=" + connid;
		<?php } ?>
	}

	function setConnid(newconnid) {
		connid = newconnid;
	}
	
	window.onload = setFocus;
	window.onunload = doLogout;
	
	//------------------------------
	//---open share file window
	//------------------------------
	var win_popup = null;    
	function openWindow( url, name, params, w, h )
	{
	     var ah = window.screen.availHeight;
         var aw = window.screen.availWidth;
         var l = (aw - w) / 2;
         var t = (ah - h) / 2;
        
         params += params == "" ? "" : ",";        
         params += "left="+l+",top="+t+",screenX="+l+",screenY="+t+",height="+h+",width="+w+",resizable=yes,status=yes,scrollbars=no";   
         
         //close previous opened popup
         if (win_popup && win_popup.open && !win_popup.closed)
         {
            win_popup.close();
         }
         //---         
	     win_popup = window.open( "", name, params );				
	     win_popup.location.href = url;			     
	}
	//--- end open window function	
	/*
	function fileDownload(fname)
	{
		if(window.frames['dataframe'].window && fname)
		{
			window.frames['dataframe'].window.location.href = fname;
		}
		else
		{
			alert('File download error.');
		}
	}*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -