| Server IP : 23.94.149.180 / Your IP : 216.73.216.147 Web Server : nginx/1.20.1 System : Linux deadrock 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 15:18:14 UTC 2026 x86_64 User : apache ( 48) PHP Version : 8.6.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /files/www/lawyerbabe/mblog/php/lib/ |
Upload File : |
<?php
# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
# This program is distributed under the terms of the
# GNU General Public License, version 2.
#
# $Id: function.mtcommentauthoridentity.php 1174 2008-01-08 21:02:50Z bchoate $
function smarty_function_mtcommentauthoridentity($args, &$ctx) {
$cmt = $ctx->stash('comment');
$cmntr = $ctx->stash('commenter');
if (!$cmntr) {
if ($cmt['comment_commenter_id']) {
# load author related to this commenter.
$cmntr = $ctx->mt->db->fetch_author($cmt['comment_commenter_id']);
if (!$cmntr) return "";
}
}
if (!$cmntr) return "";
if (isset($cmntr['author_url'])) {
$link = $cmntr['author_url'];
} else {
return "";
}
require_once "function.mtstaticwebpath.php";
$static_path = smarty_function_mtstaticwebpath($args, $ctx);
require_once "commenter_auth_lib.php";
$logo = _auth_icon_url($static_path, $cmntr);
if (!$logo) {
$root_url = $static_path . 'images/';
if (!preg_match('/\/$/', $root_url)) {
$root_url .= '/';
}
$logo = $root_url . "nav-commenters.gif";
}
return "<a class=\"commenter-profile\" href=\"$link\"><img alt=\"Author Profile Page\" src=\"$logo\" width=\"16\" height=\"16\" /></a>";
}
?>