HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/cpanel/ea-php54/root/usr/share/pear/RVSeagullMod/modules/faqweb/www/ask.php
<?php
/**
* $Id: ask.php,v 1.15 2007-02-04 19:27:50 thorstenr Exp $
*
* @author       Thorsten Rinne <thorsten@phpmyfaq.de>
* @since        2002-09-17
* @copyright    (c) 2001-2007 phpMyFAQ Team
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*/

if (!defined('IS_VALID_PHPMYFAQ')) {
    header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
    exit();
}

$captcha = new PMF_Captcha($db, $sids, $pmf->language);

if (isset($_GET['gen'])) {
    $captcha->showCaptchaImg();
    exit;
}

Tracking('ask_question', 0);

$category->buildTree();

$tpl->processTemplate('writeContent', array(
    'msgQuestion'             => $PMF_LANG['msgQuestion'],
    'msgNewQuestion'          => $PMF_LANG['msgNewQuestion'],
    'writeSendAdress'         => $_SERVER['PHP_SELF'].'?'.$sids.'action=savequestion',
    'msgNewContentName'       => $PMF_LANG['msgNewContentName'],
    'msgNewContentMail'       => $PMF_LANG['msgNewContentMail'],
    'defaultContentMail'      => getEmailAddress(),
    'defaultContentName'      => getFullUserName(),
    'msgAskCategory'          => $PMF_LANG['msgAskCategory'],
    'printCategoryOptions'    => $category->printCategoryOptions(),
    'msgAskYourQuestion'      => $PMF_LANG['msgAskYourQuestion'],
    'captchaFieldset'         => printCaptchaFieldset($PMF_LANG['msgCaptcha'], $captcha->printCaptcha('ask'), $captcha->caplength),
    'msgNewContentSubmit'     => $PMF_LANG['msgNewContentSubmit']));

$tpl->includeTemplate('writeContent', 'index');