Cheetah
functions.inc.php
Go to the documentation of this file.
1 <?php
2 
8 function rzGetMembershipValues($sMembership, $sName = "")
9 {
10  $rResult = getResult("SELECT `keys`.`ID` AS `ID`, `keys`.`Default` AS `Default`, `values`.`Value` AS `Value` FROM `" . MODULE_DB_PREFIX . "MembershipsSettings` AS `keys` LEFT JOIN `" . MODULE_DB_PREFIX . "Memberships` AS `values` ON `keys`.`ID`=`values`.`Setting` AND `values`.`Membership`='" . $sMembership . "'");
11  $sContents = '<membership id="' . $sMembership . '" ';
12  $iCount = $rResult->rowCount();
13  for($i=0; $i<$iCount; $i++) {
14  $aSetting = $rResult->fetch();
15  $sValue = !isset($aSetting['Value']) || $aSetting['Value'] == "" ? $aSetting['Default'] : $aSetting['Value'];
16  $sContents .= 'v' . $aSetting['ID'] . '="' . $sValue . '" ';
17  }
18  $sEnd = empty($sName) ? '/>' : '><![CDATA[' . $sName . ']]></membership>';
19  $sContents .= $sEnd;
20  return $sContents;
21 }
22 
23 function rzGetMembershipSettings($bAdmin = false)
24 {
25  $aSettingTmpls = array(
26  3 => '<setting id="#1#" name="#2#"><![CDATA[#3#]]></setting>',
27  6 => '<setting id="#1#" name="#2#" type="#3#" default="#4#" range="#5#"><![CDATA[#6#]]></setting>'
28  );
29 
30  $rResult = getResult("SELECT * FROM `" . MODULE_DB_PREFIX . "MembershipsSettings`");
31  $sSettings = "";
32  $iCount = $rResult->rowCount();
33  for($i=0; $i<$iCount; $i++) {
34  $aSetting = $rResult->fetch();
35  if($bAdmin) $sSettings .= parseXml($aSettingTmpls, $aSetting['ID'], $aSetting['Name'], $aSetting['Type'], $aSetting['Default'], $aSetting['Range'], $aSetting['Caption']);
36  else $sSettings .= parseXml($aSettingTmpls, $aSetting['ID'], $aSetting['Name'], $aSetting['Error']);
37  }
38  return makeGroup($sSettings, "settings");
39 }
40 
41 function initUser($aUser)
42 {
43  $aProfile = getArray("SELECT * FROM `" . MODULE_DB_PREFIX . "Profiles` WHERE `ID`='" . $aUser['id'] . "'");
44  if(!is_array($aProfile) || count($aProfile) == 0)
45  getResult("INSERT INTO `" . MODULE_DB_PREFIX . "Profiles` SET `ID`='" . $aUser['id'] . "', `Type`='" . $aUser['type'] . "', `Smileset`='" . $sDefSmileset . "'");
46  else $aUser['type'] = $aProfile["Type"];
47 
48  if(!useServer()) {
49  $iCurrentTime = time();
50  $sNick = getEscapedValue($aUser['nick']);
51  $sDescription = getEscapedValue($aUser['desc']);
52  getResult("REPLACE `" . MODULE_DB_PREFIX . "CurrentUsers` SET `ID`='" . $aUser['id'] . "', `Nick`='" . $sNick . "', `Sex`='" . $aUser['sex'] . "', `Age`='" . $aUser['age'] . "', `Desc`='" . $sDescription . "', `Photo`='" . $aUser['photo'] . "', `Profile`='" . $aUser['profile'] . "', `Start`='" . $iCurrentTime . "', `When`='" . $iCurrentTime . "', `Status`='" . USER_STATUS_NEW . "'");
53  getResult("DELETE FROM `" . MODULE_DB_PREFIX . "RoomsUsers` WHERE `User`='" . $aUser['id'] . "'");
54  }
55  $rFiles = getResult("SELECT `ID` FROM `" . MODULE_DB_PREFIX . "Messages` WHERE `Recipient`='" . $aUser['id'] . "' AND `Type`='file'");
56  while($aFile = $rFiles->fetch()) removeFile($aFile['ID']);
57  return $aUser;
58 }
59 
66 function doBan($sSwitch, $sId = "0")
67 {
70 
71  switch($sSwitch) {
72  case 'check': //--- check if user specified by ID is banned or not.
73  return getValue("SELECT `Banned` FROM `" . MODULE_DB_PREFIX . "Profiles` WHERE `ID` = '" . $sId . "' LIMIT 1") == TRUE_VAL;
74 
75  case 'ban': //--- ban the user specified by ID.
76  $sBan = TRUE_VAL;
77  //break shouldn't be here
78  case 'unban': //--- unban the user, specified by ID.
79  $sBan = FALSE_VAL;
80  default:
81  $sUserId = getValue("SELECT `ID` FROM `" . MODULE_DB_PREFIX ."Profiles` WHERE `ID` = '" . $sId . "' LIMIT 1");
82  $sSql = empty($sUserId)
83  ? "INSERT INTO `" . MODULE_DB_PREFIX . "Profiles`(`ID`, `Banned`, `Type`) VALUES('" . $sId . "', '" . $sBan . "', '" . CHAT_TYPE_FULL . "')"
84  : "UPDATE `" . MODULE_DB_PREFIX . "Profiles` SET `Banned`='" . $sBan . "' WHERE `ID`='" . $sId . "'";
85  return getResult($sSql);
86  }
87 }
88 
93 function getRooms($sMode = 'new', $sId = "")
94 {
97 
98  $iCurrentTime = time();
99  $iUpdateInterval = (int)getSettingValue($sModule, "updateInterval");
100  $iDeleteTime = $iUpdateInterval * 6;
101  $sRooms = "";
102  switch ($sMode) {
103  case 'update': //--- Return new and deleted rooms.
104  $rResult = getResult("SELECT * FROM `" . MODULE_DB_PREFIX . "Rooms` WHERE IF('" . $sId . "'='0', 1, `OwnerID`<>'" . $sId . "') AND (`When` >= (" . ($iCurrentTime - $iUpdateInterval) . ") OR (`Status`='" . ROOM_STATUS_DELETE . "' AND `When` >= " . ($iCurrentTime - $iDeleteTime) . ")) ORDER BY `When`");
105  while($aRoom = $rResult->fetch())
106  switch($aRoom['Status']) {
107  case ROOM_STATUS_DELETE:
108  $sRooms .= parseXml($aXmlTemplates['room'], $aRoom['ID'], ROOM_STATUS_DELETE);
109  break;
110  case ROOM_STATUS_NORMAL:
111  default:
112  $sRooms .= parseXml($aXmlTemplates['room'], $aRoom['ID'], ROOM_STATUS_NORMAL, $aRoom['OwnerID'], empty($aRoom['Password']) ? FALSE_VAL : TRUE_VAL, stripslashes($aRoom['Name']), stripslashes($aRoom['Desc']));
113  break;
114  }
115  break;
116 
117  case 'updateUsers':
118  $sSql = "SELECT `r`.`ID` AS `RoomID`, GROUP_CONCAT(DISTINCT IF(`ru`.`Status`='" . ROOM_STATUS_NORMAL . "',`ru`.`User`,'') SEPARATOR ',') AS `In`, GROUP_CONCAT(DISTINCT IF(`ru`.`Status`='" . ROOM_STATUS_DELETE . "',`ru`.`User`,'') SEPARATOR ',') AS `Out` FROM `" . MODULE_DB_PREFIX . "Rooms` AS `r` INNER JOIN `" . MODULE_DB_PREFIX . "RoomsUsers` AS `ru` WHERE `r`.`ID`=`ru`.`Room` AND `r`.`Status`='" . ROOM_STATUS_NORMAL . "' AND `ru`.`When`>=" . ($iCurrentTime - $iUpdateInterval) . " GROUP BY `r`.`ID`";
119  $rResult = getResult($sSql);
120  while($aRoom = $rResult->fetch())
121  $sRooms .= parseXml($aXmlTemplates['room'], $aRoom['RoomID'], $aRoom['In'], $aRoom['Out']);
122  break;
123 
124  case 'all':
125  $iRunTime = isset($_REQUEST['_t']) ? floor($_REQUEST['_t']/1000) : 0;
126  $iCurrentTime -= $iRunTime;
127  $rResult = getResult("SELECT `ID` FROM `" . MODULE_DB_PREFIX . "RoomsUsers`");
128  if($rResult->rowCount() == 0) getResult("TRUNCATE TABLE `" . MODULE_DB_PREFIX . "RoomsUsers`");
129  $iRoomsCount = getValue("SELECT COUNT(`ID`) FROM `" . MODULE_DB_PREFIX . "Rooms` WHERE `Status`='" . ROOM_STATUS_NORMAL . "'");
130 
131  if(empty($iRoomsCount))
132  getResult("INSERT INTO `" . MODULE_DB_PREFIX . "Rooms` (`Name`, `OwnerID`, `Desc`, `When`, `Status`) VALUES ('Lobby', '0', 'Welcome to our chat!', '0', 'normal')");
133 
134  $sSql = "SELECT `r`.`ID` AS `RoomID`, `r`.*, GROUP_CONCAT(DISTINCT IF(`ru`.`Status`='" . ROOM_STATUS_NORMAL . "' AND `ru`.`User`<>'" . $sId . "',`ru`.`User`,'') SEPARATOR ',') AS `In`, GROUP_CONCAT(DISTINCT IF(`ru`.`Status`='" . ROOM_STATUS_NORMAL . "' AND `ru`.`User`<>'" . $sId . "',(" . $iCurrentTime . "-`ru`.`When`),'') SEPARATOR ',') AS `InTime` FROM `" . MODULE_DB_PREFIX . "Rooms` AS `r` LEFT JOIN `" . MODULE_DB_PREFIX . "RoomsUsers` AS `ru` ON `r`.`ID`=`ru`.`Room` GROUP BY `r`.`ID` ORDER BY `r`.`ID` LIMIT " . getSettingValue($sModule, "maxRoomsNumber");
135  $rResult = getResult($sSql);
136  while($aRoom = $rResult->fetch())
137  $sRooms .= parseXml($aXmlTemplates['room'], $aRoom['RoomID'], $aRoom['OwnerID'], empty($aRoom['Password']) ? FALSE_VAL : TRUE_VAL, stripslashes($aRoom['Name']), stripslashes($aRoom['Desc']), $aRoom['In'], $aRoom['InTime']);
138  break;
139  }
140  return $sRooms;
141 }
142 
146 function doRoom($sSwitch, $sUserId = "", $iRoomId = 0, $sTitle = "", $sPassword = "", $sDesc = "", $bTemp = false)
147 {
148  $iCurrentTime = time();
149  switch ($sSwitch) {
150  case 'insert':
151  $aCurRoom = getArray("SELECT * FROM `" . MODULE_DB_PREFIX . "Rooms` WHERE `Name`='" . $sTitle . "'");
152  $sStatus = $bTemp ? ROOM_STATUS_DELETE : ROOM_STATUS_NORMAL;
153  if(!empty($aCurRoom['ID']) && $sUserId == $aCurRoom['OwnerID']) {
154  getResult("UPDATE `" . MODULE_DB_PREFIX . "Rooms` SET `Name`='" . $sTitle . "', `Password`='" . $sPassword . "', `Desc`='" . $sDesc . "', `OwnerID`='" . $sUserId . "', `When`='" . $iCurrentTime . "', `Status`='" . $sStatus . "' WHERE `ID`='" . $aCurRoom['ID'] . "'");
155  return $aCurRoom['ID'];
156  } else if(empty($aCurRoom['ID'])) {
157  getResult("INSERT INTO `" . MODULE_DB_PREFIX . "Rooms` (`ID`, `Name`, `Password`, `Desc`, `OwnerID`, `When`, `Status`) VALUES ('" . $iRoomId . "', '" . $sTitle . "', '" . $sPassword . "', '" . $sDesc . "', '" . $sUserId . "', '" . $iCurrentTime . "', '" . $sStatus . "')");
158  return getLastInsertId();
159  } else return 0;
160  break;
161 
162  case 'update':
163  getResult("UPDATE `" . MODULE_DB_PREFIX . "Rooms` SET `Name`='" . $sTitle . "', `Password`='" . $sPassword . "', `Desc`='" . $sDesc . "', `When`='" . $iCurrentTime . "', `Status`='" . ROOM_STATUS_NORMAL . "' WHERE `ID`='" . $iRoomId . "'");
164  break;
165 
166  case 'delete':
167  $sSql = "UPDATE `" . MODULE_DB_PREFIX . "Rooms` SET `When`='" . $iCurrentTime . "', `Status`='" . ROOM_STATUS_DELETE . "' WHERE `ID` = '" . $iRoomId . "'";
168  getResult($sSql);
169  break;
170 
171  case 'enter':
172  $sId = getValue("SELECT `ID` FROM `" . MODULE_DB_PREFIX . "RoomsUsers` WHERE `Room`='" . $iRoomId . "' AND `User`='" . $sUserId . "' LIMIT 1");
173  if(empty($sId)) getResult("INSERT INTO `" . MODULE_DB_PREFIX . "RoomsUsers`(`Room`, `User`, `When`) VALUES('" . $iRoomId . "', '" . $sUserId . "', '" . $iCurrentTime . "')");
174  else getResult("UPDATE `" . MODULE_DB_PREFIX . "RoomsUsers` SET `When`='" . $iCurrentTime . "', `Status`='" . ROOM_STATUS_NORMAL . "' WHERE `ID`='" . $sId . "'");
175  break;
176 
177  case 'exit':
178  getResult("UPDATE `" . MODULE_DB_PREFIX . "RoomsUsers` SET `When`='" . $iCurrentTime . "', `Status`='" . ROOM_STATUS_DELETE . "' WHERE `Room`='" . $iRoomId . "' AND `User`='" . $sUserId . "' LIMIT 1");
179  break;
180 
181  case 'deleteTemp':
182  if(useServer())
183  getResult("DELETE FROM `" . MODULE_DB_PREFIX . "Rooms` WHERE `Status`='" . ROOM_STATUS_DELETE . "' AND `When`<" . ($iCurrentTime - 24*60*60));
184  break;
185  }
186 }
187 
193 function refreshUsersInfo($sId = "", $sMode = 'all')
194 {
197 
198  $iUpdateInterval = (int)getSettingValue($sModule, "updateInterval");
199  $iIdleTime = $iUpdateInterval * 3;
200  $iDeleteTime = $iUpdateInterval * 6;
201 
202  $iCurrentTime = time();
203  //--- refresh current user's track ---//
204  getResult("UPDATE `" . MODULE_DB_PREFIX . "CurrentUsers` SET `Status`='" . USER_STATUS_OLD . "', `When`='" . $iCurrentTime . "' WHERE `ID`='" . $sId . "' AND `Status`<>'" . USER_STATUS_KICK . "' AND (`Status` NOT IN('" . USER_STATUS_NEW . "', '" . USER_STATUS_TYPE . "', '" . USER_STATUS_ONLINE . "') || (" . $iCurrentTime . "-`When`)>" . $iUpdateInterval . ") LIMIT 1");
205 
206  //--- refresh other users' states ---//
207  getResult("UPDATE `" . MODULE_DB_PREFIX . "CurrentUsers` SET `When`=" . $iCurrentTime . ", `Status`='" . USER_STATUS_IDLE . "' WHERE `Status`<>'" . USER_STATUS_IDLE . "' AND `When`<=(" . ($iCurrentTime - $iIdleTime) . ")");
208  getResult("DELETE FROM `" . MODULE_DB_PREFIX . "RoomsUsers` WHERE `Status`='" . ROOM_STATUS_DELETE . "' AND `When`<=(" . ($iCurrentTime - $iDeleteTime) . ")");
209 
210  $rFiles = getResult("SELECT `files`.`ID` AS `FileID` FROM `" . MODULE_DB_PREFIX . "Messages` AS `files` INNER JOIN `" . MODULE_DB_PREFIX . "CurrentUsers` AS `users` WHERE `files`.`Recipient`=`users`.`ID` AND `files`.`Type`='file' AND `users`.`Status`='" . USER_STATUS_IDLE . "' AND `users`.`When`<=" . ($iCurrentTime - $iDeleteTime));
211  while($aFile = $rFiles->fetch()) removeFile($aFile['FileID']);
212 
213  //--- delete idle users, whose track was not refreshed more than delete time ---//
214  getResult("DELETE FROM `" . MODULE_DB_PREFIX . "CurrentUsers`, `" . MODULE_DB_PREFIX . "RoomsUsers` USING `" . MODULE_DB_PREFIX . "CurrentUsers`, `" . MODULE_DB_PREFIX . "RoomsUsers` WHERE `" . MODULE_DB_PREFIX . "CurrentUsers`.`ID`=`" . MODULE_DB_PREFIX . "RoomsUsers`.`User` AND `" . MODULE_DB_PREFIX . "CurrentUsers`.`Status`='" . USER_STATUS_IDLE . "' AND `" . MODULE_DB_PREFIX . "CurrentUsers`.`When`<=" . ($iCurrentTime - $iDeleteTime));
215  //--- delete old rooms ---//
216  getResult("DELETE FROM `" . MODULE_DB_PREFIX . "Rooms`, `" . MODULE_DB_PREFIX . "RoomsUsers` USING `" . MODULE_DB_PREFIX . "Rooms`,`" . MODULE_DB_PREFIX . "RoomsUsers` WHERE `" . MODULE_DB_PREFIX . "Rooms`.`ID`=`" . MODULE_DB_PREFIX . "RoomsUsers`.`Room` AND `" . MODULE_DB_PREFIX . "Rooms`.`Status`='" . ROOM_STATUS_DELETE . "' AND `" . MODULE_DB_PREFIX . "Rooms`.`When`<=(" . ($iCurrentTime - $iDeleteTime) . ")");
217 
218  //--- delete empty rooms ---//
219  if(getSettingValue($sModule, "removeRooms") == TRUE_VAL) {
220  $aIds = getAdminIds();
221  $sIds = count($aIds)>0 ? " AND `OwnerID` NOT IN (" . implode(',', $aIds) . ")" : "";
222  $rResult = getResult("SELECT DISTINCT(`Room`) FROM `" . MODULE_DB_PREFIX . "RoomsUsers`");
223  $aFullRooms = array();
224  $iCount = $rResult->rowCount();
225  for($i=0; $i<$iCount; $i++) {
226  $aFullRoom = $rResult->fetch();
227  $aFullRooms[] = $aFullRoom['Room'];
228  }
229  $sFullRooms = count($aFullRooms)>0 ? "`ID` NOT IN(" . implode(',', $aFullRooms) . ") AND " : "";
230  getResult("UPDATE `" . MODULE_DB_PREFIX . "Rooms` SET `Status`='" . ROOM_STATUS_DELETE . "', `When`=" . $iCurrentTime . " WHERE " . $sFullRooms . "`OwnerID`<>0" . $sIds);
231  }
232 
233  //--- delete old messages ---//
234  getResult("DELETE FROM `" . MODULE_DB_PREFIX . "Messages` WHERE `Type`='text' AND `When`<=(" . ($iCurrentTime - $iDeleteTime) . ")");
235  //--- Get information about users in the chat ---//
236  switch($sMode) {
237  case 'update':
238  $rRes = getResult("SELECT ccu.`ID` AS `ID`, ccu.`Nick` AS `Nick`, ccu.`Sex` AS `Sex`, ccu.`Age` AS `Age`, ccu.`Desc` AS `Desc`, ccu.`Photo` AS `Photo`, ccu.`Profile` AS `Profile`, ccu.`Status` AS `Status`, ccu.`Online` AS `Online`, rp.`Type` AS `Type` FROM `" . MODULE_DB_PREFIX . "Profiles` AS rp, `" . MODULE_DB_PREFIX . "CurrentUsers` AS ccu WHERE rp.`ID`=ccu.`ID` ORDER BY ccu.`When`");
239  while($aUser = $rRes->fetch()) {
240  if($aUser['ID'] == $sId && !($aUser['Status'] == USER_STATUS_KICK || $aUser['Status'] == USER_STATUS_TYPE)) continue;
241  switch($aUser['Status']) {
242  case USER_STATUS_NEW:
243  $sContent .= parseXml($aXmlTemplates['user'], $aUser['ID'], $aUser['Status'], $aUser['Nick'], $aUser['Sex'], $aUser['Age'], stripslashes($aUser['Desc']), $aUser['Photo'], $aUser['Profile'], $aUser['Type'], $aUser['Online']);
244  break;
245  case USER_STATUS_TYPE:
246  $sContent .= parseXml($aXmlTemplates['user'], $aUser['ID'], $aUser['Status'], $aUser['Type']);
247  break;
248  case USER_STATUS_ONLINE:
249  $sContent .= parseXml($aXmlTemplates['user'], $aUser['ID'], $aUser['Status'], $aUser['Type'], $aUser['Online']);
250  break;
251  case USER_STATUS_IDLE:
252  case USER_STATUS_KICK:
253  $sContent .= parseXml($aXmlTemplates['user'], $aUser['ID'], $aUser['Status']);
254  break;
255  }
256  }
257  break;
258 
259  case 'all':
260  $iRunTime = isset($_REQUEST['_t']) ? floor($_REQUEST['_t']/1000) : 0;
261  $iCurrentTime -= $iRunTime;
262  $rRes = getResult("SELECT ccu.`ID` AS `ID`, ccu.`Nick` AS `Nick`, ccu.`Sex` AS `Sex`, ccu.`Age` AS `Age`, ccu.`Desc` AS `Desc`, ccu.`Photo` AS `Photo`, ccu.`Profile` AS `Profile`, ccu.`Online` AS `Online`, rp.`Type` AS `Type`, (" . $iCurrentTime . "-`ccu`.`Start`) AS `Time` FROM `" . MODULE_DB_PREFIX . "Profiles` AS rp, `" . MODULE_DB_PREFIX . "CurrentUsers` AS ccu WHERE rp.`ID`=ccu.`ID` AND ccu.`Status` NOT IN ('" . USER_STATUS_IDLE . "', '" . USER_STATUS_KICK . "') AND rp.`Banned`='" . FALSE_VAL . "' ORDER BY ccu.`When`");
263  while($aUser = $rRes->fetch())
264  $sContent .= parseXml($aXmlTemplates['user'], $aUser['ID'], USER_STATUS_NEW, $aUser['Nick'], $aUser['Sex'], $aUser['Age'], stripslashes($aUser['Desc']), $aUser['Photo'], $aUser['Profile'], $aUser['Type'], $aUser['Online'], $aUser['Time']);
265  break;
266  }
267  return makeGroup($sContent, "users");
268 }
269 
270 function removeFile($sFileId)
271 {
273  @getResult("DELETE FROM `" . MODULE_DB_PREFIX . "Messages` WHERE `ID`='" . $sFileId . "'");
274  @unlink($sFilesPath . $sFileId . ".file");
275 }
getLastInsertId
getLastInsertId()
Definition: db.inc.php:66
getRooms
getRooms($sMode='new', $sId="")
Definition: functions.inc.php:93
removeFile
removeFile($sFileId)
Definition: functions.inc.php:270
$sMode
else $sMode
Definition: antispam.php:362
$iRoomId
$iRoomId
Definition: actions.inc.php:19
refreshUsersInfo
refreshUsersInfo($sId="", $sMode='all')
Definition: functions.inc.php:126
php
doRoom
doRoom($sSwitch, $sUserId="", $iRoomId=0, $sTitle="", $sPassword="", $sDesc="", $bTemp=false)
Definition: functions.inc.php:146
getValue
getValue($sQuery)
Definition: db.inc.php:59
$sModule
if(!file_exists($sRayHeaderPath)) $sModule
Definition: index.php:14
initUser
initUser($aUser)
Definition: functions.inc.php:41
$sPassword
$sPassword
Definition: actions.inc.php:10
rzGetMembershipValues
rzGetMembershipValues($sMembership, $sName="")
Definition: functions.inc.php:8
$sTitle
$sTitle
Definition: actions.inc.php:13
$aProfile
$aProfile
Definition: flash.php:14
$_REQUEST
$_REQUEST['action']
Definition: cmd.php:11
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
$sContent
$sContent
Definition: bottom_menu_compose.php:169
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
$sDefSmileset
$sDefSmileset
Definition: header.inc.php:78
parseXml
parseXml($aXmlTemplates)
Definition: apiFunctions.inc.php:15
useServer
useServer()
Definition: apiFunctions.inc.php:129
makeGroup
makeGroup($sXmlContent, $sXmlGroup="ray")
Definition: apiFunctions.inc.php:32
$aUser
$aUser
Definition: profiles.inc.php:74
$aXmlTemplates
$aXmlTemplates
Definition: xmlTemplates.inc.php:8
$sId
$sId
Definition: actions.inc.php:8
getEscapedValue
getEscapedValue($sValue)
Definition: db.inc.php:73
getSettingValue
getSettingValue($sWidget, $sSettingKey, $sFile="config", $bFullReturn=false, $sFolder="xml")
Definition: apiFunctions.inc.php:82
$sFilesPath
$sFilesPath
Definition: header.inc.php:10
$sContents
$sContents
Definition: XML.php:38
getAdminIds
getAdminIds()
Definition: customFunctions.inc.php:30
$sNick
$sNick
Definition: actions.inc.php:9
empty
Attr AllowedRel this is empty
Definition: Attr.AllowedRel.txt:7
$sDesc
$sDesc
Definition: actions.inc.php:21
getArray
getArray($sQuery)
Definition: db.inc.php:52
$sName
$sName
Definition: ChWsbAdminTools.php:853
$sStatus
$sStatus
Definition: actions.inc.php:11
doBan
doBan($sSwitch, $sId="0")
Definition: functions.inc.php:66
rzGetMembershipSettings
rzGetMembershipSettings($bAdmin=false)
Definition: functions.inc.php:23
getResult
getResult($sQuery)
Definition: db.inc.php:45