linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file mail_actions.php

Documentation is available at mail_actions.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage user
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages ////////////
  12. if (!function_exists('AuthenthificationProcess')) {
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18.  
  19.  
  20. /** PrĂ©paration du mail
  21.  * $email_html_body
  22.  * $email_text_body
  23.  * $email_subject
  24.  * $email_dest
  25.  **/
  26.  
  27. switch($todo_mail{
  28.   case 'add_user':
  29.     $email_html_body _t('user','mail_add_body1'"<br />\n";
  30.     $email_html_body .= _t('user','mail_add_body2'"<br />\n";
  31.     $email_html_body .= _t('user','login'" : " $u_login "<br />\n";
  32.     $email_html_body .= _t('user','password'" : " $u_password "<br /><br />\n";
  33.     $email_html_body .= _t('user','mail_head'" : <a href=\"" SITE_ROOT_URL'public/' "\">" SITE_NAME "</a><br />\n";
  34.     $email_html_body .= _t('user','mail_bottom'" : <a href=\"mailto:" SITE_MAIL "\">" SITE_MAIL "</a><br />\n";
  35.  
  36.     $email_text_body _t('user','mail_add_body1'"\n";
  37.     $email_text_body .= _t('user','mail_add_body2'"\n";
  38.     $email_text_body .= _t('user','login'" : " $u_login "\n";
  39.     $email_text_body .= _t('user','password'" : " $u_password "\n\n";
  40.     $email_text_body .= _t('user','mail_head'" " SITE_ROOT_URL'public/' "\n";
  41.     $email_text_body .= _t('user','mail_bottom'" " SITE_MAIL "\n";
  42.  
  43.     $email_subject _t('user','mail_add_subject').' '.SITE_NAME;
  44.     $email_dest $u_mail;
  45.     break;
  46.   case 'change_pass':
  47.     $email_html_body _t('user','mail_changepass_body1'"<br />\n";
  48.     $email_html_body .= _t('user','mail_changepass_body2'"<br />\n";
  49.     $email_html_body .= _t('user','login'" : " $user_login "<br />\n";
  50.     $email_html_body .= _t('user','password'" : " $new_pass "<br /><br />\n";
  51.     $email_html_body .= _t('user','mail_head'" : <a href=\"" SITE_ROOT_URL'public/' "\">" SITE_NAME "</a><br />\n";
  52.     $email_html_body .= _t('user','mail_bottom'" : <a href=\"mailto:" SITE_MAIL "\">" SITE_MAIL "</a><br />\n";
  53.         
  54.     $email_text_body _t('user','mail_changepass_body1'"\n";
  55.     $email_text_body .= _t('user','mail_changepass_body2'"\n";
  56.     $email_text_body .= _t('user','login'" : " $user_login "\n";
  57.     $email_text_body .= _t('user','password'" : " $new_pass "\n";
  58.     $email_text_body .= _t('user','mail_head'" " SITE_ROOT_URL'public/' "\n";
  59.     $email_text_body .= _t('user','mail_bottom'" " SITE_MAIL "\n";
  60.  
  61.     $email_subject _t('user','mail_changemail_subject').' - '.SITE_NAME;
  62.     $email_dest $user_email;
  63.     break;
  64.   case 'forgot_pass':
  65.     $email_html_body  _t('user','mail_forgotpass_body1'"<br />\n";
  66.     $email_html_body .= '<em>'._t('user','mail_forgotpass_body2'"</em><br />\n";
  67.     $email_html_body .= "<a href='".SITE_ROOT_URL'public/'.get_permalink($link_pass)."'>".SITE_ROOT_URL'public/'.get_permalink($link_pass)."</a><br /><br />\n";
  68.     $email_html_body .= _t('user','mail_head'" : <a href=\"" SITE_ROOT_URL'public/' "\">" SITE_NAME "</a><br />\n";
  69.     $email_html_body .= _t('user','mail_bottom'" : <a href=\"mailto:" SITE_MAIL "\">" SITE_MAIL "</a><br />\n";
  70.         
  71.     $email_text_body  _t('user','mail_forgotpass_body1'"\n";
  72.     $email_text_body .= _t('user','mail_forgotpass_body2'"\n";
  73.     $email_text_body .= SITE_ROOT_URL'public/'.get_permalink($link_pass)"\n\n";
  74.     $email_text_body .= _t('user','mail_head'" " SITE_ROOT_URL'public/' "\n";
  75.     $email_text_body .= _t('user','mail_bottom'" " SITE_MAIL "\n";
  76.  
  77.     $email_subject _t('user','mail_forgotpass_subject').' - '.SITE_NAME;
  78.     $email_dest $user_email;
  79.     break;
  80.   case 'change_mail':
  81.     $email_html_body _t('user','mail_changemail_body1'"<br />\n";
  82.     $email_html_body .= _t('user','mail_changemail_body2'"<br />\n";
  83.     $email_html_body .= _t('user','login'" : " $user_login "<br />\n";
  84.     $email_html_body .= _t('user','password'" : " $new_pass "<br /><br />\n";
  85.     $email_html_body .= _t('user','mail_head'" : <a href=\"" SITE_ROOT_URL'public/' "\">" SITE_NAME "</a><br />\n";
  86.     $email_html_body .= _t('user','mail_bottom'" : <a href=\"mailto:" SITE_MAIL "\">" SITE_MAIL "</a><br />\n";
  87.         
  88.     $email_text_body _t('user','mail_changemail_body1'"\n";
  89.     $email_text_body .= _t('user','mail_changemail_body2'"\n";
  90.     $email_text_body .= _t('user','login'" : " $user_login "\n";
  91.     $email_text_body .= _t('user','password'" : " $new_pass "\n";
  92.     $email_text_body .= _t('user','mail_head'" " SITE_ROOT_URL'public/' "\n";
  93.     $email_text_body .= _t('user','mail_bottom'" " SITE_MAIL "\n";
  94.  
  95.     $email_subject _t('user','mail_changemail_subject').' - '.SITE_NAME;
  96.  
  97.     $email_dest $new_email;
  98.     break;
  99.   default:
  100.     exit();
  101. }
  102.  
  103. ?>

Documentation generated on Thu, 03 May 2012 15:06:06 +0200 by phpDocumentor 1.4.1