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

📄 doroomentryinfo.php

📁 flashget43的源代码 一个比较常用的下载程序
💻 PHP
字号:
<?php

				$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE id=?");
				$rs = $stmt->process($this->roomid);
				$rec = $rs->next();

				$rfile = './appdata/';

				if($rec['ispermanent']) $rfile .= trim($rec['name']) . '.txt';
				else {
					if($rec['ispublic']) $rfile .= 'public_text.txt';
					else  $rfile .= 'private_text.txt';
					}

				if(file_exists($rfile) && $php_file = @fopen($rfile, 'rb')) {
					$contents = fread($php_file, $fz = filesize ($rfile));
					fclose ($php_file);

					$user = ChatServer::getUser($this->userid);
					$contents = str_replace( 'ROOM_LABEL', trim($rec['name']), $contents); 
					$contents = str_replace( 'USER_LABEL', trim($user['login']), $contents); 
					$contents = str_replace( chr(13) . chr(10) , "<br>", $contents); // replace crlf with line breaks
					$contents = str_replace( chr(10) . chr(13) , "<br>", $contents); // replace lfcr with line breaks
					$rtxt = explode('<br>', $contents);

					foreach($rtxt as $k => $v)
						$this->sendToUser($destination, new Message('msg', $this->userid, $GLOBALS['fc_config']['liveSupportMode']?$this->roomid:null, $v, $this->color));
				}

?>

⌨️ 快捷键说明

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