Cheetah
list_pop.php
Go to the documentation of this file.
1 <?php
2 
8 require_once( 'inc/header.inc.php' );
9 require_once( CH_DIRECTORY_PATH_INC . 'design.inc.php' );
10 require_once( CH_DIRECTORY_PATH_INC . 'profiles.inc.php' );
11 require_once( CH_DIRECTORY_PATH_CLASSES . 'ChWsbEmailTemplates.php' );
12 
13 $_page['name_index'] = 44;
14 $_ni = $_page['name_index'];
15 
16 // check logged
17 $logged['member'] = member_auth(0);
18 
19 //get logged profile's id
21 
22 //-- process some internal vars --//
23 $iTargetId = (int)ch_get('ID');
24 $sTargetsId = isset($_POST['list_id']) ? $_POST['list_id'] : '';
25 $sAction = false != ch_get('action')? ch_get('action') : '';
26 //--
27 
28 //define ajax mode
29 $bAjxMod = isset($_SERVER['HTTP_X_REQUESTED_WITH'])
30  && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ? true : false;
31 
33 if($bAjxMod) {
35 
36  header('Content-Type: text/html; charset=utf-8');
37 }
38 //-- process actions --//
39 
40 switch ($sAction) {
41  //generate member menu position settings
42  case 'extra_menu' :
43  $sPageCaption = _t( '_Member menu position' );
44  $_page['header'] = $sPageCaption;
45 
46  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent( $sPageCaption
48  , $oTemplConfig -> PageListPop_db_num);
49  break;
50 
51  //block profile
52  case 'block':
53  if ($bAjxMod) {
55  exit;
56  }
57 
58  $sPageCaption = _t( '_Block list' );
59  $_page['header'] = $sPageCaption;
60  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent( $sPageCaption
62  , $oTemplConfig -> PageListPop_db_num );
63  break;
64 
65  //unblock profile
66  case 'unblock':
67  if ($bAjxMod) {
69  exit;
70  }
71 
72  $sPageCaption = _t('_Unblock');
73  $_page['header'] = $sPageCaption;
74  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent( $sPageCaption
76  , $oTemplConfig -> PageListPop_db_num );
77  break;
78 
79  //add to hot list
80  case 'hot':
81  if ($bAjxMod) {
83  exit;
84  }
85 
86  $sPageCaption = _t('_sys_cnts_bcpt_fave');
87  $_page['header'] = $sPageCaption;
88  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent($sPageCaption, PageListHot($iProfileId, $iTargetId), $oTemplConfig->PageListPop_db_num);
89  break;
90 
91  //remove from hot list
92  case 'remove_hot':
93  if ($bAjxMod) {
95  exit;
96  }
97 
98  $sPageCaption = _t('_sys_cnts_bcpt_fave_remove');
99  $_page['header'] = $sPageCaption;
100  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent($sPageCaption, PageListHotRemove($iProfileId, $iTargetId), $oTemplConfig->PageListPop_db_num);
101  break;
102 
103  //add to friends list
104  case 'friend':
105  if ($bAjxMod) {
107  exit;
108  }
109 
110  $sPageCaption = _t('_Friend list');
111  $_page['header'] = $sPageCaption;
112  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent( $sPageCaption
114  , $oTemplConfig -> PageListPop_db_num );
115  break;
116 
117  //remove from friends list
118  case 'remove_friend':
119  if ($bAjxMod) {
121  exit;
122  }
123 
124  $sPageCaption = _t('_Remove friend');
125  $_page['header'] = $sPageCaption;
126  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent( $sPageCaption
128  , $oTemplConfig -> PageListPop_db_num );
129  break;
130 
131  //report about spam
132  case 'spam':
133  $mTarget = $sTargetsId ? $sTargetsId : $iTargetId;
134 
135  if ($bAjxMod) {
136  echo PageListSpam($iProfileId, $mTarget) . $sJQueryJS;
137  exit;
138  }
139 
140  $sPageCaption = _t('_Spam report');
141  $GLOBALS['_page']['header'] = $sPageCaption;
142  $GLOBALS['_page_cont'][$_ni]['page_main_code'] = DesignBoxContent( $sPageCaption
143  , PageListSpam($iProfileId, $mTarget)
144  , $oTemplConfig -> PageListPop_db_num);
145  break;
146 
147  //changes profile status
148  case 'change_status':
149  if ( $bAjxMod && isset($_POST['status']) ) {
150  echo ActionChangeStatus($iProfileId, $_POST['status']);
151  }
152  return;
153 
154  //change profile's status message
155  case 'change_status_message':
156  if ($bAjxMod) {
158  }
159  return;
160 
161  default:
162  if ($bAjxMod AND $iTargetId)
163  {
165  if ($mixedRes)
166  {
167  echo $mixedRes . genAjaxyPopupJS($iTargetId);
168  exit;
169  }
170  }
171  $GLOBALS['_page']['header'] = _t('_Error occured');
172  $GLOBALS['_page_cont'][$GLOBALS['_ni']]['page_main_code'] = _t('_Error occured');
173  break;
174 }
175 
176 //--
177 
178 PageCode();
179 
180 //-- FUNCTIONS --//
181 
188 function ActionChangeStatusMessage($iMemberIdForce = 0)
189 {
190  if ($iMemberIdForce) {
191  $iMemberID = (int) $iMemberIdForce;
192  } else {
193  $iMemberID = getLoggedId();
194  }
195 
196  if( $iMemberID && isset($_POST['status_message']) ) {
197  $sNewStatusMessage = process_db_input($_POST['status_message']
199 
200  $sQuery = "UPDATE `Profiles` SET `UserStatusMessage`='{$sNewStatusMessage}'
201  , `UserStatusMessageWhen` = UNIX_TIMESTAMP() WHERE `ID` = '{$iMemberID}'";
202 
203  if( db_res($sQuery, 0) ) {
204  //send system alert
205  ch_import('ChWsbAlerts');
206  $oZ = new ChWsbAlerts('profile', 'edit_status_message'
207  , $iMemberID, $iMemberID, array ($sNewStatusMessage));
208 
209  $oZ -> alert();
210 
211  createUserDataFile($iMemberID);
212  }
213  }
214 }
215 
224 {
225  $iProfileId = (int) $iProfileId;
226  $sOutputCode = '';
227 
229  if ( $oUserStatus -> getRegisteredStatus($sStatus) ) {
230  //process status
232 
233  $sQuery = "UPDATE `Profiles` SET `UserStatus`='{$sStatus}', `DateLastNav` = NOW()
234  WHERE `ID` = '{$iProfileId}'";
235 
236  if( db_res($sQuery, 0) ) {
237  // send system event
238  ch_import('ChWsbAlerts');
239  $oZ = new ChWsbAlerts('profile', 'edit_status', $iProfileId, $iProfileId);
240  $oZ -> alert();
241 
242  ch_import('ChTemplMemberMenu');
244  $oMemberMenu -> deleteMemberMenuKeyFile($iProfileId);
245 
247 
248  $sOutputCode = $oUserStatus -> getStatusIcon($iProfileId);
249  }
250  }
251 
252  return $sOutputCode;
253 }
254 
262 function PageListSpam($iProfileId, $mMembers = '')
263 {
264  $iProfileId = (int) $iProfileId;
265 
266  //define list of members
267  if( is_int($mMembers) ) {
268  $sActionResult = _sendSpamReport($iProfileId, $mMembers);
269  } else {
270  //work with string
271  $aMembers = explode(',', $mMembers);
272 
273  for($i = 0, $iCountMembers = count($aMembers); $i <= $iCountMembers; $i++) {
274  if($aMembers[$i]) {
275  if( '' != $sActionResult = _sendSpamReport($iProfileId, $aMembers[$i]) ) {
276  break;
277  }
278  }
279  }
280  }
281 
282  if(!$sActionResult) {
283  $sActionResult = MsgBox( _t('_Report about spam was sent') );
284  }
285 
286  return $sActionResult;
287 }
288 
297 {
298  $sOutputCode = '';
299  $iProfileId = (int) $iProfileId;
300  $iMemberId = (int) $iMemberId;
301 
303  return MsgBox( _t('_Failed to apply changes'));
304 
305  ch_import('ChTemplCommunicator');
306  $oCommunicator = new ChTemplCommunicator(array('member_id' => $iProfileId));
307 
308  $aParams = array($iMemberId);
309  $oCommunicator -> execFunction( '_deleteRequest', 'sys_friend_list', $aParams, array(1, 1));
310 
311  return MsgBox( _t('_Friend was removed') );
312 }
313 
322 {
323  $sOutputCode = '';
324  $iProfileId = (int) $iProfileId;
325  $iMemberId = (int) $iMemberId;
326 
327  if( !$iMemberId || !getProfileInfo($iMemberId) ) {
328  return MsgBox( _t('_Failed to apply changes') );
329  }
330 
331  $iUseriId = getLoggedId();
332  $aResult = checkAction($iUseriId, ACTION_ID_SEND_FRIEND_REQUEST, $bPerformAction);
335 
336  // block members
337  if ( isBlocked($iMemberId, $iProfileId) ) {
338  return MsgBox( _t('_You have blocked by this profile') );
339  }
340 
341  //check friends pair
342  $aFriendsInfo = db_assoc_arr("SELECT * FROM `sys_friend_list`
343  WHERE (`ID`='{$iProfileId}' AND `Profile`='{$iMemberId}')
344  OR (`ID`='{$iMemberId}' AND `Profile` = '{$iProfileId}')");
345 
346  //-- process friend request --//
347  if($aFriendsInfo) {
348  if( isset($aFriendsInfo['Check']) && $aFriendsInfo['Check'] == 1) {
349  $sOutputCode = MsgBox( _t('_already_in_friend_list') );
350  } else if( isset($aFriendsInfo['ID'], $aFriendsInfo['Check']) ) {
351  if ($iProfileId == $aFriendsInfo['ID'] && $aFriendsInfo['Check'] == 0) {
352  $sOutputCode = MsgBox( _t('_pending_friend_request') );
353  } else {
354  //make paier as friends
355  $sQuery = "UPDATE `sys_friend_list` SET `Check` = '1'
356  WHERE `ID` = '{$iMemberId}' AND `Profile` = '{$iProfileId}';";
357 
358  if ( db_res($sQuery, 0) ) {
359  $sOutputCode = MsgBox( _t('_User was added to friend list') );
360 
361  //send system alert
362  ch_import('ChWsbAlerts');
363  $oZ = new ChWsbAlerts('friend', 'accept', $iMemberId, $iProfileId);
364  $oZ->alert();
365  } else {
366  $sOutputCode = MsgBox( _t('_Failed to apply changes') );
367  }
368  }
369  } else {
370  $sOutputCode = MsgBox( _t('_Failed to apply changes') );
371  }
372  } else {
373  //create new friends request
374  $sQuery = "INSERT INTO `sys_friend_list` SET
375  `ID` = '{$iProfileId}', `Profile` = '{$iMemberId}', `Check` = '0'";
376 
377  if ( db_res($sQuery, 0) ) {
378  $sOutputCode = MsgBox( _t('_User was invited to friend list') );
379 
380  //send system alert
381  ch_import('ChWsbAlerts');
382  $oZ = new ChWsbAlerts('friend', 'request', $iMemberId, $iProfileId);
383  $oZ -> alert();
384 
385  // send email notification
386  $oEmailTemplate = new ChWsbEmailTemplates();
387  $aTemplate = $oEmailTemplate -> getTemplate('t_FriendRequest', $iMemberId);
388 
389  $aRecipient = getProfileInfo($iMemberId);
390  $aPlus = array(
391  'Recipient' => getNickName($aRecipient['ID']),
392  'SenderLink' => getProfileLink($iProfileId),
393  'Sender' => getNickName($iProfileId),
394 
395  'RequestLink' => CH_WSB_URL_ROOT
396  . 'communicator.php?communicator_mode=friends_requests',
397  );
398 
399  sendMail( $aRecipient['Email'], $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus );
400  } else {
401  $sOutputCode = MsgBox( _t('_Failed to apply changes') );
402  }
403  }
404  //--
405 
406  return $sOutputCode;
407 }
408 
417 {
418  $sOutputCode = '';
419  $iId = (int) $iId;
420  $iProfileId = (int) $iProfileId;
421 
423  return MsgBox(_t('_Failed to apply changes'));
424 
425  $sQuery = "INSERT IGNORE INTO `sys_fave_list` SET `ID` = '{$iId}', `Profile` = '{$iProfileId}'";
426  if((int)$GLOBALS['MySQL']->query($sQuery) > 0) {
427  $sOutputCode = MsgBox( _t('_User was added to favourites') );
428 
429  //send system alert
430  ch_import('ChWsbAlerts');
431  $oZ = new ChWsbAlerts('fave', 'add', $iProfileId, $iId);
432  $oZ -> alert();
433  } else
434  $sOutputCode = MsgBox(_t('_Failed to apply changes'));
435 
436  return $sOutputCode;
437 }
438 
447 {
448  $sOutputCode = '';
449  $iId = (int)$iId;
450  $iProfileId = (int)$iProfileId;
451 
453  return MsgBox(_t('_Failed to apply changes'));
454 
455  $sQuery = "DELETE FROM `sys_fave_list` WHERE `ID`='{$iId}' AND `Profile`='{$iProfileId}'";
456  if((int)$GLOBALS['MySQL']->query($sQuery) > 0) {
457  $sOutputCode = MsgBox(_t('_User was removed from favourites'));
458 
459  //send system alert
460  ch_import('ChWsbAlerts');
461  $oZ = new ChWsbAlerts('fave', 'remove', $iProfileId, $iId);
462  $oZ -> alert();
463  } else
464  $sOutputCode = MsgBox(_t('_Failed to apply changes'));
465 
466  return $sOutputCode;
467 }
468 
477 {
478  $sOutputCode = '';
479  $iProfileId = (int) $iProfileId;
480  $iMemberId = (int) $iMemberId;
481 
482  if( !$iMemberId || !getProfileInfo($iMemberId) ) {
483  return MsgBox( _t('_Failed to apply changes') );
484  }
485 
486  ch_import('ChWsbCommunicator');
487  $oCommunicator = new ChWsbCommunicator(array('member_id' => $iMemberId));
488  if( $oCommunicator -> _deleteRequest('sys_block_list', $iProfileId) ){
489  $sOutputCode = MsgBox( _t('_User was removed from block list') );
490  } else {
491  $sOutputCode = MsgBox( _t('_Failed to apply changes') );
492  }
493 
494  return $sOutputCode;
495 }
496 
505 {
506  $sOutputCode = '';
507  $iProfileId = (int) $iProfileId;
508  $iMemberId = (int) $iMemberId;
509 
510  if( !$iMemberId || !getProfileInfo($iMemberId) ) {
511  return MsgBox( _t('_Failed to apply changes') );
512  }
513 
514  $sQuery = "REPLACE INTO `sys_block_list`
515  SET `ID` = '{$iProfileId}', `Profile` = '{$iMemberId}'";
516 
517  if( db_res($sQuery, 0) ) {
518  $sOutputCode = MsgBox( _t('_User was added to block list') );
519 
520  // send system alert
521  ch_import('ChWsbAlerts');
522  $oZ = new ChWsbAlerts('block', 'add', $iMemberId, $iProfileId);
523  $oZ->alert();
524 
525  //delete from friends
526  $sQuery = "DELETE FROM `sys_friend_list` WHERE
527  (`ID`='{$iProfileId}' AND `Profile`='{$iMemberId}') OR (`ID`='{$iMemberId}'
528  AND `Profile`='{$iProfileId}')";
529 
530  db_res($sQuery);
531  } else {
532  $sOutputCode = MsgBox( _t('_Failed to apply changes') );
533  }
534 
535  return $sOutputCode;
536 }
537 
547 {
548  $iProfileId = (int) $iProfileId;
549 
550  // define default menu position;
551  if ( isset($_COOKIE['menu_position']) ) {
552  $sDefaultValue = clear_xss($_COOKIE['menu_position']);
553  } else {
554  $sDefaultValue = getParam('ext_nav_menu_top_position');
555  }
556 
557  //get form
558  $aForm = array (
559  'form_attrs' => array (
560  'action' => CH_WSB_URL_ROOT . 'list_pop.php?action=' . clear_xss($sAction),
561  'method' => 'post',
562  'name' => 'menu_position_form'
563  ),
564  'params' => array (
565  'db' => array(
566  'submit_name' => 'do_submit',
567  ),
568  ),
569  'inputs' => array(
570  array(
571  'type' => 'radio_set',
572  'name' => 'menu_settings',
573  'caption' => 'Position',
574  'dv' => '<br />',
575  'values' => array(
576  'top' => _t('_Top'),
577  'bottom' => _t('_Bottom'),
578  'static' => _t('_Static'),
579  ),
580  'required' => true,
581  'checker' => array (
582  'func' => 'length',
583  'params' => array(3, 6),
584  'error' => _t('_Error occured'),
585  ),
586  'value' => $sDefaultValue,
587  'db' => array (
588  'pass' => 'Xss',
589  ),
590  ),
591  array(
592  'type' => 'submit',
593  'name' => 'do_submit',
594  'value' => _t('_Save Changes'),
595  )
596  ),
597  );
598 
600  $oForm -> initChecker();
601 
602  if ( $oForm -> isSubmittedAndValid() ) {
603  $sCode = MsgBox( _t('_Saved') );
604  $sCode .=
605  '
606  <script type="text/javascript">
607  opener.location.reload();
608  window.close();
609  </script>
610  ';
611 
612  //change menu position
613  setcookie("menu_position", $oForm -> getCleanValue('menu_settings')
614  , time() + 60 * 60 * 24 * 180);
615 
616  //clear member menu cache
617  ch_import('ChWsbMemberMenu');
619  $oMemberMenu -> deleteMemberMenuKeyFile($iProfileId);
620  } else {
621  $sCode = $oForm->getCode();
622  }
623 
624  return $sCode;
625 }
626 
635 function PageListControl($sAction, $iViewerId, $iTargetId)
636 {
638  $iViewerId = (int)$iViewerId;
639  $iTargetId = (int)$iTargetId;
640 
641  $mixedRes = FALSE;
642  $sMsg = '_Error';
643  if (isAdmin($iViewerId) OR (isModerator($iViewerId) AND $iViewerId != $iTargetId))
644  {
645  switch ($sAction)
646  {
647  case 'activate':
648  case 'deactivate':
649  $mixedRes = _setStatus($iTargetId, $sAction);
650  break;
651  case 'ban':
653  $sMsg = '_Success';
654  $mixedRes = MsgBox(_t($sMsg));
655  break;
656  case 'unban':
658  $sMsg = '_Success';
659  $mixedRes = MsgBox(_t($sMsg));
660  break;
661  case 'featured':
662  case 'unfeatured':
663  $mixedRes = _setFeature($iTargetId, $sAction);
664  break;
665  case 'delete':
667  $mixedRes = MsgBox(_t('_Success')) . genAjaxyPopupJS($iTargetId, 'ajaxy_popup_result_div', CH_WSB_URL_ROOT . 'browse.php');
668  break;
669  case 'delete_spam':
671  $mixedRes = MsgBox(_t('_Success')) . genAjaxyPopupJS($iTargetId, 'ajaxy_popup_result_div', CH_WSB_URL_ROOT . 'browse.php');
672  break;
673  default:
674  }
675  }
676  return $mixedRes;
677 }
678 
687 {
688  $sStatus = 'Approval';
689  $bSendActMail = FALSE;
690  $sMsg = '_Error';
691  if ($sAction == 'activate')
692  {
693  $sStatus = 'Active';
694  $bSendActMail = TRUE;
695  }
697  $sMsg = '_Success';
698  return MsgBox(_t($sMsg));
699 }
700 
709 {
710  $bFeature = $sType == 'featured' ? TRUE : FALSE;
711  $sMsg = '_Error';
713  $sMsg = '_Success';
714  return MsgBox(_t($sMsg));
715 }
716 
725 {
726  global $site;
727 
728  $iProfileId = (int) $iProfileId;
729  $iMemberId = $iMemberId ? (int) $iMemberId : -1;
730 
731  if( !$iMemberId || !getProfileInfo($iMemberId) ) {
732  return MsgBox( _t('_Failed to apply changes') );
733  }
734 
735  //get email template
736  $oEmailTemplate = new ChWsbEmailTemplates();
737  $aTemplate = $oEmailTemplate -> getTemplate('t_SpamReport');
738 
739  //-- get reporter information --//
740  $aReporter = getProfileInfo($iProfileId);
741 
742  $aPlus = array();
743  $aPlus['reporterID'] = $iProfileId;
744  $aPlus['reporterNick'] = getNickName($aReporter['ID']);
745  //--
746 
747  //-- get spamer info --//
748  $aSpamerInfo = getProfileInfo($iMemberId);
749  $aPlus['spamerID'] = $iMemberId;
750  $aPlus['spamerNick'] = getNickName($aSpamerInfo['ID']);
751  //--
752 
753  //send message about spam
754  if( !sendMail( $site['email'], $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus ) ) {
755  return MsgBox( _t('_Report about spam failed to sent') );
756  }
757 }
758 
759 //--
process_db_input
process_db_input($sText, $iStripTags=0)
Definition: utils.inc.php:256
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
ChTemplMemberMenu
Definition: ChTemplMemberMenu.php:14
PageListHot
PageListHot($iId, $iProfileId=0)
Definition: list_pop.php:416
ActionChangeStatusMessage
ActionChangeStatusMessage($iMemberIdForce=0)
Definition: list_pop.php:188
$iMemberId
$iMemberId
Definition: profile.php:91
ChTemplFormView
Definition: ChTemplFormView.php:11
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
db_assoc_arr
db_assoc_arr($query, $bindings=[])
Definition: db.inc.php:86
PageListFriendRemove
PageListFriendRemove($iProfileId, $iMemberId=0)
Definition: list_pop.php:296
PageListControl
PageListControl($sAction, $iViewerId, $iTargetId)
Definition: list_pop.php:635
MsgBox
MsgBox($sText, $iTimer=0)
Definition: design.inc.php:175
ch_admin_profile_ban_control
ch_admin_profile_ban_control($iProfileId, $bBan=true, $iDuration=0)
Definition: admin.inc.php:415
$iTargetId
$iTargetId
Definition: list_pop.php:23
ChWsbCommunicator
Definition: ChWsbCommunicator.php:13
$iProfileId
$iProfileId
Definition: list_pop.php:20
$sCode
$sCode
Definition: explanation.php:19
CHECK_ACTION_RESULT_ALLOWED
const CHECK_ACTION_RESULT_ALLOWED
Definition: membership_levels.inc.php:60
ChWsbMemberMenu
Definition: ChWsbMemberMenu.php:92
$logged
$logged['member']
Definition: list_pop.php:17
PageListBlock
PageListBlock($iProfileId, $iMemberId=0)
Definition: list_pop.php:504
ChWsbEmailTemplates
Definition: ChWsbEmailTemplates.php:11
ch_import
ch_import($sClassName, $aModule=array())
Definition: utils.inc.php:1218
$aResult
$aResult
Definition: index.php:19
ch_get
ch_get($sName)
Definition: utils.inc.php:1664
CHECK_ACTION_RESULT
const CHECK_ACTION_RESULT
Definition: membership_levels.inc.php:54
sendMail
sendMail( $sRecipientEmail, $sMailSubject, $sMailBody, $iRecipientID=0, $aPlus=array(), $sEmailFlag='html', $isDisableAlert=false, $bForceSend=false)
Definition: utils.inc.php:461
_sendSpamReport
_sendSpamReport($iProfileId, $iMemberId)
Definition: list_pop.php:724
$oCommunicator
$oCommunicator
Definition: communicator.php:68
_setFeature
_setFeature($iTargetId, $sType)
Definition: list_pop.php:708
CHECK_ACTION_MESSAGE
const CHECK_ACTION_MESSAGE
Definition: membership_levels.inc.php:55
ch_admin_profile_change_status
ch_admin_profile_change_status($mixedIds, $sStatus, $bSendActMail=FALSE)
Definition: admin.inc.php:436
php
$oZ
$oZ
Definition: db.php:20
$iId
$iId
Definition: license.php:15
$sMsg
$sMsg
Definition: actions.inc.php:22
profile_delete
profile_delete($ID, $isDeleteSpammer=false)
Definition: admin.inc.php:316
PageListMemberMenuSettings
PageListMemberMenuSettings($iProfileId, $sAction)
Definition: list_pop.php:546
$_ni
$_ni
Definition: list_pop.php:14
$sAction
$sAction
Definition: list_pop.php:25
PageListUnBlock
PageListUnBlock($iProfileId, $iMemberId=0)
Definition: list_pop.php:476
PageListFriend
PageListFriend($iProfileId, $iMemberId=0)
Definition: list_pop.php:321
isAdmin
isAdmin()
Definition: index.php:649
ACTION_ID_SEND_FRIEND_REQUEST
const ACTION_ID_SEND_FRIEND_REQUEST
Definition: membership_levels.inc.php:44
isModerator
isModerator($iId=0)
Definition: profiles.inc.php:58
$oForm
$oForm
Definition: host_tools.php:42
ChWsbAlerts
Definition: ChWsbAlerts.php:39
exit
exit
Definition: cart.php:21
$sType
$sType
Definition: actions.inc.php:11
$oMemberMenu
$oMemberMenu
Definition: member_menu_queries.php:20
createUserDataFile
createUserDataFile( $userID)
Definition: profiles.inc.php:192
getParam
getParam($sParamName, $bUseCache=true)
Definition: db.inc.php:130
$sPageCaption
$sPageCaption
Definition: index.php:75
getLoggedId
getLoggedId()
Definition: profiles.inc.php:32
getNickName
getNickName( $ID='')
Definition: profiles.inc.php:461
$site
$site['ver']
Definition: version.inc.php:8
$sJQueryJS
$sJQueryJS
Definition: list_pop.php:32
ch_admin_profile_featured_control
ch_admin_profile_featured_control($iProfileId, $bFeature=TRUE)
Definition: admin.inc.php:483
ChWsbUserStatusView
Definition: ChWsbUserStatusView.php:9
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
ActionChangeStatus
ActionChangeStatus($iProfileId, $sStatus='')
Definition: list_pop.php:223
_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
PageCode
PageCode($oTemplate=null)
Definition: design.inc.php:91
member_auth
member_auth($member=0, $error_handle=true, $bAjx=false)
Definition: admin.inc.php:262
getProfileLink
getProfileLink( $iID, $sLinkAdd='')
Definition: profiles.inc.php:484
ChTemplCommunicator
Definition: ChTemplCommunicator.php:11
$sTargetsId
$sTargetsId
Definition: list_pop.php:24
checkAction
checkAction($iMemberId, $actionID, $performAction=false, $iForcedProfID=0, $isCheckMemberStatus=true)
Definition: membership_levels.inc.php:313
CH_TAGS_STRIP
const CH_TAGS_STRIP
Definition: utils.inc.php:22
isBlocked
isBlocked($iFirstProfile, $iSecondProfile)
Definition: utils.inc.php:128
PageListHotRemove
PageListHotRemove($iId, $iProfileId=0)
Definition: list_pop.php:446
genAjaxyPopupJS
genAjaxyPopupJS($iTargetID, $sDivID='ajaxy_popup_result_div', $sRedirect='')
Definition: design.inc.php:242
db_res
db_res($query, $bindings=[])
Definition: db.inc.php:39
getProfileInfo
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
Definition: profiles.inc.php:249
$aForm
$aForm
Definition: forgot.php:43
_setStatus
_setStatus($iTargetId, $sAction)
Definition: list_pop.php:686
DesignBoxContent
DesignBoxContent($title, $content, $db_num=0, $caption_item='', $bottom_item='')
Definition: design.inc.php:78
$oTemplConfig
$oTemplConfig
Definition: params.inc.php:90
$oUserStatus
$oUserStatus
Definition: short_profile_info.php:27
CH_SLASHES_AUTO
const CH_SLASHES_AUTO
Definition: utils.inc.php:27
$sStatus
$sStatus
Definition: actions.inc.php:11
$_page
$_page['name_index']
Definition: list_pop.php:13
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10
$bAjxMod
$bAjxMod
Definition: list_pop.php:29
clear_xss
clear_xss($val)
Definition: utils.inc.php:700
PageListSpam
PageListSpam($iProfileId, $mMembers='')
Definition: list_pop.php:262