<?php /* $Id$ $URL$ */ if (!isset($AppUI)) { $AppUI = new w2p_Core_CAppUI(); } require_once $AppUI->getLibraryClass('PEAR/BBCodeParser'); $bbparser = new HTML_BBCodeParser(); $filters = array('- Filters -'); if (isset($a) && $a == 'viewer') { array_push($filters, 'My Watched', 'Last 30 days'); } else { array_push($filters, 'My Forums', 'My Watched', 'My Projects', 'My Company', 'Inactive Projects'); } class CForum extends w2p_Core_BaseObject { public $forum_id = null; public $forum_project = null; public $forum_status = null; public $forum_owner = null; public $forum_name = null; public $forum_create_date = null; public $forum_last_date = null; public $forum_last_id = null; public $forum_message_count = null; public $forum_description = null; public $forum_moderated = null; public function __construct() { parent::__construct('forums', 'forum_id'); }
<?php /* $Id$ $URL$ */ require_once 'base.php'; if (!defined('W2P_BASE_DIR')) { die('You should not access this file directly'); } require_once W2P_BASE_DIR . '/includes/config.php'; require_once W2P_BASE_DIR . '/includes/main_functions.php'; require_once W2P_BASE_DIR . '/includes/db_adodb.php'; $AppUI = new w2p_Core_CAppUI(); require_once $AppUI->getLibraryClass('captcha/Functions'); $defaultTZ = w2PgetConfig('system_timezone', 'Europe/London'); $defaultTZ = '' == $defaultTZ ? 'Europe/London' : $defaultTZ; date_default_timezone_set($defaultTZ); /* CAPTCHA control condition... */ $passed = false; if (strlen($_POST['spam_check']) > 0) { $cid = md5_decrypt($_POST['cid']); if ($cid == strtoupper($_POST['spam_check'])) { $passed = true; } else { echo "<script language='javascript'>\n alert('Error: You didn\\'t provide the correct Anti Spam Security ID or all required data. Please try again.');\n history.go(-1);\n\t </script>"; exit; } } else { echo "\n <script language='javascript'>\n alert('Error: You didn\\'t provide the Anti Spam Security ID. Please try again.');\n history.go(-1);\n </script>\n "; exit; }
<?php /** * @package web2project * @subpackage output * @version $Revision$ * * As of v3.0, this class has moved from the Calendar module to its own structure. * */ if (!isset($AppUI)) { $AppUI = new w2p_Core_CAppUI(); } require_once $AppUI->getLibraryClass('PEAR/Date'); /** * Displays a configuration month calendar * * All Date objects are based on the PEAR Date package */ class w2p_Output_MonthCalendar { /**#@+ * @var Date */ public $this_month; public $prev_month; public $next_month; public $prev_year; public $next_year; /**#@-*/ /**