profile.php

来自「用PHP和MSSQL开发的sspace商城系统」· PHP 代码 · 共 38 行

PHP
38
字号
<?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('view/profile'));
	$query	=	$db->query("SELECT m.*,g.kind,g.title as gtitle FROM {$tablepre}member m,{$tablepre}usergroup g WHERE m.uid='".intval(addslashes($info))."' and m.kind=g.kind limit 1");
	if (!$db->num($query))
	{
		$function->clickback($VIEW_PROFILE['UNEXISTS']);
	}
	else
	{
		$row=$db->row($query);
		$tplfiles	=	array('header','profile_show','footer');	
		eval($tpl->set_var(array(
			'WEBTITLE'		=>	$function->headtitle('[ '.$webtitle.' ] | '.$VIEW_PROFILE['TITLE']),
			'NAVIGATA'		=>	"<a class='navigata' href='{$default_url}index.php?action=idx'>$webtitle</a>&nbsp;$category_separate&nbsp;$VIEW_PROFILE[TITLE]&nbsp;$category_separate&nbsp;$row[username]</a>",
		)));
		if ($html_onoff && $html_profile)
		{
			$newsubmit	=	$newsubmit	?	'1'	:	'0';
			$createhtml	=	array($dirhtml_profile,'',$row['uid'],$newsubmit);				
		}
	}

?>

⌨️ 快捷键说明

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