示例#1
0
         exit;
     }
     $sPageCaption = _t('_Unblock');
     $_page['header'] = $sPageCaption;
     $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent($sPageCaption, PageListUnBlock($iProfileId, $iTargetId), $oTemplConfig->PageListPop_db_num);
     break;
     //add to hot list
 //add to hot list
 case 'hot':
     if ($bAjxMod) {
         echo PageListHot($iProfileId, $iTargetId) . $sJQueryJS;
         exit;
     }
     $sPageCaption = _t('_sys_cnts_bcpt_fave');
     $_page['header'] = $sPageCaption;
     $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent($sPageCaption, PageListHot($iProfileId, $iTargetId), $oTemplConfig->PageListPop_db_num);
     break;
     //remove from hot list
 //remove from hot list
 case 'remove_hot':
     if ($bAjxMod) {
         echo PageListHotRemove($iProfileId, $iTargetId) . $sJQueryJS;
         exit;
     }
     $sPageCaption = _t('_sys_cnts_bcpt_fave_remove');
     $_page['header'] = $sPageCaption;
     $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent($sPageCaption, PageListHotRemove($iProfileId, $iTargetId), $oTemplConfig->PageListPop_db_num);
     break;
     //add to friends list
 //add to friends list
 case 'friend':
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
$_page['name_index'] = 44;
$logged['member'] = member_auth(0);
$sourceID = (int) $_COOKIE['memberID'];
$targetID = (int) $_GET['ID'];
$action = $_GET['action'];
$_ni = $_page['name_index'];
switch ($action) {
    case 'block':
        $_page['header'] = _t("_Block list");
        $_page_cont[$_ni]['page_main_code'] = DesignBoxContent(_t('_Block list'), PageListBlock($sourceID, $targetID), $oTemplConfig->PageListPop_db_num);
        break;
    case 'hot':
        $_page['header'] = _t('_Hot list');
        $_page_cont[$_ni]['page_main_code'] = DesignBoxContent(_t('_Hot list'), PageListHot($sourceID, $targetID), $oTemplConfig->PageListPop_db_num);
        break;
    case 'friend':
        $_page['header'] = _t('_Friend list');
        $_page_cont[$_ni]['page_main_code'] = DesignBoxContent(_t('_Friend list'), PageListFriend($sourceID, $targetID), $oTemplConfig->PageListPop_db_num);
        break;
    case 'spam':
        $_page['header'] = _t('_Spam report');
        $_page_cont[$_ni]['page_main_code'] = DesignBoxContent(_t('_Spam report'), PageListSpam($sourceID, $targetID), $oTemplConfig->PageListPop_db_num);
        break;
}
PageCode();
function PageListBlock($sourceID, $targetID)
{
    $ret = '';
    $query = "REPLACE INTO `BlockList` SET `ID` = '{$sourceID}', `Profile` = '{$targetID}';";