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

Source for file mail_actions.php

Documentation is available at mail_actions.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage yellowpages
  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 (!class_exists('auth')){
  13.     include_once("../lib/lib_common.php");
  14.     ReloadIndex('admin');
  15. }
  16. ////////////
  17. /** PrĂ©paration du mail
  18.  * $email_html_body
  19.  * $email_text_body
  20.  * $email_subject
  21.  * $email_recipient
  22.  **/
  23.  
  24.  
  25. switch($todo_mail{
  26.     // added from front-office - confirmation sent to submitter
  27.     case 'confirm_entry':
  28.         $req_detSQL_getdetyp($yp_id);
  29.         $result=$sql_object->DBSelect($req_det);
  30.  
  31.         $email_html_body =_t('yp','mail_body1')."<br />";
  32.         $email_html_body .= "<a href=\"".$full_link."\">".$full_link."</a><br/>\n";
  33.  
  34.         $email_text_body  strip_tags(_t('yp','mail_body1')."\n");
  35.         $email_text_body .= $full_link."\n";
  36.  
  37.         $email_subject mb_ucfirst(_t('yp','confirm_subscription'' - ' SITE_NAME);
  38.         $email_recipient $result[0]['yellowp_email'];
  39.         break;
  40.         // added from back-office - notification sent to submitter
  41.         case 'add_entry':
  42.             $email_html_body  _t('yp','mail_body_added1')."<br />";
  43.             $email_html_body .= "<a href=\"".$full_link."\">".$full_link."</a><br/><br />\n";
  44.             $email_html_body .= _t('yp','mail_body_added2')."<br /><br />";
  45.             
  46.             $email_text_body  strip_tags(_t('yp','mail_body_added1')."\n");
  47.             $email_text_body .= $full_link."\n";
  48.             $email_text_body .= strip_tags(_t('yp','mail_body_added2')."\n");
  49.             
  50.             $email_subject mb_ucfirst(_t('yp','mail_subject_added'' - ' SITE_NAME);
  51.             $email_recipient $data_table[9];
  52.             break;
  53.     default:
  54.         exit();
  55. }
  56. ?>

Documentation generated on Thu, 20 Mar 2014 16:48:45 +0100 by phpDocumentor 1.4.1