コード例 #1
0
ファイル: CommSyAbout.php プロジェクト: a2call/commsy
include_once 'etc/cs_config.php';
include_once 'functions/misc_functions.php';
include_once 'classes/cs_environment.php';
$environment = new cs_environment();
$text1 = ' ';
$text2 = ' ';
// only if cid is set
if (!empty($_GET['cid']) and $_GET['cid'] > 99) {
    // transform POST_VARS and GET_VARS --- move into page object, if exist
    include_once 'functions/text_functions.php';
    $_GET = encode(FROM_GET, $_GET);
    // multi master implementation
    $db = $environment->getConfiguration('db');
    if (count($db) > 1) {
        if (!empty($_COOKIE['db_pid'])) {
            $environment->setDBPortalID($_COOKIE['db_pid']);
        } elseif (!empty($_GET['db_pid'])) {
            $environment->setDBPortalID($_GET['db_pid']);
        }
    }
    // multi master implementation - END
    // set current context
    $environment->setCurrentContextID($_GET['cid']);
    // get plugins from plugins
    $text1 = plugin_hook_output_all('getTextFormatingInformationAsHTML', '', BRLF);
    if (!empty($text1)) {
        $text1 = BRLF . $text1;
    } else {
        $text1 = ' ';
    }
}