Changeset 9969
- Timestamp:
- 04/06/09 03:52:46 (3 years ago)
- Location:
- trunk
- Files:
-
- 49 edited
-
admin/manage_subscribers.php (modified) (5 diffs)
-
admin/memb_levels.php (modified) (15 diffs)
-
admin/notifies.php (modified) (14 diffs)
-
admin/profiles.php (modified) (1 diff)
-
explanation.php (modified) (1 diff)
-
inc/admin.inc.php (modified) (1 diff)
-
inc/match.inc.php (modified) (1 diff)
-
inc/membership_levels.inc.php (modified) (17 diffs)
-
install/sql/v70.sql (modified) (12 diffs)
-
modules/boonex/ads/classes/BxAdsDb.php (modified) (1 diff)
-
modules/boonex/ads/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/ads/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/avatar/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/avatar/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/blogs/classes/BxBlogsDb.php (modified) (1 diff)
-
modules/boonex/blogs/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/blogs/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/board/classes/BxBoardDb.php (modified) (1 diff)
-
modules/boonex/board/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/board/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/chat/classes/BxChatDb.php (modified) (1 diff)
-
modules/boonex/chat/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/chat/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/events/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/events/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/forum/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/forum/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/map_profiles/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/map_profiles/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/messenger/classes/BxMsgDb.php (modified) (1 diff)
-
modules/boonex/messenger/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/messenger/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/presence/classes/BxPrcDb.php (modified) (1 diff)
-
modules/boonex/presence/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/presence/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/shared_video/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/shared_video/install/sql/uninstall.sql (modified) (2 diffs)
-
modules/boonex/shoutbox/classes/BxSboxDb.php (modified) (1 diff)
-
modules/boonex/shoutbox/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/shoutbox/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/sites/classes/BxSitesDb.php (modified) (1 diff)
-
modules/boonex/sites/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/sites/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/store/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/store/install/sql/uninstall.sql (modified) (1 diff)
-
modules/boonex/wall/classes/BxWallDb.php (modified) (1 diff)
-
modules/boonex/wall/install/sql/install.sql (modified) (1 diff)
-
modules/boonex/wall/install/sql/uninstall.sql (modified) (1 diff)
-
periodic/notifies.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/manage_subscribers.php
r9395 r9969 158 158 EOF; 159 159 160 $sCntSQL = "SELECT COUNT(*) FROM ` NotifyEmails`";160 $sCntSQL = "SELECT COUNT(*) FROM `sys_subscriptions`"; 161 161 //////////////////////////// 162 162 $iTotalNum = db_value( $sCntSQL ); … … 178 178 //////////////////////////// 179 179 180 $sSQL = "SELECT * FROM ` NotifyEmails` ORDER BY `EmailFlag` ASC, `ID` {$sqlLimit}";180 $sSQL = "SELECT * FROM `sys_subscriptions` ORDER BY `EmailFlag` ASC, `ID` {$sqlLimit}"; 181 181 $vSubscribers = db_res( $sSQL ); 182 182 … … 255 255 $sName = process_db_input($_REQUEST['name']); 256 256 if ($iID>0) { 257 $sDeleteSQL = "UPDATE ` NotifyEmails` SET `Email`='{$sName}' WHERE `ID`='{$iID}' LIMIT 1";257 $sDeleteSQL = "UPDATE `sys_subscriptions` SET `Email`='{$sName}' WHERE `ID`='{$iID}' LIMIT 1"; 258 258 db_res($sDeleteSQL); 259 259 } … … 263 263 $iID = (int)$_REQUEST['id']; 264 264 if ($iID>0) { 265 $sDeleteSQL = "DELETE FROM ` NotifyEmails` WHERE `ID`='{$iID}' LIMIT 1";265 $sDeleteSQL = "DELETE FROM `sys_subscriptions` WHERE `ID`='{$iID}' LIMIT 1"; 266 266 db_res($sDeleteSQL); 267 267 } … … 274 274 } 275 275 $sInArr = implode(",", $aKeys); 276 $sDeleteSQL = "DELETE FROM ` NotifyEmails` WHERE `ID` IN ({$sInArr})";276 $sDeleteSQL = "DELETE FROM `sys_subscriptions` WHERE `ID` IN ({$sInArr})"; 277 277 db_res($sDeleteSQL); 278 278 } -
trunk/admin/memb_levels.php
r9968 r9969 135 135 if(!get_magic_quotes_gpc()) $membershipName = addslashes($membershipName); 136 136 137 @mysql_query("INSERT INTO MemLevels(Name) VALUES ('$membershipName')");137 @mysql_query("INSERT INTO `sys_acl_levels` (Name) VALUES ('$membershipName')"); 138 138 139 139 if(mysql_affected_rows() > 0) { … … 151 151 if($membershipID <= 0) return ''; 152 152 153 $resMemLevel = mysql_query("SELECT Removable FROM MemLevelsWHERE ID = $membershipID");153 $resMemLevel = mysql_query("SELECT Removable FROM `sys_acl_levels` WHERE ID = $membershipID"); 154 154 155 155 if(mysql_num_rows($resMemLevel) < 1) { … … 186 186 } 187 187 188 @mysql_query("DELETE FROM MemLevelPricesWHERE IDLevel = $membershipID");189 @mysql_query("DELETE FROM MemLevelActionsWHERE IDLevel = $membershipID");190 @mysql_query("DELETE FROM MemLevelsWHERE ID = $membershipID");188 @mysql_query("DELETE FROM `sys_acl_level_prices` WHERE IDLevel = $membershipID"); 189 @mysql_query("DELETE FROM `sys_acl_matrix` WHERE IDLevel = $membershipID"); 190 @mysql_query("DELETE FROM `sys_acl_levels` WHERE ID = $membershipID"); 191 191 192 192 if(mysql_affected_rows() > 0) { … … 204 204 if($membershipID <= 0) return ''; 205 205 206 $resMemLevel = mysql_query("SELECT Purchasable FROM MemLevelsWHERE ID = $membershipID");206 $resMemLevel = mysql_query("SELECT Purchasable FROM `sys_acl_levels` WHERE ID = $membershipID"); 207 207 208 208 if(mysql_num_rows($resMemLevel) < 1) { … … 219 219 } 220 220 221 @mysql_query("UPDATE MemLevelsSET Active = '$active' WHERE ID = $membershipID");221 @mysql_query("UPDATE `sys_acl_levels` SET Active = '$active' WHERE ID = $membershipID"); 222 222 223 223 if(mysql_affected_rows() <= 0){ … … 262 262 </tr> 263 263 <? 264 $resMemLevels = db_res ( "SELECT ID, Name, Active, Purchasable, Removable FROM MemLevelsORDER BY ID" );264 $resMemLevels = db_res ( "SELECT ID, Name, Active, Purchasable, Removable FROM `sys_acl_levels` ORDER BY ID" ); 265 265 266 266 if (mysql_num_rows($resMemLevels) <= 0) { … … 357 357 if($days < 0 || $price <= 0) return "\n<div class=\"actionFailure\">Error: payment option has not been added</div>"; 358 358 359 @mysql_query("INSERT INTO MemLevelPrices(IDLevel, Days, Price) VALUES ($membershipID, $days, $price)");359 @mysql_query("INSERT INTO `sys_acl_level_prices` (IDLevel, Days, Price) VALUES ($membershipID, $days, $price)"); 360 360 361 361 if(mysql_affected_rows() > 0) … … 381 381 if($membershipID <= 0 || $days < 0) return ''; 382 382 383 @mysql_query("DELETE FROM MemLevelPricesWHERE IDLevel = $membershipID AND Days = $days");383 @mysql_query("DELETE FROM `sys_acl_level_prices` WHERE IDLevel = $membershipID AND Days = $days"); 384 384 385 385 if(mysql_affected_rows() > 0) … … 405 405 //check if membership can be purchased 406 406 407 $resMemLevel = mysql_query("SELECT Purchasable FROM MemLevelsWHERE ID = $membershipID");407 $resMemLevel = mysql_query("SELECT Purchasable FROM `sys_acl_levels` WHERE ID = $membershipID"); 408 408 409 409 if(mysql_num_rows($resMemLevel) < 1) { … … 430 430 if($_POST['delete_payment_option']) echo deletePaymentOption($membershipID, $_POST['delete_payment_days']); 431 431 432 $resLevelPrices = db_res("SELECT Days, Price FROM MemLevelPricesWHERE IDLevel = $membershipID ORDER BY Days");432 $resLevelPrices = db_res("SELECT Days, Price FROM `sys_acl_level_prices` WHERE IDLevel = $membershipID ORDER BY Days"); 433 433 ?> 434 434 <div align="right"> … … 510 510 if($membershipID <= 0 || $actionID <= 0) return ''; 511 511 512 @mysql_query("INSERT INTO MemLevelActions512 @mysql_query("INSERT INTO `sys_acl_matrix` 513 513 (IDLevel, IDAction, AllowedCount, AllowedPeriodLen, AllowedPeriodStart, AllowedPeriodEnd) 514 514 VALUES ($membershipID, $actionID, NULL, NULL, NULL, NULL)"); … … 530 530 if($membershipID <= 0 || $actionID <= 0) return ''; 531 531 532 @mysql_query("DELETE FROM MemLevelActionsWHERE IDLevel = $membershipID AND IDAction = $actionID");532 @mysql_query("DELETE FROM `sys_acl_matrix` WHERE IDLevel = $membershipID AND IDAction = $actionID"); 533 533 534 534 if(mysql_affected_rows() > 0) … … 577 577 578 578 @mysql_query(" 579 UPDATE MemLevelActions579 UPDATE `sys_acl_matrix` 580 580 SET AllowedCount = $cnt, 581 581 AllowedPeriodLen = $periodLen, … … 608 608 <div class="sectionBody"><div style="padding: 10px"> --> 609 609 <? 610 $resActions = db_res("SELECT ID, Name FROM MemActionsORDER BY Name");610 $resActions = db_res("SELECT ID, Name FROM `sys_acl_actions` ORDER BY Name"); 611 611 612 612 $arrActions = array(); … … 639 639 AdditionalParamName, 640 640 AdditionalParamValue 641 FROM MemLevelActions642 INNER JOIN MemActions643 ON MemLevelActions.IDAction = MemActions.ID644 WHERE MemLevelActions.IDLevel = $membershipID645 ORDER BY MemActions.Name");641 FROM `sys_acl_matrix` 642 INNER JOIN `sys_acl_actions` 643 ON `sys_acl_matrix`.IDAction = `sys_acl_actions`.ID 644 WHERE `sys_acl_matrix`.IDLevel = $membershipID 645 ORDER BY `sys_acl_actions`.Name"); 646 646 647 647 $arrLevelActions = array(); -
trunk/admin/notifies.php
r7128 r9969 39 39 40 40 // Select count of emails in queue per one message 41 $query = "SELECT NotifyMsgs.ID, NotifyMsgs.Subj, COUNT(NotifyQueue.Email) AS `count_per_msg` FROM NotifyMsgs INNER JOIN NotifyQueue ON (NotifyQueue.Msg = NotifyMsgs.ID) GROUP BY NotifyMsgs.ID";41 $query = "SELECT `sys_mass_messages`.ID, `sys_mass_messages`.Subj, COUNT(`sys_mail_queue`.Email) AS `count_per_msg` FROM `sys_mass_messages` INNER JOIN `sys_mail_queue` ON (`sys_mail_queue`.Msg = `sys_mass_messages`.ID) GROUP BY `sys_mass_messages`.ID"; 42 42 $res = db_res($query); 43 43 if ( !mysql_num_rows($res) ) … … 70 70 71 71 // Select count of messages in queue for cupid mails 72 $arr_count = db_arr("SELECT COUNT(*) `count` FROM ` NotifyQueue` WHERE `From` = 'ProfilesMsgText'");72 $arr_count = db_arr("SELECT COUNT(*) `count` FROM `sys_mail_queue` WHERE `From` = 'ProfilesMsgText'"); 73 73 $numrows = $arr_count['count']; 74 74 if ( !$numrows ) … … 116 116 $ret = ""; 117 117 118 $query = "SELECT `ID` FROM ` NotifyMsgs` WHERE `ID` = $msg_id";118 $query = "SELECT `ID` FROM `sys_mass_messages` WHERE `ID` = $msg_id"; 119 119 $arr_arr = db_arr( $query ); 120 120 if ( !$arr_arr ) … … 126 126 $emails = 0; 127 127 128 // Send to all emails in NotifyEmails table128 // Send to all emails in sys_subscriptions table 129 129 if ( $_POST['send_to_subscribers'] == 'on' ) 130 130 { 131 $res_eml = db_res( "SELECT `ID` FROM ` NotifyEmails`" );131 $res_eml = db_res( "SELECT `ID` FROM `sys_subscriptions`" ); 132 132 while ($arr_eml = mysql_fetch_array($res_eml)) 133 133 { 134 $res = db_res("SELECT ` NotifyEmails`.`Email` FROM `NotifyQueue` INNER JOIN `NotifyEmails` ON (`NotifyQueue`.`Email` = `NotifyEmails`.`ID`) WHERE `NotifyQueue`.`Email` = {$arr_eml['ID']} AND `NotifyQueue`.`Msg` = $msg_id AND `From` = 'NotifyEmails'");134 $res = db_res("SELECT `sys_subscriptions`.`Email` FROM `sys_mail_queue` INNER JOIN `sys_subscriptions` ON (`sys_mail_queue`.`Email` = `sys_subscriptions`.`ID`) WHERE `sys_mail_queue`.`Email` = {$arr_eml['ID']} AND `sys_mail_queue`.`Msg` = $msg_id AND `From` = 'sys_subscriptions'"); 135 135 if ( $res && ($arr = mysql_fetch_array($res)) ) 136 136 { … … 139 139 } 140 140 141 $res = db_res("INSERT INTO ` NotifyQueue` SET `Email` = {$arr_eml['ID']}, `Msg` = $msg_id, `From` = 'NotifyEmails', `Creation` = NOW()");141 $res = db_res("INSERT INTO `sys_mail_queue` SET `Email` = {$arr_eml['ID']}, `Msg` = $msg_id, `From` = 'sys_subscriptions', `Creation` = NOW()"); 142 142 if ( !$res ) 143 143 { … … 222 222 continue; 223 223 224 $res = db_res("SELECT `Profiles`.`Email` FROM ` NotifyQueue` INNER JOIN `Profiles` ON (`NotifyQueue`.`Email` = `Profiles`.`ID`) WHERE `NotifyQueue`.`Email` = {$arr_eml['ID']} AND `NotifyQueue`.`Msg` = $msg_id AND `From` = 'Profiles' ");224 $res = db_res("SELECT `Profiles`.`Email` FROM `sys_mail_queue` INNER JOIN `Profiles` ON (`sys_mail_queue`.`Email` = `Profiles`.`ID`) WHERE `sys_mail_queue`.`Email` = {$arr_eml['ID']} AND `sys_mail_queue`.`Msg` = $msg_id AND `From` = 'Profiles' "); 225 225 if ( $res && ($arr = mysql_fetch_array($res)) ) 226 226 { … … 229 229 } 230 230 231 $res = db_res("INSERT INTO ` NotifyQueue` SET `Email` = {$arr_eml['ID']}, `Msg` = $msg_id, `From` = 'Profiles', `Creation` = NOW()");231 $res = db_res("INSERT INTO `sys_mail_queue` SET `Email` = {$arr_eml['ID']}, `Msg` = $msg_id, `From` = 'Profiles', `Creation` = NOW()"); 232 232 if ( !$res ) 233 233 { … … 247 247 function AddMessage() 248 248 { 249 $query = "INSERT INTO ` NotifyMsgs` SET `Subj` = '". process_db_input($_POST['subj']) ."', `Text` = '". process_db_input(html2txt($_POST['body_html'])) ."',`HTML` = '". process_db_input($_POST['body_html']) ."'";249 $query = "INSERT INTO `sys_mass_messages` SET `Subj` = '". process_db_input($_POST['subj']) ."', `Text` = '". process_db_input(html2txt($_POST['body_html'])) ."',`HTML` = '". process_db_input($_POST['body_html']) ."'"; 250 250 251 251 $res = db_res( $query ); … … 258 258 function UpdateMessage() 259 259 { 260 $query = "UPDATE ` NotifyMsgs` SET `Subj` = '". process_db_input($_POST['subj']) ."', `Text` = '". process_db_input(html2txt($_POST['body_html'])) ."', `HTML` = '". process_db_input($_POST['body_html']) ."' WHERE ID = '". (int)$_POST['msgs_id'] ."'";260 $query = "UPDATE `sys_mass_messages` SET `Subj` = '". process_db_input($_POST['subj']) ."', `Text` = '". process_db_input(html2txt($_POST['body_html'])) ."', `HTML` = '". process_db_input($_POST['body_html']) ."' WHERE ID = '". (int)$_POST['msgs_id'] ."'"; 261 261 262 262 $res = db_res( $query ); … … 293 293 function DeleteMessage() 294 294 { 295 $query = "DELETE FROM ` NotifyMsgs` WHERE `ID` = ". (int)$_POST['msgs_id'];295 $query = "DELETE FROM `sys_mass_messages` WHERE `ID` = ". (int)$_POST['msgs_id']; 296 296 if ( !($res = db_res( $query )) ) 297 297 return $res; … … 299 299 $_POST['msgs_id'] = 0; 300 300 301 $query = "DELETE FROM ` NotifyQueue` WHERE `Msg` = ". (int)$_POST['msgs_id'];301 $query = "DELETE FROM `sys_mail_queue` WHERE `Msg` = ". (int)$_POST['msgs_id']; 302 302 $res = db_res( $query ); 303 303 … … 307 307 function EmptyQueue() 308 308 { 309 return db_res("TRUNCATE TABLE ` NotifyQueue`");309 return db_res("TRUNCATE TABLE `sys_mail_queue`"); 310 310 } 311 311 … … 384 384 <? 385 385 386 $res_msgs = db_res("SELECT `ID`, `Subj`, `Text`, `HTML`, (`ID` = ". (int)$_POST['msgs_id'] ." OR `Subj` = '". process_db_input($_POST['subj']) ."' ) AS `Selected` FROM ` NotifyMsgs`");386 $res_msgs = db_res("SELECT `ID`, `Subj`, `Text`, `HTML`, (`ID` = ". (int)$_POST['msgs_id'] ." OR `Subj` = '". process_db_input($_POST['subj']) ."' ) AS `Selected` FROM `sys_mass_messages`"); 387 387 while ( $arr_msgs = mysql_fetch_array($res_msgs) ) 388 388 { … … 413 413 elseif ( $_POST['msgs_id'] ) 414 414 { 415 $arr = db_arr( "SELECT * FROM ` NotifyMsgs` WHERE `ID` = ". (int)$_POST['msgs_id'] );415 $arr = db_arr( "SELECT * FROM `sys_mass_messages` WHERE `ID` = ". (int)$_POST['msgs_id'] ); 416 416 $body_html = $arr['HTML']; 417 417 $body_text = $arr['Text']; -
trunk/admin/profiles.php
r9959 r9969 256 256 257 257 if (getParam("free_mode") != 'on') { 258 $sMemField = ", `IDLevel`, IF(ISNULL(` MemLevels`.`Name`),'', `MemLevels`.`Name`) AS `MemName`";258 $sMemField = ", `IDLevel`, IF(ISNULL(`sys_acl_levels`.`Name`),'', `sys_acl_levels`.`Name`) AS `MemName`"; 259 259 $sMemJoin = "LEFT JOIN `ProfileMemLevels` ON `ProfileMemLevels`.`IDMember` = `Profiles`.`ID` 260 LEFT JOIN ` MemLevels` ON `ProfileMemLevels`.`IDLevel` = `MemLevels`.`ID` ";260 LEFT JOIN `sys_acl_levels` ON `ProfileMemLevels`.`IDLevel` = `sys_acl_levels`.`ID` "; 261 261 $sMemLevelShow = 'style="display:block;"'; 262 262 $sGroup = "GROUP BY `Profiles`.`ID`"; -
trunk/explanation.php
r8016 r9969 60 60 AdditionalParamName, 61 61 AdditionalParamValue 62 FROM MemLevelActions63 INNER JOIN MemActions64 ON MemLevelActions.IDAction = MemActions.ID65 WHERE MemLevelActions.IDLevel = '{$membershipID}'66 ORDER BY MemActions.Name");62 FROM `sys_acl_matrix` 63 INNER JOIN `sys_acl_actions` 64 ON `sys_acl_matrix`.IDAction = `sys_acl_actions`.ID 65 WHERE `sys_acl_matrix`.IDLevel = '{$membershipID}' 66 ORDER BY `sys_acl_actions`.Name"); 67 67 68 68 ob_start(); -
trunk/inc/admin.inc.php
r9968 r9969 1067 1067 return 0; 1068 1068 1069 $arr = db_arr("SELECT ID FROM NotifyEmailsWHERE Email LIKE '$email' LIMIT 1");1069 $arr = db_arr("SELECT ID FROM `sys_subscriptions` WHERE Email LIKE '$email' LIMIT 1"); 1070 1070 if ( $arr['ID'] ) 1071 1071 return 0; 1072 1072 1073 return db_res("INSERT INTO NotifyEmailsSET Email = '$email', Name = '$Name', EmailFlag = '$EmailFlag', EmailText = '$EmailText'");1073 return db_res("INSERT INTO `sys_subscriptions` SET Email = '$email', Name = '$Name', EmailFlag = '$EmailFlag', EmailText = '$EmailText'"); 1074 1074 } 1075 1075 -
trunk/inc/match.inc.php
r8641 r9969 131 131 $headers = "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=UTF-8\r\n" . $headers; 132 132 133 $sql = "INSERT INTO ` NotifyQueue` SET `Email` = {$aAnyProf['ID']}, Msg = 0, `From` = 'ProfilesMsgText', Creation = NOW(), MsgText = '$message', MsgSubj = '$subject'";133 $sql = "INSERT INTO `sys_mail_queue` SET `Email` = {$aAnyProf['ID']}, Msg = 0, `From` = 'ProfilesMsgText', Creation = NOW(), MsgText = '$message', MsgSubj = '$subject'"; 134 134 $res = db_res($sql); 135 135 return true; -
trunk/inc/membership_levels.inc.php
r9126 r9969 162 162 $arrMemLevel =& $GLOBALS['MySQL']->fromMemory($sCacheName, 'getRow', " 163 163 SELECT ProfileMemLevels.IDLevel as ID, 164 MemLevels.Name as Name,164 `sys_acl_levels`.Name as Name, 165 165 UNIX_TIMESTAMP(ProfileMemLevels.DateStarts) as DateStarts, 166 166 UNIX_TIMESTAMP(ProfileMemLevels.DateExpires) as DateExpires … … 173 173 AND (ProfileMemLevels.DateExpires IS NULL 174 174 OR ProfileMemLevels.DateExpires > FROM_UNIXTIME($time)) 175 LEFT JOIN MemLevels176 ON ProfileMemLevels.IDLevel = MemLevels.ID175 LEFT JOIN `sys_acl_levels` 176 ON ProfileMemLevels.IDLevel = `sys_acl_levels`.ID 177 177 178 178 WHERE Profiles.ID = $memberID … … 187 187 { 188 188 //fetch info about Non-member membership 189 $arrMemLevel =& $GLOBALS['MySQL']->fromCache(' MemLevels'.MEMBERSHIP_ID_NON_MEMBER, 'getRow', "SELECT ID, Name FROM MemLevelsWHERE ID = ".MEMBERSHIP_ID_NON_MEMBER);189 $arrMemLevel =& $GLOBALS['MySQL']->fromCache('sys_acl_levels'.MEMBERSHIP_ID_NON_MEMBER, 'getRow', "SELECT ID, Name FROM `sys_acl_levels` WHERE ID = ".MEMBERSHIP_ID_NON_MEMBER); 190 190 if (!$arrMemLevel || !count($arrMemLevel)) 191 191 { … … 205 205 if(is_null($arrMemLevel['ID'])) 206 206 { 207 $arrMemLevel =& $GLOBALS['MySQL']->fromCache(' MemLevels'.MEMBERSHIP_ID_STANDARD, 'getRow', "SELECT ID, Name FROM MemLevelsWHERE ID = ".MEMBERSHIP_ID_STANDARD);207 $arrMemLevel =& $GLOBALS['MySQL']->fromCache('sys_acl_levels'.MEMBERSHIP_ID_STANDARD, 'getRow', "SELECT ID, Name FROM `sys_acl_levels` WHERE ID = ".MEMBERSHIP_ID_STANDARD); 208 208 if (!$arrMemLevel || !count($arrMemLevel)) 209 209 { … … 436 436 UNIX_TIMESTAMP(AllowedPeriodEnd) as AllowedPeriodEnd, 437 437 AdditionalParamValue 438 FROM MemActions439 LEFT JOIN MemLevelActions440 ON MemLevelActions.IDAction = MemActions.ID441 AND MemLevelActions.IDLevel = {$arrMembership['ID']}442 WHERE MemActions.ID = $actionID");438 FROM `sys_acl_actions` 439 LEFT JOIN `sys_acl_matrix` 440 ON `sys_acl_matrix`.IDAction = `sys_acl_actions`.ID 441 AND `sys_acl_matrix`.IDLevel = {$arrMembership['ID']} 442 WHERE `sys_acl_actions`.ID = $actionID"); 443 443 444 444 //no such action … … 515 515 $actionTrack = db_res("SELECT ActionsLeft, 516 516 UNIX_TIMESTAMP(ValidSince) as ValidSince 517 FROM MemActionsTrack517 FROM `sys_acl_actions_track` 518 518 WHERE IDAction = $actionID AND IDMember = $memberID"); 519 519 … … 522 522 523 523 //member is requesting/performing this action for the first time, 524 //and there is no corresponding record in MemActionsTrack table524 //and there is no corresponding record in sys_acl_actions_track table 525 525 526 526 if(mysql_num_rows($actionTrack) <= 0) 527 527 { 528 //add action to MemActionsTrack table528 //add action to sys_acl_actions_track table 529 529 530 530 db_res(" 531 INSERT INTO MemActionsTrack(IDAction, IDMember, ActionsLeft, ValidSince)531 INSERT INTO `sys_acl_actions_track` (IDAction, IDMember, ActionsLeft, ValidSince) 532 532 VALUES ($actionID, $memberID, $actionsLeft, FROM_UNIXTIME($validSince))"); 533 533 … … 537 537 538 538 //action has been requested/performed at least once at this point 539 //and there is a corresponding record in MemActionsTrack table539 //and there is a corresponding record in sys_acl_actions_track table 540 540 541 541 $actionTrack = mysql_fetch_assoc($actionTrack); 542 542 543 //action record in MemActionsTrack table is out of date543 //action record in sys_acl_actions_track table is out of date 544 544 545 545 $periodEnd = (int)$actionTrack['ValidSince'] + $periodLen * 3600; //ValidSince is in seconds, PeriodLen is in hours … … 548 548 { 549 549 db_res(" 550 UPDATE MemActionsTrack550 UPDATE `sys_acl_actions_track` 551 551 SET ActionsLeft = $actionsLeft, ValidSince = FROM_UNIXTIME($validSince) 552 552 WHERE IDAction = $actionID AND IDMember = $memberID"); … … 581 581 582 582 db_res(" 583 UPDATE MemActionsTrack583 UPDATE `sys_acl_actions_track` 584 584 SET ActionsLeft = $actionsLeft 585 585 WHERE IDAction = $actionID AND IDMember = $memberID"); … … 626 626 //check if membership is active and purchasable 627 627 628 $resMemLevels = db_res("SELECT Active, Purchasable FROM MemLevelsWHERE ID = $membershipID");628 $resMemLevels = db_res("SELECT Active, Purchasable FROM `sys_acl_levels` WHERE ID = $membershipID"); 629 629 630 630 if(mysql_num_rows($resMemLevels) <= 0) return false; //membership not found … … 696 696 697 697 //check if membership exists 698 $res = db_res("SELECT COUNT(ID) FROM MemLevelsWHERE ID = $membershipID");698 $res = db_res("SELECT COUNT(ID) FROM `sys_acl_levels` WHERE ID = $membershipID"); 699 699 $res = mysql_fetch_row($res); 700 700 if($res[0]!=1) return false; … … 811 811 if($purchasableOnly) 812 812 { 813 $queryPurchasable = "INNER JOIN MemLevelPrices ON MemLevelPrices.IDLevel = MemLevels.ID WHERE Purchasable = 'yes' AND Active = 'yes'";814 } 815 816 $resMemLevels = db_res("SELECT DISTINCT ID, Name FROM MemLevels$queryPurchasable");813 $queryPurchasable = "INNER JOIN `sys_acl_level_prices` ON `sys_acl_level_prices`.IDLevel = `sys_acl_levels`.ID WHERE Purchasable = 'yes' AND Active = 'yes'"; 814 } 815 816 $resMemLevels = db_res("SELECT DISTINCT ID, Name FROM `sys_acl_levels` $queryPurchasable"); 817 817 818 818 while(list($id, $name) = mysql_fetch_row($resMemLevels)) … … 838 838 $result = array(); 839 839 840 $resMemLevelPrices = db_res("SELECT Days, Price FROM MemLevelPricesWHERE IDLevel = $membershipID ORDER BY Days ASC");840 $resMemLevelPrices = db_res("SELECT Days, Price FROM `sys_acl_level_prices` WHERE IDLevel = $membershipID ORDER BY Days ASC"); 841 841 842 842 while(list($days, $price) = mysql_fetch_row($resMemLevelPrices)) … … 865 865 $result = array(); 866 866 867 $resMemLevels = db_res("SELECT Name, Active, Purchasable, Removable FROM MemLevelsWHERE ID = $membershipID");867 $resMemLevels = db_res("SELECT Name, Active, Purchasable, Removable FROM `sys_acl_levels` WHERE ID = $membershipID"); 868 868 869 869 if(mysql_num_rows($resMemLevels) > 0) … … 880 880 * my action => BX_MY_ACTION 881 881 * 882 * @param $aActions array of actions from MemActions table, with default array keys (starting from 0) and text values882 * @param $aActions array of actions from sys_acl_actions table, with default array keys (starting from 0) and text values 883 883 */ 884 884 function defineMembershipActions ($aActions, $sPrefix = 'BX_') … … 887 887 return; 888 888 $sActions = implode("','", $aActions); 889 $res = db_res("SELECT `ID`, `Name` FROM ` MemActions` WHERE `Name` IN('$sActions')");889 $res = db_res("SELECT `ID`, `Name` FROM `sys_acl_actions` WHERE `Name` IN('$sActions')"); 890 890 while ($r = mysql_fetch_array($res)) { 891 891 define ($sPrefix . strtoupper(str_replace(' ', '_', $r['Name'])), $r['ID']); -
trunk/install/sql/v70.sql
r9968 r9969 6 6 7 7 SET NAMES 'utf8'; 8 DROP TABLE IF EXISTS `sys_account_custom_stat_elements`, `sys_admin_ban_list`, `sys_admin_links`, `sys_admin_menu`, `sys_admin_menu_categ`, `Admins`, `aff`, `sys_aff_banners`, `sys_aff_members`, `alerts`, `sys_albums`, `sys_albums_objects`,`sys_banners`, `sys_banners_clicks`, `sys_banners_shows`, `sys_block_list`, `sys_objects_browse`, `Categories`, `sys_objects_categories`, `sys_objects_cmts`, `sys_cmts_profile`, `sys_cmts_track`, `sys_color_base`, `sys_countries`, `sys_email_templates`, `sys_menu_member`, `sys_friend_list`, `GlParams`, `sys_options_cats`, `Groups`, `GroupsCateg`, `GroupsGallery`, `GroupsMembers`, `groups_rating`, `groups_voting_track`, `grp_forum`, `grp_forum_cat`, `grp_forum_flag`, `grp_forum_post`, `grp_forum_report`, `grp_forum_topic`, `grp_forum_user`, `grp_forum_user_activity`, `grp_forum_user_stat`, `grp_forum_vote`, `sys_fave_list`, `IPList`, `IPMembersVisits`, `Links`, `LocalizationCategories`, `LocalizationKeys`, `LocalizationLanguages`, `LocalizationStringParams`, `LocalizationStrings`, ` MemActions`, `MemActionsTrack`, `members_as_aff`, `MemLevelActions`, `MemLevelPrices`, `MemLevels`, `Messages`, `moderators`, `Modules`, `News`, `NotifyEmails`, `NotifyMsgs`, `NotifyQueue`, `PageCompose`, `PageComposePages`, `PaymentParameters`, `PaymentProviders`, `PaymentSubscriptions`, `PQStatistics`, `PreValues`, `ProfileFields`, `ProfileMemLevels`, `Profiles`, `profile_views_track`, `ProfilesMatch`, `ProfilesSettings`, `ProfilesTrack`, `profile_rating`, `profile_voting_track`, `RayBoardCurrentUsers`, `RayBoardBoards`, `RayBoardUsers`, `RayChatCurrentUsers`, `RayChatMessages`, `RayChatProfiles`, `RayChatRooms`, `RayChatRoomsUsers`, `RayGlobalTrackUsers`, `RayImContacts`, `RayImMessages`, `RayImPendings`, `RayImProfiles`, `RayMp3Files`, `RayShoutboxMessages`, `RayVideoFiles`, `RayVideo_commentsFiles`, `SearchObjects`, `sharedSites`, `SiteStat`, `smiles`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_permalinks`, `Stories`, `Tags`, `TagObjects`, `TopMenu`, `Transactions`, `UsersActions`, `Greetings`, `Votes`, `ZIPCodes`, `VoteObjects`, `sys_objects_views`, `sys_box_download`;8 DROP TABLE IF EXISTS `sys_account_custom_stat_elements`, `sys_admin_ban_list`, `sys_admin_links`, `sys_admin_menu`, `sys_admin_menu_categ`, `Admins`, `aff`, `sys_aff_banners`, `sys_aff_members`, `alerts`, `sys_albums`, `sys_albums_objects`,`sys_banners`, `sys_banners_clicks`, `sys_banners_shows`, `sys_block_list`, `sys_objects_browse`, `Categories`, `sys_objects_categories`, `sys_objects_cmts`, `sys_cmts_profile`, `sys_cmts_track`, `sys_color_base`, `sys_countries`, `sys_email_templates`, `sys_menu_member`, `sys_friend_list`, `GlParams`, `sys_options_cats`, `Groups`, `GroupsCateg`, `GroupsGallery`, `GroupsMembers`, `groups_rating`, `groups_voting_track`, `grp_forum`, `grp_forum_cat`, `grp_forum_flag`, `grp_forum_post`, `grp_forum_report`, `grp_forum_topic`, `grp_forum_user`, `grp_forum_user_activity`, `grp_forum_user_stat`, `grp_forum_vote`, `sys_fave_list`, `IPList`, `IPMembersVisits`, `Links`, `LocalizationCategories`, `LocalizationKeys`, `LocalizationLanguages`, `LocalizationStringParams`, `LocalizationStrings`, `sys_acl_actions`, `sys_acl_actions_track`, `members_as_aff`, `sys_acl_matrix`, `sys_acl_level_prices`, `sys_acl_levels`, `Messages`, `moderators`, `Modules`, `News`, `sys_subscriptions`, `sys_mass_messages`, `sys_mail_queue`, `PageCompose`, `PageComposePages`, `PaymentParameters`, `PaymentProviders`, `PaymentSubscriptions`, `PQStatistics`, `PreValues`, `ProfileFields`, `ProfileMemLevels`, `Profiles`, `profile_views_track`, `ProfilesMatch`, `ProfilesSettings`, `ProfilesTrack`, `profile_rating`, `profile_voting_track`, `RayBoardCurrentUsers`, `RayBoardBoards`, `RayBoardUsers`, `RayChatCurrentUsers`, `RayChatMessages`, `RayChatProfiles`, `RayChatRooms`, `RayChatRoomsUsers`, `RayGlobalTrackUsers`, `RayImContacts`, `RayImMessages`, `RayImPendings`, `RayImProfiles`, `RayMp3Files`, `RayShoutboxMessages`, `RayVideoFiles`, `RayVideo_commentsFiles`, `SearchObjects`, `sharedSites`, `SiteStat`, `smiles`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_permalinks`, `Stories`, `Tags`, `TagObjects`, `TopMenu`, `Transactions`, `UsersActions`, `Greetings`, `Votes`, `ZIPCodes`, `VoteObjects`, `sys_objects_views`, `sys_box_download`; 9 9 ALTER DATABASE DEFAULT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci'; 10 10 … … 1829 1829 -- -------------------------------------------------------- 1830 1830 -- 1831 -- Table structure for table ` MemActions`1832 -- 1833 1834 CREATE TABLE ` MemActions` (1831 -- Table structure for table `sys_acl_actions` 1832 -- 1833 1834 CREATE TABLE `sys_acl_actions` ( 1835 1835 `ID` smallint(5) unsigned NOT NULL auto_increment, 1836 1836 `Name` varchar(255) NOT NULL default '', … … 1840 1840 1841 1841 -- 1842 -- Dumping data for table ` MemActions`1843 -- 1844 1845 INSERT INTO ` MemActions` VALUES(1, 'send greetings', NULL);1846 INSERT INTO ` MemActions` VALUES(4, 'view profiles', NULL);1847 INSERT INTO ` MemActions` VALUES(5, 'use forum', NULL);1848 INSERT INTO ` MemActions` VALUES(6, 'make search', 'Max. number of profiles shown in search result (0 = unlimited)');1849 INSERT INTO ` MemActions` VALUES(7, 'vote', NULL);1850 INSERT INTO ` MemActions` VALUES(8, 'send messages', NULL);1851 INSERT INTO ` MemActions` VALUES(9, 'view photos', NULL);1852 INSERT INTO ` MemActions` VALUES(15, 'get other members'' emails', NULL);1853 INSERT INTO ` MemActions` VALUES(16, 'use gallery', NULL);1854 INSERT INTO ` MemActions` VALUES(17, 'view other members'' galleries', NULL);1855 INSERT INTO ` MemActions` VALUES(18, 'use Ray mp3 player', NULL);1856 INSERT INTO ` MemActions` VALUES(21, 'use Ray video player', NULL);1857 INSERT INTO ` MemActions` VALUES(24, 'rate photos', NULL);1858 INSERT INTO ` MemActions` VALUES(25, 'use Orca public forums', NULL);1859 INSERT INTO ` MemActions` VALUES(26, 'use Orca private forums', NULL);1860 INSERT INTO ` MemActions` VALUES(27, 'upload Music (Music Gallery)', NULL);1861 INSERT INTO ` MemActions` VALUES(28, 'upload Photos (Photo Gallery)', NULL);1862 INSERT INTO ` MemActions` VALUES(29, 'upload Video (Video Gallery)', NULL);1863 INSERT INTO ` MemActions` VALUES(30, 'play Music (Music Gallery)', NULL);1864 INSERT INTO ` MemActions` VALUES(31, 'view Photos (Photo Gallery)', NULL);1865 INSERT INTO ` MemActions` VALUES(32, 'play Video (Video Gallery)', NULL);1866 INSERT INTO ` MemActions` VALUES(33, 'comments post', NULL);1867 INSERT INTO ` MemActions` VALUES(34, 'comments vote', NULL);1868 INSERT INTO ` MemActions` VALUES(35, 'comments edit own', NULL);1869 INSERT INTO ` MemActions` VALUES(36, 'comments remove own', NULL);1870 1871 -- -------------------------------------------------------- 1872 1873 -- 1874 -- Table structure for table ` MemActionsTrack`1875 -- 1876 1877 CREATE TABLE ` MemActionsTrack` (1842 -- Dumping data for table `sys_acl_actions` 1843 -- 1844 1845 INSERT INTO `sys_acl_actions` VALUES(1, 'send greetings', NULL); 1846 INSERT INTO `sys_acl_actions` VALUES(4, 'view profiles', NULL); 1847 INSERT INTO `sys_acl_actions` VALUES(5, 'use forum', NULL); 1848 INSERT INTO `sys_acl_actions` VALUES(6, 'make search', 'Max. number of profiles shown in search result (0 = unlimited)'); 1849 INSERT INTO `sys_acl_actions` VALUES(7, 'vote', NULL); 1850 INSERT INTO `sys_acl_actions` VALUES(8, 'send messages', NULL); 1851 INSERT INTO `sys_acl_actions` VALUES(9, 'view photos', NULL); 1852 INSERT INTO `sys_acl_actions` VALUES(15, 'get other members'' emails', NULL); 1853 INSERT INTO `sys_acl_actions` VALUES(16, 'use gallery', NULL); 1854 INSERT INTO `sys_acl_actions` VALUES(17, 'view other members'' galleries', NULL); 1855 INSERT INTO `sys_acl_actions` VALUES(18, 'use Ray mp3 player', NULL); 1856 INSERT INTO `sys_acl_actions` VALUES(21, 'use Ray video player', NULL); 1857 INSERT INTO `sys_acl_actions` VALUES(24, 'rate photos', NULL); 1858 INSERT INTO `sys_acl_actions` VALUES(25, 'use Orca public forums', NULL); 1859 INSERT INTO `sys_acl_actions` VALUES(26, 'use Orca private forums', NULL); 1860 INSERT INTO `sys_acl_actions` VALUES(27, 'upload Music (Music Gallery)', NULL); 1861 INSERT INTO `sys_acl_actions` VALUES(28, 'upload Photos (Photo Gallery)', NULL); 1862 INSERT INTO `sys_acl_actions` VALUES(29, 'upload Video (Video Gallery)', NULL); 1863 INSERT INTO `sys_acl_actions` VALUES(30, 'play Music (Music Gallery)', NULL); 1864 INSERT INTO `sys_acl_actions` VALUES(31, 'view Photos (Photo Gallery)', NULL); 1865 INSERT INTO `sys_acl_actions` VALUES(32, 'play Video (Video Gallery)', NULL); 1866 INSERT INTO `sys_acl_actions` VALUES(33, 'comments post', NULL); 1867 INSERT INTO `sys_acl_actions` VALUES(34, 'comments vote', NULL); 1868 INSERT INTO `sys_acl_actions` VALUES(35, 'comments edit own', NULL); 1869 INSERT INTO `sys_acl_actions` VALUES(36, 'comments remove own', NULL); 1870 1871 -- -------------------------------------------------------- 1872 1873 -- 1874 -- Table structure for table `sys_acl_actions_track` 1875 -- 1876 1877 CREATE TABLE `sys_acl_actions_track` ( 1878 1878 `IDAction` smallint(5) unsigned NOT NULL default '0', 1879 1879 `IDMember` int(10) unsigned NOT NULL default '0', … … 1884 1884 1885 1885 -- 1886 -- Dumping data for table ` MemActionsTrack`1886 -- Dumping data for table `sys_acl_actions_track` 1887 1887 -- 1888 1888 … … 1910 1910 1911 1911 -- 1912 -- Table structure for table ` MemLevelActions`1913 -- 1914 1915 CREATE TABLE ` MemLevelActions` (1912 -- Table structure for table `sys_acl_matrix` 1913 -- 1914 1915 CREATE TABLE `sys_acl_matrix` ( 1916 1916 `IDLevel` smallint(5) unsigned NOT NULL default '0', 1917 1917 `IDAction` smallint(5) unsigned NOT NULL default '0', … … 1925 1925 1926 1926 -- 1927 -- Dumping data for table ` MemLevelActions`1928 -- 1929 1930 INSERT INTO ` MemLevelActions` VALUES(1, 6, NULL, NULL, NULL, NULL, '10');1931 INSERT INTO ` MemLevelActions` VALUES(1, 7, NULL, NULL, NULL, NULL, NULL);1932 INSERT INTO ` MemLevelActions` VALUES(1, 14, NULL, NULL, NULL, NULL, NULL);1933 INSERT INTO ` MemLevelActions` VALUES(2, 1, 4, 24, NULL, NULL, NULL);1934 INSERT INTO ` MemLevelActions` VALUES(2, 4, 2, 24, NULL, NULL, NULL);1935 INSERT INTO ` MemLevelActions` VALUES(2, 6, 5, 24, NULL, NULL, '0');1936 INSERT INTO ` MemLevelActions` VALUES(2, 7, 15, 24, NULL, NULL, NULL);1937 INSERT INTO ` MemLevelActions` VALUES(2, 8, 2, 24, NULL, NULL, NULL);1938 INSERT INTO ` MemLevelActions` VALUES(3, 1, NULL, NULL, NULL, NULL, NULL);1939 INSERT INTO ` MemLevelActions` VALUES(3, 2, NULL, NULL, NULL, NULL, NULL);1940 INSERT INTO ` MemLevelActions` VALUES(3, 3, NULL, NULL, NULL, NULL, NULL);1941 INSERT INTO ` MemLevelActions` VALUES(3, 4, NULL, NULL, NULL, NULL, NULL);1942 INSERT INTO ` MemLevelActions` VALUES(3, 5, NULL, NULL, NULL, NULL, NULL);1943 INSERT INTO ` MemLevelActions` VALUES(3, 6, NULL, NULL, NULL, NULL, NULL);1944 INSERT INTO ` MemLevelActions` VALUES(3, 7, NULL, NULL, NULL, NULL, NULL);1945 INSERT INTO ` MemLevelActions` VALUES(3, 8, NULL, NULL, NULL, NULL, NULL);1946 INSERT INTO ` MemLevelActions` VALUES(3, 9, NULL, NULL, NULL, NULL, NULL);1947 INSERT INTO ` MemLevelActions` VALUES(3, 10, NULL, NULL, NULL, NULL, NULL);1948 INSERT INTO ` MemLevelActions` VALUES(3, 11, NULL, NULL, NULL, NULL, NULL);1949 INSERT INTO ` MemLevelActions` VALUES(3, 12, NULL, NULL, NULL, NULL, NULL);1950 INSERT INTO ` MemLevelActions` VALUES(3, 13, NULL, NULL, NULL, NULL, NULL);1951 INSERT INTO ` MemLevelActions` VALUES(3, 14, NULL, NULL, NULL, NULL, NULL);1952 INSERT INTO ` MemLevelActions` VALUES(3, 15, NULL, NULL, NULL, NULL, NULL);1953 INSERT INTO ` MemLevelActions` VALUES(3, 16, NULL, NULL, NULL, NULL, NULL);1954 INSERT INTO ` MemLevelActions` VALUES(3, 17, NULL, NULL, NULL, NULL, NULL);1955 INSERT INTO ` MemLevelActions` VALUES(2, 9, NULL, NULL, NULL, NULL, NULL);1956 INSERT INTO ` MemLevelActions` VALUES(2, 23, NULL, NULL, NULL, NULL, NULL);1957 INSERT INTO ` MemLevelActions` VALUES(2, 24, NULL, NULL, NULL, NULL, NULL);1958 INSERT INTO ` MemLevelActions` VALUES(1, 25, NULL, NULL, NULL, NULL, NULL);1959 INSERT INTO ` MemLevelActions` VALUES(2, 25, NULL, NULL, NULL, NULL, NULL);1960 INSERT INTO ` MemLevelActions` VALUES(3, 25, NULL, NULL, NULL, NULL, NULL);1961 INSERT INTO ` MemLevelActions` VALUES(3, 26, NULL, NULL, NULL, NULL, NULL);1962 INSERT INTO ` MemLevelActions` VALUES(2, 33, NULL, NULL, NULL, NULL, NULL);1963 INSERT INTO ` MemLevelActions` VALUES(2, 34, NULL, NULL, NULL, NULL, NULL);1964 1965 -- -------------------------------------------------------- 1966 1967 -- 1968 -- Table structure for table ` MemLevelPrices`1969 -- 1970 1971 CREATE TABLE ` MemLevelPrices` (1927 -- Dumping data for table `sys_acl_matrix` 1928 -- 1929 1930 INSERT INTO `sys_acl_matrix` VALUES(1, 6, NULL, NULL, NULL, NULL, '10'); 1931 INSERT INTO `sys_acl_matrix` VALUES(1, 7, NULL, NULL, NULL, NULL, NULL); 1932 INSERT INTO `sys_acl_matrix` VALUES(1, 14, NULL, NULL, NULL, NULL, NULL); 1933 INSERT INTO `sys_acl_matrix` VALUES(2, 1, 4, 24, NULL, NULL, NULL); 1934 INSERT INTO `sys_acl_matrix` VALUES(2, 4, 2, 24, NULL, NULL, NULL); 1935 INSERT INTO `sys_acl_matrix` VALUES(2, 6, 5, 24, NULL, NULL, '0'); 1936 INSERT INTO `sys_acl_matrix` VALUES(2, 7, 15, 24, NULL, NULL, NULL); 1937 INSERT INTO `sys_acl_matrix` VALUES(2, 8, 2, 24, NULL, NULL, NULL); 1938 INSERT INTO `sys_acl_matrix` VALUES(3, 1, NULL, NULL, NULL, NULL, NULL); 1939 INSERT INTO `sys_acl_matrix` VALUES(3, 2, NULL, NULL, NULL, NULL, NULL); 1940 INSERT INTO `sys_acl_matrix` VALUES(3, 3, NULL, NULL, NULL, NULL, NULL); 1941 INSERT INTO `sys_acl_matrix` VALUES(3, 4, NULL, NULL, NULL, NULL, NULL); 1942 INSERT INTO `sys_acl_matrix` VALUES(3, 5, NULL, NULL, NULL, NULL, NULL); 1943 INSERT INTO `sys_acl_matrix` VALUES(3, 6, NULL, NULL, NULL, NULL, NULL); 1944 INSERT INTO `sys_acl_matrix` VALUES(3, 7, NULL, NULL, NULL, NULL, NULL); 1945 INSERT INTO `sys_acl_matrix` VALUES(3, 8, NULL, NULL, NULL, NULL, NULL); 1946 INSERT INTO `sys_acl_matrix` VALUES(3, 9, NULL, NULL, NULL, NULL, NULL); 1947 INSERT INTO `sys_acl_matrix` VALUES(3, 10, NULL, NULL, NULL, NULL, NULL); 1948 INSERT INTO `sys_acl_matrix` VALUES(3, 11, NULL, NULL, NULL, NULL, NULL); 1949 INSERT INTO `sys_acl_matrix` VALUES(3, 12, NULL, NULL, NULL, NULL, NULL); 1950 INSERT INTO `sys_acl_matrix` VALUES(3, 13, NULL, NULL, NULL, NULL, NULL); 1951 INSERT INTO `sys_acl_matrix` VALUES(3, 14, NULL, NULL, NULL, NULL, NULL); 1952 INSERT INTO `sys_acl_matrix` VALUES(3, 15, NULL, NULL, NULL, NULL, NULL); 1953 INSERT INTO `sys_acl_matrix` VALUES(3, 16, NULL, NULL, NULL, NULL, NULL); 1954 INSERT INTO `sys_acl_matrix` VALUES(3, 17, NULL, NULL, NULL, NULL, NULL); 1955 INSERT INTO `sys_acl_matrix` VALUES(2, 9, NULL, NULL, NULL, NULL, NULL); 1956 INSERT INTO `sys_acl_matrix` VALUES(2, 23, NULL, NULL, NULL, NULL, NULL); 1957 INSERT INTO `sys_acl_matrix` VALUES(2, 24, NULL, NULL, NULL, NULL, NULL); 1958 INSERT INTO `sys_acl_matrix` VALUES(1, 25, NULL, NULL, NULL, NULL, NULL); 1959 INSERT INTO `sys_acl_matrix` VALUES(2, 25, NULL, NULL, NULL, NULL, NULL); 1960 INSERT INTO `sys_acl_matrix` VALUES(3, 25, NULL, NULL, NULL, NULL, NULL); 1961 INSERT INTO `sys_acl_matrix` VALUES(3, 26, NULL, NULL, NULL, NULL, NULL); 1962 INSERT INTO `sys_acl_matrix` VALUES(2, 33, NULL, NULL, NULL, NULL, NULL); 1963 INSERT INTO `sys_acl_matrix` VALUES(2, 34, NULL, NULL, NULL, NULL, NULL); 1964 1965 -- -------------------------------------------------------- 1966 1967 -- 1968 -- Table structure for table `sys_acl_level_prices` 1969 -- 1970 1971 CREATE TABLE `sys_acl_level_prices` ( 1972 1972 `IDLevel` smallint(5) unsigned NOT NULL default '0', 1973 1973 `Days` int(10) unsigned NOT NULL default '1', … … 1977 1977 1978 1978 -- 1979 -- Dumping data for table ` MemLevelPrices`1980 -- 1981 1982 1983 -- -------------------------------------------------------- 1984 1985 -- 1986 -- Table structure for table ` MemLevels`1987 -- 1988 1989 CREATE TABLE ` MemLevels` (1979 -- Dumping data for table `sys_acl_level_prices` 1980 -- 1981 1982 1983 -- -------------------------------------------------------- 1984 1985 -- 1986 -- Table structure for table `sys_acl_levels` 1987 -- 1988 1989 CREATE TABLE `sys_acl_levels` ( 1990 1990 `ID` smallint(6) NOT NULL auto_increment, 1991 1991 `Name` varchar(100) NOT NULL default '', … … 1998 1998 1999 1999 -- 2000 -- Dumping data for table ` MemLevels`2001 -- 2002 2003 INSERT INTO ` MemLevels` VALUES(1, 'Non-member', 'yes', 'no', 'no');2004 INSERT INTO ` MemLevels` VALUES(2, 'Standard', 'yes', 'no', 'no');2005 INSERT INTO ` MemLevels` VALUES(3, 'Promotion', 'yes', 'no', 'no');2000 -- Dumping data for table `sys_acl_levels` 2001 -- 2002 2003 INSERT INTO `sys_acl_levels` VALUES(1, 'Non-member', 'yes', 'no', 'no'); 2004 INSERT INTO `sys_acl_levels` VALUES(2, 'Standard', 'yes', 'no', 'no'); 2005 INSERT INTO `sys_acl_levels` VALUES(3, 'Promotion', 'yes', 'no', 'no'); 2006 2006 2007 2007 -- -------------------------------------------------------- … … 2104 2104 2105 2105 -- 2106 -- Table structure for table ` NotifyEmails`2107 -- 2108 2109 CREATE TABLE ` NotifyEmails` (2106 -- Table structure for table `sys_subscriptions` 2107 -- 2108 2109 CREATE TABLE `sys_subscriptions` ( 2110 2110 `ID` int(10) unsigned NOT NULL auto_increment, 2111 2111 `Name` varchar(64) NOT NULL default '', … … 2117 2117 2118 2118 -- 2119 -- Dumping data for table ` NotifyEmails`2120 -- 2121 2122 2123 -- -------------------------------------------------------- 2124 2125 -- 2126 -- Table structure for table ` NotifyMsgs`2127 -- 2128 2129 CREATE TABLE ` NotifyMsgs` (2119 -- Dumping data for table `sys_subscriptions` 2120 -- 2121 2122 2123 -- -------------------------------------------------------- 2124 2125 -- 2126 -- Table structure for table `sys_mass_messages` 2127 -- 2128 2129 CREATE TABLE `sys_mass_messages` ( 2130 2130 `ID` int(10) unsigned NOT NULL auto_increment, 2131 2131 `Subj` varchar(128) NOT NULL default '', … … 2136 2136 2137 2137 -- 2138 -- Dumping data for table ` NotifyMsgs`2139 -- 2140 2141 2142 -- -------------------------------------------------------- 2143 2144 -- 2145 -- Table structure for table ` NotifyQueue`2146 -- 2147 2148 CREATE TABLE ` NotifyQueue` (2138 -- Dumping data for table `sys_mass_messages` 2139 -- 2140 2141 2142 -- -------------------------------------------------------- 2143 2144 -- 2145 -- Table structure for table `sys_mail_queue` 2146 -- 2147 2148 CREATE TABLE `sys_mail_queue` ( 2149 2149 `Email` int(10) unsigned NOT NULL auto_increment, 2150 2150 `Msg` int(10) unsigned NOT NULL default '0', … … 2158 2158 2159 2159 -- 2160 -- Dumping data for table ` NotifyQueue`2160 -- Dumping data for table `sys_mail_queue` 2161 2161 -- 2162 2162 -
trunk/modules/boonex/ads/classes/BxAdsDb.php
r9703 r9969 36 36 37 37 /*function getMembershipActions() { 38 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='can add ads'";38 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='can add ads'"; 39 39 return $this->getAll($sSql); 40 40 }*/ -
trunk/modules/boonex/ads/install/sql/install.sql
r9964 r9969 299 299 SET @iLevelPromotion := 3; 300 300 301 INSERT INTO ` MemActions` VALUES (NULL, 'ads view', NULL);301 INSERT INTO `sys_acl_actions` VALUES (NULL, 'ads view', NULL); 302 302 SET @iAction := LAST_INSERT_ID(); 303 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES303 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 304 304 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 305 305 306 INSERT INTO ` MemActions` VALUES (NULL, 'ads browse', NULL);306 INSERT INTO `sys_acl_actions` VALUES (NULL, 'ads browse', NULL); 307 307 SET @iAction := LAST_INSERT_ID(); 308 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES308 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 309 309 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 310 310 311 INSERT INTO ` MemActions` VALUES (NULL, 'ads search', NULL);311 INSERT INTO `sys_acl_actions` VALUES (NULL, 'ads search', NULL); 312 312 SET @iAction := LAST_INSERT_ID(); 313 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES313 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 314 314 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 315 315 316 INSERT INTO ` MemActions` VALUES (NULL, 'ads add', NULL);316 INSERT INTO `sys_acl_actions` VALUES (NULL, 'ads add', NULL); 317 317 SET @iAction := LAST_INSERT_ID(); 318 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES318 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 319 319 (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 320 320 321 INSERT INTO ` MemActions` VALUES (NULL, 'ads edit any ad', NULL);322 INSERT INTO ` MemActions` VALUES (NULL, 'ads delete any ad', NULL);323 INSERT INTO ` MemActions` VALUES (NULL, 'ads approving', NULL);321 INSERT INTO `sys_acl_actions` VALUES (NULL, 'ads edit any ad', NULL); 322 INSERT INTO `sys_acl_actions` VALUES (NULL, 'ads delete any ad', NULL); 323 INSERT INTO `sys_acl_actions` VALUES (NULL, 'ads approving', NULL); 324 324 325 325 INSERT INTO -
trunk/modules/boonex/ads/install/sql/uninstall.sql
r9964 r9969 67 67 DELETE FROM `sys_objects_views` WHERE `name` = 'ads'; 68 68 69 DELETE ` MemActions`, `MemLevelActions` FROM `MemActions`, `MemLevelActions` WHERE `MemLevelActions`.`IDAction` = `MemActions`.`ID` AND `MemActions`.`Name` IN('ads view', 'ads browse', 'ads search', 'ads add', 'ads edit any ad', 'ads delete any ad', 'ads approving');70 DELETE FROM ` MemActions` WHERE `Name` IN('ads view', 'ads browse', 'ads search', 'ads add', 'ads edit any ad', 'ads delete any ad', 'ads approving');69 DELETE `sys_acl_actions`, `sys_acl_matrix` FROM `sys_acl_actions`, `sys_acl_matrix` WHERE `sys_acl_matrix`.`IDAction` = `sys_acl_actions`.`ID` AND `sys_acl_actions`.`Name` IN('ads view', 'ads browse', 'ads search', 'ads add', 'ads edit any ad', 'ads delete any ad', 'ads approving'); 70 DELETE FROM `sys_acl_actions` WHERE `Name` IN('ads view', 'ads browse', 'ads search', 'ads add', 'ads edit any ad', 'ads delete any ad', 'ads approving'); 71 71 72 72 DELETE FROM -
trunk/modules/boonex/avatar/install/sql/install.sql
r9968 r9969 39 39 SET @iLevelPromotion := 3; 40 40 41 INSERT INTO ` MemActions` VALUES (NULL, 'avatar upload', NULL);41 INSERT INTO `sys_acl_actions` VALUES (NULL, 'avatar upload', NULL); 42 42 SET @iAction := LAST_INSERT_ID(); 43 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES43 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 44 44 (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 45 45 46 INSERT INTO ` MemActions` VALUES (NULL, 'avatar edit any', NULL);47 INSERT INTO ` MemActions` VALUES (NULL, 'avatar delete any', NULL);46 INSERT INTO `sys_acl_actions` VALUES (NULL, 'avatar edit any', NULL); 47 INSERT INTO `sys_acl_actions` VALUES (NULL, 'avatar delete any', NULL); 48 48 49 49 -- alert handlers -
trunk/modules/boonex/avatar/install/sql/uninstall.sql
r9968 r9969 19 19 20 20 -- membership levels 21 DELETE ` MemActions`, `MemLevelActions` FROM `MemActions`, `MemLevelActions` WHERE `MemLevelActions`.`IDAction` = `MemActions`.`ID` AND `MemActions`.`Name` IN('avatar upload', 'avatar edit any', 'avatar delete any');22 DELETE FROM ` MemActions` WHERE `Name` IN('avatar upload', 'avatar edit any', 'avatar delete any');21 DELETE `sys_acl_actions`, `sys_acl_matrix` FROM `sys_acl_actions`, `sys_acl_matrix` WHERE `sys_acl_matrix`.`IDAction` = `sys_acl_actions`.`ID` AND `sys_acl_actions`.`Name` IN('avatar upload', 'avatar edit any', 'avatar delete any'); 22 DELETE FROM `sys_acl_actions` WHERE `Name` IN('avatar upload', 'avatar edit any', 'avatar delete any'); 23 23 24 24 -- alerts -
trunk/modules/boonex/blogs/classes/BxBlogsDb.php
r9933 r9969 36 36 37 37 function getMembershipActions() { 38 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='use blog' OR `Name`='view blog'";38 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use blog' OR `Name`='view blog'"; 39 39 return $this->getAll($sSql); 40 40 } -
trunk/modules/boonex/blogs/install/sql/install.sql
r9968 r9969 232 232 SET @iLevelPromotion := 3; 233 233 234 INSERT INTO ` MemActions` VALUES (NULL, 'blog view', NULL);235 SET @iAction := LAST_INSERT_ID(); 236 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES237 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 238 239 INSERT INTO ` MemActions` VALUES (NULL, 'blog post view', NULL);240 SET @iAction := LAST_INSERT_ID(); 241 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES242 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 243 244 INSERT INTO ` MemActions` VALUES (NULL, 'blogs browse', NULL);245 SET @iAction := LAST_INSERT_ID(); 246 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES247 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 248 249 INSERT INTO ` MemActions` VALUES (NULL, 'blogs posts browse', NULL);250 SET @iAction := LAST_INSERT_ID(); 251 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES252 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 253 254 INSERT INTO ` MemActions` VALUES (NULL, 'blog post search', NULL);255 SET @iAction := LAST_INSERT_ID(); 256 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES257 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 258 259 INSERT INTO ` MemActions` VALUES (NULL, 'blog post add', NULL);260 SET @iAction := LAST_INSERT_ID(); 261 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES234 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blog view', NULL); 235 SET @iAction := LAST_INSERT_ID(); 236 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 237 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 238 239 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blog post view', NULL); 240 SET @iAction := LAST_INSERT_ID(); 241 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 242 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 243 244 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blogs browse', NULL); 245 SET @iAction := LAST_INSERT_ID(); 246 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 247 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 248 249 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blogs posts browse', NULL); 250 SET @iAction := LAST_INSERT_ID(); 251 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 252 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 253 254 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blog post search', NULL); 255 SET @iAction := LAST_INSERT_ID(); 256 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 257 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 258 259 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blog post add', NULL); 260 SET @iAction := LAST_INSERT_ID(); 261 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 262 262 (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 263 263 264 INSERT INTO ` MemActions` VALUES (NULL, 'blog posts edit any post', NULL);265 INSERT INTO ` MemActions` VALUES (NULL, 'blog posts delete any post', NULL);266 INSERT INTO ` MemActions` VALUES (NULL, 'blog posts approving', NULL);264 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blog posts edit any post', NULL); 265 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blog posts delete any post', NULL); 266 INSERT INTO `sys_acl_actions` VALUES (NULL, 'blog posts approving', NULL); 267 267 268 268 -- member menu -
trunk/modules/boonex/blogs/install/sql/uninstall.sql
r9968 r9969 71 71 DELETE FROM `sys_objects_views` WHERE `name` = 'blogposts'; 72 72 73 DELETE ` MemActions`, `MemLevelActions` FROM `MemActions`, `MemLevelActions` WHERE `MemLevelActions`.`IDAction` = `MemActions`.`ID` AND `MemActions`.`Name` IN('blog view', 'blog post view', 'blogs browse', 'blogs posts browse', 'blog post search', 'blog post add', 'blog posts edit any post', 'blog posts delete any post', 'blog posts approving');74 DELETE FROM ` MemActions` WHERE `Name` IN('blog view', 'blog post view', 'blogs browse', 'blogs posts browse', 'blog post search', 'blog post add', 'blog posts edit any post', 'blog posts delete any post', 'blog posts approving');73 DELETE `sys_acl_actions`, `sys_acl_matrix` FROM `sys_acl_actions`, `sys_acl_matrix` WHERE `sys_acl_matrix`.`IDAction` = `sys_acl_actions`.`ID` AND `sys_acl_actions`.`Name` IN('blog view', 'blog post view', 'blogs browse', 'blogs posts browse', 'blog post search', 'blog post add', 'blog posts edit any post', 'blog posts delete any post', 'blog posts approving'); 74 DELETE FROM `sys_acl_actions` WHERE `Name` IN('blog view', 'blog post view', 'blogs browse', 'blogs posts browse', 'blog post search', 'blog post add', 'blog posts edit any post', 'blog posts delete any post', 'blog posts approving'); 75 75 76 76 -- member menu -
trunk/modules/boonex/board/classes/BxBoardDb.php
r8263 r9969 34 34 } 35 35 function getMembershipActions() { 36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='use board'";36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use board'"; 37 37 return $this->getAll($sSql); 38 38 } -
trunk/modules/boonex/board/install/sql/install.sql
r9847 r9969 9 9 (@iTMParentId, 'BoardSaved', '_board_saved_top_menu_sitem', 'photo/gallery/category/Board', 2, 'non,memb', '', '', '', 1, 1, 1, 'custom', 1, '', 0, ''); 10 10 11 INSERT INTO ` MemActions` SET `Name`='use board';11 INSERT INTO `sys_acl_actions` SET `Name`='use board'; 12 12 13 13 INSERT INTO `sys_permalinks`(`standard`, `permalink`, `check`) VALUES('modules/?r=board/', 'm/board/', 'permalinks_module_board'); -
trunk/modules/boonex/board/install/sql/uninstall.sql
r9541 r9969 2 2 DELETE FROM `TopMenu` WHERE `Name`='Board' OR `Parent`=@iTMParentId; 3 3 4 DELETE FROM ` MemActions` WHERE `Name`='use board' LIMIT 1;4 DELETE FROM `sys_acl_actions` WHERE `Name`='use board' LIMIT 1; 5 5 6 6 DELETE FROM `sys_permalinks` WHERE `check`='permalinks_module_board'; -
trunk/modules/boonex/chat/classes/BxChatDb.php
r8263 r9969 34 34 } 35 35 function getMembershipActions() { 36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='use chat'";36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use chat'"; 37 37 return $this->getAll($sSql); 38 38 } -
trunk/modules/boonex/chat/install/sql/install.sql
r9625 r9969 9 9 (@iTMParentId, 'ChatModerators', '_chat_moderators_top_menu_sitem', 'search.php?show=moderators', 2, 'non,memb', '', '', '', 1, 1, 1, 'custom', 0, '', 0, ''); 10 10 11 INSERT INTO ` MemActions` SET `Name`='use chat';11 INSERT INTO `sys_acl_actions` SET `Name`='use chat'; 12 12 13 13 INSERT INTO `sys_permalinks`(`standard`, `permalink`, `check`) VALUES('modules/?r=chat/', 'm/chat/', 'permalinks_module_chat'); -
trunk/modules/boonex/chat/install/sql/uninstall.sql
r9241 r9969 2 2 DELETE FROM `TopMenu` WHERE `Name`='Chat' OR `Parent`=@iTMParentId; 3 3 4 DELETE FROM ` MemActions` WHERE `Name`='use chat' LIMIT 1;4 DELETE FROM `sys_acl_actions` WHERE `Name`='use chat' LIMIT 1; 5 5 6 6 DELETE FROM `sys_permalinks` WHERE `check`='permalinks_module_chat'; -
trunk/modules/boonex/events/install/sql/install.sql
r9968 r9969 215 215 SET @iLevelPromotion := 3; 216 216 217 INSERT INTO ` MemActions` VALUES (NULL, 'events view', NULL);218 SET @iAction := LAST_INSERT_ID(); 219 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES217 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events view', NULL); 218 SET @iAction := LAST_INSERT_ID(); 219 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 220 220 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 221 221 222 INSERT INTO ` MemActions` VALUES (NULL, 'events browse', NULL);223 SET @iAction := LAST_INSERT_ID(); 224 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES222 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events browse', NULL); 223 SET @iAction := LAST_INSERT_ID(); 224 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 225 225 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 226 226 227 INSERT INTO ` MemActions` VALUES (NULL, 'events search', NULL);228 SET @iAction := LAST_INSERT_ID(); 229 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES227 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events search', NULL); 228 SET @iAction := LAST_INSERT_ID(); 229 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 230 230 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 231 231 232 INSERT INTO ` MemActions` VALUES (NULL, 'events add', NULL);233 SET @iAction := LAST_INSERT_ID(); 234 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES232 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events add', NULL); 233 SET @iAction := LAST_INSERT_ID(); 234 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 235 235 (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 236 236 237 INSERT INTO ` MemActions` VALUES (NULL, 'events edit any event', NULL);238 INSERT INTO ` MemActions` VALUES (NULL, 'events delete any event', NULL);239 INSERT INTO ` MemActions` VALUES (NULL, 'events mark as featured', NULL);240 INSERT INTO ` MemActions` VALUES (NULL, 'events approve', NULL);237 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events edit any event', NULL); 238 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events delete any event', NULL); 239 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events mark as featured', NULL); 240 INSERT INTO `sys_acl_actions` VALUES (NULL, 'events approve', NULL); 241 241 242 242 -- alert handlers -
trunk/modules/boonex/events/install/sql/uninstall.sql
r9968 r9969 52 52 53 53 -- membership levels 54 DELETE ` MemActions`, `MemLevelActions` FROM `MemActions`, `MemLevelActions` WHERE `MemLevelActions`.`IDAction` = `MemActions`.`ID` AND `MemActions`.`Name` IN('events view', 'events browse', 'events search', 'events add', 'events edit any event', 'events delete any event', 'events mark as featured', 'events approve');55 DELETE FROM ` MemActions` WHERE `Name` IN('events view', 'events browse', 'events search', 'events add', 'events edit any event', 'events delete any event', 'events mark as featured', 'events approve');54 DELETE `sys_acl_actions`, `sys_acl_matrix` FROM `sys_acl_actions`, `sys_acl_matrix` WHERE `sys_acl_matrix`.`IDAction` = `sys_acl_actions`.`ID` AND `sys_acl_actions`.`Name` IN('events view', 'events browse', 'events search', 'events add', 'events edit any event', 'events delete any event', 'events mark as featured', 'events approve'); 55 DELETE FROM `sys_acl_actions` WHERE `Name` IN('events view', 'events browse', 'events search', 'events add', 'events edit any event', 'events delete any event', 'events mark as featured', 'events approve'); 56 56 57 57 -- alerts -
trunk/modules/boonex/forum/install/sql/install.sql
r9965 r9969 143 143 SET @iLevelPromotion := 3; 144 144 145 INSERT INTO ` MemActions` VALUES (NULL, 'forum public read', NULL);145 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum public read', NULL); 146 146 SET @iAction := LAST_INSERT_ID(); 147 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES147 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 148 148 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 149 149 150 INSERT INTO ` MemActions` VALUES (NULL, 'forum public post', NULL);150 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum public post', NULL); 151 151 SET @iAction := LAST_INSERT_ID(); 152 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES152 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 153 153 (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 154 154 155 INSERT INTO ` MemActions` VALUES (NULL, 'forum private read', NULL);155 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum private read', NULL); 156 156 SET @iAction := LAST_INSERT_ID(); 157 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES157 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 158 158 (@iLevelPromotion, @iAction); 159 159 160 INSERT INTO ` MemActions` VALUES (NULL, 'forum private post', NULL);160 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum private post', NULL); 161 161 SET @iAction := LAST_INSERT_ID(); 162 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES162 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 163 163 (@iLevelPromotion, @iAction); 164 164 165 INSERT INTO ` MemActions` VALUES (NULL, 'forum search', NULL);165 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum search', NULL); 166 166 SET @iAction := LAST_INSERT_ID(); 167 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES167 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 168 168 (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 169 169 170 INSERT INTO ` MemActions` VALUES (NULL, 'forum edit all', NULL);171 INSERT INTO ` MemActions` VALUES (NULL, 'forum delete all', NULL);172 INSERT INTO ` MemActions` VALUES (NULL, 'forum make sticky', NULL);170 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum edit all', NULL); 171 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum delete all', NULL); 172 INSERT INTO `sys_acl_actions` VALUES (NULL, 'forum make sticky', NULL); 173 173 174 174 INSERT INTO `sys_email_templates` VALUES(NULL, 'bx_forum_notifier', 'New post in topic: <TopicTitle>', '<html><head></head><body style="font: 12px Verdana; color:#000000">\r\n <p>Hello <Recipient>,</p> \r\n <p><a href="<PosterUrl>"><PosterNickName></a> has posted new reply in "<TopicTitle>" topic:</p> \r\n <p> <ReplyText> </p> \r\n <p>--</p> \r\n <p>You have received this notification because you have flagged one or more topics in <SiteName> forum</p> \r\n <p style="font: bold 10px Verdana; color:red"><SiteName> mail delivery system!!! <br />Auto-generated e-mail, please, do not reply!!!</p>\r\n</body></html>', 'Notification about new post in flagged topic', 1); -
trunk/modules/boonex/forum/install/sql/uninstall.sql
r9965 r9969 2 2 DELETE FROM `sys_email_templates` WHERE `Name` = 'bx_forum_notifier'; 3 3 4 DELETE ` MemActions`, `MemLevelActions` FROM `MemActions`, `MemLevelActions` WHERE `MemLevelActions`.`IDAction` = `MemActions`.`ID` AND `MemActions`.`Name` IN('forum public read', 'forum public post', 'forum private read', 'forum private post', 'forum search', 'forum edit all', 'forum delete all', 'forum make sticky');5 DELETE FROM ` MemActions` WHERE `Name` IN('forum public read', 'forum public post', 'forum private read', 'forum private post', 'forum search', 'forum edit all', 'forum delete all', 'forum make sticky');4 DELETE `sys_acl_actions`, `sys_acl_matrix` FROM `sys_acl_actions`, `sys_acl_matrix` WHERE `sys_acl_matrix`.`IDAction` = `sys_acl_actions`.`ID` AND `sys_acl_actions`.`Name` IN('forum public read', 'forum public post', 'forum private read', 'forum private post', 'forum search', 'forum edit all', 'forum delete all', 'forum make sticky'); 5 DELETE FROM `sys_acl_actions` WHERE `Name` IN('forum public read', 'forum public post', 'forum private read', 'forum private post', 'forum search', 'forum edit all', 'forum delete all', 'forum make sticky'); 6 6 7 7 DELETE FROM `sys_account_custom_stat_elements` WHERE `Label` = '_Forums'; -
trunk/modules/boonex/map_profiles/install/sql/install.sql
r9968 r9969 174 174 SET @iLevelPromotion := 3; 175 175 176 INSERT INTO ` MemActions` VALUES (NULL, 'map view', NULL);176 INSERT INTO `sys_acl_actions` VALUES (NULL, 'map view', NULL); 177 177 SET @iAction := LAST_INSERT_ID(); 178 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES178 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 179 179 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 180 180 -
trunk/modules/boonex/map_profiles/install/sql/uninstall.sql
r9968 r9969 31 31 DELETE FROM `sys_options_cats` WHERE `ID` = @iCategId; 32 32 33 DELETE ` MemActions`, `MemLevelActions` FROM `MemActions`, `MemLevelActions` WHERE `MemLevelActions`.`IDAction` = `MemActions`.`ID` AND `MemActions`.`Name` IN('map view');34 DELETE FROM ` MemActions` WHERE `Name` IN('map view');33 DELETE `sys_acl_actions`, `sys_acl_matrix` FROM `sys_acl_actions`, `sys_acl_matrix` WHERE `sys_acl_matrix`.`IDAction` = `sys_acl_actions`.`ID` AND `sys_acl_actions`.`Name` IN('map view'); 34 DELETE FROM `sys_acl_actions` WHERE `Name` IN('map view'); 35 35 36 36 SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_map' LIMIT 1); -
trunk/modules/boonex/messenger/classes/BxMsgDb.php
r8296 r9969 34 34 } 35 35 function getMembershipActions() { 36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='use messenger'";36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use messenger'"; 37 37 return $this->getAll($sSql); 38 38 } -
trunk/modules/boonex/messenger/install/sql/install.sql
r8296 r9969 3 3 INSERT INTO `sys_injections` (`name`, `page_index`, `key`, `type`, `data`, `replace`, `active`) VALUES ('messenger_invitation', '0', 'injection_header', 'php', 'return BxDolService::call(''messenger'', ''get_invitation'');', '0', '1'); 4 4 5 INSERT INTO ` MemActions` SET `Name`='use messenger';5 INSERT INTO `sys_acl_actions` SET `Name`='use messenger'; -
trunk/modules/boonex/messenger/install/sql/uninstall.sql
r8296 r9969 3 3 DELETE FROM `sys_injections` WHERE `name`='messenger_invitation'; 4 4 5 DELETE FROM ` MemActions` WHERE `Name`='use messenger';5 DELETE FROM `sys_acl_actions` WHERE `Name`='use messenger'; -
trunk/modules/boonex/presence/classes/BxPrcDb.php
r8616 r9969 34 34 } 35 35 function getMembershipActions() { 36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='use presence'";36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use presence'"; 37 37 return $this->getAll($sSql); 38 38 } -
trunk/modules/boonex/presence/install/sql/install.sql
r9705 r9969 6 6 ('_presence_ext_menu_item', 'Presence', 'modules/boonex/presence/|presence.png', '', 'window.open( ''modules/boonex/presence/popup.php'', ''Presence'',''width=250,height=600,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1'');return false', '', 2, '1', 0, 0, '', 'memb', 'top_extra', 'link'); 7 7 8 INSERT INTO ` MemActions` SET `Name`='use presence';8 INSERT INTO `sys_acl_actions` SET `Name`='use presence'; -
trunk/modules/boonex/presence/install/sql/uninstall.sql
r9705 r9969 3 3 DELETE FROM `sys_menu_member` WHERE `Name`='Presence'; 4 4 5 DELETE FROM ` MemActions` WHERE `Name`='use presence' LIMIT 1;5 DELETE FROM `sys_acl_actions` WHERE `Name`='use presence' LIMIT 1; -
trunk/modules/boonex/shared_video/install/sql/install.sql
r9964 r9969 55 55 56 56 -- GlParams settings 57 INSERT INTO ` GlParamsKateg` VALUES('', 'Shared Videos', '');57 INSERT INTO `sys_options_cats` VALUES('', 'Shared Videos', ''); 58 58 SET @iKatID = LAST_INSERT_ID(); 59 59 -
trunk/modules/boonex/shared_video/install/sql/uninstall.sql
r9964 r9969 9 9 DELETE FROM `Categories` WHERE `Type` = 'shared_video'; 10 10 11 SET @iKatID = (SELECT `ID` FROM ` GlParamsKateg` WHERE `name` = 'Shared Videos' LIMIT 1);11 SET @iKatID = (SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'Shared Videos' LIMIT 1); 12 12 13 13 DELETE FROM `GlParams` WHERE `kateg` = @iKatID; … … 16 16 DELETE FROM `GlParams` WHERE `Name` = 'category_auto_app_shared_video'; 17 17 18 DELETE FROM ` GlParamsKateg` WHERE `name` = 'Shared Videos';18 DELETE FROM `sys_options_cats` WHERE `name` = 'Shared Videos'; 19 19 20 20 DELETE FROM `PageComposePages` WHERE `Name` IN('shared_video', 'browse_shared_video', 'home_shared_video', 'rate_shared_video', 'albums_shared_video', 'user_shared_video'); -
trunk/modules/boonex/shoutbox/classes/BxSboxDb.php
r8263 r9969 34 34 } 35 35 function getMembershipActions() { 36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='use shoutbox'";36 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use shoutbox'"; 37 37 return $this->getAll($sSql); 38 38 } -
trunk/modules/boonex/shoutbox/install/sql/install.sql
r8347 r9969 1 INSERT INTO ` MemActions` SET `Name`='use shoutbox';1 INSERT INTO `sys_acl_actions` SET `Name`='use shoutbox'; 2 2 3 3 INSERT INTO `PageCompose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`) VALUES -
trunk/modules/boonex/shoutbox/install/sql/uninstall.sql
r8265 r9969 1 DELETE FROM ` MemActions` WHERE `Name`='use shoutbox' LIMIT 1;1 DELETE FROM `sys_acl_actions` WHERE `Name`='use shoutbox' LIMIT 1; 2 2 3 3 DELETE FROM `PageCompose` WHERE `Caption`='_shoutbox_box_caption'; -
trunk/modules/boonex/sites/classes/BxSitesDb.php
r9821 r9969 38 38 function getMembershipActions() 39 39 { 40 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name`='use sites'";40 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name`='use sites'"; 41 41 return $this->getAll($sSql); 42 42 } -
trunk/modules/boonex/sites/install/sql/install.sql
r9964 r9969 101 101 INSERT INTO `TopMenu` VALUES(NULL, 4, 'Sites', '_bx_sites_menu_my_sites_profile', 'modules/?r=sites/browse/my', @iCatProfileOrder, 'memb', '', '', '', 1, 1, 1, 'custom', 0, '', 0, ''); 102 102 103 INSERT INTO ` MemActions` SET `Name`='use sites';103 INSERT INTO `sys_acl_actions` SET `Name`='use sites'; 104 104 105 105 INSERT INTO `sys_permalinks`(`standard`, `permalink`, `check`) VALUES('modules/?r=sites/', 'm/sites/', 'permalinks_module_sites'); -
trunk/modules/boonex/sites/install/sql/uninstall.sql
r9964 r9969 9 9 DELETE FROM `TopMenu` WHERE `Name`='Sites' OR `Parent`=@iTMParentId; 10 10 11 DELETE FROM ` MemActions` WHERE `Name`='use sites' LIMIT 1;11 DELETE FROM `sys_acl_actions` WHERE `Name`='use sites' LIMIT 1; 12 12 13 13 DELETE FROM `sys_permalinks` WHERE `check`='permalinks_module_sites'; -
trunk/modules/boonex/store/install/sql/install.sql
r9968 r9969 184 184 SET @iLevelPromotion := 3; 185 185 186 INSERT INTO ` MemActions` VALUES (NULL, 'store view product', NULL);187 SET @iAction := LAST_INSERT_ID(); 188 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES186 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store view product', NULL); 187 SET @iAction := LAST_INSERT_ID(); 188 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 189 189 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 190 190 191 INSERT INTO ` MemActions` VALUES (NULL, 'store browse', NULL);192 SET @iAction := LAST_INSERT_ID(); 193 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES191 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store browse', NULL); 192 SET @iAction := LAST_INSERT_ID(); 193 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 194 194 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 195 195 196 INSERT INTO ` MemActions` VALUES (NULL, 'store search', NULL);197 SET @iAction := LAST_INSERT_ID(); 198 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES196 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store search', NULL); 197 SET @iAction := LAST_INSERT_ID(); 198 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 199 199 (@iLevelNonMember, @iAction), (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 200 200 201 INSERT INTO ` MemActions` VALUES (NULL, 'store add product', NULL);202 SET @iAction := LAST_INSERT_ID(); 203 INSERT INTO ` MemLevelActions` (`IDLevel`, `IDAction`) VALUES201 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store add product', NULL); 202 SET @iAction := LAST_INSERT_ID(); 203 INSERT INTO `sys_acl_matrix` (`IDLevel`, `IDAction`) VALUES 204 204 (@iLevelStandard, @iAction), (@iLevelPromotion, @iAction); 205 205 206 INSERT INTO ` MemActions` VALUES (NULL, 'store edit any product', NULL);207 INSERT INTO ` MemActions` VALUES (NULL, 'store delete any product', NULL);208 INSERT INTO ` MemActions` VALUES (NULL, 'store mark as featured', NULL);209 INSERT INTO ` MemActions` VALUES (NULL, 'store approve product', NULL);206 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store edit any product', NULL); 207 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store delete any product', NULL); 208 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store mark as featured', NULL); 209 INSERT INTO `sys_acl_actions` VALUES (NULL, 'store approve product', NULL); 210 210 211 211 -- alert handlers -
trunk/modules/boonex/store/install/sql/uninstall.sql
r9968 r9969 48 48 49 49 -- membership levels 50 DELETE ` MemActions`, `MemLevelActions` FROM `MemActions`, `MemLevelActions` WHERE `MemLevelActions`.`IDAction` = `MemActions`.`ID` AND `MemActions`.`Name` IN('store view product', 'store browse', 'store search', 'store add product', 'store edit any product', 'store delete any product', 'store mark as featured', 'store approve product');51 DELETE FROM ` MemActions` WHERE `Name` IN('store view product', 'store browse', 'store search', 'store add product', 'store edit any product', 'store delete any product', 'store mark as featured', 'store approve product');50 DELETE `sys_acl_actions`, `sys_acl_matrix` FROM `sys_acl_actions`, `sys_acl_matrix` WHERE `sys_acl_matrix`.`IDAction` = `sys_acl_actions`.`ID` AND `sys_acl_actions`.`Name` IN('store view product', 'store browse', 'store search', 'store add product', 'store edit any product', 'store delete any product', 'store mark as featured', 'store approve product'); 51 DELETE FROM `sys_acl_actions` WHERE `Name` IN('store view product', 'store browse', 'store search', 'store add product', 'store edit any product', 'store delete any product', 'store mark as featured', 'store approve product'); 52 52 53 53 -- alerts -
trunk/modules/boonex/wall/classes/BxWallDb.php
r9682 r9969 93 93 } 94 94 function getMembershipActions() { 95 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM ` MemActions` WHERE `Name` LIKE 'Wall_%'";95 $sSql = "SELECT `ID` AS `id`, `Name` AS `name` FROM `sys_acl_actions` WHERE `Name` LIKE 'Wall_%'"; 96 96 return $this->getAll($sSql); 97 97 } -
trunk/modules/boonex/wall/install/sql/install.sql
r9968 r9969 96 96 97 97 98 INSERT INTO ` MemActions`(`Name`, `AdditionalParamName`) VALUES98 INSERT INTO `sys_acl_actions`(`Name`, `AdditionalParamName`) VALUES 99 99 ('Wall Post Comment', ''); 100 100 -
trunk/modules/boonex/wall/install/sql/uninstall.sql
r9968 r9969 15 15 DELETE FROM `GlParams` WHERE `kateg`=@iCategoryId OR `Name`='permalinks_module_wall'; 16 16 17 DELETE FROM ` MemActions` WHERE `Name` IN ('Wall Post', 'Wall Post Comment');17 DELETE FROM `sys_acl_actions` WHERE `Name` IN ('Wall Post', 'Wall Post Comment'); 18 18 19 19 DELETE FROM `Categories` WHERE `Category`='wall'; -
trunk/periodic/notifies.php
r7299 r9969 48 48 $msgs_per_start = getParam( 'msgs_per_start' ); 49 49 50 $iFullCount = (int)db_value( 'SELECT COUNT(*) FROM NotifyQueue', 0 );50 $iFullCount = (int)db_value( 'SELECT COUNT(*) FROM `sys_mail_queue`', 0 ); 51 51 if ( !$iFullCount ) exit; 52 52 … … 65 65 $nfs_res = db_res(" 66 66 SELECT 67 NotifyQueue.Email as ID1,68 NotifyQueue.Msg as ID2,69 NotifyEmails.Name as Name,70 NotifyEmails.Email,71 NotifyMsgs.Subj,72 NotifyMsgs.HTML as Body73 FROM NotifyQueue74 INNER JOIN NotifyMsgsON75 ( NotifyMsgs.ID = NotifyQueue.Msg)76 INNER JOIN NotifyEmailsON77 ( NotifyEmails.ID = NotifyQueue.Email)67 `sys_mail_queue`.Email as ID1, 68 `sys_mail_queue`.Msg as ID2, 69 `sys_subscriptions`.Name as Name, 70 `sys_subscriptions`.Email, 71 `sys_mass_messages`.Subj, 72 `sys_mass_messages`.HTML as Body 73 FROM `sys_mail_queue` 74 INNER JOIN `sys_mass_messages` ON 75 (`sys_mass_messages`.ID = `sys_mail_queue`.Msg) 76 INNER JOIN `sys_subscriptions` ON 77 (`sys_subscriptions`.ID = `sys_mail_queue`.Email) 78 78 WHERE 79 NotifyQueue.`From` = 'NotifyEmails' AND80 NotifyEmails.EmailFlag = 'NotifyMe'79 `sys_mail_queue`.`From` = 'NotifyEmails' AND 80 `sys_subscriptions`.EmailFlag = 'NotifyMe' 81 81 LIMIT $total_per_query 82 82 ",0 ); … … 89 89 ++$err; 90 90 if ( $row[ID1] && $row[ID2] ) 91 db_res("DELETE FROM NotifyQueueWHERE `Email` = $row[ID1] AND `Msg` = $row[ID2] AND `From` = 'NotifyEmails'", 0 );91 db_res("DELETE FROM `sys_mail_queue` WHERE `Email` = $row[ID1] AND `Msg` = $row[ID2] AND `From` = 'NotifyEmails'", 0 ); 92 92 else 93 echo "ERROR: while deleting from ' NotifyQueue' ( Email ID: $row[ID1], Msg ID: $row[ID2] )\n";93 echo "ERROR: while deleting from 'sys_mail_queue' ( Email ID: $row[ID1], Msg ID: $row[ID2] )\n"; 94 94 ++$count_ok; 95 95 if ( $count_ok >= $total_count ) break; … … 102 102 $nfs_res = db_res(" 103 103 SELECT 104 NotifyQueue.Email as ID1,105 NotifyQueue.Msg as ID2,104 `sys_mail_queue`.Email as ID1, 105 `sys_mail_queue`.Msg as ID2, 106 106 Profiles.NickName as Name, 107 107 Profiles.Email, 108 NotifyMsgs.Subj,109 NotifyMsgs.HTML as Body110 FROM NotifyQueue111 INNER JOIN NotifyMsgsON112 ( NotifyMsgs.ID = NotifyQueue.Msg)108 `sys_mass_messages`.Subj, 109 `sys_mass_messages`.HTML as Body 110 FROM `sys_mail_queue` 111 INNER JOIN `sys_mass_messages` ON 112 (`sys_mass_messages`.ID = `sys_mail_queue`.Msg) 113 113 INNER JOIN Profiles ON 114 (Profiles.ID = NotifyQueue.Email)114 (Profiles.ID = `sys_mail_queue`.Email) 115 115 WHERE 116 NotifyQueue.`From` = 'Profiles' AND116 `sys_mail_queue`.`From` = 'Profiles' AND 117 117 Profiles.EmailNotify = 1 118 118 ",0 ); … … 125 125 ++$err; 126 126 if ( $row[ID1] && $row[ID2] ) 127 db_res("DELETE FROM NotifyQueue WHERE Email = $row[ID1] AND Msg = $row[ID2] AND NotifyQueue.`From` = 'Profiles'", 0 );127 db_res("DELETE FROM `sys_mail_queue` WHERE Email = $row[ID1] AND Msg = $row[ID2] AND `sys_mail_queue`.`From` = 'Profiles'", 0 ); 128 128 else 129 echo "ERROR: while deleting from ' NotifyQueue' ( Email ID: $row[ID1], Msg ID: $row[ID2] )\n";129 echo "ERROR: while deleting from 'sys_mail_queue' ( Email ID: $row[ID1], Msg ID: $row[ID2] )\n"; 130 130 ++$count_ok; 131 131 if ( $count_ok >= $total_count ) break; … … 139 139 $nfs_res = db_res(" 140 140 SELECT 141 NotifyQueue.Email as ID1,142 NotifyQueue.Msg as ID2,143 NotifyQueue.MsgText as Body,144 NotifyQueue.MsgSubj as Subj,141 `sys_mail_queue`.Email as ID1, 142 `sys_mail_queue`.Msg as ID2, 143 `sys_mail_queue`.MsgText as Body, 144 `sys_mail_queue`.MsgSubj as Subj, 145 145 Profiles.NickName as Name, 146 146 Profiles.Email 147 FROM NotifyQueue147 FROM `sys_mail_queue` 148 148 INNER JOIN Profiles ON 149 (Profiles.ID = NotifyQueue.Email)149 (Profiles.ID = `sys_mail_queue`.Email) 150 150 WHERE 151 NotifyQueue.`From` = 'ProfilesMsgText' AND151 `sys_mail_queue`.`From` = 'ProfilesMsgText' AND 152 152 Profiles.EmailNotify = 1 153 153 ",0); … … 162 162 if ( !mail( $row['Email'], $row['Subj'], $body, $headers, "-f{$site['email_notify']}") ) 163 163 ++$err; 164 if ( !db_res("DELETE FROM NotifyQueue WHERE Email = $row[ID1] AND NotifyQueue.`From` = 'ProfilesMsgText'", 0 ) )165 echo "ERROR: while deleting from ' NotifyQueue' ( Email ID: $row[ID1], Msg ID: $row[ID2] )\n";164 if ( !db_res("DELETE FROM `sys_mail_queue` WHERE Email = $row[ID1] AND `sys_mail_queue`.`From` = 'ProfilesMsgText'", 0 ) ) 165 echo "ERROR: while deleting from 'sys_mail_queue' ( Email ID: $row[ID1], Msg ID: $row[ID2] )\n"; 166 166 ++$count_ok; 167 167 if ( $count_ok >= $total_count ) break;
Note: See TracChangeset
for help on using the changeset viewer.