* * b2evolution - {@link http://b2evolution.net/} * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license} * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/} */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // ---------------------------- EMAIL HEADER INCLUDED HERE ---------------------------- emailskin_include('_email_header.inc.html.php', $params); // ------------------------------- END OF EMAIL HEADER -------------------------------- global $admin_url, $htsrv_url; // Default params: $params = array_merge(array('login' => '', 'email' => '', 'report_status' => '', 'report_info' => '', 'user_ID' => '', 'reported_by' => ''), $params); echo '<p' . emailskin_style('.p') . '>' . sprintf(T_('A user account was reported by %s'), get_user_colored_login_link($params['reported_by'], array('use_style' => true))) . "</p>\n"; echo '<p' . emailskin_style('.p') . '>' . T_('Login') . ": " . get_user_colored_login_link($params['login'], array('use_style' => true)) . "</p>\n"; echo '<p' . emailskin_style('.p') . '>' . T_('Email') . ": " . $params['email'] . "</p>\n"; echo '<p' . emailskin_style('.p') . '>' . T_('Reported as') . ": " . $params['report_status'] . "</p>\n"; echo '<p' . emailskin_style('.p') . '>' . T_('Extra info') . ": " . nl2br($params['report_info']) . "</p>\n"; // User's pictures: echo '<p' . emailskin_style('.p') . '>' . T_('The current profile pictures for this account are:') . '</p>' . "\n"; $user_pictures = ''; $UserCache =& get_UserCache(); if ($User = $UserCache->get_by_ID($params['user_ID'], false, false)) { $user_avatars = $User->get_avatar_Links(false); foreach ($user_avatars as $user_Link) { $user_pictures .= $user_Link->get_tag(array('before_image' => '', 'before_image_legend' => '', 'after_image_legend' => '', 'after_image' => ' ', 'image_size' => 'crop-top-80x80')); } } echo empty($user_pictures) ? '<p' . emailskin_style('.p') . '><b>' . T_('No pictures.') . '</b></p>' : $user_pictures; // Buttons:
* @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/} */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // ---------------------------- EMAIL HEADER INCLUDED HERE ---------------------------- emailskin_include('_email_header.inc.html.php', $params); // ------------------------------- END OF EMAIL HEADER -------------------------------- global $htsrv_url, $admin_url, $Blog; // Default params: $params = array_merge(array('notify_full' => false, 'Comment' => NULL, 'Blog' => NULL, 'Item' => NULL, 'author_ID' => NULL, 'author_name' => '', 'notify_type' => '', 'recipient_User' => NULL), $params); $Comment = $params['Comment']; $Blog = $params['Blog']; $Item = $params['Item']; $recipient_User =& $params['recipient_User']; $author_name = empty($params['author_ID']) ? $params['author_name'] : get_user_colored_login_link($params['author_name'], array('use_style' => true)); if ($params['notify_type'] == 'meta_comment') { // Meta comment $info_text = T_('%s posted a new meta comment on %s in %s.'); } else { // Normal comment $info_text = T_('%s posted a new comment on %s in %s.'); } $notify_message = '<p' . emailskin_style('.p') . '>' . sprintf($info_text, '<b>' . $author_name . '</b>', '<b>' . get_link_tag($Item->get_permanent_url('', '', '&'), $Item->get('title'), '.a') . '</b>', '<b>' . $Blog->get('shortname') . '</b>') . "</p>\n"; if ($params['notify_full']) { // Long format notification: $ip_list = implode(', ', get_linked_ip_list(array($Comment->author_IP), $recipient_User)); $user_domain = gethostbyaddr($Comment->author_IP); if ($user_domain != $Comment->author_IP) { // Add host name after author IP address $ip_list .= ', ' . $user_domain;
* b2evolution - {@link http://b2evolution.net/} * Released under GNU GPL License - {@link http://b2evolution.net/about/gnu-gpl-license} * @copyright (c)2003-2015 by Francois Planque - {@link http://fplanque.com/} */ if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // ---------------------------- EMAIL HEADER INCLUDED HERE ---------------------------- emailskin_include('_email_header.inc.html.php', $params); // ------------------------------- END OF EMAIL HEADER -------------------------------- global $admin_url, $htsrv_url; // Default params: $params = array_merge(array('country' => '', 'firstname' => '', 'gender' => '', 'locale' => '', 'source' => '', 'trigger_url' => '', 'initial_hit' => '', 'login' => '', 'email' => '', 'new_user_ID' => ''), $params); echo '<p' . emailskin_style('.p') . '>' . T_('A new user has registered on the site') . ':</p>' . "\n"; echo '<table' . emailskin_style('table.email_table') . '>' . "\n"; echo '<tr><th' . emailskin_style('table.email_table th') . '>' . T_('Login') . ':</th><td' . emailskin_style('table.email_table td') . '>' . get_user_colored_login_link($params['login'], array('use_style' => true)) . '</td></tr>' . "\n"; echo '<tr><th' . emailskin_style('table.email_table th') . '>' . T_('Email') . ':</th><td' . emailskin_style('table.email_table td') . '>' . $params['email'] . '</td></tr>' . "\n"; if ($params['country'] > 0) { // Country field is entered load_class('regional/model/_country.class.php', 'Country'); $CountryCache =& get_CountryCache(); $user_Country = $CountryCache->get_by_ID($params['country']); echo '<tr><th' . emailskin_style('table.email_table th') . '>' . T_('Country') . ':</th><td' . emailskin_style('table.email_table td') . '>' . $user_Country->get_name() . '</td></tr>' . "\n"; } if ($params['firstname'] != '') { // First name is entered echo '<tr><th' . emailskin_style('table.email_table th') . '>' . T_('First name') . ':</th><td' . emailskin_style('table.email_table td') . '>' . $params['firstname'] . '</td></tr>' . "\n"; } if ($params['gender'] == 'M') { // Gender is Male echo '<tr><th' . emailskin_style('table.email_table th') . '>' . T_('I am') . ':</th><td' . emailskin_style('table.email_table td') . '>' . T_('A man') . '</td></tr>' . "\n";
if (!defined('EVO_MAIN_INIT')) { die('Please, do not access this page directly.'); } // ---------------------------- EMAIL HEADER INCLUDED HERE ---------------------------- emailskin_include('_email_header.inc.html.php', $params); // ------------------------------- END OF EMAIL HEADER -------------------------------- global $admin_url, $baseurl, $htsrv_url; // Default params: $params = array_merge(array('notify_full' => false, 'Item' => NULL, 'recipient_User' => NULL, 'notify_type' => ''), $params); $recipient_User = $params['recipient_User']; $Item = $params['Item']; $Blog =& $Item->get_Blog(); if ($params['notify_full']) { /* Full notification */ echo '<p' . emailskin_style('.p') . '>' . T_('Collection') . ': ' . get_link_tag($Blog->gen_blogurl(), $Blog->get('shortname'), '.a') . "</p>\n"; echo '<p' . emailskin_style('.p') . '>' . T_('Author') . ': ' . get_user_colored_login_link($Item->creator_User->login, array('use_style' => true)) . ' (' . $Item->creator_User->get('login') . ")</p>\n"; echo '<p' . emailskin_style('.p') . '>' . T_('Title') . ': ' . $Item->get('title') . "</p>\n"; // linked URL or "-" if empty: echo '<p' . emailskin_style('.p') . '>' . T_('Url') . ': ' . (empty($Item->url) ? '-' : get_link_tag($Item->get('url'), '', '.a')) . "</p>\n"; if ($params['notify_type'] == 'moderator') { echo '<p' . emailskin_style('.p') . '>' . T_('Status') . ': ' . $Item->get('t_status') . "</p>\n"; } // Content: echo '<div class="email_ugc"' . emailskin_style('div.email_ugc') . '>' . "\n"; echo '<p' . emailskin_style('.p') . '>' . nl2br($Item->get('content')) . '</p>'; echo "</div>\n"; // Attachments: $LinkCache =& get_LinkCache(); $item_links = $LinkCache->get_by_item_ID($Item->ID); if (!empty($item_links)) { echo '<p' . emailskin_style('.p') . '>' . T_('Attachments') . ':<ul>' . "\n";