所有用户均可免费下载OGameCN源代码

源代码在线查看: chat.php.svn-base

软件大小: 10232 K
上传用户: haoding306
关键词: OGameCN 用户 免费下载 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								
				/**
				 * chat.php
				 *
				 * @version 1
				 * @copyright 2008 By e-Zobar for XNova
				 */
				
				define('INSIDE'  , true);
				define('INSTALL' , false);
				define('IN_ADMIN', true);
				
				$xnova_root_path = './../';
				include($xnova_root_path . 'extension.inc');
				include($xnova_root_path . 'common.'.$phpEx);
				
				includeLang('admin');
				$parse = $lang;
				
					if ($user['authlevel'] >= 3) {
				
						// Syst猫me de suppression
						extract($_GET);
						if (isset($delete)) {
							doquery("DELETE FROM {{table}} WHERE `messageid`=$delete", 'chat');
						} elseif ($deleteall == 'yes') {
							doquery("DELETE FROM {{table}}", 'chat');
						}
				
						// Affichage des messages
						$query = doquery("SELECT * FROM {{table}} ORDER BY messageid DESC LIMIT 25", 'chat');
						$i = 0;
						while ($e = mysql_fetch_array($query)) {
							$i++;
							$parse['msg_list'] .= stripslashes("" . date('h:i:s', $e['timestamp']) . "".
							"". $e['user'] . "".
							"" . nl2br($e['message']) . "".
							"");
						}
						$parse['msg_list'] .= "{$i} ".$lang['adm_ch_nbs']."";
				
						display(parsetemplate(gettemplate('admin/chat_body'), $parse), "Chat", false, '', true);
				
					} else {
						message( $lang['sys_noalloaw'], $lang['sys_noaccess'] );
					}
				
				?>			

相关资源