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

📄 pm.php

📁 用PHP和MSSQL开发的sspace商城系统
💻 PHP
字号:
<?php
	/*
	+-------------------------------------------
	|
	|   Technology of Wane netware
	|   ========================================
	|   Powered by wan-e.net inc 
	|   (c) 2004 wane.net Power Services
	|   http://www.wan-e.net
	|   ========================================
	|   Web: http://www.wan-e.net
	|
	+-------------------------------------------
	|   Autohr	:	wsfuyibing
	+-------------------------------------------
	*/
	eval($function->load_lang('memcp'));
	if (!isset($info) || !is_numeric($info))
	{
		$function->clickback($VIEW_FAQ[UNDEFINED]);
	}
	elseif ($send)
	{
		$query=$db->query("SELECT p.*,m.uid,m.username as recername FROM {$tablepre}pms p left join {$tablepre}member m ON (p.recid=m.uid) where pmid='$info' and sendid=$wane_uid");
		if (!$db->num($query))
		{
			$function->clickback($LANG_CP_MAIL['CP_MAIL_VIEW_UNEXISTS']);
		}
		else
		{
			$row=$db->row($query);
			if ($row['sendid']!=$wane_uid)
			{
				$function->clickback($LANG_CP_MAIL[CP_MAIL_VIEW_DENIED]);
			}
			else
			{
				eval($tpl->set_var(array(
					'WEBTITLE'	=>	$function->headtitle('[ '.$webtitle.' ] | '.$LANG['MEMCP'].' | '.$LANG_CP['CPMAIL_SEND'].' | '.$row[title]),
					'NAVIGATA'	=>	"<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a>&nbsp;$category_separate&nbsp;<a class='navigata' href='{$default_url}index.php?action=memcp'>$LANG[MEMCP]</a>&nbsp;$category_separate&nbsp;<a href='{$default_url}index.php?action=memcp&type=recmail'>$LANG_CP[CPMAIL_SEND]</a>",
				)));			
			}
			require $wane_root.'globals/class_code.php';
			$tplfiles	=	array('header','memcp_control','pm_show','footer');
		}
	}
	else
	{
		$query=$db->query("SELECT p.*,m.uid,m.username as fromername FROM {$tablepre}pms p left join {$tablepre}member m ON (p.sendid=m.uid) where pmid='$info' and (system='1' or recid=$wane_uid) limit 1");
		if (!$db->num($query))
		{
			$function->clickback($LANG_CP_MAIL['CP_MAIL_VIEW_UNEXISTS']);
		}
		else
		{
			$row=$db->row($query);
			if (!$row['system'] && $row['recid']!=$wane_uid)
			{
				$function->clickback($LANG_CP_MAIL[CP_MAIL_VIEW_DENIED]);
			}
			else
			{
				if ($row['isnew'] && $wane_uid==$row['recid'])
				{
					$db->query("UPDATE {$tablepre}pms SET isnew='0' WHERE pmid='$info' and recid='$wane_uid'");
					$db->query("UPDATE {$tablepre}member SET pms=pms+'-1' WHERE uid='$wane_uid'");
				}
				eval($tpl->set_var(array(
					'WEBTITLE'	=>	$function->headtitle('[ '.$webtitle.' ] | '.$LANG['MEMCP'].' | '.$LANG_CP['CPMAIL_REC'].' | '.$row[title]),
					'NAVIGATA'	=>	"<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a>&nbsp;$category_separate&nbsp;<a class='navigata' href='{$default_url}index.php?action=memcp'>$LANG[MEMCP]</a>&nbsp;$category_separate&nbsp;<a href='{$default_url}index.php?action=memcp&type=recmail'>$LANG_CP[CPMAIL_REC]</a>",
				)));			
			}
			require $wane_root.'globals/class_code.php';
			$tplfiles	=	array('header','memcp_control','pm_show','footer');
		}
	}
?>

⌨️ 快捷键说明

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