Changeset 211

Show
Ignore:
Timestamp:
02/01/09 20:08:48 (3 years ago)
Author:
Nafania
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • db_updater.php

    r203 r211  
    242242        $db->sql_query('ALTER TABLE ' . USERS_TABLE . ' CHANGE `notifs` `notifs` MEDIUMTEXT NOT NULL  '); 
    243243 
    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`))'); 
    247249 
    248250 
  • details.php

    r203 r211  
    334334                        'ID' => $id, 
    335335                        'L_ADD_TO_BOOKMARKS' => ( $userdata['session_logged_in'] ? $lang['add_to_bookmarks'] : '' ), 
    336                         'IMG_RESPECT' => $images['respect'], 
    337                         'IMG_ANTI_RESPECT' => $images['anti_respect'] 
    338336                )); 
    339337 
     
    439437                                'PEERS_COUNT' => sprintf( $lang['peers_count'], $row['seeders'], $row['leechers'], ( $row['seeders'] + $row['leechers'] ) ), 
    440438                                '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'], 
    443439                                'OWNER_ID' => ( is_numeric($owner) ? $owner : 0 ) 
    444440                        )); 
     
    466462                        if ( $userdata['uid'] == $row['owner'] || $userdata['class'] >= UC_MODERATOR ) { 
    467463                                $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&amp;simpaty=1&amp;targetid=' . $row['owner'] . '&amp;type=2&amp;simpid=' . $id), 
    472                                         'U_ANTIRESPECT' => append_sid('simpaty.php?action=add&amp;simpaty=0&amp;targetid=' . $row['owner'] . '&amp;type=2&amp;simpid=' . $id), 
    473                                 )); 
    474464                        } 
    475465 
  • js/ajax_common.js

    r203 r211  
    6969        req.open('GET', TRACKER_URL + '/ajax.php?action=rating&sid=' + SID, true); 
    7070        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      } 
    9271} 
    9372 
     
    264243                                 var respectTr = document.createElement('tr'); 
    265244                        var respectTd = document.createElement('td'); 
    266                         respectTd.colSpan = 2
     245                        respectTd.colSpan = 4
    267246                        respectTd.className = 'respectUserList'; 
    268247                        respectTd.innerHTML = '<span class="smallfont"><b>' + L_JS_MARKED + '</b>: ' + req.responseJS.userList + '</span>'; 
  • languages/lang_english/lang_admin.php

    r180 r211  
    563563        'rank_title' =>  'Rank Title', 
    564564        'rank_special' =>  'Set as Special Rank', 
    565         'rank_minimum' =>  'Minimum Posts', 
     565        'rank_minimum' =>  'Minimum points', 
    566566        'rank_maximum' =>  'Maximum Posts', 
    567567        'rank_image' =>  'Rank Image (Relative to TB Dev SZ root path)', 
  • languages/lang_russian/lang_admin.php

    r180 r211  
    536536        'rank_title' =>  '��� 
    537537        'rank_special' =>  '���� ��', 
    538         'rank_minimum' =>  '����', 
     538        'rank_minimum' =>  '����', 
    539539        'rank_maximum' =>  '��� ��', 
    540540        'rank_image' =>  '������(������TB Dev SZ)', 
  • offers.php

    r203 r211  
    257257                $template->assign_vars(array( 
    258258                                'U_OFFERER' => $u_oferer, 
    259                                 'U_RESPECT' => append_sid('simpaty.php?action=add&amp;simpaty=1&amp;targetid=' . $row['userid'] . '&amp;type=4&amp;simpid=' . $id), 
    260                                 'U_ANTIRESPECT' => append_sid('simpaty.php?action=add&amp;simpaty=0&amp;targetid=' . $row['userid'] . '&amp;type=4&amp;simpid=' . $id), 
    261259                                'U_VOTE' => append_sid('offers.php?action=vote&amp;voteid=' . $id), 
    262260                                'U_VOTES' => append_sid('offers.php?action=voteview&amp;offerid=' . $id), 
     
    274272                                'OFERER_ID' => $row['userid'], 
    275273                                'OFERER_NAME' => $oferer_name, 
    276                                 'VOTES' => $row['votes'], 
    277                                 'IMG_RESPECT' => $images['respect'], 
    278                                 'IMG_ANTI_RESPECT' => $images['anti_respect'] 
     274                                'VOTES' => $row['votes'] 
    279275                )); 
    280  
    281                 if ( $userdata['class'] >= UC_MODERATOR || $userdata['uid'] == $row['userid'] ) { 
    282                         $template->assign_block_vars('switch_edit_section', array()); 
    283                 } 
    284276 
    285277                if ( !$row['filled'] ) { 
  • requests.php

    r203 r211  
    275275                        'S_FORM_ACTION' => append_sid('requests.php'), 
    276276                        'U_REQUESTER' => $u_requester, 
    277                         'U_RESPECT' => append_sid('simpaty.php?action=add&amp;simpaty=1&amp;targetid=' . $row['userid'] . '&amp;type=3&amp;simpid=' . $id), 
    278                         'U_ANTIRESPECT' => append_sid('simpaty.php?action=add&amp;simpaty=0&amp;targetid=' . $row['userid'] . '&amp;type=3&amp;simpid=' . $id), 
    279277                        'U_VOTE' => append_sid('requests.php?action=vote&amp;voteid=' . $id), 
    280278                        'U_VOTES' => append_sid('requests.php?action=voteview&amp;requestid=' . $id), 
     
    291289                        'REQUESTER_ID' => $row['userid'], 
    292290                        'REQUESTER_NAME' => $requester_name, 
    293                         'VOTES' => $row['hits'], 
    294                         'IMG_RESPECT' => $images['respect'], 
    295                         'IMG_ANTI_RESPECT' => $images['anti_respect'] 
     291                        'VOTES' => $row['hits'] 
    296292                )); 
    297293 
  • templates/bithdtv/comments_table.html

    r203 r211  
    4545 
    4646                                <tr> 
    47                                         <td class="respectUserList" colspan="2"> 
     47                                        <td class="respectUserList" colspan="4"> 
    4848                                                <span class="smallfont"><b>{L_MARKED}</b>: {comments_table_row.USERLIST} 
    4949                                        </td> 
  • templates/bithdtv/details.html

    r196 r211  
    104104          <td><form action="{S_EDIT_ACTION}" method="post" name="form_edit" id="form_edit"><input type="submit" name="edit" value="{L_EDIT}" /></form></td> 
    105105          <!-- 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    111106        </tr> 
    112107      </table> 
  • templates/bithdtv/forum/viewtopic_body.tpl

    r203 r211  
    107107 
    108108                                        <tr> 
    109                                                 <td class="respectUserList" colspan="2"> 
     109                                                <td class="respectUserList" colspan="4"> 
    110110                                                        <b>{L_MARKED}</b>: {postrow.USERLIST} 
    111111                                                </td> 
  • templates/bithdtv/offers_view_body.html

    r144 r211  
    3030                <td class="detail">{L_OFFERER}</td> 
    3131                <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    3632                </td> 
    3733        </tr> 
  • templates/bithdtv/requests_view_body.html

    r142 r211  
    3030                <td class="detail">{L_REQUESTER}</td> 
    3131                <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    3632        </td> 
    3733        </tr> 
  • templates/main/comments_table.html

    r203 r211  
    5757 
    5858                                        <tr> 
    59                                                 <td class="respectUserList" colspan="2"> 
     59                                                <td class="respectUserList" colspan="4"> 
    6060                                                        <span class="smallfont"><b>{L_MARKED}</b>: {comments_table_row.USERLIST} 
    6161                                                </td> 
  • templates/main/details.html

    r196 r211  
    105105          <td><form action="{S_EDIT_ACTION}" method="post" name="form_edit" id="form_edit"><input type="submit" name="edit" value="{L_EDIT}" /></form></td> 
    106106          <!-- 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    112107        </tr> 
    113108      </table> 
  • templates/main/forum/viewtopic_body.tpl

    r203 r211  
    112112 
    113113                                        <tr> 
    114                                                 <td class="respectUserList" colspan="2"> 
     114                                                <td class="respectUserList" colspan="4"> 
    115115                                                        <b>{L_MARKED}</b>: {postrow.USERLIST} 
    116116                                                </td> 
  • templates/main/offers_view_body.html

    r144 r211  
    3131                        <td>{L_OFFERER}</td> 
    3232                        <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    3733                        </td> 
    3834                </tr> 
  • templates/main/requests_view_body.html

    r142 r211  
    3030                <td>{L_REQUESTER}</td> 
    3131                <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    3632        </td> 
    3733        </tr> 
  • templates/reflection/details.html

    r196 r211  
    9090          <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> 
    9191          <!-- 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    9692</div> 
    9793 
  • templates/reflection/forum/viewtopic_body.tpl

    r203 r211  
    116116 
    117117                                        <tr> 
    118                                                 <td class="respectUserList" colspan="2"> 
     118                                                <td class="respectUserList" colspan="4"> 
    119119                                                        <b>{L_MARKED}</b>: {postrow.USERLIST} 
    120120                                                </td> 
  • templates/reflection/offers_view_body.html

    r144 r211  
    2525        <div class="torrentViewLeft">{L_OFFERER}</div> 
    2626        <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    3127                </div> 
    3228<!-- BEGIN switch_vote_section --> 
  • templates/reflection/reflection.css

    r203 r211  
    978978        border-top:1px solid #696969; 
    979979} 
     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  
    2525        <div class="torrentViewLeft">{L_REQUESTER}</div> 
    2626        <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    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 --> 
    3127                </div> 
    3228<!-- BEGIN switch_vote_section -->