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

📄 domoveto.php

📁 flashget43的源代码 一个比较常用的下载程序
💻 PHP
字号:
<?php
			if(ChatServer::userInRole($this->userid, ROLE_CUSTOMER)) return;

			$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}bans WHERE banneduserid=? AND roomid=?");
			if(($rs = $stmt->process($this->userid, $toroomid)) && ($rec = $rs->next())) {
				$this->sendToAll(new Message('mvu', $this->userid, $this->roomid, $msg));
				$this->sendBack(new Message('error', null, null, 'banned'));
			} else {
				$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE id=? AND password<>?");
				$is_lock = ($rs = $stmt->process($toroomid, $pass)) && ($rec = $rs->next());
				if($is_lock && !$is_invite) {
					$this->sendBack(new Message('error', null, null, 'locked'));
				}
				else
				{
					$this->roomid = $toroomid;
					$this->sendToAll(new Message('mvu', $this->userid, $this->roomid, $msg));

					if($GLOBALS['fc_config']['liveSupportMode'] && ChatServer::userInRole($this->userid, ROLE_ADMIN)) $this->doBack(1000);
									
					$this->save();
// fix for welcome message
					$destination = null;
					if ($GLOBALS['fc_config']['auto_topic']) {
						include_once(INC_DIR . 'classes/doRoomEntryInfo.php');
					}
// end fix
				}
			}	
?>

⌨️ 快捷键说明

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