예제 #1
0
<?php

require '/Includes/XCRED.php';
$A2 = new BuildRSSClass();
$iTennantId = $_COOKIE["CCtnt"];
if (strlen($iTennantId) < 1) {
    $iTennantId = $_GET['tnt'];
}
if (strlen($iTennantId) < 1) {
    $iTennantId = $_COOKIE["tnt"];
}
$iEntityId = $_GET['eid'];
$iMsgType = $_GET['mt'];
if (strlen($iEntityId) < 1) {
    $iEntityId = $iTennantId;
    $iMsgType = 0;
}
$iCnt = 0;
$SQL = 'call spDAGetWall (' . $iTennantId . ',' . $Persist_UserId . ',' . $iEntityId . ',' . $iMsgType . ')';
//echo $SQL;
$result = mysql_query($SQL);
if (!$result == null) {
    $num_rows = mysql_num_rows($result);
    if ($num_rows > 0) {
        $sDADoc = 'var oDAWall=Array();';
        while ($row = mysql_fetch_array($result)) {
            $iTennantId = $row['TennantId'];
            $iWMID = $row['WMID'];
            $iTennantId = $row['WMID'];
            $iEntityId = $row['EntityId'];
            $iUserId = $row['UserId'];
예제 #2
0
<?php

//require 'RSSUtilities.php';
//require 'HTMLBuildClass.php';
//$A=new BuildClass();
$A2 = new BuildRSSClass();
$A2->BuildRSS('');
예제 #3
0
function fProcessSmartCode($sSmartCode, $sSmartCodeOptions)
{
    global $cr_FirstName, $cr_LastName, $cr_CompanyName, $cr_Email, $cr_Addr1, $cr_Addr2, $cr_Addr3, $cr_City, $cr_State, $cr_PostalCode, $cr_Country, $cr_PhotoURL;
    echo PHP_EOL . '<!-- Begin XPage SmartCode Process: ' . $sSmartCode . '-->' . PHP_EOL;
    switch (strtoupper($sSmartCode)) {
        case 'RSS':
            $A2 = new BuildRSSClass();
            $A2->BuildRSS($sSmartCodeOptions);
            //echo '</div>';
            break;
        case 'LOGIN':
            require 'obj_Login.php';
            break;
        case 'BLOG':
            require 'obj_Blog.php';
            break;
        case 'FIRSTNAME':
            echo $cr_FirstName;
            break;
        case 'LASTNAME':
            echo $cr_LastName;
            break;
        case 'COMPANYNAME':
            echo $cr_CompanyName;
            break;
        case 'HEADLINES':
            require 'obj_Headlines.php';
            break;
        case 'WALL':
            require 'obj_WallPost.php';
            break;
        case 'RSSBLOCKS':
            require 'obj_RSSBlocks.php';
            break;
        case 'COLLABMENU':
            require 'obj_CollabMenu.php';
            break;
        case 'WALLMESSAGES':
            //require 'Includes/obj_WallMessages.php';
            echo '<div id="MainWallMsgs"></div>';
            echo '<div style="display:none;" id="WallMsgJSON">' . $sDADoc . '</div>';
            break;
        case 'PAGE':
            require 'Includes/obj_Page.php';
            break;
    }
    echo PHP_EOL . '<!-- End XPage SmartCode Process: ' . $sSmartCode . '-->' . PHP_EOL;
}