当前位置: 首页>>代码示例>>PHP>>正文


PHP getApplicationContent函数代码示例

本文整理汇总了PHP中getApplicationContent函数的典型用法代码示例。如果您正苦于以下问题:PHP getApplicationContent函数的具体用法?PHP getApplicationContent怎么用?PHP getApplicationContent使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getApplicationContent函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PageCompMainCode

/**
 * page code function
 */
function PageCompMainCode()
{
    global $oTemplConfig;
    global $logged;
    $iId = (int) $_COOKIE['memberID'];
    if ($iId > 0) {
        $sPassword = getPassword($iId);
        $bEnableRay = getParam('enable_ray') == 'on';
        $check_res = checkAction($iId, ACTION_ID_USE_RAY_CHAT);
        if ($bEnableRay && $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
            $ret .= getApplicationContent('chat', 'user', array('id' => $iId, 'password' => $sPassword));
        } else {
            // $ret .= '
            // <center>
            // <table width=100% height=100% cellpadding=0 cellspacing=0>
            // <td align=center valign=center>
            // <table width="90%" height="70" cellpadding="5" cellspacing="1" class="table">
            // <tr>
            // <td class="panel" width="100%" align="center" valign="middle">
            // <div align="center" class="small">' . $check_res[CHECK_ACTION_MESSAGE] . '</div>
            // </td>
            // </tr>
            // </table>
            // </td>
            // </table>
            // </center>';
            $ret .= MsgBox($check_res[CHECK_ACTION_MESSAGE]);
        }
        return DesignBoxContent(_t("_RAY_CHAT"), $ret, $oTemplConfig->PageCompThird_db_num);
    } else {
        return DesignBoxContent(_t('_LOGIN_ERROR'), MsgBox(_t('_Please login before using Ray chat')), 1);
    }
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:36,代码来源:chat.php

示例2: PageMainCode

function PageMainCode()
{
    global $site;
    global $member;
    $sCode = '<div id="agreement" style="text-align: center;"><div style="font-weight: bold;">' . _t("_Media upload Agreement", _t("_Music")) . '</div><div><textarea rows="20" cols="80" readonly="true">' . _t("_License Agreement", $site['url']) . '</textarea></div><div><input type="submit" id="agree" value="' . _t("_I agree") . '" onclick="document.getElementById(\'uploadForm\').style.display = \'block\'; 
	document.getElementById(\'agreement\').style.display = \'none\';""></div></div>';
    $sCode .= '<div id="uploadForm" style="text-align: center; display: none;">' . getApplicationContent('music', 'editor', array('id' => $member['ID'], 'password' => $member['Password'])) . '</div>';
    return $sCode;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:9,代码来源:uploadShareMusic.php

示例3: getFileConcept

 function getFileConcept($iFileId, $aExtra = array())
 {
     $sOverride = false;
     $oAlert = new BxDolAlerts($this->_oConfig->getMainPrefix(), 'display_player', $iFileId, getLoggedId(), array('extra' => $aExtra, 'override' => &$sOverride));
     $oAlert->alert();
     if ($sOverride) {
         return $sOverride;
     }
     $iFileId = (int) $iFileId;
     return '<div class="viewFile" style="width:100%">' . getApplicationContent('mp3', 'player', array('id' => $iFileId, 'user' => (int) $_COOKIE['memberID'], 'password' => clear_xss($_COOKIE['memberPassword'])), true) . '</div>';
 }
开发者ID:noormcs,项目名称:studoro,代码行数:11,代码来源:BxSoundsTemplate.php

示例4: getContent

 function getContent($iId)
 {
     $sPassword = $iId > 0 ? $_COOKIE['memberPassword'] : "";
     $aResult = checkAction($iId, ACTION_ID_USE_CHAT, true);
     if ($aResult[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
         $sResult = getApplicationContent('chat', 'user', array('id' => $iId, 'password' => $sPassword), true);
     } else {
         $sResult = MsgBox($aResult[CHECK_ACTION_MESSAGE]);
     }
     $sResult = DesignBoxContent(_t('_chat_box_caption'), $sResult, 11);
     return $sResult;
 }
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:12,代码来源:BxChatModule.php

示例5: getFileConcept

 function getFileConcept($iFileId, $aExtra = array())
 {
     $iFileId = (int) $iFileId;
     if (empty($aExtra['ext'])) {
         $sPlayer = getApplicationContent('video', 'player', array('id' => $iFileId, 'user' => $this->iViewer, 'password' => clear_xss($_COOKIE['memberPassword'])), true);
     } else {
         $sPlayer = str_replace("#video#", $aExtra['ext'], YOUTUBE_VIDEO_PLAYER);
         $sPlayer = str_replace("#wmode#", getWMode(), $sPlayer);
         $sPlayer = str_replace("#autoplay#", getSettingValue("video", "autoPlay") == TRUE_VAL ? "1" : "0", $sPlayer);
     }
     $iWidth = (int) $this->_oConfig->getGlParam('file_width');
     return '<div class="viewFile" style="width: ' . ($iWidth + 2) . 'px;">' . $sPlayer . '</div>';
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:13,代码来源:BxVideosTemplate.php

示例6: getMessenger

 function getMessenger($iSndId, $sSndPassword, $iRspId)
 {
     if (!empty($iSndId) && !empty($sSndPassword) && !empty($iRspId)) {
         $aResult = checkAction($iSndId, ACTION_ID_USE_MESSENGER, true);
         if ($aResult[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
             $sResult = getApplicationContent('im', 'user', array('sender' => $iSndId, 'password' => $sSndPassword, 'recipient' => $iRspId), false);
         } else {
             $sResult = MsgBox($aResult[CHECK_ACTION_MESSAGE]);
         }
     } else {
         $sResult = MsgBox(_t('_messenger_err_not_logged_in'));
     }
     return $sResult;
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:14,代码来源:BxMsgModule.php

示例7: getContent

 function getContent($iId, $iSavedId = 0)
 {
     if ($iId > 0) {
         $sPassword = $_COOKIE['memberPassword'];
         $aResult = checkAction($iId, ACTION_ID_USE_BOARD, true);
         if ($aResult[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
             $sResult = getApplicationContent('board', 'user', array('id' => $iId, 'password' => $sPassword, 'saved' => $iSavedId), true);
         } else {
             $sResult = MsgBox($aResult[CHECK_ACTION_MESSAGE]);
         }
         $sResult = DesignBoxContent(_t('_board_box_caption'), $sResult, 11);
     } else {
         $sResult = DesignBoxContent(_t('_board_box_caption'), MsgBox(_t('_board_err_not_logged_in')), 11);
     }
     return $sResult;
 }
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:16,代码来源:BxBoardModule.php

示例8: getFileConcept

 function getFileConcept($iFileId, $aExtra = array())
 {
     $sOverride = false;
     $oAlert = new BxDolAlerts($this->_oConfig->getMainPrefix(), 'display_player', $iFileId, getLoggedId(), array('extra' => $aExtra, 'override' => &$sOverride));
     $oAlert->alert();
     if ($sOverride) {
         return $sOverride;
     }
     $iFileId = (int) $iFileId;
     if (empty($aExtra['ext'])) {
         $sPlayer = getApplicationContent('video', 'player', array('id' => $iFileId, 'user' => $this->iViewer, 'password' => clear_xss($_COOKIE['memberPassword'])), true);
     } else {
         $sPlayer = str_replace("#video#", $aExtra['ext'], YOUTUBE_VIDEO_PLAYER);
         $sPlayer = str_replace("#wmode#", getWMode(), $sPlayer);
         $sPlayer = str_replace("#autoplay#", getSettingValue("video", "autoPlay") == TRUE_VAL ? "&autoplay=1" : "", $sPlayer);
     }
     return '<div class="viewFile" style="width:100%;">' . $sPlayer . '</div>';
 }
开发者ID:newton27,项目名称:dolphin.pro,代码行数:18,代码来源:BxVideosTemplate.php

示例9: PageCompMainCode

/**
 * page code function
 */
function PageCompMainCode()
{
    global $oTemplConfig;
    global $logged;
    $iId = (int) $_COOKIE['memberID'];
    if ($iId > 0) {
        $sPassword = getPassword($iId);
        $bEnableRay = getParam('enable_ray') == 'on';
        $check_res = checkAction($iId, ACTION_ID_USE_RAY_CHAT);
        if ($bEnableRay && $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
            $ret .= getApplicationContent('chat', 'user', array('id' => $iId, 'password' => $sPassword), true);
        } else {
            $ret .= MsgBox($check_res[CHECK_ACTION_MESSAGE]);
        }
        return DesignBoxContent(_t("_RAY_CHAT"), $ret, $oTemplConfig->PageCompThird_db_num);
    } else {
        return DesignBoxContent(_t('_LOGIN_ERROR'), MsgBox(_t('_Please login before using Ray chat')), 1);
    }
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:22,代码来源:chat.php

示例10: header

/***************************************************************************
*
* IMPORTANT: This is a commercial product made by BoonEx Ltd. and cannot be modified for other than personal usage.
* This product cannot be redistributed for free or a fee without written permission from BoonEx Ltd.
* This notice may not be removed from the source code.
*
***************************************************************************/
if (!isset($sRayHeaderPath)) {
    $sRayHeaderPath = "modules/global/inc/header.inc.php";
}
if (!file_exists($sRayHeaderPath)) {
    header("Location:install/index.php");
    exit;
}
$sModule = isset($sModule) ? $sModule : $_REQUEST['module'];
$sApp = isset($sApp) ? $sApp : $_REQUEST['app'];
if (file_exists($sRayHeaderPath) && !empty($sModule) && !empty($sApp)) {
    require_once $sRayHeaderPath;
    require_once $sIncPath . "content.inc.php";
    require_once $sModulesPath . $sModule . "/inc/header.inc.php";
    require_once $sModulesPath . $sModule . "/inc/constants.inc.php";
} else {
    exit;
}
$aParameters = array();
foreach ($aModules[$sApp]['parameters'] as $sParameter) {
    $aParameters[$sParameter] = isset(${$sParameter}) ? ${$sParameter} : $_REQUEST[$sParameter];
}
echo getApplicationContent($sModule, $sApp, $aParameters);
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:29,代码来源:index.php

示例11: PageCompMainCode


//.........这里部分代码省略.........
        $ret .= getMediaTabs($oMedia->sMediaType, $oMedia->aMediaConfig['enable']);
        $ret .= '</div>' . "\n";
        $ret .= '<div class="clear_both"></div>';
    }
    if ($oTemplConfig->customize['upload_media']['showAddButton']) {
        $ret .= '<div class="addNew">';
        $ret .= '<a href="javascript:void(0);" onclick="return BxShowBlock(\'addNewBlock\');">' . _t('_add_new', _t('_' . $oMedia->sMediaType . '')) . '</a>';
        $ret .= '</div>' . "\n";
    }
    //$ret .= ' Max -- [' . $oMedia -> aMediaConfig['max'][$oMedia -> sMediaType] . ']<br>';
    //$ret .= ' Med Count -- [' . $oMedia -> iMediaCount . ']<br>';
    $ret .= '<div id="addNewBlock" style="display:' . $oTemplConfig->customize['upload_media']['addNewBlock_display'] . ';">';
    if ($oMedia->iMediaCount >= $oMedia->aMediaConfig['max'][$oMedia->sMediaType]) {
        $ret .= _t_action('_too_many_files');
    } else {
        $ret .= '<form enctype="multipart/form-data" action="' . $oMedia->aMediaConfig['url']['media'] . '?show=' . $oMedia->sMediaType . '" method="post" onsubmit="return checkForm();">';
        $ret .= '<div>';
        $ret .= _t('_Title');
        $ret .= '&nbsp;(&nbsp;<span id="charCount" class="charCount">' . $oMedia->aMediaConfig['max']['mediaTitle'] . '</span>';
        $ret .= '<span class="charCount">' . _t('_characters_left') . '</span>&nbsp;)';
        $ret .= '</div>' . "\n";
        $ret .= '<div>';
        $ret .= '<input type="text" name="title" class="title" id="mediaTitle" onkeydown="return charCounter(\'mediaTitle\', ' . $oMedia->aMediaConfig['max']['mediaTitle'] . ', \'charCount\');" onkeyup="return charCounter(\'mediaTitle\', ' . $oMedia->aMediaConfig['max']['mediaTitle'] . ', \'charCount\');"  />';
        $ret .= '</div>' . "\n";
        $ret .= '<div>';
        $ret .= '<input type="file" size="34" name="' . $oMedia->sMediaType . '" class="file" />';
        $ret .= '</div>' . "\n";
        $ret .= '<div>';
        $ret .= '<input type="submit" value="' . _t('_Submit') . '">';
        $ret .= '<input type="hidden" name="media_type" value="' . $oMedia->sMediaType . '" />';
        $ret .= '<input type="hidden" name="show" value="' . $oMedia->sMediaType . '" />';
        $ret .= '<input type="hidden" name="action" value="upload" />';
        $ret .= '</div>' . "\n";
        $ret .= '</form>';
    }
    $ret .= '</div>' . "\n";
    $action = $_REQUEST['action'];
    if ($_POST['makePrim'] || isset($_POST['makePrim_x'])) {
        $action = 'makePrim';
    } elseif ($_POST['deletePhoto'] || isset($_POST['deletePhoto_x'])) {
        $action = 'deletePhoto';
    }
    $iPhotoID = (int) $_REQUEST['photoID'];
    $iMediaID = (int) $_REQUEST['mediaID'];
    switch ($action) {
        case 'upload':
            $ret .= $oMedia->uploadMedia();
            header('Location:' . $_SERVER['PHP_SELF'] . '?show=' . $oMedia->sMediaType);
            break;
        case 'makePrim':
            $ret .= $oMedia->makePrimPhoto($iPhotoID);
            header('Location:' . $_SERVER['PHP_SELF'] . '?show=' . $oMedia->sMediaType);
            break;
        case 'deletePhoto':
            $ret .= $oMedia->deleteMedia($iPhotoID);
            header('Location:' . $_SERVER['PHP_SELF'] . '?show=' . $oMedia->sMediaType);
            break;
        case 'delete':
            $ret .= $oMedia->deleteMedia($iMediaID);
            header('Location:' . $_SERVER['PHP_SELF'] . '?show=' . $oMedia->sMediaType);
            break;
    }
    switch ($show) {
        case 'audio':
            if ($enable_audio_upload) {
                $ret .= $oMedia->getMediaPage();
            } else {
                $ret .= '';
            }
            break;
        case 'video':
            if ($enable_video_upload) {
                $ret .= $oMedia->getMediaPage();
                //------------------ Ray Integration ------------------//
                $ret .= '<div class="clear_both"></div>';
                $ret .= '<div class="addNew"><center>';
                if (widgetExists('video')) {
                    $sRayHeaderPath = $dir['root'] . "ray/inc/header.inc.php";
                    $iId = (int) $_COOKIE['memberID'];
                    $sPassword = getPassword($iId);
                    $ret .= getApplicationContent('video', 'recorder', array('id' => $iId, 'password' => $sPassword));
                }
                $ret .= '</center></div>';
                //------------------ Ray Integration ------------------//
            } else {
                $ret .= '';
            }
            break;
        case 'photo':
        default:
            if ($_REQUEST['photoID']) {
                $iPhotoId = (int) $_REQUEST['photoID'];
                $ret .= $oMedia->getMediaPage($iPhotoId);
            } else {
                $ret .= $oMedia->getMediaPage();
            }
            break;
    }
    return $ret;
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:101,代码来源:upload_media.php

示例12: getEmbedCode

/**
 * Gets the embed code of necessary widget's application.
 * @param sModule - module(widget) name.
 * @param sApp - application name in the widget.
 * @param aParamValues - an associative array of parameters to be passed into the Flash object.
 */
function getEmbedCode($sModule, $sApp, $aParamValues)
{
    return getApplicationContent($sModule, $sApp, $aParamValues, true, true);
}
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:10,代码来源:content.inc.php

示例13: getBlockCode_Shoutbox

 function getBlockCode_Shoutbox()
 {
     $sPassword = getPassword($this->iMemberID);
     return getApplicationContent('shoutbox', 'user', array('id' => $this->iMemberID, 'password' => $sPassword), true);
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:5,代码来源:BxDolPageView.php

示例14: getRecordFormFile

 function getRecordFormFile()
 {
     $sCustomRecorderObject = getApplicationContent('mp3', 'recorder', array('user' => $this->_getAuthorId(), 'password' => $this->_getAuthorPassword(), 'extra' => ''), true);
     return $this->_getRecordFormFile($sCustomRecorderObject);
 }
开发者ID:noormcs,项目名称:studoro,代码行数:5,代码来源:BxSoundsUploader.php

示例15: showFile

 function showFile($iFile)
 {
     $iFile = (int) $iFile;
     $sCode = '';
     switch ($this->sType) {
         case 'photo':
             $aFile = $this->getFileInfo($iFile);
             $sImage = $this->sFilesUrl . $iFile . '_m.' . $aFile[$this->aTableFields['medExt']];
             $sCode = '<div id="viewFile" style="background-image: url(\'' . $sImage . '\')">&nbsp;</div>';
             break;
         case 'music':
             $sCode = '<div class="viewFile" style="text-align:center;">' . getApplicationContent('music', 'player', array('id' => $iFile, 'password' => $this->sViewerPass, 'vId' => $this->iViewer, 'song' => 'true'), true) . '</div>';
             break;
         case 'video':
             $sCode = '<div class="viewFile" style="text-align:center;">' . getApplicationContent('movie', 'player', array('id' => $iFile, 'file' => 'true'), true) . '</div>';
             break;
     }
     return $sCode;
 }
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:19,代码来源:BxDolSharedMedia.php


注:本文中的getApplicationContent函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。