Viewing file: open.php (1.65 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* $Id: open.php,v 1.2.2.5.2.1 2006/03/25 11:18:21 matteo Exp $
*
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2002-09-17
* @copyright (c) 2001-2006 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['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']));
exit();
}
Tracking('open_questions', 0);
// HACK: (re)evaluate the Category object w/o passing the user language
// so the result set (the Open Uqestions) will have the Category Name
// for any of the multilanguage categories and the Category list
// on the left pane will not be affected
$tree = new Category();
$tree->transform(0);
$tpl->processTemplate ('writeContent', array(
'msgOpenQuestions' => $PMF_LANG['msgOpenQuestions'],
'msgQuestionText' => $PMF_LANG['msgQuestionText'],
'msgDate_User' => $PMF_LANG['msgDate_User'],
'msgQuestion2' => $PMF_LANG['msgQuestion2'],
'printOpenQuestions' => printOpenQuestions()
));
$tpl->includeTemplate('writeContent', 'index');
|