Cheetah
ChAdsSearchUnit.php
Go to the documentation of this file.
1 <?php
2 
8 require_once(CH_DIRECTORY_PATH_INC . 'header.inc.php' );
9 ch_import('ChTemplSearchResultText');
10 
12 {
14  var $sHomeUrl;
15 
16  var $sUploadDir = 'media/images/classifieds/';
18 
19  var $aCurrent = array(
20  'name' => 'ads',
21  'title' => '_ch_ads_Ads',
22  'table' => 'ch_ads_main',
23  'ownFields' => array('ID', 'IDProfile', 'IDClassifiedsSubs', 'DateTime', 'LifeTime', 'Subject', 'EntryUri', 'Message', 'CustomFieldValue1', 'CustomFieldValue2', 'Media', 'Tags', 'Status', 'Rate', 'RateCount', 'CommentsCount'),
24  'searchFields' => array('Subject', 'Message', 'Tags', 'City'),
25  'join' => array(
26  'subcategory' => array(
27  'type' => 'inner',
28  'table' => 'ch_ads_category_subs',
29  'mainField' => 'IDClassifiedsSubs',
30  'onField' => 'ID',
31  'joinFields' => array('NameSub', 'SEntryUri', 'ID')
32  ),
33  'category' => array(
34  'type' => 'inner',
35  'table' => 'ch_ads_category',
36  'mainTable' => 'ch_ads_category_subs',
37  'mainField' => 'IDClassified',
38  'onField' => 'ID',
39  'joinFields' => array('Name', 'CEntryUri', 'ID', 'Unit1', 'Unit2', 'CustomFieldName1', 'CustomFieldName2')
40  ),
41  'profiles' => array(
42  'type' => 'inner',
43  'table' => 'Profiles',
44  'mainTable' => 'ch_ads_main',
45  'mainField' => 'IDProfile',
46  'onField' => 'ID',
47  'joinFields' => array()
48  )
49  ),
50  'restriction' => array(
51  'activeStatus' => array('value'=>'active', 'field'=>'Status', 'operator'=>'='),
52  'status' => array('value'=>'', 'field'=>'Status', 'operator'=>'='),
53  'featuredStatus' => array('value'=>'', 'field'=>'Featured', 'operator'=>'='),
54  'owner' => array('value'=>'', 'field'=>'IDProfile', 'operator'=>'=', 'table' => 'ch_ads_main'),
55  'tag' => array('value'=>'', 'field'=>'Tags', 'operator'=>'like'),
56  'categoryID'=> array('value'=>'', 'field'=>'ID', 'operator'=>'=', 'table' => 'ch_ads_category'),
57  'subcategoryID'=> array('value'=>'', 'field'=>'ID', 'operator'=>'=', 'table' => 'ch_ads_category_subs'),
58  'id'=> array('value'=>'', 'field'=>'ID', 'operator'=>'='),
59  'country'=> array('value'=>'', 'field'=>'Country', 'operator'=>'=', 'table' => 'ch_ads_main'),
60  'message_filter'=> array('value'=>'', 'field'=>'Subject', 'operator'=>'like'),
61  'today'=> array('value'=>'', 'field'=>'ID', 'operator'=>'=', 'table' => 'ch_ads_category'),
62  'allow_view' => array('value'=>'', 'field'=>'AllowView', 'operator'=>'in', 'table'=> 'ch_ads_main'),
63  ),
64  'paginate' => array('perPage' => 4, 'page' => 1, 'totalNum' => 10, 'totalPages' => 1),
65  'sorting' => 'last',
66  'custom_filter1' => '',
67  'custom_filter2' => '',
68  'second_restr' => '',
69  'third_restr' => ''
70  );
71 
74 
75  function __construct()
76  {
77  $oMain = $this->getAdsMain();
78 
79  $this->sHomePath = $oMain->_oConfig->getHomePath();
80  $this->sHomeUrl = $oMain->_oConfig->getHomeUrl();
81 
82  $this->aPermalinks = array(
83  'param' => 'permalinks_module_ads',
84  'enabled' => array(
85  'file' => 'ads/entry/{uri}',
86  'category' => 'ads/cat/{uri}',
87  'subcategory' => 'ads/subcat/{uri}',
88  'tag' => 'ads/tag/{uri}',
89  'browseAll' => 'ads/',
90  'admin_file' => 'ads/entry/{uri}',
91  'admin_category' => 'ads/cat/{uri}',
92  'admin_subcategory' => 'ads/subcat/{uri}',
93  'admin_tag' => 'ads/tag/{uri}',
94  'admin_browseAll' => 'ads/'
95  ),
96  'disabled' => array(
97  'file' => 'classifieds.php?ShowAdvertisementID={id}',
98  'category' => 'classifieds.php?bClassifiedID={id}',
99  'subcategory' => 'classifieds.php?bSubClassifiedID={id}',
100  'tag' => 'classifieds_tags.php?tag={uri}',
101  'browseAll' => 'classifieds.php',
102  'admin_file' => 'classifieds.php?ShowAdvertisementID={id}',
103  'admin_category' => 'classifieds.php?bClassifiedID={id}',
104  'admin_subcategory' => 'classifieds.php?bSubClassifiedID={id}',
105  'admin_tag' => 'classifieds_tags.php?tag={uri}',
106  'admin_browseAll' => 'classifieds.php'
107  )
108  );
109 
110  $this->bShowCheckboxes = false;
111 
112  parent::__construct();
113 
114  $this->sSelectedUnit = 'unit_ads';
115  }
116 
117  function getAdsMain()
118  {
119  return ChWsbModule::getInstance('ChAdsModule');
120  }
121 
122  function getCurrentUrl($sType, $iId, $sUri, $aOwner = '')
123  {
124  if (isAdmin()) {
125  $sType = 'admin_' . $sType;
126  }
127 
128  $bUseFriendlyLinks = getParam('permalinks_module_ads') == 'on' ? true : false;
129  $sPath = ($bUseFriendlyLinks) ? CH_WSB_URL_ROOT : $this->sHomeUrl;
130 
131  $sLink = $this->aConstants['linksTempl'][$sType];
132 
133  $sLink = str_replace('{id}', $iId, $sLink);
134  $sLink = str_replace('{uri}', $sUri, $sLink);
135  if (is_array($aOwner) && !empty($aOwner)) {
136  $sLink = str_replace('{ownerName}', $aOwner['ownerName'], $sLink);
137  $sLink = str_replace('{ownerId}', $aOwner['ownerId'], $sLink);
138  }
139 
140  return $sPath . $sLink;
141  }
142 
143  function getRestriction()
144  {
145  $sWhereSQL = parent::getRestriction();
146 
147  $oMain = $this->getAdsMain();
148 
149  if (isset($this->aCurrent['third_restr']) && $this->aCurrent['third_restr'] != '') {
150  $sWhereSQL .= " AND {$this->aCurrent['third_restr']} ";
151  }
152 
153  if (isset($this->aCurrent['custom_filter1']) && $this->aCurrent['custom_filter1'] != '') {
154  $sWhereSQL .= " AND {$this->aCurrent['custom_filter1']} ";
155  }
156 
157  if (isset($this->aCurrent['custom_filter2']) && $this->aCurrent['custom_filter2'] != '') {
158  $sWhereSQL .= " AND {$this->aCurrent['custom_filter2']} ";
159  }
160 
161  $bSpec = isAdmin();
162  $sSign = "<";
163  $sTimeCheck = " AND UNIX_TIMESTAMP() - `{$oMain->_oConfig->sSQLPostsTable}`.`LifeTime`*24*60*60 __sign__ `{$oMain->_oConfig->sSQLPostsTable}`.`DateTime`";
164  switch($this->aCurrent['second_restr']) {
165  case 'expired':
166  $sSign = ">";
167  $bSpec = FALSE;
168  break;
169  case 'manage':
170  $sSign = "<";
171  $bSpec = FALSE;
172  break;
173  case 'outtime':
174  $sTimeCheck = "";
175  break;
176  }
177  if (!$bSpec)
178  $sWhereSQL .= str_replace('__sign__', $sSign, $sTimeCheck);
179  return $sWhereSQL;
180  }
181 
182  function displayResultBlock ($bWrap = true)
183  {
184  $sCode = null;
185  $aData = $this->getSearchData();
186  if (is_array($aData) && count($aData) > 0) {
187  $sCode .= $this->addCustomParts();
188  foreach ($aData as $iKey => $aValue) {
189  $sCode .= $this->displaySearchUnit($aValue);
190  }
191  }
192 
193  if ($sCode) {
194  if ($bWrap)
195  $sCode = $GLOBALS['oSysTemplate']->parseHtmlByName('default_padding.html', array('content' => $sCode));
196  $sCode .= ChWsbService::call('ads', 'get_common_css', array(true));
197  }
198 
199  return $sCode;
200  }
201 
202  function displaySearchUnit($aResSQL)
203  {
205 
206  $sFromC = _t('_Added by');
207 
208  $oMain = $this->getAdsMain();
209 
210  $iAdID = (int)$aResSQL['id'];
211 
212  $bPossibleToView = $oMain->oPrivacy->check('view', $iAdID, $oMain->_iVisitorID);
213  if (! $bPossibleToView) return $oMain->_oTemplate->parseHtmlByName('browse_unit_private.html', array('extra_css_class' => ''));
214 
215  $iOwnerID = (int)$aResSQL['ownerId'];
216  $sOwnerName = getNickname($iOwnerID);
217  $sOwnerLink = getProfileLink($iOwnerID);
218 
219  $sTimeAgo = defineTimeInterval($aResSQL['date']);
220 
221  $sVotePostRating = '';
222  if (!is_null($this->oRate) && $this->oRate->isEnabled())
223  $sVotePostRating = $this->oRate->getJustVotingElement(0, 0, $aResSQL['Rate']);
224 
225  $iCatID = (int)$aResSQL['categoryId'];
226  $iSubCatID = (int)$aResSQL['subcategoryId'];
227 
228  $sAdTitle = process_text_output($aResSQL['title']);
229 
230  $sEntryUri = process_text_output($aResSQL['uri']);
231  $sAdUrl = $this->genUrlX($iAdID, $sEntryUri);
232 
233  $sCustomVal1 = process_text_output($aResSQL['CustomFieldValue1']);
234  $sCustomVal2 = process_text_output($aResSQL['CustomFieldValue2']);
235  $sCustomName1 = process_text_output($aResSQL['CustomFieldName1']);
236  $sCustomName2 = process_text_output($aResSQL['CustomFieldName2']);
237  $sUnit1 = process_text_output($aResSQL['Unit1']);
238  $sUnit2 = process_text_output($aResSQL['Unit2']);
239  $sCustomStyle1 = $sCustomStyle2 = '';
240  $sCustomStyle1 = ($sCustomVal1!='') ? '' : 'display:none;';
241  $sCustomStyle2 = ($sCustomVal2!='') ? '' : 'display:none;';
242 
243  $sCategUri = process_text_output($aResSQL['categoryUri']);
244  $sSubCategUri = process_text_output($aResSQL['subcategoryUri']);
245  $sCategName = process_text_output($aResSQL['categoryName']);
246  $sSubCategName = process_text_output($aResSQL['subcategoryName']);
247 
248  $sCEntryUri = htmlspecialchars($aResSQL['categoryUri']);
249  $sSEntryUri = htmlspecialchars($aResSQL['subcategoryUri']);
250  $oMain = $this->getAdsMain();
251  $sCategUrl = ($oMain->_oConfig->bUseFriendlyLinks) ? CH_WSB_URL_ROOT . 'ads/cat/'.$sCEntryUri : "{$oMain->_oConfig->sCurrBrowsedFile}?bClassifiedID={$iCatID}";
252  $sSubCategUrl = ($oMain->_oConfig->bUseFriendlyLinks) ? CH_WSB_URL_ROOT . 'ads/subcat/'.$sSEntryUri : "{$oMain->_oConfig->sCurrBrowsedFile}?bSubClassifiedID={$iSubCatID}";
253 
254  $sAdCover = $oMain->getAdCover($aResSQL['media']);
255  $sAdBigCover = $oMain->getAdCover($aResSQL['media'], 'big_thumb');
256 
257  $sAdminCheck = '';
258  if ($this->bShowCheckboxes) {
259  $sAdminCheck = <<<EOF
260 <div class="browseCheckbox">
261  <input id="ad{$iAdID}" type="checkbox" name="ads[]" value="{$iAdID}" />
262 </div>
263 EOF;
264 
265  $sPostStatus = '<div class="ads_From">' . _t('_Status') . ': ' . process_line_output($aResSQL['Status']) . '</div>';
266  }
267 
268  $aUnitReplace = array(
269  'ad_cover_img' => $sAdCover,
270  'ad_link' => $sAdUrl,
271  'rating' => $sVotePostRating,
272  'ad_title' => $sAdTitle,
273  'ad_status' => $sPostStatus,
274  'ad_date' => mb_strtolower($sTimeAgo),
275  'from_label' => mb_strtolower($sFromC),
276  'ad_owner_link' => $sOwnerLink,
277  'ad_owner_name' => $sOwnerName,
278  'cats' => $oMain->_oTemplate->parseHtmlByTemplateName('category', array(
279  'cat_link' => $sCategUrl,
280  'sub_cat_link' => $sSubCategUrl,
281  'cat_name' => $sCategName,
282  'sub_cat_name' => $sSubCategName,
283  )),
284  'admin_check' => $sAdminCheck,
285  'ad_big_cover_img' => $sAdBigCover,
286  'ch_if:using_c1' => array(
287  'condition' => ($sCustomName1 && $sCustomVal1),
288  'content' => array(
289  'cust_style1' => $sCustomStyle1, 'custom_name1' => $sCustomName1, 'custom1' => $sCustomVal1, 'unit' => $sUnit1,
290  )
291  ),
292  'ch_if:using_c2' => array(
293  'condition' => ($sCustomName2 && $sCustomVal2),
294  'content' => array(
295  'cust_style2' => $sCustomStyle2, 'custom_name2' => $sCustomName2, 'custom2' => $sCustomVal2, 'unit2' => $sUnit2,
296  )
297  ),
298  'ch_if:expired' => array(
299  'condition' => (time() - $aResSQL['date']) > 24*60*60*$aResSQL['LifeTime'],
300  'content' => array(1 => 1)
301  )
302  );
303  return $oMain->_oTemplate->parseHtmlByTemplateName($this->sSelectedUnit, $aUnitReplace);
304  }
305 
306  function genUrlX($iEntryId, $sEntryUri, $sType='entry', $bForce = false)
307  {
308  global $site;
309 
310  $oMain = $this->getAdsMain();
311  if ($bForce)
312  $sEntryUri = db_value("SELECT `EntryUri` FROM `{$oMain->_oConfig->sSQLPostsTable}` WHERE `ID`='{$iEntryId}' LIMIT 1");
313 
314  $sMainUrl = CH_WSB_URL_ROOT;
315 
316  if ($oMain->_oConfig->bUseFriendlyLinks) {
317  $sUrl = $sMainUrl."ads/{$sType}/{$sEntryUri}";
318  } else {
319  $sUrl = '';
320  switch ($sType) {
321  case 'entry':
322  $sUrl = "{$oMain->_oConfig->sCurrBrowsedFile}?ShowAdvertisementID={$iEntryId}";
323  break;
324  }
325  }
326  return $sUrl;
327  }
328 
329  function displayMenu ()
330  {
331  $aDBTopMenu = $this->getTopMenu();
332  $aDBBottomMenu = array();
333 
334  return array( $aDBTopMenu, $aDBBottomMenu );
335  }
336 
337  function getTopMenu ($aExclude = array())
338  {
339  $aDBTopMenu = array();
340  foreach( array('last') as $sMyMode ) {
341  switch( $sMyMode ) {
342  case 'last':
343  $OrderBy = '`DateTime` DESC';
344  $sModeTitle = _t( '_Latest' );
345  break;
346  }
347 
348  $sLink = ch_html_attribute($_SERVER['PHP_SELF']) . "?";
349  $sLink .= "ads_mode=".$sMyMode;
350  $aDBTopMenu[$sModeTitle] = array('href' => $sLink, 'dynamic' => true, 'active' => ( $sMyMode == $this->aCurrent['sorting'] ));
351  }
352 
353  return $aDBTopMenu;
354  }
355 
356  function getBottomMenu($sAllLinkType = 'browseAll', $iId = 0, $sUri = '', $aExclude = array(), $bPgnSim = TRUE)
357  {
358  $aDBBottomMenu = array();
359  if ($this->aCurrent['paginate']['totalPages'] > 1) {
360  $sViewAllClass = 'viewAllMembers';
361 
362  $oMain = $this->getAdsMain();
363  if ($this->aCurrent['paginate']['page'] > 1) {
364  $iPrevPage = $this->aCurrent['paginate']['page'] - 1;
365  $aDBBottomMenu[ _t('_Back') ] = array( 'href' => ch_html_attribute($_SERVER['PHP_SELF']) . "?ads_mode={$this->aCurrent['sorting']}&amp;page=$iPrevPage{$sUserAddon}{$sFileAddon}", 'dynamic' => true, 'class' => 'backMembers', 'icon_class' => 'left' );
366  } else
367  $sViewAllClass = 'backMembers';
368 
369  if( $this->aCurrent['paginate']['page'] < $this->aCurrent['paginate']['totalPages'] ) {
370  $iNextPage = $this->aCurrent['paginate']['page'] + 1;
371  $aDBBottomMenu[ _t('_Next') ] = array( 'href' => ch_html_attribute($_SERVER['PHP_SELF']) . "?ads_mode={$this->aCurrent['sorting']}&amp;page=$iNextPage{$sUserAddon}{$sFileAddon}", 'dynamic' => true, 'class' => 'moreMembers' );
372  } else
373  $sViewAllClass = 'moreMembers';
374 
375  if (isset($this->aConstants['linksTempl'][$sAllLinkType]))
376  $sAllUrl = $this->getCurrentUrl($sAllLinkType, $sId, $sUri);
377  else
378  $sAllUrl = $this->getCurrentUrl('browseAll', 0, '');
379 
380  $aDBBottomMenu[ _t('_View All').' ('. $this->aCurrent['paginate']['totalNum'] .')' ] = array( 'href' => "$sAllUrl", 'class' => $sViewAllClass );
381  }
382  return $aDBBottomMenu;
383  }
384 
385  function setSorting ()
386  {
387  $this->aCurrent['sorting'] = (false !== ch_get('ads_mode')) ? ch_get('ads_mode') : $this->aCurrent['sorting'];
388 
389  if( $this->aCurrent['sorting'] != 'top' && $this->aCurrent['sorting'] != 'last' && $this->aCurrent['sorting'] != 'score' && $this->aCurrent['sorting'] != 'popular')
390  $this->aCurrent['sorting'] = 'last';
391  }
392 
393  function getAlterOrder()
394  {
395  if ($this->aCurrent['sorting'] == 'popular') {
396  $aSql = array();
397  $oMain = $this->getAdsMain();
398  $aSql['order'] = " ORDER BY `{$oMain->_oConfig->sSQLPostsTable}`.`Views` DESC, `DateTime` DESC";
399  return $aSql;
400  }
401  return array();
402  }
403 
404  function showPagination($aParams = array())
405  {
406  $aPgnParams = array(
407  'page_url' => $this->aCurrent['paginate']['page_url'],
408  'count' => $this->aCurrent['paginate']['totalNum'],
409  'per_page' => $this->aCurrent['paginate']['perPage'],
410  'page' => $this->aCurrent['paginate']['page'],
411  );
412 
413  if (mb_strlen($aPgnParams['page_url']) == 0) {
414  $sPageLink = $this->getCurrentUrl('browseAll', 0, '');
415  $aLinkAddon = $this->getLinkAddByPrams();
416  if ($aLinkAddon) {
417  foreach($aLinkAddon as $sValue)
418  $sPageLink .= $sValue;
419  }
420  if(!$this->id)
421  $this->id = 0;
422  $sLoadDynamicUrl = $this->id . ', \'' . CH_WSB_URL_ROOT . 'searchKeywordContent.php?searchMode=ajax&section[]=ch_ads' . $aLinkAddon['params'];
423  $sKeyword = ch_get('keyword');
424  if ($sKeyword !== false && mb_strlen($sKeyword) > 0)
425  $sLoadDynamicUrl .= '&keyword=' . rawurlencode(strip_tags($sKeyword));
426 
427  $aPgnParams['page_url'] = $sPageLink;
428  $aPgnParams['on_change_page'] = 'return !loadDynamicBlock(' . $sLoadDynamicUrl . $aLinkAddon['paginate'].'\');';
429  $aPgnParams['on_change_per_page'] = 'return !loadDynamicBlock(' . $sLoadDynamicUrl .'&page=1&per_page=\' + this.value);';
430  }
431 
432  $oPaginate = new ChWsbPaginate($aPgnParams);
433  $sPaginate = '<div class="clear_both"></div>'.$oPaginate->getPaginate();
434  return $sPaginate;
435  }
436 
437  function showPagination2($bAdmin = false)
438  {
439  $aLinkAddon = $this->getLinkAddByPrams();
440 
441  $sAllUrl = $this->getCurrentUrl('browseAll', 0, '');
442 
443  $oPaginate = new ChWsbPaginate(array(
444  'page_url' => $this->aCurrent['paginate']['page_url'],
445  'count' => $this->aCurrent['paginate']['totalNum'],
446  'per_page' => $this->aCurrent['paginate']['perPage'],
447  'page' => $this->aCurrent['paginate']['page'],
448  'on_change_page' => 'return !loadDynamicBlock({id}, \''.ch_html_attribute($_SERVER['PHP_SELF']).'?ads_mode='.$this->aCurrent['sorting'].$aLinkAddon['params'].'&page={page}&per_page={per_page}\');',
449  ));
450 
451  $sPaginate = '<div class="clear_both"></div>'.$oPaginate->getSimplePaginate($sAllUrl);
452 
453  return $sPaginate;
454  }
455 
456  function _getPseud ()
457  {
458  return array(
459  'id' => 'ID',
460  'title' => 'Subject',
461  'date' => 'DateTime',
462  'uri' => 'EntryUri',
463  'ownerId' => 'IDProfile',
464  'bodyText' => 'Message',
465  'tag' => 'Tags',
466  'media' => 'Media',
467  'subcategoryId' => 'ID',
468  'subcategoryName' => 'NameSub',
469  'subcategoryUri' => 'SEntryUri',
470  'categoryId' => 'ID',
471  'categoryName' => 'Name',
472  'categoryUri' => 'CEntryUri'
473  );
474  }
475 
476 }
ChAdsSearchUnit\displaySearchUnit
displaySearchUnit($aResSQL)
Definition: ChAdsSearchUnit.php:202
TRUE
URI MungeSecretKey $secret_key</pre >< p > If the output is TRUE
Definition: URI.MungeSecretKey.txt:17
true
if(!defined("TRUE_VAL")) define("TRUE_VAL" true
Definition: constants.inc.php:8
ChAdsSearchUnit
Definition: ChAdsSearchUnit.php:12
ChBaseSearchResult\getLinkAddByPrams
getLinkAddByPrams($aExclude=array())
Definition: ChBaseSearchResult.php:186
ChWsbModule\getInstance
static getInstance($sClassName)
Definition: ChWsbModule.php:89
ChAdsSearchUnit\_getPseud
_getPseud()
Definition: ChAdsSearchUnit.php:456
defineTimeInterval
defineTimeInterval($iTime, $bAutoDateConvert=true, $bShort=false)
Definition: utils.inc.php:831
name
Core AllowHostnameUnderscore underscores are not permitted in host most browsers do the right thing when faced with an underscore in the host name
Definition: Core.AllowHostnameUnderscore.txt:11
$sCode
$sCode
Definition: explanation.php:19
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
ChTemplSearchResultText
Definition: ChTemplSearchResultText.php:11
ch_get
ch_get($sName)
Definition: utils.inc.php:1664
$sUrl
$sUrl
Definition: cart.php:15
php
$iId
$iId
Definition: license.php:15
ChAdsSearchUnit\$bShowCheckboxes
$bShowCheckboxes
Definition: ChAdsSearchUnit.php:17
ChAdsSearchUnit\getCurrentUrl
getCurrentUrl($sType, $iId, $sUri, $aOwner='')
Definition: ChAdsSearchUnit.php:122
isAdmin
isAdmin()
Definition: index.php:649
ChAdsSearchUnit\getAlterOrder
getAlterOrder()
Definition: ChAdsSearchUnit.php:393
ChAdsSearchUnit\__construct
__construct()
Definition: ChAdsSearchUnit.php:75
ch_html_attribute
ch_html_attribute($mixedInput)
Definition: utils.inc.php:1324
$oFunctions
$oFunctions
Definition: ChTemplFunctions.php:20
ChAdsSearchUnit\$sSelectedUnit
$sSelectedUnit
Definition: ChAdsSearchUnit.php:73
ChAdsSearchUnit\getAdsMain
getAdsMain()
Definition: ChAdsSearchUnit.php:117
ChWsbSearchResult\addCustomParts
addCustomParts()
Definition: ChWsbSearch.php:262
ChAdsSearchUnit\getBottomMenu
getBottomMenu($sAllLinkType='browseAll', $iId=0, $sUri='', $aExclude=array(), $bPgnSim=TRUE)
Definition: ChAdsSearchUnit.php:356
$sType
$sType
Definition: actions.inc.php:11
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
ChAdsSearchUnit\genUrlX
genUrlX($iEntryId, $sEntryUri, $sType='entry', $bForce=false)
Definition: ChAdsSearchUnit.php:306
$site
$site['ver']
Definition: version.inc.php:8
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
ChWsbSearchResult\getSearchData
getSearchData()
Definition: ChWsbSearch.php:376
ChWsbPaginate
Definition: ChWsbPaginate.php:69
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
time
that in the case of a Adaptation or at a minimum such credit will if a credit for all contributing authors of the Adaptation or Collection then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors For the avoidance of You may only use the credit required by this Section for the purpose of attribution in the manner set out above by exercising Your rights under this You may not implicitly or explicitly assert or imply any connection sponsorship or endorsement by the Original Licensor and or Attribution as of You or Your use of the without the express prior written permission of the Original Licensor and or Attribution Parties Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable if You Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or You must not modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author s honor or reputation Licensor agrees that in those in which any exercise of the right granted in modification or other derogatory action prejudicial to the Original Author s honor and the Licensor will waive or not as this to the fullest extent permitted by the applicable national to enable You to reasonably exercise Your right under Warranties and Disclaimer UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN LICENSOR OFFERS THE WORK AS IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE STATUTORY OR WITHOUT WARRANTIES OF FITNESS FOR A PARTICULAR OR THE ABSENCE OF LATENT OR OTHER OR THE PRESENCE OF ABSENCE OF WHETHER OR NOT DISCOVERABLE SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED SO SUCH EXCLUSION MAY NOT APPLY TO YOU Limitation on Liability EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES Termination This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License Individuals or entities who have received Adaptations or Collections from You under this will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses and will survive any termination of this License Subject to the above terms and the license granted here is Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time
Definition: license.txt:56
value
URI Base such as when URI MakeAbsolute is on You may use a non absolute URI for this value
Definition: URI.Base.txt:11
ChAdsSearchUnit\showPagination
showPagination($aParams=array())
Definition: ChAdsSearchUnit.php:404
getProfileLink
getProfileLink( $iID, $sLinkAdd='')
Definition: profiles.inc.php:484
process_line_output
process_line_output($text, $maxwordlen=100)
Definition: utils.inc.php:328
ChAdsSearchUnit\$sHomePath
$sHomePath
Definition: ChAdsSearchUnit.php:13
ChAdsSearchUnit\getRestriction
getRestriction()
Definition: ChAdsSearchUnit.php:143
ChAdsSearchUnit\$sUploadDir
$sUploadDir
Definition: ChAdsSearchUnit.php:16
ChAdsSearchUnit\$aCurrent
$aCurrent
Definition: ChAdsSearchUnit.php:19
$sId
$sId
Definition: actions.inc.php:8
ChAdsSearchUnit\getTopMenu
getTopMenu($aExclude=array())
Definition: ChAdsSearchUnit.php:337
db_value
db_value($query, $bindings=[], $error_checking=true, $index=0)
Definition: db.inc.php:98
ChAdsSearchUnit\displayMenu
displayMenu()
Definition: ChAdsSearchUnit.php:329
ChAdsSearchUnit\$aPermalinks
$aPermalinks
Definition: ChAdsSearchUnit.php:72
ChAdsSearchUnit\showPagination2
showPagination2($bAdmin=false)
Definition: ChAdsSearchUnit.php:437
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
ChWsbService\call
static call($mixed, $sMethod, $aParams=array(), $sClass='Module')
Definition: ChWsbService.php:32
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10
ChAdsSearchUnit\displayResultBlock
displayResultBlock($bWrap=true)
Definition: ChAdsSearchUnit.php:182
ChAdsSearchUnit\$sHomeUrl
$sHomeUrl
Definition: ChAdsSearchUnit.php:14
ChAdsSearchUnit\setSorting
setSorting()
Definition: ChAdsSearchUnit.php:385
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10