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


PHP PageCompPageMainCode函数代码示例

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


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

示例1: member_auth

* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
require_once 'inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'modules.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'tags.inc.php';
// --------------- page variables and login
$_page['name_index'] = 36;
$_page['css_name'] = 'change_status.css';
$logged['member'] = member_auth(0);
$_page['header'] = _t("_CHANGE_STATUS_H");
$_page['header_text'] = _t("_CHANGE_STATUS_H1", $site['title']);
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $dir;
    $member['ID'] = (int) $_COOKIE['memberID'];
    ob_start();
    $p_arr = getProfileInfo($member['ID']);
    if ($_POST['CHANGE_STATUS']) {
        switch ($_POST['CHANGE_STATUS']) {
            case 'SUSPEND':
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:change_status.php

示例2: member_auth

require_once BX_DIRECTORY_PATH_INC . 'prof.inc.php';
$logged['admin'] = member_auth(1, true, true);
$_page['extraCodeInHead'] = <<<EOJ
<script type="text/javascript" src="{$site['plugins']}jquery/jquery.js"></script>
EOJ;
$aFields = array('Value' => _t('_adm_pvalues_help_value'), 'LKey' => _t('_adm_pvalues_help_lkey'), 'LKey2' => _t('_adm_pvalues_help_lkey2'));
if (bx_get('popup') !== false && (int) bx_get('popup') == 1) {
    $iAmInPopup = true;
    $iNameIndex = 17;
    $_page = array('name_index' => $iNameIndex, 'css_name' => array('predefined_values.css'), 'js_name' => array(), 'header' => _t('_adm_page_cpt_pvalues_manage'), 'header_text' => _t('_adm_box_cpt_pvalues_manage'));
    $_page_cont[$iNameIndex]['page_main_code'] = PageCompPageMainCode();
} else {
    $iAmInPopup = false;
    $iNameIndex = 0;
    $_page = array('name_index' => $iNameIndex, 'css_name' => array('forms_adv.css', 'predefined_values.css'), 'js_name' => array(), 'header' => _t('_adm_page_cpt_pvalues_manage'), 'header_text' => _t('_adm_box_cpt_pvalues_manage'));
    $_page_cont[$iNameIndex]['page_main_code'] = PageCompPageMainCode();
}
PageCodeAdmin();
function PageCompPageMainCode()
{
    global $iAmInPopup;
    global $aFields;
    $sPopupAdd = $iAmInPopup ? '&popup=1' : '';
    $sResultMsg = '';
    if (isset($_POST['action']) and $_POST['action'] == 'Save' and isset($_POST['PreList']) and is_array($_POST['PreList'])) {
        if (true === saveList($_POST['list'], $_POST['PreList'])) {
            $sResultMsg = _t('_Success');
        } else {
            $sResultMsg = _t('_Failed to apply changes');
        }
    }
开发者ID:gorenc,项目名称:dolphin.pro,代码行数:31,代码来源:preValues.php

示例3: _t

/**
 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */
require_once 'inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
require_once BX_DIRECTORY_PATH_CLASSES . 'BxDolEmailTemplates.php';
// --------------- page variables and login
$_page['name_index'] = 44;
$_page['css_name'] = 'freemail.css';
$_page['header'] = _t("_FREEMAIL_H");
$logged['member'] = member_auth(0, false);
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = DesignBoxContent($_page['header'], PageCompPageMainCode(), 1);
$_page_cont[$_ni]['body_onload'] = '';
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $_page;
    //define ajax mode
    $bAjxMod = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ? true : false;
    $member['ID'] = getLoggedId();
    if (!isset($_POST['ID'])) {
        return _t_err("_No member specified");
开发者ID:Prashank25,项目名称:dolphin.pro,代码行数:31,代码来源:freemail.php

示例4: member_auth

$logged['member'] = member_auth(0);
$_page['header'] = 'Messages';
$_page['header_text'] = _t("_INBOX_H1");
// this is dynamic page -  send headers to do not cache this page
send_headers_page_changed();
$preview_length = 45;
// --------------- page components
$_ni = $_page['name_index'];
if ($_GET['action'] == 'delete') {
    $mes_id = (int) $_GET['message'];
    $delete_query = "DELETE FROM `Messages` WHERE `ID` = '{$mes_id}'";
    if (db_res($delete_query)) {
        $_page_cont[$_ni]['page_main_code'] = DesignBoxContent('', PageMessageDeleted(), $oTemplConfig->PageMessagesInboxMessageDeleted_db_num);
    }
} elseif ($_GET['message'] != 0) {
    $_page_cont[$_ni]['page_main_code'] = DesignBoxContent('', PageCompPageMainCode(), $oTemplConfig->PageMessagesInboxMainCode_db_num);
    db_res("UPDATE `Messages` SET `New` = '0' WHERE `ID` = '" . (int) $_GET['message'] . "'");
} else {
    echo '<script type="text/javascript">location.href=\'mail.php?mode=inbox\';</script>';
}
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    global $short_date_format;
    $messageID = (int) $_GET['message'];
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:messages_inbox.php

示例5: member_auth

        position: relative;
    }
</style>
{$sCommentsBlock}
EOF;
    }
    exit;
}
// --------------- page variables and login
$_page['name_index'] = 36;
$logged['member'] = member_auth(0);
$_page['header'] = _t("_CHANGE_STATUS_H");
$_page['header_text'] = _t("_CHANGE_STATUS_H1", $site['title']);
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode($iLoggedID);
// --------------- [END] page components
$GLOBALS['oTopMenu']->setCustomSubHeader(_t("_CHANGE_STATUS_H"));
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompPageMainCode($iLoggedID)
{
    $member['ID'] = (int) $iLoggedID;
    $p_arr = getProfileInfo($member['ID']);
    if ($_POST['CHANGE_STATUS']) {
        $sStatus = "";
        switch ($_POST['CHANGE_STATUS']) {
            case 'SUSPEND':
开发者ID:Gotgot59,项目名称:dolphin.pro,代码行数:31,代码来源:change_status.php

示例6: bx_get

require_once BX_DIRECTORY_PATH_INC . 'utils.inc.php';
require_once BX_DIRECTORY_PATH_CLASSES . 'BxDolEmailTemplates.php';
// --------------- page variables
$_page['name_index'] = 40;
$_page['css_name'] = 'profile_activate.css';
$ID = bx_get('ConfID');
$ConfCode = bx_get('ConfCode');
if (!$ID && !$ConfCode) {
    exit;
}
$logged['member'] = member_auth(0, false);
$_page['header'] = _t("_Email confirmation");
$_page['header_text'] = _t("_Email confirmation Ex");
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode($ID, $ConfCode);
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompPageMainCode($iID, $sConfCode)
{
    global $site;
    $ID = (int) $iID;
    $ConfCode = clear_xss($sConfCode);
    $p_arr = getProfileInfo($ID);
    if (!$p_arr) {
        $_page['header'] = _t("_Error");
        $_page['header_text'] = _t("_Profile Not found");
开发者ID:dalinhuang,项目名称:shopexts,代码行数:31,代码来源:profile_activate.php

示例7: member_auth

$logged['admin'] = member_auth(1, true, true);
$_page['css_name'] = 'preValues.css';
$_page['header'] = 'Predefined Lists';
$_page['extraCodeInHead'] = <<<EOJ
<script type="text/javascript" src="{$site['plugins']}jquery/jquery.js"></script>
EOJ;
$aFields = array('Value' => 'The value stored in the database', 'LKey' => 'Primary language key used for displaying', 'LKey2' => 'Secondary language key used for displaying in some other places', 'LKey3' => 'Miscelaniuos language key used for displaying in some other places.', 'Extra' => 'Extra parameter. Used for example as link to profile image for Sex list.', 'Extra2' => 'Miscelanious extra parameter', 'Extra3' => 'Miscelanious extra parameter');
if (isset($_REQUEST['popup']) and $_REQUEST['popup'] == 1) {
    $iAmInPopup = true;
    TopCodeAdminPopup();
    PageCompPageMainCode();
    BottomCodeAdminPopup();
} else {
    $iAmInPopup = false;
    TopCodeAdmin();
    PageCompPageMainCode();
    BottomCode();
}
function PageCompPageMainCode()
{
    global $iAmInPopup;
    global $aFields;
    $sPopupAdd = $iAmInPopup ? '&popup=1' : '';
    if (isset($_POST['action']) and $_POST['action'] == 'Save' and isset($_POST['PreList']) and is_array($_POST['PreList'])) {
        saveList($_POST['list'], $_POST['PreList']);
        return;
    }
    //get lists
    $aLists = array('' => '- Select -');
    $sQuery = "SELECT DISTINCT `Key` FROM `PreValues`";
    $rLists = db_res($sQuery);
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:preValues.php

示例8: _t

* See the Creative Commons Attribution 3.0 License for more details. 
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, 
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
require_once 'inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
// --------------- page variables and login
//$_page['name_index'] 	= 38;
$_page['name_index'] = 44;
$_page['css_name'] = 'freemail.css';
$_page['header'] = _t("_FREEMAIL_H");
$logged['member'] = member_auth(0, false);
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = DesignBoxContent($_page['header'], PageCompPageMainCode(), $oTemplConfig->PageFreeMailPop_db_num);
$_page_cont[$_ni]['body_onload'] = '';
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $_page;
    $member['ID'] = (int) $_COOKIE['memberID'];
    if (!$_REQUEST['ID']) {
        return _t_err("_No member specified");
    }
    $ID = getID($_REQUEST['ID'], 0);
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:freemail.php

示例9: _t

$al_gallery .= ">";
$ai_gallery = $al_gallery . $ai_gallery . "</a>";
$al_gallery .= _t("_view as photo gallery") . "</a>";
$ai_profiles = "<img alt=\"" . _t("_view as profile details") . "\" name=is02 src=\"{$site['images']}search_profiles.gif\" border=0>";
$al_profiles = "<a href=\"search_result.php{$get_vars}gallery_view=0\" ";
if ($pa_icon_preload) {
    $al_profiles .= "onMouseOver=\"javascript: is02.src='{$site['images']}search_profiles2.gif';\"";
    $al_profiles .= "onMouseOut =\"javascript: is02.src='{$site['images']}search_profiles.gif';\"";
}
$al_profiles .= ">";
$ai_profiles = $al_profiles . $ai_profiles . "</a>";
$al_profiles .= _t("_view as profile details") . "</a>";
// --------------- GET/POST actions [ END ]
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = $p_num ? PageCompPageMainCode() : PageCompNoResults();
$_page_cont[$_ni]['sorting'] = $p_num > 1 ? PageCompSorting() : "";
$_page_cont[$_ni]['page_navigation'] = $pages_num > 1 ? PageCompNavigation('First') : "";
$_page_cont[$_ni]['page_navigation_short'] = $pages_num > 1 ? PageCompNavigationShort('FirstShort') : "";
$_page_cont[$_ni]['page_navigation2'] = $pages_num > 1 ? PageCompNavigation('Second') : "";
$_page_cont[$_ni]['page_navigation_short2'] = $pages_num > 1 ? PageCompNavigationShort('SecondShort') : "";
$_page_cont[$_ni]['add_to_header'] = $add_to_header;
$_page_cont[$_ni]['row_spacer'] = $row_spacer;
$_page_cont[$_ni]['ai_gallery'] = $ai_gallery;
$_page_cont[$_ni]['ai_profiles'] = $ai_profiles;
$_page_cont[$_ni]['db_color'] = $search_result_db_color;
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * Place HTML code for Sorting
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:search_result.php

示例10: db_arr

    $membershipID = (int) $memtype_arr[0];
    $membershipNumOfDays = (int) $memtype_arr[1];
    $arr = db_arr("SELECT * FROM `members_as_aff` WHERE `MID` = '{$membershipID}' AND `num_of_days` = '{$membershipNumOfDays}' AND `num_of_mem` <= '{$affnum_arr['aff_num']}' LIMIT 1");
    if ($arr) {
        setMembership($member['ID'], $arr['MID'], $arr['num_of_days']);
        $membership_info = getMembershipInfo($arr['MID']);
        db_res("UPDATE `Profiles` SET `aff_num` = `aff_num` - {$arr['num_of_mem']} WHERE `ID` = '{$member['ID']}'");
        createUserDataFile($member['ID']);
        $upgrade_out = "\r\n\t\t\t<table align=center width=\"400\" class=\"text\">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t\t" . _t("_Got_new_membership_part_1") . $membership_info['Name'] . _t("_Got_new_membership_part_2") . $arr['num_of_days'] . _t("_Got_new_membership_part_3") . "\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</table>";
    } else {
        $upgrade_out = "";
    }
}
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = $_POST['upgrade'] == 'YES' && strlen($upgrade_out) ? $upgrade_out : PageCompPageMainCode();
// --------------- [END] page components
PageCode();
// --------------- page components functions
function PageCompPageMainCode()
{
    global $affnum_arr;
    global $levels_res;
    ob_start();
    ?>

<form action=<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
 method="post">
	<input type=hidden name=upgrade value=YES>
开发者ID:BackupTheBerlios,项目名称:dolphin-dwbn-svn,代码行数:31,代码来源:getmem.php


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