Changeset 211
- Timestamp:
- 02/01/09 20:08:48 (3 years ago)
- Files:
-
- cache (added)
- cache/png (added)
- db_updater.php (modified) (1 diff)
- details.php (modified) (3 diffs)
- include (added)
- include/ajax.php (added)
- include/auth.php (added)
- include/benc.php (added)
- include/captcha.php (added)
- include/class.cache.php (added)
- include/class.cleanup.php (added)
- include/class.cleanup_types.php (added)
- include/class.filecache.php (added)
- include/class.memcached.php (added)
- include/class.template.php (added)
- include/config.php (added)
- include/constants.php (added)
- include/functions_admin.php (added)
- include/functions_check.php (added)
- include/functions_delete.php (added)
- include/functions_messenger.php (added)
- include/functions_post.php (added)
- include/functions_search.php (added)
- include/functions_selects.php (added)
- include/functions_template.php (added)
- include/functions_torrenttable.php (added)
- include/global.php (added)
- include/index.htm (added)
- include/message_parser.php (added)
- include/overall_footer.php (added)
- include/overall_header.php (added)
- include/sessions.php (added)
- js/ajax_common.js (modified) (2 diffs)
- js/captcha (deleted)
- languages/chat (deleted)
- languages/include (deleted)
- languages/lang_english/lang_admin.php (modified) (1 diff)
- languages/lang_russian/lang_admin.php (modified) (1 diff)
- offers.php (modified) (2 diffs)
- pic/files/svf.gif (added)
- pic/userbars (added)
- requests.php (modified) (2 diffs)
- templates/admin/ranks_edit_body.html (added)
- templates/admin/ranks_list_body.html (added)
- templates/bithdtv/comments_table.html (modified) (1 diff)
- templates/bithdtv/details.html (modified) (1 diff)
- templates/bithdtv/forum/viewtopic_body.tpl (modified) (1 diff)
- templates/bithdtv/offers_view_body.html (modified) (1 diff)
- templates/bithdtv/requests_view_body.html (modified) (1 diff)
- templates/main/comments_table.html (modified) (1 diff)
- templates/main/details.html (modified) (1 diff)
- templates/main/forum/viewtopic_body.tpl (modified) (1 diff)
- templates/main/offers_view_body.html (modified) (1 diff)
- templates/main/requests_view_body.html (modified) (1 diff)
- templates/reflection/details.html (modified) (1 diff)
- templates/reflection/forum/viewtopic_body.tpl (modified) (1 diff)
- templates/reflection/offers_view_body.html (modified) (1 diff)
- templates/reflection/reflection.css (modified) (1 diff)
- templates/reflection/requests_view_body.html (modified) (1 diff)
- torrents (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
db_updater.php
r203 r211 242 242 $db->sql_query('ALTER TABLE ' . USERS_TABLE . ' CHANGE `notifs` `notifs` MEDIUMTEXT NOT NULL '); 243 243 244 ALTER TABLE `comments` ADD `comment_reputation` INT( 10 ) NOT NULL DEFAULT '0'; 245 ALTER TABLE `users` CHANGE `points` `user_reputation` INT( 11 ) NOT NULL DEFAULT '0' 246 ALTER TABLE `forum_posts` ADD `post_reputation` INT( 10 ) NOT NULL DEFAULT '0'; 244 $db->sql_query('ALTER TABLE ' . COMMENTS_TABLE . ' ADD `comment_reputation` INT( 10 ) NOT NULL DEFAULT \'0\''); 245 $db->sql_query('ALTER TABLE ' . USERS_TABLE . ' CHANGE `points` `user_reputation` INT( 11 ) NOT NULL DEFAULT \'0\''); 246 $db->sql_query('ALTER TABLE ' . POSTS_TABLE . ' ADD `post_reputation` INT( 10 ) NOT NULL DEFAULT \'0\''); 247 248 $db->sql_query('CREATE TABLE IF NOT EXISTS `ranks` (`rank_id` int(10) NOT NULL auto_increment, `rank_name` varchar(255) NOT NULL, `rank_points` int(10) NOT NULL,`rank_image` varchar(255) NOT NULL,PRIMARY KEY (`rank_id`))'); 247 249 248 250 details.php
r203 r211 334 334 'ID' => $id, 335 335 'L_ADD_TO_BOOKMARKS' => ( $userdata['session_logged_in'] ? $lang['add_to_bookmarks'] : '' ), 336 'IMG_RESPECT' => $images['respect'],337 'IMG_ANTI_RESPECT' => $images['anti_respect']338 336 )); 339 337 … … 439 437 'PEERS_COUNT' => sprintf( $lang['peers_count'], $row['seeders'], $row['leechers'], ( $row['seeders'] + $row['leechers'] ) ), 440 438 'REPORT' => sprintf( $lang['report_descr'], append_sid( 'reports.php?action=send_report&type=torrent&id=' . $id ) ), 441 'IMG_RESPECT' => $images['respect'],442 'IMG_ANTI_RESPECT' => $images['anti_respect'],443 439 'OWNER_ID' => ( is_numeric($owner) ? $owner : 0 ) 444 440 )); … … 466 462 if ( $userdata['uid'] == $row['owner'] || $userdata['class'] >= UC_MODERATOR ) { 467 463 $template->assign_block_vars( 'torrent_details.switch_owner_section', array() ); 468 }469 if ( $userdata['session_logged_in'] && $userdata['uid'] != $row['owner'] && $row['owner'] != ANONYMOUS && $row['privacy'] <> PRIVACY_LEVEL_HIGH ) {470 $template->assign_block_vars( 'torrent_details.switch_respect_section', array(471 'U_RESPECT' => append_sid('simpaty.php?action=add&simpaty=1&targetid=' . $row['owner'] . '&type=2&simpid=' . $id),472 'U_ANTIRESPECT' => append_sid('simpaty.php?action=add&simpaty=0&targetid=' . $row['owner'] . '&type=2&simpid=' . $id),473 ));474 464 } 475 465 js/ajax_common.js
r203 r211 69 69 req.open('GET', TRACKER_URL + '/ajax.php?action=rating&sid=' + SID, true); 70 70 req.send({ id: torrent_id, rating: rating }); 71 }72 73 function add_simpaty(simpaty, target_id, type, simpid) {74 var promt_text = printf(simpaty_descr, ( simpaty == 1 ? resp : antiresp ) );75 var inPut = prompt(promt_text, "");76 if (inPut == null || inPut == '') {77 return false;78 }79 else {80 var req = new JsHttpRequest();81 req.onreadystatechange = function() {82 if (req.readyState == 4) {83 if (req.responseJS) {84 alert(req.responseJS.text);85 }86 }87 }88 req.caching = false;89 req.open('GET', TRACKER_URL + '/simpaty.php?action=add&sid=' + SID, true);90 req.send({ simpaty: simpaty, targetid: target_id, type: type, simpid: simpid, description: inPut });91 }92 71 } 93 72 … … 264 243 var respectTr = document.createElement('tr'); 265 244 var respectTd = document.createElement('td'); 266 respectTd.colSpan = 2;245 respectTd.colSpan = 4; 267 246 respectTd.className = 'respectUserList'; 268 247 respectTd.innerHTML = '<span class="smallfont"><b>' + L_JS_MARKED + '</b>: ' + req.responseJS.userList + '</span>'; languages/lang_english/lang_admin.php
r180 r211 563 563 'rank_title' => 'Rank Title', 564 564 'rank_special' => 'Set as Special Rank', 565 'rank_minimum' => 'Minimum Posts',565 'rank_minimum' => 'Minimum points', 566 566 'rank_maximum' => 'Maximum Posts', 567 567 'rank_image' => 'Rank Image (Relative to TB Dev SZ root path)', languages/lang_russian/lang_admin.php
r180 r211 536 536 'rank_title' => '��� 537 537 'rank_special' => '���� ��', 538 'rank_minimum' => '���� �',538 'rank_minimum' => '����', 539 539 'rank_maximum' => '��� ��', 540 540 'rank_image' => '������(������TB Dev SZ)', offers.php
r203 r211 257 257 $template->assign_vars(array( 258 258 'U_OFFERER' => $u_oferer, 259 'U_RESPECT' => append_sid('simpaty.php?action=add&simpaty=1&targetid=' . $row['userid'] . '&type=4&simpid=' . $id),260 'U_ANTIRESPECT' => append_sid('simpaty.php?action=add&simpaty=0&targetid=' . $row['userid'] . '&type=4&simpid=' . $id),261 259 'U_VOTE' => append_sid('offers.php?action=vote&voteid=' . $id), 262 260 'U_VOTES' => append_sid('offers.php?action=voteview&offerid=' . $id), … … 274 272 'OFERER_ID' => $row['userid'], 275 273 'OFERER_NAME' => $oferer_name, 276 'VOTES' => $row['votes'], 277 'IMG_RESPECT' => $images['respect'], 278 'IMG_ANTI_RESPECT' => $images['anti_respect'] 274 'VOTES' => $row['votes'] 279 275 )); 280 281 if ( $userdata['class'] >= UC_MODERATOR || $userdata['uid'] == $row['userid'] ) {282 $template->assign_block_vars('switch_edit_section', array());283 }284 276 285 277 if ( !$row['filled'] ) { requests.php
r203 r211 275 275 'S_FORM_ACTION' => append_sid('requests.php'), 276 276 'U_REQUESTER' => $u_requester, 277 'U_RESPECT' => append_sid('simpaty.php?action=add&simpaty=1&targetid=' . $row['userid'] . '&type=3&simpid=' . $id),278 'U_ANTIRESPECT' => append_sid('simpaty.php?action=add&simpaty=0&targetid=' . $row['userid'] . '&type=3&simpid=' . $id),279 277 'U_VOTE' => append_sid('requests.php?action=vote&voteid=' . $id), 280 278 'U_VOTES' => append_sid('requests.php?action=voteview&requestid=' . $id), … … 291 289 'REQUESTER_ID' => $row['userid'], 292 290 'REQUESTER_NAME' => $requester_name, 293 'VOTES' => $row['hits'], 294 'IMG_RESPECT' => $images['respect'], 295 'IMG_ANTI_RESPECT' => $images['anti_respect'] 291 'VOTES' => $row['hits'] 296 292 )); 297 293 templates/bithdtv/comments_table.html
r203 r211 45 45 46 46 <tr> 47 <td class="respectUserList" colspan=" 2">47 <td class="respectUserList" colspan="4"> 48 48 <span class="smallfont"><b>{L_MARKED}</b>: {comments_table_row.USERLIST} 49 49 </td> templates/bithdtv/details.html
r196 r211 104 104 <td><form action="{S_EDIT_ACTION}" method="post" name="form_edit" id="form_edit"><input type="submit" name="edit" value="{L_EDIT}" /></form></td> 105 105 <!-- END switch_owner_section --> 106 <!-- BEGIN switch_respect_section -->107 <td>{SPACER}<a href="javascript:void(0);" onclick="add_simpaty('1','{OWNER_ID}','2','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 108 <a href="javascript:void(0);" onclick="add_simpaty('0','{OWNER_ID}','2','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>109 </td>110 <!-- END switch_respect_section -->111 106 </tr> 112 107 </table> templates/bithdtv/forum/viewtopic_body.tpl
r203 r211 107 107 108 108 <tr> 109 <td class="respectUserList" colspan=" 2">109 <td class="respectUserList" colspan="4"> 110 110 <b>{L_MARKED}</b>: {postrow.USERLIST} 111 111 </td> templates/bithdtv/offers_view_body.html
r144 r211 30 30 <td class="detail">{L_OFFERER}</td> 31 31 <td class="detail"><!-- IF U_OFFERER --><a href="{U_OFFERER}">{OFERER_NAME}</a><!-- ELSE -->{OFERER_NAME}<!-- ENDIF --> 32 <!-- BEGIN switch_simpaty_section -->33 <a href="javascript:void(0);" onclick="add_simpaty('1','{OFERER_ID}','4','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 34 <a href="javascript:void(0);" onclick="add_simpaty('0','{OFERER_ID}','4','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>35 <!-- END switch_simpaty_section -->36 32 </td> 37 33 </tr> templates/bithdtv/requests_view_body.html
r142 r211 30 30 <td class="detail">{L_REQUESTER}</td> 31 31 <td class="detail"><a href="{U_REQUESTER}">{REQUESTER_NAME}</a> 32 <!-- BEGIN switch_simpaty_section -->33 <a href="javascript:void(0);" onclick="add_simpaty('1','{REQUESTER_ID}','3','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 34 <a href="javascript:void(0);" onclick="add_simpaty('0','{REQUESTER_ID}','3','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>35 <!-- END switch_simpaty_section -->36 32 </td> 37 33 </tr> templates/main/comments_table.html
r203 r211 57 57 58 58 <tr> 59 <td class="respectUserList" colspan=" 2">59 <td class="respectUserList" colspan="4"> 60 60 <span class="smallfont"><b>{L_MARKED}</b>: {comments_table_row.USERLIST} 61 61 </td> templates/main/details.html
r196 r211 105 105 <td><form action="{S_EDIT_ACTION}" method="post" name="form_edit" id="form_edit"><input type="submit" name="edit" value="{L_EDIT}" /></form></td> 106 106 <!-- END switch_owner_section --> 107 <!-- BEGIN switch_respect_section -->108 <td>{SPACER}<a href="javascript:void(0);" onclick="add_simpaty('1','{OWNER_ID}','2','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 109 <a href="javascript:void(0);" onclick="add_simpaty('0','{OWNER_ID}','2','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>110 </td>111 <!-- END switch_respect_section -->112 107 </tr> 113 108 </table> templates/main/forum/viewtopic_body.tpl
r203 r211 112 112 113 113 <tr> 114 <td class="respectUserList" colspan=" 2">114 <td class="respectUserList" colspan="4"> 115 115 <b>{L_MARKED}</b>: {postrow.USERLIST} 116 116 </td> templates/main/offers_view_body.html
r144 r211 31 31 <td>{L_OFFERER}</td> 32 32 <td><!-- IF U_OFFERER --><a href="{U_OFFERER}">{OFERER_NAME}</a><!-- ELSE -->{OFERER_NAME}<!-- ENDIF --> 33 <!-- BEGIN switch_simpaty_section -->34 <a href="javascript:void(0);" onclick="add_simpaty('1','{OFERER_ID}','4','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 35 <a href="javascript:void(0);" onclick="add_simpaty('0','{OFERER_ID}','4','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>36 <!-- END switch_simpaty_section -->37 33 </td> 38 34 </tr> templates/main/requests_view_body.html
r142 r211 30 30 <td>{L_REQUESTER}</td> 31 31 <td><!-- IF U_REQUESTER --><a href="{U_REQUESTER}">{REQUESTER_NAME}</a><!-- ELSE -->{REQUESTER_NAME}<!-- ENDIF --> 32 <!-- BEGIN switch_simpaty_section -->33 <a href="javascript:void(0);" onclick="add_simpaty('1','{REQUESTER_ID}','3','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 34 <a href="javascript:void(0);" onclick="add_simpaty('0','{REQUESTER_ID}','3','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>35 <!-- END switch_simpaty_section -->36 32 </td> 37 33 </tr> templates/reflection/details.html
r196 r211 90 90 <form action="{S_EDIT_ACTION}" method="post" name="form_edit" id="form_edit" style="display:inline;"><input type="submit" name="edit" value="{L_EDIT}" /></form> 91 91 <!-- END switch_owner_section --> 92 <!-- BEGIN switch_respect_section -->93 {SPACER}<a href="javascript:void(0);" onclick="add_simpaty('1','{OWNER_ID}','2','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 94 <a href="javascript:void(0);" onclick="add_simpaty('0','{OWNER_ID}','2','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>95 <!-- END switch_respect_section -->96 92 </div> 97 93 templates/reflection/forum/viewtopic_body.tpl
r203 r211 116 116 117 117 <tr> 118 <td class="respectUserList" colspan=" 2">118 <td class="respectUserList" colspan="4"> 119 119 <b>{L_MARKED}</b>: {postrow.USERLIST} 120 120 </td> templates/reflection/offers_view_body.html
r144 r211 25 25 <div class="torrentViewLeft">{L_OFFERER}</div> 26 26 <div class="torrentViewRight"><a href="{U_OFFERER}">{OFERER_NAME}</a> 27 <!-- BEGIN switch_simpaty_section -->28 <a href="javascript:void(0);" onclick="add_simpaty('1','{OFERER_ID}','4','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 29 <a href="javascript:void(0);" onclick="add_simpaty('0','{OFERER_ID}','4','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>30 <!-- END switch_simpaty_section -->31 27 </div> 32 28 <!-- BEGIN switch_vote_section --> templates/reflection/reflection.css
r203 r211 978 978 border-top:1px solid #696969; 979 979 } 980 981 .message_msg p {font-size: 10px; color: #000000; margin:8px 0px 0px 0px;} 982 983 .mod { 984 margin: 10px 5px 0px 5px; 985 line-height: 125%; 986 font-size:10px; background-color:#FFFFFF; 987 border-color: #A9B8C2; 988 border-width: 1px 1px 1px 1px; 989 border-style: solid; 990 color:#000000; 991 } 992 .modtable { 993 background-color: #ff6060; 994 height:50px; width: 40px; 995 text-align:center; 996 } 997 .exclamation { 998 font-weight: bold; 999 font-family: Times New Roman, Verdana; 1000 font-size : 45px; 1001 color: #ffffff; 1002 } templates/reflection/requests_view_body.html
r142 r211 25 25 <div class="torrentViewLeft">{L_REQUESTER}</div> 26 26 <div class="torrentViewRight"><a href="{U_REQUESTER}">{REQUESTER_NAME}</a> 27 <!-- BEGIN switch_simpaty_section -->28 <a href="javascript:void(0);" onclick="add_simpaty('1','{REQUESTER_ID}','3','{ID}');" title="{L_RESPECT}"><img src="{IMG_RESPECT}" alt="{L_RESPECT}" title="{L_RESPECT}" /></a> 29 <a href="javascript:void(0);" onclick="add_simpaty('0','{REQUESTER_ID}','3','{ID}');" title="{L_ANTIRESPECT}"><img src="{IMG_ANTI_RESPECT}" alt="{L_ANTIRESPECT}" title="{L_ANTIRESPECT}" /></a>30 <!-- END switch_simpaty_section -->31 27 </div> 32 28 <!-- BEGIN switch_vote_section -->
