Cheetah
ChWsbFilesTemplate.php
Go to the documentation of this file.
1 <?php
2 
8 ch_import('ChWsbModuleTemplate');
9 ch_import('ChWsbCategories');
10 ch_import('ChTemplVotingView');
11 
13 {
17  function __construct (&$oConfig, &$oDb)
18  {
19  parent::__construct($oConfig, $oDb);
20  }
21 
22  // function of output
23  function pageCode ($aPage = array(), $aPageCont = array(), $aCss = array(), $aJs = array(), $bAdminMode = false, $isSubActions = true)
24  {
25  if (!empty($aPage)) {
26  foreach ($aPage as $sKey => $sValue)
27  $GLOBALS['_page'][$sKey] = $sValue;
28  }
29  if (!empty($aPageCont)) {
30  foreach ($aPageCont as $sKey => $sValue)
31  $GLOBALS['_page_cont'][$aPage['name_index']][$sKey] = $sValue;
32  }
33  if (!empty($aCss))
34  $this->addCss($aCss);
35  if (!empty($aJs))
36  $this->addJs($aJs);
37 
38  if ($isSubActions) {
39  $aVars = array ('BaseUri' => CH_WSB_URL_ROOT . $this->_oConfig->getBaseUri());
40  $GLOBALS['oTopMenu']->setCustomSubActions($aVars, $this->_oConfig->getMainPrefix() . '_title', false);
41  }
42 
43  if (!$bAdminMode)
44  PageCode($this);
45  else
46  PageCodeAdmin();
47  }
48 
49  function getFileInfo ($aInfo)
50  {
51  return $this->getFileAuthor($aInfo);
52  }
53 
54  function getFileAuthor ($aInfo)
55  {
56  if (empty($aInfo))
57  return '';
58  return $this->parseHtmlByName('media_info.html', array('memberPic' => get_member_thumbnail($aInfo['medProfId'], 'none', TRUE)));
59  }
60 
61  function getBasicFileInfoForm (&$aInfo, $sUrlPref = '')
62  {
63  $aForm = array(
64  'date' => array(
65  'type' => 'value',
66  'value' => getLocaleDate($aInfo['medDate'], CH_WSB_LOCALE_DATE_SHORT) . ' (' . defineTimeInterval($aInfo['medDate'], false) . ')',
67  'caption' => _t('_Date'),
68  ),
69 
70  );
71 
72  if(!empty($aInfo['Categories']))
73  $aForm['category'] = array(
74  'type' => 'value',
75  'value' => getLinkSet($aInfo['Categories'], $sUrlPref . 'browse/category/', CATEGORIES_DIVIDER),
76  'caption' => _t('_Category'),
77  );
78 
79  if(!empty($aInfo['medTags']))
80  $aForm['tags'] = array(
81  'type' => 'value',
82  'value' => getLinkSet($aInfo['medTags'], $sUrlPref . 'browse/tag/'),
83  'caption' => _t('_Tags'),
84  );
85 
86  return $aForm;
87  }
88 
89  function getCompleteFileInfoForm (&$aInfo, $sUrlPref = '')
90  {
91  return $this->getBasicFileInfoForm($aInfo, $sUrlPref);
92  }
93 
94  function getFileInfoMain (&$aInfo)
95  {
96  $sUrlPref = CH_WSB_URL_ROOT . $this->_oConfig->getBaseUri();
97  $aForm = array(
98  'form_attrs' => array('id' => $this->_oConfig->getMainPrefix() . '_upload_form'),
99  'params'=> array('remove_form'=>true),
100  'inputs' => $this->getCompleteFileInfoForm($aInfo, $sUrlPref)
101  );
103  return array($oForm->getCode(), array(), array(), false);
104  }
105 
106  function getRate ($iFile)
107  {
108  $iFile = (int)$iFile;
109  $sCode = '<center>' . _t('_rating not enabled') . '</center>';
110  $oVotingView = new ChTemplVotingView($this->_oConfig->getMainPrefix(), $iFile);
111  if ($oVotingView->isEnabled())
112  $sCode = $oVotingView->getBigVoting ();
113  return $sCode;
114  }
115 
116  function getFilePic ($iFile)
117  {
118  $aIdent = array('fileId' => (int)$iFile);
119  return $this->_oDb->getFileInfo($aIdent, true, array('medID', 'Type'));
120  }
121 
122  function getFilesBox ($aCode, $sWrapperId = '')
123  {
124  if (!is_array($aCode))
125  return '';
126  else {
127  ob_start();
128  ?>
129  <div class="searchContentBlock">
130  __code__
131  </div>
132  __paginate__
133  <?php
134  $sCode = ob_get_clean();
135  foreach ($aCode as $sKey => $sValue)
136  $sCode = str_replace('__' . $sKey . '__', $sValue, $sCode);
137  if (strlen($sWrapperId) > 0)
138  $sCode = '<div id="' . $sWrapperId . '">' . $sCode . '</div>';
139  }
140  return $sCode;
141  }
142 
143  function getAdminShort ($iNumber, $sAlbumUri, $sNickName)
144  {
145  $iNumber = (int)$iNumber;
146  $sAlbumUri = process_db_input($sAlbumUri, CH_TAGS_STRIP);
147  $sNickName = process_db_input($sNickName, CH_TAGS_STRIP);
148  $sLinkPref = $this->_oConfig->getBaseUri() . 'albums/my/';
149  $sLinkAdd = $sLinkPref . 'add_objects/' . $sAlbumUri . '/owner/' . $sNickName;
150  $sLinkBrowse = $sLinkPref . 'manage_objects/' . $sAlbumUri . '/owner/' . $sNickName;
151  $sLangPref = '_' . $this->_oConfig->getMainPrefix();
152  $aUnit = array(
153  'fileStatCount' => _t($sLangPref . '_count_info', $iNumber, $sLinkBrowse),
154  'fileStatAdd' => _t($sLangPref . '_add_info', $sLinkAdd),
155  'spec_class' => ''
156  );
157  return $this->parseHtmlByName('admin_short.html', $aUnit);
158  }
159 
160  function getAdminAlbumShort ($iNumber)
161  {
162  $iNumber = (int)$iNumber;
163  $sLinkPref = $this->_oConfig->getBaseUri() . 'albums/my/';
164  $sLinkAdd = $sLinkPref . 'add/';
165  $sLinkBrowse = $sLinkPref . 'manage/';
166  $sLangPref = '_' . $this->_oConfig->getMainPrefix() . '_albums_';
167  $aUnit = array(
168  'fileStatCount' => _t($sLangPref . 'count_info', $iNumber, $sLinkBrowse),
169  'fileStatAdd' => _t($sLangPref . 'add_info', $sLinkAdd),
170  'spec_class' => ''
171  );
172  return $this->parseHtmlByName('admin_short.html', $aUnit);
173  }
174 
175  function getSitesSetBox ($sLink)
176  {
177  require_once(CH_DIRECTORY_PATH_INC . 'shared_sites.inc.php');
178  $aSites = getSitesArray($sLink);
179  $aUnits = array();
180  foreach ($aSites as $sName => $aValue) {
181  $aUnits[] = array(
182  'icon' => $this->getIconUrl($aValue['icon']),
183  'url' => $aValue['url'],
184  'name' => $sName
185  );
186  }
187  return $this->parseHtmlByName('popup_share.html', array('ch_repeat:sites' => $aUnits));
188  }
189 
190  function getSearchForm ($aRedInputs = array(), $aRedForm = array())
191  {
192  $aForm = array(
193  'form_attrs' => array(
194  'id' => 'searchForm',
195  'action' => '',
196  'method' => 'post',
197  'enctype' => 'multipart/form-data',
198  'onsubmit' => '',
199  ),
200  'inputs' => array(
201  'keyword' => array(
202  'type' => 'text',
203  'name' => 'keyword',
204  'caption' => _t('_Keyword')
205  ),
206  'ownerName' => array(
207  'type' => 'text',
208  'name' => 'owner',
209  'caption' => _t('_Member'),
210  'attrs' => array('id'=>'ownerName')
211  ),
212  'status' => array(
213  'type' => 'select',
214  'name' => 'status',
215  'caption' => _t('_With status'),
216  'values' => array(
217  'any'=> _t('_' . $this->_oConfig->getMainPrefix() . '_any'),
218  'approved' => _t('_' . $this->_oConfig->getMainPrefix() . '_approved'),
219  'disapproved'=> _t('_' . $this->_oConfig->getMainPrefix() . '_disapproved'),
220  'pending'=> _t('_' . $this->_oConfig->getMainPrefix() . '_pending')
221  ),
222  ),
223  'search' => array(
224  'type' => 'submit',
225  'name' => 'search',
226  'value' => _t('_Search')
227  )
228  )
229  );
230  if (!empty($aRedInputs) && is_array($aRedInputs))
231  $aForm['inputs'] = array_merge($aForm['inputs'], $aRedInputs);
232  if (!empty($aRedForm) && is_array($aRedForm))
233  $aForm['form_attrs'] = array_merge($aForm['form_attrs'], $aRedForm);
235  return $oForm->getCode();
236  }
237 
238  function getHeaderCode ()
239  {
240  $aUnit = array(
241  'site_admin_url' => CH_WSB_URL_ADMIN,
242  'site_plugins' => CH_WSB_URL_PLUGINS,
243  'users_processing' => CH_WSB_URL_ROOT . $this->_oConfig->getBaseUri() . 'administration/',
244  'current_tmpl' => $GLOBALS['tmpl']
245  );
246  return $this->parseHtmlByName('media_admin_header.html', $aUnit, array('{','}'));
247  }
248 
249  function getJsTimeOutRedirect ($sUrl, $iTime = 1)
250  {
251  $aUnits['url'] = ch_js_string($sUrl);
252  $aUnits['time'] = (int)$iTime * 1000;
253  if ($aUnits['time'] <= 0)
254  $aUnits['time'] = 1000;
255  ob_start();
256  ?>
257  <script language="javascript" type="text/javascript">
258  setTimeout(function() {
259  window.location = '__url__';
260  }, __time__);
261  </script>
262  <?php
263  $sCode = ob_get_clean();
264  return $this->parseHtmlByContent($sCode, $aUnits);
265  }
266 
267  function getBrowseBlock ($sContent, $iUnitWidth, $iUnitCount, $iWishWidth = 0)
268  {
269  $iAllWidth = $iWishWidth > 0 ? $iWishWidth : (int)getParam('main_div_width');
270  $iDestWidth = getBlockWidth($iAllWidth, $iUnitWidth, $iUnitCount);
271  $aUnit = array(
272  'content' => $sContent,
273  'ch_if:dest_width' => array(
274  'condition' => $iDestWidth > 0,
275  'content' => array('width' => $iDestWidth)
276  )
277  );
278  return $this->parseHtmlByName('centered_block.html', $aUnit);
279  }
280 
281  function getExtraTopMenu ($aMenu = array(), $sUrlPrefix = CH_WSB_URL_ROOT)
282  {
283  $aUnits = array();
284  foreach ($aMenu as $aValue) {
285  $aValue['link'] = $sUrlPrefix . $aValue['link'];
286  $aUnits[] = array(
287  'ch_if:active' => array(
288  'condition' => $aValue['active'] == true,
289  'content' => $aValue
290  ),
291  'ch_if:not_active' => array(
292  'condition' => $aValue['active'] == false,
293  'content' => $aValue
294  )
295  );
296  }
297  $aUnit['ch_repeat:menu'] = $aUnits;
298  return $this->parseHtmlByName('extra_top_menu.html', $aUnit);
299  }
300 
301  function getExtraSwitcher ($aMenu = array(), $sHeadKey, $iBoxId = 1)
302  {
303  $aUnits = array();
304  foreach ($aMenu as $sName => $aItem) {
305  $aUnits[] = array(
306  'href' => $aItem['href'],
307  'name' => $sName,
308  'selected' => $aItem['active'] == true ? 'selected' : ''
309  );
310  }
311 
312  $sContent = $this->parseHtmlByName('extra_switcher.html', array(
313  'ch_repeat:options' => $aUnits,
314  'head_key' => _t($sHeadKey),
315  'block_id' => $iBoxId
316  ));
317  return $this->parseHtmlByName('designbox_top_controls.html', array('top_controls' => $sContent));
318  }
319 
320  function getAlbumFeed (&$aUnits)
321  {
322  $sItemType = $this->getItemType();
323  ob_start();
324  ?>
325  <item>
326  <title>__title__</title>
327  <media:description>__title__</media:description>
328  <link>__link__</link>
329  <media:thumbnail url="__thumb__"/>
330  <media:content <?=$sItemType?> url="__main__"/>
331  </item>
332  <?php
333  $sTempl = ob_get_clean();
334  $sCode = '';
335  if (is_array($aUnits) && !empty($aUnits)) {
336  foreach ($aUnits as $aData) {
337  $aData['link'] = CH_WSB_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aData['uri'];
338  if (!isset($aData['main']))
339  $aData['main'] = $aData['file'];
340  $sCode .= $this->parseHtmlByContent($sTempl, $aData);
341  }
342  } else
343  $sCode = _t('_Empty');
344  return $this->getRssTemplate($sCode);
345  }
346 
347  function getItemType ()
348  {
349  return '';
350  }
351 
352  function getRssTemplate ($sContent = '')
353  {
354  ob_start();
355  ?>
356  <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
357  <channel>
358  <?=$sContent?>
359  </channel>
360  </rss>
361  <?php
362  $sCode = ob_get_clean();
363 
364  return '<?xml version="1.0" encoding="utf-8" standalone="yes"?>' . $sCode;
365  }
366 
367  function getAlbumInfo (&$aInfo)
368  {
369  $aForm = array(
370  'form_attrs' => array('id' => $this->_oConfig->getMainPrefix() . '_album_view_form'),
371  'params'=> array('remove_form' => true),
372  'inputs' => array(
373  'location' => array(
374  'type' => 'value',
375  'value' => ch_linkify(process_text_output($aInfo['Location'])),
376  'caption' => _t('_Location'),
377  ),
378  'description' => array(
379  'type' => 'value',
380  'value' => ch_linkify(process_html_output($aInfo['Description'])),
381  'caption' => _t('_Description'),
382  ),
383  'date' => array(
384  'type' => 'value',
385  'value' => getLocaleDate($aInfo['Date'], CH_WSB_LOCALE_DATE_SHORT) . ' (' . defineTimeInterval($aInfo['Date'], false) . ')',
386  'caption' => _t('_Date'),
387  ),
388  )
389  );
390  $aForm['inputs'] = array_filter($aForm['inputs'], function($aInput) {
391  return !!$aInput['value'];
392  });
394  return array($oForm->getCode(), array(), array(), false);
395  }
396 
397  function getAlbumPreview ($sRssLink)
398  {
399  }
400 
401  function getAlbumFormAddArray ($aReInputs = array(), $aReForm = array())
402  {
403  $aForm = array(
404  'form_attrs' => array(
405  'id' => $this->_oConfig->getMainPrefix() . '_upload_form',
406  'method' => 'post',
407  'action' => $this->_oConfig->getBaseUri() . 'albums/my/add'
408  ),
409  'params' => array (
410  'db' => array(
411  'submit_name' => 'submit',
412  ),
413  'checker_helper' => 'ChSupportCheckerHelper',
414  ),
415  'inputs' => array(
416  'header' => array(
417  'type' => 'block_header',
418  'caption' => _t('_Info'),
419  ),
420  'title' => array(
421  'type' => 'text',
422  'name' => 'caption',
423  'caption' => _t('_Title'),
424  'required' => true,
425  'checker' => array (
426  'func' => 'length',
427  'params' => array(3, 128),
428  'error' => _t('_td_err_incorrect_length'),
429  ),
430  ),
431  'location' => array(
432  'type' => 'text',
433  'name' => 'location',
434  'caption' => _t('_Location'),
435  ),
436  'description' => array(
437  'type' => 'textarea',
438  'name' => 'description',
439  'caption' => _t('_Description'),
440  ),
441  'allow_view' => array(),
442  'owner' => array(
443  'type' => 'hidden',
444  'name' => 'owner',
445  'value' => $this->_oDb->iViewer,
446  ),
447  'submit' => array(
448  'type' => 'submit',
449  'name' => 'submit',
450  'value' => _t('_Submit'),
451  ),
452  ),
453  );
454  if (is_array($aReInputs) && !empty($aReInputs))
455  $aForm['inputs'] = array_merge($aForm['inputs'], $aReInputs);
456  if (is_array($aReForm) && !empty($aReForm))
457  $aForm['form_attrs'] = array_merge($aForm['form_attrs'], $aReForm);
458  return $aForm;
459  }
460 
461  function getAlbumFormEditArray ($aReInputs = array(), $aReForm = array())
462  {
463  $aForm = $this->getAlbumFormAddArray(array(), $aReForm);
464  if (is_array($aReInputs) && !empty($aReInputs)) {
465  foreach ($aReInputs as $sKey => $aValue) {
466  if (array_key_exists($sKey, $aForm['inputs']))
467  $aForm['inputs'][$sKey] = array_merge($aForm['inputs'][$sKey], $aValue);
468  else
469  $aForm['inputs'][$sKey] = $aValue;
470  }
471  }
472  return $aForm;
473  }
474 
475  function getJsInclude($sType = 'main', $bWrap = true)
476  {
477  $sConten = '';
478  $sBaseUrl = CH_WSB_URL_ROOT . $this->_oConfig->getBaseUri();
479 
480  switch($sType) {
481  case 'main':
482  $sConten = "var oChWsbFiles = new ChWsbFiles({sBaseUrl: '" . $sBaseUrl . "'});";
483  break;
484  }
485 
486  return $bWrap ? $this->_wrapInTagJsCode($sConten) : $sConten;
487  }
488 }
process_db_input
process_db_input($sText, $iStripTags=0)
Definition: utils.inc.php:256
ChWsbFilesTemplate\getAlbumInfo
getAlbumInfo(&$aInfo)
Definition: ChWsbFilesTemplate.php:367
ChTemplFormView
Definition: ChTemplFormView.php:11
TRUE
URI MungeSecretKey $secret_key</pre >< p > If the output is TRUE
Definition: URI.MungeSecretKey.txt:17
ChWsbFilesTemplate\getBrowseBlock
getBrowseBlock($sContent, $iUnitWidth, $iUnitCount, $iWishWidth=0)
Definition: ChWsbFilesTemplate.php:267
ch_js_string
ch_js_string($mixedInput, $iQuoteType=CH_ESCAPE_STR_AUTO)
Definition: utils.inc.php:1294
defineTimeInterval
defineTimeInterval($iTime, $bAutoDateConvert=true, $bShort=false)
Definition: utils.inc.php:831
$aUnit
$aUnit
Definition: short_profile_info.php:31
$sCode
$sCode
Definition: explanation.php:19
ChWsbFilesTemplate\getSitesSetBox
getSitesSetBox($sLink)
Definition: ChWsbFilesTemplate.php:175
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChWsbFilesTemplate\getItemType
getItemType()
Definition: ChWsbFilesTemplate.php:347
ChWsbTemplate\addCss
addCss($mixedFiles, $bDynamic=false)
Definition: ChWsbTemplate.php:1114
ChWsbTemplate\getIconUrl
getIconUrl($sName, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
Definition: ChWsbTemplate.php:569
$sUrl
$sUrl
Definition: cart.php:15
ChWsbFilesTemplate
Definition: ChWsbFilesTemplate.php:13
php
getLinkSet
getLinkSet($sLinkString, $sUrlPrefix, $sDivider=';,', $bUriConvert=false)
Definition: utils.inc.php:1438
ChWsbFilesTemplate\getAdminShort
getAdminShort($iNumber, $sAlbumUri, $sNickName)
Definition: ChWsbFilesTemplate.php:143
ChWsbFilesTemplate\getCompleteFileInfoForm
getCompleteFileInfoForm(&$aInfo, $sUrlPref='')
Definition: ChWsbFilesTemplate.php:89
ChWsbFilesTemplate\getJsInclude
getJsInclude($sType='main', $bWrap=true)
Definition: ChWsbFilesTemplate.php:475
process_html_output
process_html_output($text, $maxwordlen=100)
Definition: utils.inc.php:333
ChWsbFilesTemplate\pageCode
pageCode($aPage=array(), $aPageCont=array(), $aCss=array(), $aJs=array(), $bAdminMode=false, $isSubActions=true)
Definition: ChWsbFilesTemplate.php:23
CATEGORIES_DIVIDER
const CATEGORIES_DIVIDER
Definition: ChWsbCategories.php:10
ChWsbFilesTemplate\getSearchForm
getSearchForm($aRedInputs=array(), $aRedForm=array())
Definition: ChWsbFilesTemplate.php:190
getSitesArray
getSitesArray($sLink)
Definition: shared_sites.inc.php:25
$aInfo
$aInfo
Definition: constants.inc.php:21
ChWsbFilesTemplate\getFileInfo
getFileInfo($aInfo)
Definition: ChWsbFilesTemplate.php:49
$oForm
$oForm
Definition: host_tools.php:42
ChWsbTemplate\parseHtmlByContent
parseHtmlByContent($sContent, $aVariables, $mixedKeyWrapperHtml=null)
Definition: ChWsbTemplate.php:687
ChWsbFilesTemplate\getHeaderCode
getHeaderCode()
Definition: ChWsbFilesTemplate.php:238
$sType
$sType
Definition: actions.inc.php:11
ChWsbFilesTemplate\getAlbumFeed
getAlbumFeed(&$aUnits)
Definition: ChWsbFilesTemplate.php:320
ChWsbTemplate\_wrapInTagJsCode
_wrapInTagJsCode($sCode)
Definition: ChWsbTemplate.php:1102
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
ChWsbFilesTemplate\getFileAuthor
getFileAuthor($aInfo)
Definition: ChWsbFilesTemplate.php:54
get_member_thumbnail
get_member_thumbnail($ID, $float, $bGenProfLink=false, $sForceSex='visitor', $aOnline=array())
Definition: design.inc.php:165
ChWsbFilesTemplate\__construct
__construct(&$oConfig, &$oDb)
Definition: ChWsbFilesTemplate.php:17
$oDb
global $oDb
Definition: db.inc.php:39
type
if(!defined("USER_STATUS_TYPE")) define("USER_STATUS_TYPE" type
Definition: constants.inc.php:13
process_text_output
process_text_output($text, $maxwordlen=100)
Definition: utils.inc.php:313
PageCodeAdmin
PageCodeAdmin($oTemplate=null)
Definition: admin_design.inc.php:45
$sContent
$sContent
Definition: bottom_menu_compose.php:169
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
PageCode
PageCode($oTemplate=null)
Definition: design.inc.php:91
getBlockWidth
getBlockWidth($iAllWidth, $iUnitWidth, $iNumElements)
Definition: design.inc.php:266
ch_linkify
ch_linkify($text, $sAttrs='', $bHtmlSpecialChars=false)
Definition: utils.inc.php:1860
ChWsbFilesTemplate\getFilesBox
getFilesBox($aCode, $sWrapperId='')
Definition: ChWsbFilesTemplate.php:122
CH_WSB_LOCALE_DATE_SHORT
const CH_WSB_LOCALE_DATE_SHORT
Definition: utils.inc.php:15
$aMenu
$aMenu
Definition: categories.php:257
ChWsbFilesTemplate\getExtraSwitcher
getExtraSwitcher($aMenu=array(), $sHeadKey, $iBoxId=1)
Definition: ChWsbFilesTemplate.php:301
CH_TAGS_STRIP
const CH_TAGS_STRIP
Definition: utils.inc.php:22
ChWsbFilesTemplate\getAlbumPreview
getAlbumPreview($sRssLink)
Definition: ChWsbFilesTemplate.php:397
$aVars
$aVars
Definition: license.php:101
ChWsbFilesTemplate\getExtraTopMenu
getExtraTopMenu($aMenu=array(), $sUrlPrefix=CH_WSB_URL_ROOT)
Definition: ChWsbFilesTemplate.php:281
ChWsbFilesTemplate\getAlbumFormEditArray
getAlbumFormEditArray($aReInputs=array(), $aReForm=array())
Definition: ChWsbFilesTemplate.php:461
ChWsbTemplate\addJs
addJs($mixedFiles, $bDynamic=false)
Definition: ChWsbTemplate.php:999
ChWsbFilesTemplate\getFilePic
getFilePic($iFile)
Definition: ChWsbFilesTemplate.php:116
ChWsbFilesTemplate\getBasicFileInfoForm
getBasicFileInfoForm(&$aInfo, $sUrlPref='')
Definition: ChWsbFilesTemplate.php:61
ChWsbFilesTemplate\getAlbumFormAddArray
getAlbumFormAddArray($aReInputs=array(), $aReForm=array())
Definition: ChWsbFilesTemplate.php:401
ChWsbFilesTemplate\getAdminAlbumShort
getAdminAlbumShort($iNumber)
Definition: ChWsbFilesTemplate.php:160
ChWsbModuleTemplate
Definition: ChWsbModuleTemplate.php:11
$aForm
$aForm
Definition: forgot.php:43
ChWsbFilesTemplate\getRssTemplate
getRssTemplate($sContent='')
Definition: ChWsbFilesTemplate.php:352
version
and that you are informed that you can do these things To protect your we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it For if you distribute copies of the whether gratis or for a you must give the recipients all the rights that we gave you You must make sure that receive or can get the source code If you link other code with the you must provide complete object files to the so that they can relink them with the library after making changes to the library and recompiling it And you must show them these terms so they know their rights We protect your rights with a two step which gives you legal permission to distribute and or modify the library To protect each we want to make it very clear that there is no warranty for the free library if the library is modified by someone else and passed the recipients should know that what they have is not the original version
Definition: license.txt:55
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
ChWsbFilesTemplate\getFileInfoMain
getFileInfoMain(&$aInfo)
Definition: ChWsbFilesTemplate.php:94
$sName
$sName
Definition: ChWsbAdminTools.php:853
ChWsbTemplate\parseHtmlByName
parseHtmlByName($sName, $aVariables, $mixedKeyWrapperHtml=null, $sCheckIn=CH_WSB_TEMPLATE_CHECK_IN_BOTH)
Definition: ChWsbTemplate.php:660
ChWsbFilesTemplate\getRate
getRate($iFile)
Definition: ChWsbFilesTemplate.php:106
ChTemplVotingView
Definition: ChTemplVotingView.php:14
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10
ChWsbFilesTemplate\getJsTimeOutRedirect
getJsTimeOutRedirect($sUrl, $iTime=1)
Definition: ChWsbFilesTemplate.php:249