Example #1
0
function _HCM_mailto($email = "")
{
    return _mailto($email);
}
Example #2
0
        // odkaz na prispevky uzivatele
        $posts_count = DB::result(DB::query("SELECT COUNT(id) FROM `" . _mysql_prefix . "-posts` WHERE author=" . $query['id'] . ' AND `type`!=6 AND `type`!=4'), 0);
        if ($posts_count > 0) {
            $posts_viewlink = ", <a href='index.php?m=profile-posts&amp;id=" . $id . "'>" . $_lang['global.show'] . " &gt;</a>";
        } else {
            $posts_viewlink = "";
        }
    } else {
        $message = _formMessage(2, $_lang['global.baduser']);
        $found = false;
    }
}
/* ---  modul  --- */
// titulek
if (_template_autoheadings == 1) {
    $module .= "<h1>" . $_lang['mod.profile'] . "</h1><br />";
}
// vyhledavaci pole
$module .= "\n  <form action='index.php' method='get' class='profileform'>\n  <input type='hidden' name='m' value='profile' />\n  <input type='text' name='id'" . ($id != null ? " value='" . $id . "'" : '') . " class='inputmedium' /> <input type='submit' value='" . $_lang['global.open'] . "' />\n  </form><br />\n  " . $message;
// tabulka
if ($form == true) {
    // poznamka o blokovani
    if ($query['blocked'] == 1 or $groupdata['blocked'] == 1) {
        $module .= "\n<strong class='important'>" . $_lang['mod.profile.blockednote'] . "</strong><br /><br />\n";
    }
    $module .= "\n  <table>\n\n  <tr class='valign-top'>\n\n  <td class='avatartd'>\n  <div class='avatar'>\n  <img src='" . $query['avatar'] . "' alt='avatar' />\n  </div>\n  </td>\n\n  <td>\n    <table class='profiletable'>\n\n    <tr>\n    <td><strong>" . $_lang['login.username'] . "</strong></td>\n    <td>" . $query['username'] . "</td>\n    </tr>\n\n    " . ($query['publicname'] != "" ? "<tr><td><strong>" . $_lang['mod.settings.publicname'] . "</strong></td><td>" . $query['publicname'] . "</td></tr>" : '') . "\n\n    <tr>\n    <td><strong>" . $_lang['global.group'] . "</strong></td>\n    <td>" . ($groupdata['icon'] != "" ? "<img src='" . _indexroot . "pictures/groupicons/" . $groupdata['icon'] . "' alt='icon' class='icon' /> " : '') . ($groupdata['color'] !== '' ? '<span style="color:' . $groupdata['color'] . ';">' . $groupdata['title'] . '</span>' : $groupdata['title']) . "</td>\n    </tr>\n\n    " . ($groupdata['descr'] !== '' ? "<tr>\n    <td><strong>" . $_lang['mod.profile.groupdescr'] . "</strong></td>\n    <td>" . $groupdata['descr'] . "</td>\n    </tr>" : '') . "\n\n    <tr>\n    <td><strong>" . $_lang['mod.profile.lastact'] . "</strong></td>\n    <td>" . _formatTime($query['activitytime']) . "</td>\n    </tr>\n\n    </table>\n  </td>\n\n  </tr>\n  </table>\n\n  <div class='hr'><hr /></div>\n\n  <div class='wlimiter'>\n  <table class='profiletable'>\n\n  <tr><td><strong>" . $_lang['mod.profile.regtime'] . "</strong></td><td>" . _formatTime($query['registertime']) . "</td></tr>\n  " . (_profileemail ? "<tr><td><strong>" . $_lang['global.email'] . "</strong></td><td>" . _mailto($query['email']) . "</td></tr>" : '') . "\n  " . ($query['icq'] != 0 ? "<tr><td><strong>" . $_lang['global.icq'] . "</strong></td><td>" . $query['icq'] . " <img src='http://status.icq.com/online.gif?icq=" . $query['icq'] . "&amp;img=5' alt='icq status' class='icon' /></td></tr>" : '') . "\n  " . ($query['skype'] != "" ? "<tr><td><strong>" . $_lang['global.skype'] . "</strong></td><td>" . $query['skype'] . "</td></tr>" : '') . "\n  " . ($query['msn'] != "" ? "<tr><td><strong>" . $_lang['global.msn'] . "</strong></td><td>" . _mailto(_htmlStr($query['msn'])) . "</td></tr>" : '') . "\n  " . ($query['jabber'] != "" ? "<tr><td><strong>" . $_lang['global.jabber'] . "</strong></td><td>" . _mailto(_htmlStr($query['jabber'])) . "</td></tr>" : '') . "\n  " . ($query['web'] != "" ? "<tr><td><strong>" . $_lang['global.web'] . "</strong></td><td><a href='http://" . $query['web'] . "' target='_blank' rel='nofollow'>" . _cutStr($query['web'], 32) . "</a></td></tr>" : '') . "\n\n  <tr>\n  <td><strong>" . $_lang['global.postsnum'] . "</strong></td>\n  <td>" . $posts_count . $posts_viewlink . "</td>\n  </tr>\n\n  " . $arts . "\n  " . $note . "\n\n  <tr>\n  <td><strong>" . $_lang['mod.profile.logincounter'] . "</strong></td>\n  <td>" . $query['logincounter'] . "</td>\n  </tr>\n\n  </table>\n  </div>\n  ";
    // odkaz na zaslani vzkazu
    if (_loginindicator and _messages and $query['id'] != _loginid and $query['blocked'] == 0 and $groupdata['blocked'] == 0) {
        $module .= "<p><img src='" . _templateImage("icons/bubble.png") . "' alt='msg' class='icon' /> <a href='index.php?m=messages&amp;a=new&amp;receiver=" . $query['username'] . "'>" . $_lang['mod.messages.new'] . " &gt;</a></p>";
    }
}