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

📄 active.cgi

📁 这个是分屏聊天室源码。需要分屏的聊天室请参考
💻 CGI
字号:
#########################################
#进行动作的替换
sub write_active  {
	&dn_prompt("你没有执行动作指令的权限") if ($userlevel<$level_active) ;
	@chatactive=&readtxtfile($activefile);
	$find_act = 0;
	#$dn_act = substr($says,length($activeid ));
	$dn_act = substr($says,1); #因为当前是1个字符,所以就默认用这个了
	foreach  (@chatactive) {
		($chkactive,$chkact1,$chkact2,$chkact3)=split(/‖/,$_);
		if ( $chkactive eq $dn_act ) { $find_act = 1; last; }
	}
	if ($find_act == 1) {
		#chkact1是自言自语 chkact2是对自己说  chkact3是对别人说
		if (($towho eq "")||($towho eq "大家")) { $chkact1=~s/%1/$username/g; $says = $chkact1; }
		if ($towho eq $username ) { $chkact2=~s/%1/$username/g; $says = $chkact2; }
		if (($towho ne $username) &&($towho ne "")&&($towho ne "大家")) { 
			$chkact3=~s/%1/$username/g; 
			$chkact3=~s/%2/$towho/g;
			$says = $chkact3; }
	}
	else { &dn_prompt("系统目前不支持 $says 运作"); }
}

⌨️ 快捷键说明

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