Пример #1
0
 function ActionSharePopup($iPostId)
 {
     $iPostId = (int) $iPostId;
     if ($iPostId) {
         $sViewingPostUri = $this->_oDb->getPostUriByID($iPostId);
         $aViewingPost = array('Permalink' => $sViewingPostUri, 'Link' => $this->{$iPostId});
         $sViewingPostLink = $this->genBlogLink('show_member_post', $aUser, '', $aViewingPost);
         $sEntryUrl = $this->genBlogLink('show_member_post', $aUser, '', $aViewingPost, '', true);
         require_once BX_DIRECTORY_PATH_INC . 'shared_sites.inc.php';
         header('Content-type:text/html;charset=utf-8');
         echo getSitesHtml($sEntryUrl, _t('_Share'));
     }
     exit;
 }
Пример #2
0
 function actionSharePopup($iEntry)
 {
     header('Content-type:text/html;charset=utf-8');
     $sUri = $this->_oConfig->getUri();
     $aEntry = $this->_oDb->getEntries(array('sample_type' => 'id', 'id' => (int) $iEntry));
     if (!$aEntry) {
         echo MsgBox(_t('_' . $sUri . '_msg_no_results'));
         exit;
     }
     $sEntryUrl = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aEntry['uri'];
     require_once BX_DIRECTORY_PATH_INC . "shared_sites.inc.php";
     echo getSitesHtml($sEntryUrl);
     exit;
 }
Пример #3
0
 function actionSharePopup($iEntryId)
 {
     header('Content-type:text/html;charset=utf-8');
     $iEntryId = (int) $iEntryId;
     if (!($aDataEntry = $this->_oDb->getAdInfo($iEntryId))) {
         echo MsgBox(_t('_Empty'));
         exit;
     }
     $sEntryUrl = $this->genUrl($iEntryId, $aDataEntry['EntryUri'], 'entry');
     require_once BX_DIRECTORY_PATH_INC . "shared_sites.inc.php";
     echo getSitesHtml($sEntryUrl);
     exit;
 }
Пример #4
0
 function _actionSharePopup($iEntryId, $sTitle, $bAddTempleateExt = false)
 {
     header('Content-type:text/html;charset=utf-8');
     $iEntryId = (int) $iEntryId;
     if (!($aDataEntry = $this->_oDb->getEntryByIdAndOwner($iEntryId, 0, true))) {
         echo MsgBox(_t('_Empty'));
         exit;
     }
     $sEntryUrl = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aDataEntry[$this->_oDb->_sFieldUri];
     require_once BX_DIRECTORY_PATH_INC . "shared_sites.inc.php";
     echo getSitesHtml($sEntryUrl, $sTitle);
     exit;
 }