??? ????????? ?????????? ??? ????????? ???? (??? ?????? ???????) ????????????. ?.?. ????? ???????????? ?????? ??? ??????? ????????????? ? ?? ???????????? ???????????????, ??????????? ??? ????????? ????????????? ? ????????? id.

? footer.php
?????? ???:

<?php
// End the transaction
$db->end_transaction();

?? ???:

<?php
if ($pun_user['g_id'] != PUN_ADMIN && $pun_user['id'] != 1 && $pun_user['id'] != 2 && $pun_user['id'] != 3 && $pun_user['id'] != 4 && $pun_user['id'] != 5 && $pun_user['id'] != 6 && $pun_user['id'] != 7) {
?>  

<div id="brdfooter" class="block">
    <h2><span><?php echo $lang_common['Board footer'] ?></span></h2>
    <div class="box">
        <div class="inbox">

<center>
????? ??? ????????? ???? ??? ?????? ??????
</center>

            <div class="clearer"></div>
        </div>
    </div>
</div>


<?
}
?>
<?php
// End the transaction
$db->end_transaction();

??? ???? ??????? ?????? ?? ??????????????? ?????? ? ????????????? ? id: 1, 2, 3, 4, 5, 6, 7.
?????? ???? ???????? ????? ?????? ??????????? ?????.

beotiger

?? ??? ??????? ?? ???? ????...
???? ?????-??...

?????? ???? ??????? ?? ?????????? ???????? http://www.mypunbb.com/
???????? ???????? ?????????...
???? ???????? - ???? ????????? ? ?????, ? ???? ??? ?? ???????? ????? ????????.
???-?????? ? ????? ?????? ????? ?????? ? ????? ?? ?????-?? ????????? ? ???? ??????????

e@mail.ru

? ????? ????? ???:
? phpmyadmin ??????? ?? ????????? ??? ????, ? ???????.
?? ???????? ????????? ???????: subscriptions ??? search_words
? ??????? ?? ???? ??? ??????.
?????? ????? ?? ???? ?????? ??????? ? ??? ????????? ???? ????. ???? ??????? ???????? ?? ?????? ???? ???? ??????.
?? ???? ??? ???? ?????? (?????? ? ?? ???? ?? ? ???? ?? ????):
???? ??????? ??????? - ?? ?????? ? ???????, ?????????? ???????? ???? ?? ?????????? ????, ?????????????? ????????? ?????????? ???? ????-???? ?? ?????? ? ???????? ?? ??? ????? - ??????? ???? ??? ???????.
??? ???? ??? ?????? ????. ???? ???? ? ?????? sweb.ru

beotiger

??? ?? ?????? ???????????. ? ???? ??? ???? ???? ??? ? oktune.
?????? ?? ????????? ???? ??????.
???????????? ?????? ??????? ? ???? ?????? - ??? ?????? ??????? ? ??? ??????.

oktune

????????? ???? ??? ??????. ??? ????, ??? ? ?.?. ?????? ????? ????.
? ??? ?????? ?? ????????? ???????? ??????????.

??, ?????.
?????????.

?? ????? smile

?????? ??????? ???????? ? ???? PM. ??? ????????? ?? ????? ???????? ?????????? ????? ???????? ? ?????????.

?????? ? message_list.php
???

<form method="post" action="message_list.php">
<div class="blocktable" style="margin-left: 152px;">

?? ???

<script language="JavaScript" type="text/JavaScript">
 function ChekUncheck()
 {
          var i;
          for (i = 0; i < document.delet.elements.length; i++) {
               if(document.delet.chek.checked==true){
                  document.delet.elements[i].checked = true;
               } else{
                      document.delet.elements[i].checked = false;
                 }
          }
 }
</script>
<form method="post" action="message_list.php" name="delet">
<div class="blocktable" style="margin-left: 152px;">

????? ?????? ???

                    <th >Delete</th>
                    <?php } else { ?>
                    <th class="tcr"><?php echo $lang_pms['Date'] ?></th>
                    <?php } ?>

