|
1
|
1
|
new file mode 100644
|
|
...
|
...
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+<?php
|
|
|
2
|
+// ----------------------------------------------------------------------
|
|
|
3
|
+// eFiction 3.0
|
|
|
4
|
+// Copyright (c) 2007 by Tammy Keefer
|
|
|
5
|
+// Valid HTML 4.01 Transitional
|
|
|
6
|
+// Based on eFiction 1.1
|
|
|
7
|
+// Copyright (C) 2003 by Rebecca Smallwood.
|
|
|
8
|
+// http://efiction.sourceforge.net/
|
|
|
9
|
+// ----------------------------------------------------------------------
|
|
|
10
|
+// LICENSE
|
|
|
11
|
+//
|
|
|
12
|
+// This program is free software; you can redistribute it and/or
|
|
|
13
|
+// modify it under the terms of the GNU General Public License (GPL)
|
|
|
14
|
+// as published by the Free Software Foundation; either version 2
|
|
|
15
|
+// of the License, or (at your option) any later version.
|
|
|
16
|
+//
|
|
|
17
|
+// This program is distributed in the hope that it will be useful,
|
|
|
18
|
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
19
|
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
20
|
+// GNU General Public License for more details.
|
|
|
21
|
+//
|
|
|
22
|
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
|
|
23
|
+// ----------------------------------------------------------------------
|
|
|
24
|
+
|
|
|
25
|
+if(!defined("_CHARSET")) exit( );
|
|
|
26
|
+// Build the user's profile information
|
|
|
27
|
+$tpl->newBlock("profile");
|
|
|
28
|
+$result2 = dbquery("SELECT *,"._PENNAMEFIELD." as penname,user_avatar as image, user_email as email FROM "._AUTHORTABLE." LEFT JOIN ".TABLEPREFIX."fanfiction_authorprefs as ap ON ap.uid = "._UIDFIELD." WHERE "._UIDFIELD." = '$uid' LIMIT 1");
|
|
|
29
|
+$userinfo = dbassoc($result2);
|
|
|
30
|
+$nameinfo = "";
|
|
|
31
|
+if($userinfo['email'])
|
|
|
32
|
+ $nameinfo .= " [<a href=\"viewuser.php?action=contact&uid=".$userinfo['uid']."\">"._CONTACT."</a>]";
|
|
|
33
|
+if($favorites == "1" && isMEMBER)
|
|
|
34
|
+ $nameinfo .= " [<a href=\"viewuser.php?uid=USERUID&action=addfav&author=".$userinfo['uid']."\">"._ADDAUTHOR2FAVES."</a>]";
|
|
|
35
|
+$tpl->assign("userpenname", $userinfo['penname']." ".$nameinfo);
|
|
|
36
|
+$tpl->assign("membersince", date("$dateformat", $userinfo['user_joined']));
|
|
|
37
|
+if($userinfo['image'])
|
|
|
38
|
+ $tpl->assign("image", "<img src=\"../images/avatars/".$userinfo['image']."\">");
|
|
|
39
|
+$tpl->assign("userlevel", isset($userinfo['level']) && $userinfo['level'] > 0 && $userinfo['level'] < 4 ? _ADMINISTRATOR.(isADMIN ? " - ".$userinfo['level'] : "") : _MEMBER);
|
|
|
40
|
+$tpl->assign("aol", !empty($userinfo['user_aol']) ? "<img src=\"http://big.oscar.aol.com/".$userinfo['user_aol']."?on_url=$url/images/aim.gif&off_url=$url/images/aim.gif\"> <a href=\"aim:goim?{aol}ScreenName=".$userinfo['user_aol']."\">".$userinfo['user_aol']."</a>" : "<img src=\"images/aim.gif\" alt=\""._AOL."\"> "._NONE);
|
|
|
41
|
+$tpl->assign("icq", !empty($userinfo['user_icq']) ? "<img src=\"http://status.icq.com/online.gif?icq=".$userinfo['user_icq']."&img=5\"> ".$userinfo['user_icq'] : "<img src=\"images/icq.gif\" alt=\""._ICQ."\"> "._NONE);
|
|
|
42
|
+$tpl->assign("msn", "<img src=\"images/msntalk.gif\" alt=\""._MSN."\"> ".($userinfo['user_msn'] ? $userinfo['user_msn'] : _NONE));
|
|
|
43
|
+$tpl->assign("yahoo", !empty($userinfo['user_yahoo']) ? "<a href=\"http://edit.yahoo.com/config/send_webmesg?.target=".$userinfo['user_yahoo']."&.src=pg\"><img border=\"0\" src=\"http://opi.yahoo.com/online?u=".$userinfo['user_yahoo']."&m=g&t=1\"> ".$userinfo['user_yahoo']."</a>" : "<img src=\"images/yim.gif\" alt=\""._YAHOO."\"> "._NONE);
|
|
|
44
|
+$adminopts = "";
|
|
|
45
|
+if(isADMIN && uLEVEL < 3) {
|
|
|
46
|
+ $adminopts .= "<div class=\"adminoptions\"><span class='label'>"._ADMINOPTIONS.":</span> ".(isset($userinfo['validated']) && $userinfo['validated'] ? "[<a href=\"admin.php?action=members&revoke=$uid\" class=\"vuadmin\">"._REVOKEVAL."</a>] " : "[<a href=\"admin.php?action=members&validate=$uid\" class=\"vuadmin\">"._VALIDATE."</a>] ")."[<a href=\"user.php?action=editbio&uid=$uid\" class=\"vuadmin\">"._EDIT."</a>] [<a href=\"admin.php?action=members&delete=$uid\" class=\"vuadmin\">"._DELETE."</a>]";
|
|
|
47
|
+ $adminopts .= " [<a href=\"admin.php?action=lock&".($userinfo['level'] < 0 ? "unlock=".$userinfo['uid']."\" class=\"vuadmin\">"._UNLOCKMEM : "do=lock&uid=".$userinfo['uid']."\" class=\"vuadmin\">"._LOCKMEM)."</a>]";
|
|
|
48
|
+ $adminopts .= " [<a href=\"admin.php?action=admins&".(isset($userinfo['level']) && $userinfo['level'] > 0 ? "revoke=$uid\" class=\"vuadmin\">"._REVOKEADMIN."</a>] [<a href=\"admin.php?action=admins&do=edit&uid=$uid\" class=\"vuadmin\">"._EDITADMIN : "do=new&uid=$uid\" class=\"vuadmin\">"._MAKEADMIN)."</a>]</div>";
|
|
|
49
|
+ $tpl->assign("adminoptions", $adminopts);
|
|
|
50
|
+}
|
|
|
51
|
+$tpl->gotoBlock("_ROOT");
|
|
|
52
|
+?>
|
|
0
|
53
|
\ No newline at end of file
|