[ PHPXref.com ] [ Generated: Sun Jul 20 19:47:34 2008 ] [ phpMyFAQ 1.6.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> writecomment.php (source)

   1  <?php
   2  /**
   3  * $Id: writecomment.php,v 1.3.2.6.2.7 2006/04/25 12:07:24 matteo Exp $
   4  *
   5  * @author       Thorsten Rinne <thorsten@phpmyfaq.de>
   6  * @since        2002-08-29
   7  * @copyright    (c) 2001-2006 phpMyFAQ Team
   8  *
   9  * The contents of this file are subject to the Mozilla Public License
  10  * Version 1.1 (the "License"); you may not use this file except in
  11  * compliance with the License. You may obtain a copy of the License at
  12  * http://www.mozilla.org/MPL/
  13  *
  14  * Software distributed under the License is distributed on an "AS IS"
  15  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  16  * License for the specific language governing rights and limitations
  17  * under the License.
  18  */
  19  
  20  if (!defined('IS_VALID_PHPMYFAQ')) {
  21      header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']));
  22      exit();
  23  }
  24  
  25  $captcha = new PMF_Captcha($db, $sids, $pmf->language, $_SERVER['HTTP_USER_AGENT'], $_SERVER['REMOTE_ADDR']);
  26  
  27  if (isset($_GET['gen'])) {
  28      $captcha->showCaptchaImg();
  29      exit;
  30  }
  31  
  32  Tracking('write_comment', $_GET['id']);
  33  
  34  $tpl->processTemplate('writeContent', array(
  35                        'msgCommentHeader' => $PMF_LANG['msgWriteComment'],
  36                        'writeSendAdress' => $_SERVER['PHP_SELF'].'?'.$sids.'action=savecomment',
  37                        'ID' => $_GET['id'],
  38                        'LANG' => $_GET['artlang'],
  39                        'writeThema' => getThema($_GET['id'], $_GET['artlang']),
  40                        'msgNewContentName' => $PMF_LANG['msgNewContentName'],
  41                        'msgNewContentMail' => $PMF_LANG['msgNewContentMail'],
  42                        'defaultContentMail' => getEmailAddress(),
  43                        'defaultContentName' => getFullUserName(),
  44                        'msgYourComment' => $PMF_LANG['msgYourComment'],
  45                        'msgNewContentSubmit' => $PMF_LANG['msgNewContentSubmit'],
  46                        'captchaFieldset' => printCaptchaFieldset($PMF_LANG['msgCaptcha'], $captcha->printCaptcha('writecomment'), $captcha->caplength),
  47                        'copyright_eintrag' => unhtmlentities($PMF_CONF['copyright_eintrag'])));
  48  
  49  $tpl->includeTemplate('writeContent', 'index');
  50  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]