?? ???

                    <th ><input name="chek" type="checkbox" value="" onClick="ChekUncheck()"></th>
                    <?php } else { ?>
                    <th class="tcr"><?php echo $lang_pms['Date'] ?></th>
                    <?php } ?>

????????? ? ???????? ????????, ???????, ?????. ????? ????????.

Quick removing the messages.

Open message_list.php
FIND

<form method="post" action="message_list.php">

REPLACE WITH

<script language="JavaScript" type="text/JavaScript">
 function ChekUncheck()
 {
          var i;
          for (i = 0; i < document.delet.elements.length; i++) {
               if(document.delet.chek.checked==true){
                  document.delet.elements[i].checked = true;
               } else{
                      document.delet.elements[i].checked = false;
                 }
          }
 }
</script>
<form method="post" action="message_list.php" name="delet">

FIND

                    <th ></th>
                    <?php } else { ?>
                    <th class="tcr"><?php echo $lang_pms['Date'] ?></th>
                    <?php } ?>

REPLACE WITH

                    <th ><input name="chek" type="checkbox" value="" onClick="ChekUncheck()"></th>
                    <?php } else { ?>
                    <th class="tcr"><?php echo $lang_pms['Date'] ?></th>
                    <?php } ?>

36

(15 replies, posted in Archive)

PunOnline

37

(15 replies, posted in Archive)

? ? ???? ?? ?????...
? ???? ?????... smile
?? ????? ???? ?? ????????.

38

(15 replies, posted in Archive)

?? ?????? ??????? ???? ? ????? ??? ?????? ???????. ? ?? ??? ?????, ? ??????? ???? (??????? ??? BB-???) ? ???????? ??? ????????, ????? ??????...

39

(15 replies, posted in Archive)

?? ?????? ??? ? ????.
? ???? ????? ?? ????? ????????? ??? ??????? ?? ??? ??? ??????.

40

(20 replies, posted in Archive)

?????? ????? ??????? ? ??????? ?????? ???????? ? ??????????? ?????:
???????? ? ????? viewpoll.php

<form method="post" action="post.php?tid=<?php echo $id ?>

?? ???:

<form method="post" action="poll.php?tid=<?php echo $id ?>

??? ???????? ????????...

41

(15 replies, posted in Archive)

?????? ???????? ? ??????? 378

42

(20 replies, posted in Archive)

?????:

????? ???????? ???:


<a href="viewtopic.php?pid=<?php echo $cur_post['id'].'#p'.$cur_post['id'] ?>"><?php echo format_time($cur_post['posted']) ?></a>

?? ???:


<a href="viewpoll.php?pid=<?php echo $cur_post['id'] . '#p' . $cur_post['id'] ?>"><?php echo format_time($cur_post['posted']) ?></a>

?? ??? ?? ????????...

43

(20 replies, posted in Archive)

uT)Dev1L

? ???????????? ???? ????????? ?????? ? ?????? (? ??????). ?? ??????? ???-?? ?????? ? ???????? ???? ?? ?? ????? ???? ??????????. ???? ?? ?? ??????? ????? ??? ???????

44

(20 replies, posted in Archive)

à òû êàêèå áàãè è ãëþêè íàáëþäàë?

45

(20 replies, posted in Archive)

? ????? ?? ????? ??? ??????? ????? ????? ???? ??????? ?? ???? ??????????? ??????

46

(20 replies, posted in Archive)

?????? ? ???? ?? ??????? ???????? ????????? ????????? ???.

???????? ?  index.php ??????? ?? ???:

$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, t.question FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') LEFT JOIN '.$db->prefix.'topics AS t ON f.last_post=t.last_post AND f.last_post_id=t.last_post_id WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());

????? ???? ???:

if ($cur_forum['last_post'] != '')
        $last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
    else
        $last_post = ' ';

?? ????:

