@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb009 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
php
/
lib
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/php/lib/function.mtcommentauthoridentity.php
<?php # Movable Type (r) (C) 2001-2008 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $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>"; } ?>