Logo Search packages:      
Sourcecode: dacode version File versions  Download package

send_email.php3

<?php
/* daCode _ http://www.dacode.org/
 * $Id: send_email.php3,v 1.4.4.4 2002/10/12 17:32:29 ruffy Exp $
 */

      $topdir = '..';
      require $topdir."/dacode.php3";

      $news = LoadClass('News');
      $html = LoadClass('Html');
      $session = LoadClass('Session');

      if (!ereg('^'.$config->baseurl,$HTTP_SERVER_VARS['HTTP_REFERER'])
            && !($session->param & pow(2,3))) {
            $title = lecho("HTTP referer");
            $nobanner = false;
            $utils = LoadClass('Utils');
            $text = $utils->warn_referer();
            $html->parsetemplate('basic.tmpl');
            exit;
      }

      $title = '';
      $text = '<span class="sboxtext">'.
            $news->send_email(isset($HTTP_POST_VARS['news_id'])?$HTTP_POST_VARS['news_id']:'',
            isset($HTTP_POST_VARS['email_address'])?$HTTP_POST_VARS['email_address']:'',
            isset($HTTP_POST_VARS['body'])?$HTTP_POST_VARS['body']:'').'</span>';
      $nobanner = 1;
      $html->parsetemplate('basic.tmpl');
?>

Generated by  Doxygen 1.6.0   Back to index