if ($cur_forum['last_post'] != '')
    { //Easy Poll
        $idmT = (isset($idmComp)) ? ' title="'.$idmComp.'"' : '';
        if ($cur_forum['question'] != '')     //Easy Poll
            $last_post = format_time($cur_forum['last_post']).'<br/><a href="viewpoll.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'"'.$idmT.'><em>'.$idm.'</em></a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';    //Easy Poll
        else        //Easy Poll
            $last_post = format_time($cur_forum['last_post']).'<br/><a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'"'.$idmT.'><em>'.$idm.'</em></a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
    } //Easy Poll
    else
        $last_post = ' ';

???????????? ?????? ??????? ??????? ?????????? ??? ??????? ???????? ?? ???????? ??????, ????? ???????? ?????????? ? ???????????.

47

(20 replies, posted in Archive)

?????? ??? ?? ?????????.
? ? ???? ?? ??? ??????????? ???? ?????? ??? ?? ???????????????.

? ??? ??????? ? ??? ??? ? ?????? ??? ?????????? ???? ???????
??? ?????????? ???? ? ????? ????????.
?????? ????? ???? ???? ????????? ? ?? ????????.

48

(20 replies, posted in Archive)

?????? ??? ??????? ???????? ? ?????????? ???????????:

??? ???? ????? ???????? ?????????? ? ??????????? ??? ???????? ????? ?? edit.php:
?????? ? ????? edit.php ???:

redirect('viewtopic.php?pid='.$id.'#p'.$id, $lang_post['Edit redirect']);

?? ???:

$resultpost = $db->query('SELECT p.topic_id, t.question FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t WHERE p.id='.$id.' AND t.id=p.topic_id') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
$cur_question = $db->fetch_assoc($resultpost);
        
if ($cur_question['question'] != '') 
    redirect('viewpoll.php?pid='.$id.'#p'.$id, $lang_post['Edit redirect']);
else
    redirect('viewtopic.php?pid='.$id.'#p'.$id, $lang_post['Edit redirect']);

??? ???? ????? ? viewforum.php ??? ??????? ?? ????????? ???? ??????? ?????????? ? ??????????? ? ?? ? ????? viewtopic.php ?????? ???? viewforum.php:

?????? ? ????? viewforum.php ???:

if ($cur_topic['moved_to'] == null)
            $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';
        else
            $last_post = ' ';

?? ???:

       if ($cur_topic['moved_to'] == null)
        { //Easy Poll
            if ($cur_topic['question'] != '')     //Easy Poll
                $last_post = '<a href="viewpoll.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';  //Easy Poll
            else        //Easy Poll
                $last_post = '<a href="viewtopic.php?pid='.$cur_topic['last_post_id'].'#p'.$cur_topic['last_post_id'].'">'.format_time($cur_topic['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['last_poster']).'</span>';
        }             //Easy Poll
        else
            $last_post = ' ';

??? ????????? ??? ??????? ???????:
1. ??????? ???????? ? ????? viewpoll.php ? ??????? ??????.
2. ??????? ?? ??????? ???????? ????? ????????? ???? ????? viewpoll.php ? ?? ????? viewtopic.php

49

(20 replies, posted in Archive)

uT)Dev1L

? ??????????? ? viewforum.php ??????????. ??? ???????? ??. ?.?. ??????? ?? ????????? ???? ? ???????? ? ???????????.

????????? ? ????? index.php ?????? ?? ????. ?.?. ?????? ?? ????????? ???? ? ???????? ??? ????? ? viewtopic.php
? ???? ??? ????? ??????? ?? ??????, ?.?. ?? ??????? ?????? ???????????? ?? ???? ????????? ????? ? ???????? ????...

? ??? ?? ?????? ??? ??????? ????? ????? ???? ?????? ? ??????????? (? viewpoll.php) ?? ???????? ?????????? ?????? - ? viewpoll.php ? ?? ? viewtopic.php?
? ?? ???-?? ?? ??????? - ??????? ? ??????????? ? ????????? ? viewtopic.php ??? ???????????...

50

(20 replies, posted in Archive)

? ?? ????? ????? ? ???? ???? ???????? ??? ????????? ????? ????????