Cheetah
ChFilesModule.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbFilesModule');
9 
11 {
16  {
17  parent::__construct($aModule);
18 
19  $this->_oConfig->init($this->_oDb);
20 
21  $this->_aMemActions[] = 'download';
22  $this->aSectionsAdmin['pending'] = array(
23  'exclude_btns' => array('featured', 'unfeatured')
24  );
25  }
26 
27  function _getOriginalExt (&$aInfo, $sTmpl, $sKey = '{ext}')
28  {
29  return str_replace($sKey, sha1($aInfo['medDate']), $sTmpl);
30  }
31 
32  function actionGetFile ($sFileName)
33  {
34  $iFileId = (int)$sFileName;
35  $aInfo = $this->_oDb->getFileInfo(array('fileId'=>(int)$iFileId), false, array('medID', 'medProfId', 'medExt', 'medDate', 'Type', 'medUri'));
36  if ($aInfo && $this->isAllowedDownload($aInfo)) {
37  $sPathFull = $this->_oConfig->getHomePath() . 'data/files/' . $aInfo['medID'] . '_' . sha1($aInfo['medDate']);
38  if (file_exists($sPathFull)) {
39  header('Connection: close');
40  header('Content-Type: ' . $aInfo['Type']);
41  header('Content-Length: ' . filesize($sPathFull));
42  header('Last-Modified: ' . gmdate('r', filemtime($sPathFull)));
43  header('Content-Disposition: attachment; filename="' . $aInfo['medUri'] . '.' . $aInfo['medExt'] . '";');
44  readfile($sPathFull);
45  $this->_oDb->updateDownloadsCount($sFileUri);
46  $this->isAllowedDownload($aInfo, true);
47  exit;
48  } else {
49  $this->_oTemplate->displayPageNotFound();
50  }
51  } elseif (!$aInfo) {
52  $this->_oTemplate->displayPageNotFound();
53  } else {
54  $this->_oTemplate->displayAccessDenied();
55  }
56  }
57 
58  function isAllowedDownload (&$aFile, $isPerformAction = false)
59  {
60  if ($this->isAdmin($this->_iProfileId) || $aFile['medProfId'] == $this->_iProfileId) return true;
61  if (!$this->oPrivacy->check('download', $aFile['medID'], $this->_iProfileId))
62  return false;
63  $this->_defineActions();
64  $aCheck = checkAction($this->_iProfileId, CH_FILES_DOWNLOAD, $isPerformAction);
66  return false;
67  return true;
68  }
69 
70  function isAllowedShare(&$aDataEntry)
71  {
72  if($aDataEntry['AllowAlbumView'] != CH_WSB_PG_ALL)
73  return false;
74 
75  return true;
76  }
77 
78  function actionAlbumsViewMy ($sParamValue = '', $sParamValue1 = '', $sParamValue2 = '', $sParamValue3 = '')
79  {
80  $sAction = ch_get('action');
81  if($sAction !== false) {
82  header('Content-Type: text/html; charset=UTF-8');
83 
84  require_once('ChFilesUploader.php');
85  $oUploader = new ChFilesUploader();
86 
87  switch($sAction) {
88  case 'cancel_file':
89  echo $oUploader->serviceCancelFileInfo();
90  return;
91  case 'accept_file_info':
92  echo $oUploader->serviceAcceptFileInfo();
93  return;
94  default:
95  parent::processUpload($oUploader, $sAction);
96  return;
97  }
98  }
99  $bNotAllowView = $this->_iProfileId == 0 || !isLoggedActive();
100  $aAlbumInfo = array();
101  if (!$bNotAllowView && !empty($sParamValue1)) {
102  $aAlbumInfo = $this->oAlbums->getAlbumInfo(array('fileUri' => $sParamValue1, 'owner' => $this->_iProfileId));
103  if (!empty($aAlbumInfo))
104  $bNotAllowView = $aAlbumInfo['AllowAlbumView'] == CH_WSB_PG_HIDDEN;
105  }
106  if ($bNotAllowView) {
107  $sKey = _t('_' . $this->_oConfig->getMainPrefix() . '_access_denied');
108  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => DesignBoxContent($sKey, MsgBox($sKey), 1)), '', '', false);
109  return;
110  }
111 
112  if(is_array($_POST['entry']))
113  foreach ($_POST['entry'] as $iValue) {
114  $iValue = (int)$iValue;
115  switch (true) {
116  case isset($_POST['action_delete']):
117  $iCount = $this->_deleteAlbumUnits($iValue);
118  if ($iCount == 0)
119  $this->oAlbums->removeAlbum($iValue);
120  break;
121  case isset($_POST['action_move_to']):
122  $this->oAlbums->moveObject((int)$_POST['album_id'], (int)$_POST['new_album'], $iValue);
123  break;
124  case isset($_POST['action_delete_object']):
125  $this->_deleteFile($iValue);
126  break;
127  }
128  }
129 
130  ch_import('PageAlbumsMy', $this->_aModule);
131  $sClassName = $this->_oConfig->getClassPrefix() . 'PageAlbumsMy';
132  $oPage = new $sClassName($this, $this->_iProfileId, array($sParamValue, $sParamValue1, $sParamValue2, $sParamValue3));
133  $sCode = $oPage->getCode();
134 
135  switch($sParamValue) {
136  case 'main':
137  ch_import('PageAlbumsOwner', $this->_aModule);
138  $sClassName = $this->_oConfig->getClassPrefix() . 'PageAlbumsOwner';
139  $oPage = new $sClassName($this, array('browse', 'owner', getUsername($this->_iProfileId)));
140  $sCode .= $oPage->getCode();
141  break;
142 
143  case 'main_objects':
144  $sCode .= $this->getAlbumPageView($aAlbumInfo);
145  break;
146  }
147 
148  $GLOBALS['oTopMenu']->setCurrentProfileID($this->_iProfileId);
149  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => $sCode), '', '', false);
150  }
151 
152  function actionAlbums ($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '', $sParamValue3 = '')
153  {
154  $sCode = '';
155 
156  if($sParamName == 'browse' && $sParamValue == 'owner') {
157  $iOwnerId = getID($sParamValue1);
158  if(isBlocked($iOwnerId, getLoggedId())) {
159  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => MsgBox(_t('_sys_txt_error_you_are_blocked'))));
160  return;
161  }
162  }
163 
164  switch ($sParamName) {
165  case 'my':
166  $this->actionAlbumsViewMy($sParamValue, $sParamValue1, $sParamValue2, $sParamValue3);
167  break;
168 
169  case 'browse':
170  if ('owner' == $sParamValue) {
171  $iIdOwner = getID($sParamValue1);
172  if (!$iIdOwner) {
173  $this->_oTemplate->displayPageNotFound();
174  exit;
175  }
176  $GLOBALS['oTopMenu']->setCurrentProfileID($iIdOwner);
177  $this->aPageTmpl['header'] = _t('_' . $this->_oConfig->getMainPrefix() . '_browse_by_owner', $sParamValue1);
178  }
179 
180  default:
181  $sClassName = $this->_oConfig->getClassPrefix() . 'PageAlbumsOwner';
182  ch_import('PageAlbumsOwner', $this->_aModule);
183  $oPage = new $sClassName($this, array($sParamName, $sParamValue, $sParamValue1, $sParamValue2, $sParamValue3));
184  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => $oPage->getCode()));
185  }
186  }
187 
188  function actionBrowse ($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '', $sParamValue3 = '')
189  {
190  if ($sParamName == 'album' && $sParamValue1 == 'owner') {
191  $iOwnerId = getID($sParamValue2);
192  if(isBlocked($iOwnerId, getLoggedId())) {
193  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => MsgBox(_t('_sys_txt_error_you_are_blocked'))));
194  return;
195  }
196  }
197 
198  $bAlbumView = false;
199  if ($sParamName == 'album' && $sParamValue1 == 'owner') {
200  $bAlbumView = true;
201  $aAlbumInfo = $this->oAlbums->getAlbumInfo(array('fileUri' => $sParamValue, 'owner' => getID($sParamValue2)), array('ID', 'Caption', 'Owner', 'AllowAlbumView', 'Description'));
202  if (empty($aAlbumInfo)) {
203  $this->_oTemplate->displayPageNotFound();
204  exit;
205  } else {
206  if ($aAlbumInfo['Owner'] == $this->_iProfileId && $sParamValue2 === getUsername($this->_iProfileId)) {
207  $this->actionAlbumsViewMy('main_objects', $sParamValue, $sParamValue1, $sParamValue2, $sParamValue3);
208  return;
209  } elseif (!empty($aAlbumInfo['AllowAlbumView']) && !$this->oAlbumPrivacy->check('album_view', $aAlbumInfo['ID'], $this->_iProfileId)) {
210  $sKey = _t('_' . $this->_oConfig->getMainPrefix() . '_access_denied');
211  $sCode = DesignBoxContent($sKey, MsgBox($sKey), 1);
212  $this->aPageTmpl['header'] = $sKey;
213  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => $sCode));
214  return;
215  } else {
216  $GLOBALS['oTopMenu']->setCustomSubHeader($aAlbumInfo['Caption']);
217  }
218  }
219  }
220 
221  if ('calendar' == $sParamName) {
222  $sParamValue = (int)$sParamValue;
223  $sParamValue1 = (int)$sParamValue1;
224  $sParamValue2 = (int)$sParamValue2;
225  }
226 
227  $sClassName = $this->_oConfig->getClassPrefix() . 'Search';
228  ch_import('Search', $this->_aModule);
229  $oSearch = new $sClassName($sParamName, $sParamValue, $sParamValue1, $sParamValue2);
230  $sRss = ch_get('rss');
231  if ($sRss !== false && $sRss) {
232  $oSearch->aCurrent['paginate']['perPage'] = 10;
233  echo $oSearch->rss();
234  exit;
235  }
236 
237  $sTopPostfix = isset($oSearch->aCurrent['restriction'][$sParamName]) || $oSearch->aCurrent['sorting'] == $sParamName ? $sParamName : 'all';
238  $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_top_menu_' . $sTopPostfix);
239  if (!empty($sParamValue) && isset($oSearch->aCurrent['restriction'][$sParamName])) {
241  $oSearch->aCurrent['restriction'][$sParamName]['value'] = $sParamValue;
242  $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_browse_by_' . $sParamName, htmlspecialchars_adv(process_pass_data($sParamValue)));
243  }
244  if ($bAlbumView) {
245  $oSearch->aCurrent['restriction']['allow_view']['value'] = array($aAlbumInfo['AllowAlbumView']);
246  $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_browse_by_' . $sParamName, $aAlbumInfo['Caption']);
247  $this->_oTemplate->setPageDescription(substr(strip_tags($aAlbumInfo['Description']), 0, 255));
248  } else
249  $oSearch->aCurrent['restriction']['not_allow_view']['value'] = array(CH_WSB_PG_HIDDEN);
250 
251  if($sParamName == 'calendar') {
252  $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_caption_browse_by_day')
253  . ': ' . getLocaleDate( strtotime("{$sParamValue}-{$sParamValue1}-{$sParamValue2}")
255  }
256 
257  $oSearch->aCurrent['paginate']['perPage'] = (int)$this->_oConfig->getGlParam('number_all');
258  $sCode = $oSearch->displayResultBlock();
259  $sPaginate = '';
260  if ($oSearch->aCurrent['paginate']['totalNum'] > 0) {
261  $aAdd = array($sParamName, $sParamValue, $sParamValue1, $sParamValue2, $sParamValue3);
262  foreach ($aAdd as $sValue) {
263  if (strlen($sValue) > 0)
264  $sArg .= '/' . $sValue;
265  else
266  break;
267  }
268  $sLink = $this->_oConfig->getBaseUri() . 'browse' . $sArg;
269  $oPaginate = new ChWsbPaginate(array(
270  'page_url' => $sLink . '&page={page}&per_page={per_page}',
271  'count' => $oSearch->aCurrent['paginate']['totalNum'],
272  'per_page' => $oSearch->aCurrent['paginate']['perPage'],
273  'page' => $oSearch->aCurrent['paginate']['page'],
274  'on_change_per_page' => 'return !loadDynamicBlock(1, \'' . $sLink . '&page=1&per_page=\' + this.value);'
275  ));
276  $sPaginate = $oPaginate->getPaginate();
277  } else
278  $sCode = MsgBox(_t('_Empty'));
279  $aMenu = array();
280  $sCode = DesignBoxContent($sCaption, $sCode . $sPaginate, 1);
281  if ($bAlbumView)
282  $sCode = $this->getAlbumPageView($aAlbumInfo, $sCode);
283  $this->aPageTmpl['css_name'] = array('browse.css');
284  $this->aPageTmpl['header'] = $sCaption;
285  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => $sCode));
286  }
287 
288  function actionEdit ($iFileId)
289  {
290  $bAjax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ? TRUE : FALSE;
291  $iFileId = (int)$iFileId > 0 ? (int)$iFileId : (int)ch_get('fileId');
292  if (!$iFileId || !$bAjax) return;
293 
294  $aManageArray = array('medTitle', 'medTags', 'medDesc', 'medProfId', 'Categories', 'AllowDownload', 'medUri');
295  $aInfo = $this->_oDb->getFileInfo(array('fileId'=>$iFileId), false, $aManageArray);
296  $sLangPref = '_' . $this->_oConfig->getMainPrefix();
297 
298  if (!$this->isAllowedEdit($aInfo))
299  $sCode = MsgBox(_t($sLangPref . '_access_denied')) . $sJsCode;
300  else {
301  $oCategories = new ChWsbCategories();
302  $oCategories->getTagObjectConfig();
303  $aCategories = $oCategories->getGroupChooser($this->_oConfig->getMainPrefix(), $this->_iProfileId, true);
304  $aCategories['value'] = explode(CATEGORIES_DIVIDER, $aInfo['Categories']);
305 
306  $aAllowDownload = $this->oPrivacy->getGroupChooser($this->_iProfileId, $this->_oConfig->getUri(), 'download');
307  $aAllowDownload['value'] = $aInfo['AllowDownload'];
308  $sUrlPref = CH_WSB_URL_ROOT . $this->_oConfig->getBaseUri();
309  $aForm = array(
310  'form_attrs' => array(
311  'id' => $sLangPref . '_upload_form',
312  'method' => 'post',
313  'action' => $sUrlPref . 'edit/' . $iFileId,
314  'onsubmit' => "return ch_ajax_form_check(this)",
315  ),
316  'params' => array (
317  'db' => array(
318  'submit_name' => 'do_submit',
319  ),
320  'checker_helper' => 'ChSupportCheckerHelper',
321  ),
322  'inputs' => array(
323  'header' => array(
324  'type' => 'block_header',
325  'caption' => _t('_Info'),
326  ),
327  'title' => array(
328  'type' => 'text',
329  'name' => 'medTitle',
330  'caption' => _t('_Title'),
331  'required' => true,
332  'checker' => array (
333  'func' => 'length',
334  'params' => array(3, 128),
335  'error' => _t('_td_err_incorrect_length'),
336  ),
337  'value' => $aInfo['medTitle'],
338  ),
339  'tags' => array(
340  'type' => 'text',
341  'name' => 'medTags',
342  'caption' => _t('_Tags'),
343  'info' => _t('_Tags_desc'),
344  'value' => $aInfo['medTags']
345  ),
346  'description' => array(
347  'type' => 'textarea',
348  'name' => 'medDesc',
349  'caption' => _t('_Description'),
350  'value' => $aInfo['medDesc'],
351  ),
352  'categories' => $aCategories,
353  'AllowDownload' => $aAllowDownload,
354  'fileId' => array(
355  'type' => 'hidden',
356  'name' => 'fileId',
357  'value' => $iFileId,
358  ),
359  'medProfId' => array(
360  'type' => 'hidden',
361  'name' => 'medProfId',
362  'value' => $this->_iProfileId,
363  ),
364  'do_submit' => array(
365  'type' => 'hidden',
366  'name' => 'do_submit', // hidden submit field for AJAX submit
367  'value' => 1,
368  ),
369  'submit' => array(
370  'type' => 'submit',
371  'name' => 'submit_press',
372  'value' => _t('_Submit'),
373  'colspan' => true,
374  ),
375  ),
376  );
377  // Remove the requirement for categories if option is off.
378  if(getParam('ch_files_cat_required') == '') {
379  $aForm['inputs']['categories']['required'] = false;
380  unset($aForm['inputs']['categories']['checker']);
381  }
383  $oForm->initChecker($aInfo);
384  if ($oForm->isSubmittedAndValid()) {
385  $aValues = array();
386  array_pop($aManageArray);
387  foreach ($aManageArray as $sKey) {
388  if ($sKey != 'Categories')
389  $aValues[$sKey] = $_POST[$sKey];
390  else
391  $aValues[$sKey] = implode(CATEGORIES_DIVIDER, $_POST[$sKey]);
392  }
393  if ($this->_oDb->updateData($iFileId, $aValues)) {
394  $sType = $this->_oConfig->getMainPrefix();
395  ch_import('ChWsbCategories');
396  $oTag = new ChWsbTags();
397  $oTag->reparseObjTags($sType, $iFileId);
398  $oCateg = new ChWsbCategories();
399  $oCateg->reparseObjTags($sType, $iFileId);
400 
401  $sCode = $GLOBALS['oFunctions']->msgBox(_t($sLangPref . '_save_success'), 3, 'window.location="' . $sUrlPref . 'view/' . $aInfo['medUri'] . '";');
402  } else
403  $sCode = $GLOBALS['oFunctions']->msgBox(_t('_sys_save_nothing'));
404  } else {
405  $sCode = $this->_oTemplate->parseHtmlByName('default_padding.html', array('content' => $oForm->getCode()));
406  $sCode = $this->_oTemplate->parseHtmlByName('popup.html', array('title' => $aInfo['medTitle'], 'content' => $sCode));
407  $sCode = $GLOBALS['oFunctions']->transBox($sCode, TRUE);
408  }
409  }
410  header('Content-type:text/html;charset=utf-8');
411  echo $sCode;
412  exit;
413  }
414 
415  function serviceGetMemberMenuItem ($sIcon = 'save')
416  {
417  return parent::serviceGetMemberMenuItem ($sIcon);
418  }
419 
420  function serviceGetMemberMenuItemAddContent ($sIcon = 'save')
421  {
422  return parent::serviceGetMemberMenuItemAddContent ($sIcon);
423  }
424 
425  function serviceGetWallPost($aEvent)
426  {
427  return $this->getWallPost($aEvent, 'save', array(
428  'templates' => array(
429  'single' => 'wall_post.html',
430  'grouped' => 'wall_post_grouped.html'
431  )
432  ));
433  }
434 
435  function serviceGetWallPostOutline($aEvent)
436  {
437  return $this->getWallPostOutline($aEvent, 'save', array(
438  'templates' => array(
439  'single' => 'wall_outline.html',
440  'grouped' => 'wall_outline_grouped.html'
441  ),
442  'grouped' => array(
443  'items_limit' => 2
444  )
445  ));
446  }
447 
448  function serviceGetWallAddComment($aEvent, $aParams = array())
449  {
450  return parent::serviceGetWallAddComment($aEvent, array(
451  'templates' => array(
452  'snippet' => 'wall_post_comment.html'
453  )
454  ));
455  }
456 
457  function getInstanceUploadFormArray($aAlbums, $aPrivFieldView, $sAlbumsCaption = false, $sAlbumTitleCaption = false, $sCreateNewAlbumCaption = false)
458  {
459  $sLangPref = '_' . $this->_oConfig->getMainPrefix();
460  return parent::getInstanceUploadFormArray($aAlbums, $aPrivFieldView, _t($sLangPref . '_album'), _t($sLangPref . '_album_title'), _t($sLangPref . '_albums_add_new'));
461  }
462 
463  function actionView ($sUri) {
464  $aInfo = $this->_oDb->getFileInfo(array('fileUri' => $sUri));
465  if(isBlocked($aInfo['medProfId'], getLoggedId())) {
466  $this->_oTemplate->pageCode($this->aPageTmpl, array('page_main_code' => MsgBox(_t('_sys_txt_error_you_are_blocked'))));
467  return;
468  }
469 
470  parent::actionView($sUri);
471  }
472 
473 }
header
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
Definition: URI.MungeResources.txt:10
ChFilesModule\serviceGetMemberMenuItem
serviceGetMemberMenuItem($sIcon='save')
Definition: ChFilesModule.php:415
ChFilesModule\serviceGetWallPost
serviceGetWallPost($aEvent)
Definition: ChFilesModule.php:425
ChTemplFormView
Definition: ChTemplFormView.php:11
TRUE
URI MungeSecretKey $secret_key</pre >< p > If the output is TRUE
Definition: URI.MungeSecretKey.txt:17
ChFilesUploader
Definition: ChFilesUploader.php:14
MsgBox
MsgBox($sText, $iTimer=0)
Definition: design.inc.php:175
$sCode
$sCode
Definition: explanation.php:19
CHECK_ACTION_RESULT_ALLOWED
const CHECK_ACTION_RESULT_ALLOWED
Definition: membership_levels.inc.php:60
ChWsbFilesModule\_deleteAlbumUnits
_deleteAlbumUnits($iAlbumId)
Definition: ChWsbFilesModule.php:143
$aModule
$aModule
Definition: classifieds.php:21
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ch_get
ch_get($sName)
Definition: utils.inc.php:1664
CHECK_ACTION_RESULT
const CHECK_ACTION_RESULT
Definition: membership_levels.inc.php:54
ChWsbFilesModule\getAlbumPageView
getAlbumPageView($aInfo, $sBrowseCode='')
Definition: ChWsbFilesModule.php:1409
php
CH_WSB_PG_HIDDEN
const CH_WSB_PG_HIDDEN
Definition: ChWsbPrivacy.php:17
ChWsbTags
Definition: ChWsbTags.php:15
$oPage
$oPage
Definition: search_home.php:83
$sParamValue
$sParamValue
Definition: actions.inc.php:16
ChWsbFilesModule\getWallPostOutline
getWallPostOutline($aEvent, $sIcon='save', $aParams=array())
Definition: ChWsbFilesModule.php:2034
ChWsbCategories
Definition: ChWsbCategories.php:13
ChWsbFilesModule\isAllowedEdit
isAllowedEdit(&$aFile, $isPerformAction=false)
Definition: ChWsbFilesModule.php:1127
isLoggedActive
isLoggedActive()
Definition: profiles.inc.php:28
CATEGORIES_DIVIDER
const CATEGORIES_DIVIDER
Definition: ChWsbCategories.php:10
ChFilesModule\__construct
__construct($aModule)
Definition: ChFilesModule.php:15
ChFilesModule
Definition: ChFilesModule.php:11
$aInfo
$aInfo
Definition: constants.inc.php:21
$oForm
$oForm
Definition: host_tools.php:42
exit
exit
Definition: cart.php:21
$sType
$sType
Definition: actions.inc.php:11
ChFilesModule\actionAlbumsViewMy
actionAlbumsViewMy($sParamValue='', $sParamValue1='', $sParamValue2='', $sParamValue3='')
Definition: ChFilesModule.php:78
ChFilesModule\serviceGetMemberMenuItemAddContent
serviceGetMemberMenuItemAddContent($sIcon='save')
Definition: ChFilesModule.php:420
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
ChFilesModule\serviceGetWallPostOutline
serviceGetWallPostOutline($aEvent)
Definition: ChFilesModule.php:435
$sParamName
$sParamName
Definition: actions.inc.php:15
getLoggedId
getLoggedId()
Definition: profiles.inc.php:32
htmlspecialchars_adv
htmlspecialchars_adv($string)
Definition: utils.inc.php:302
ChWsbFilesModule
Definition: ChWsbFilesModule.php:13
getUsername
getUsername( $ID='')
Definition: profiles.inc.php:443
ChWsbFilesModule\getWallPost
getWallPost($aEvent, $sIcon='save', $aParams=array())
Definition: ChWsbFilesModule.php:1900
ChWsbPaginate
Definition: ChWsbPaginate.php:69
ChWsbFilesModule\isAdmin
isAdmin($iId=0)
Definition: ChWsbFilesModule.php:1198
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
ChWsbFilesModule\getBrowseParam
getBrowseParam($sParamName, $sParamValue)
Definition: ChWsbFilesModule.php:1473
ChFilesModule\serviceGetWallAddComment
serviceGetWallAddComment($aEvent, $aParams=array())
Definition: ChFilesModule.php:448
CH_WSB_PG_ALL
const CH_WSB_PG_ALL
Definition: ChWsbPrivacy.php:12
CH_WSB_LOCALE_DATE_SHORT
const CH_WSB_LOCALE_DATE_SHORT
Definition: utils.inc.php:15
$aMenu
$aMenu
Definition: categories.php:257
checkAction
checkAction($iMemberId, $actionID, $performAction=false, $iForcedProfID=0, $isCheckMemberStatus=true)
Definition: membership_levels.inc.php:313
ChFilesModule\actionView
actionView($sUri)
Definition: ChFilesModule.php:463
ChFilesModule\actionAlbums
actionAlbums($sParamName='', $sParamValue='', $sParamValue1='', $sParamValue2='', $sParamValue3='')
Definition: ChFilesModule.php:152
ChFilesModule\isAllowedShare
isAllowedShare(&$aDataEntry)
Definition: ChFilesModule.php:70
isBlocked
isBlocked($iFirstProfile, $iSecondProfile)
Definition: utils.inc.php:128
process_pass_data
process_pass_data($text, $strip_tags=0)
Definition: utils.inc.php:290
$iFileId
$iFileId
Definition: embed.php:12
getID
getID( $str, $with_email=1)
Definition: admin.inc.php:139
ChFilesModule\actionBrowse
actionBrowse($sParamName='', $sParamValue='', $sParamValue1='', $sParamValue2='', $sParamValue3='')
Definition: ChFilesModule.php:188
ChFilesModule\isAllowedDownload
isAllowedDownload(&$aFile, $isPerformAction=false)
Definition: ChFilesModule.php:58
$aForm
$aForm
Definition: forgot.php:43
ChWsbFilesModule\_defineActions
_defineActions()
Definition: ChWsbFilesModule.php:76
$sCaption
$sCaption
Definition: tellfriend.php:39
ChFilesModule\getInstanceUploadFormArray
getInstanceUploadFormArray($aAlbums, $aPrivFieldView, $sAlbumsCaption=false, $sAlbumTitleCaption=false, $sCreateNewAlbumCaption=false)
Definition: ChFilesModule.php:457
$sAction
$sAction
Definition: categories.php:274
DesignBoxContent
DesignBoxContent($title, $content, $db_num=0, $caption_item='', $bottom_item='')
Definition: design.inc.php:78
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
getLocaleDate
getLocaleDate($sTimestamp='', $iCode=CH_WSB_LOCALE_DATE_SHORT)
Definition: utils.inc.php:70
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10
ChWsbFilesModule\_deleteFile
_deleteFile($iFileId)
Definition: ChWsbFilesModule.php:89
ChFilesModule\actionEdit
actionEdit($iFileId)
Definition: ChFilesModule.php:288
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10
ChFilesModule\actionGetFile
actionGetFile($sFileName)
Definition: ChFilesModule.php:32
ChFilesModule\_getOriginalExt
_getOriginalExt(&$aInfo, $sTmpl, $sKey='{ext}')
Definition: ChFilesModule.php:27