Exemple #1
0
protected function thisPagePreProcessing() {
        $db = _DB::_Connect();
        $this->crossInfo[_USERMANUAL::PAGELIST] = DB_USERMANUAL::_GetTitleList($db);
        if (!$this->crossInfo[_USERMANUAL::PAGELIST]) {
    $this->crossInfo[_USERMANUAL::TITLE] = "SOMETHING";
    $this->crossInfo[_USERMANUAL::CONTENT] = "Oops... Usermanual Seems To Be Empty. Blame Gregg";
    $db->disconnect();
    return;
        }
        $pageTo = _FCORE::IsSetGET(_USERMANUAL::PAGETO);
        if (!$pageTo) {
    $pageTo = $this->crossInfo[_USERMANUAL::PAGELIST][0][USERMANUAL_PAGEID];
        }
        $info = DB_USERMANUAL::_GetUserManualPage($db, $pageTo);
        if (!$info) {
    $this->crossInfo[_USERMANUAL::TITLE] = "Error Finding Page";
    $this->crossInfo[_USERMANUAL::CONTENT] = "An Error Finding The Page Seemed To Occur";
    $db->disconnect();
    return;
        }
        $this->crossInfo[_USERMANUAL::TITLE] = $info->getTitle();
        $this->crossInfo[_USERMANUAL::CONTENT] = $info->getContent();
        $db->disconnect();
    }
Exemple #2
0
<?php

session_start();
require_once '../_definitions.php';
require_once DIR_CORE_FCORE;
require_once DIR_CORE_SESSION;
require_once DIR_DATABASE_DATABASE;
_SESSION::CheckLogin();

require_once DIR_FORM_USERMANUAL_WRITING;
require_once DIR_FORM_ADMIN_PAGECREATE;
require_once DIR_HELPER_MENUANDCONTENTHELPER1;
require_once DIR_HELPER_THREADEDFORUMBUILDER;
require_once DIR_HELPER_THREADEDFORUMVIEWER;

$page = _FCORE::IsSetGET("page");
if(!$page){
    return;
}
switch($page){
    case "usermanual":
        if (_SESSION::GetIsMaster()){
            $pageID = _FCORE::IsSetPOST(USERMANUAL_PAGEID);
            if ($pageID){
                $db = _DB::_Connect();
                $pageInfo = DB_USERMANUAL::_GetUserManualPage($db, $pageID);
                echo MakeWritingForm($pageID, $pageInfo->getContent());
                $db->disconnect();
            } else {
                echo "Invalid Param";
            }
Exemple #3
0
 public function absolutePreProcessing(){
     $messageID = _FCORE::IsSetGET(MESSAGES_MESSAGEID);
     if ($messageID!=null){
         $db = _DB::_Connect();
         $this->crossInfo['message'] = DB_MESSAGE::_GetMessage($db, $messageID);
         $db->disconnect();
     }
 }