Добавление закрепа шапок в мод-панели форума git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@320 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
fly.dvorkin 2011-11-16 20:12:54 +00:00
commit 1f961c00fb
3 changed files with 14 additions and 4 deletions

View file

@ -53,8 +53,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.2 Beta';
$bb_cfg['tp_release_state'] = 'R319';
$bb_cfg['tp_release_date'] = '16-11-2011';
$bb_cfg['tp_release_state'] = 'R320';
$bb_cfg['tp_release_date'] = '17-11-2011';
// Database
$charset = 'utf8';

View file

@ -90,6 +90,14 @@ else
{
$mode = 'unlock';
}
else if (isset($_REQUEST['post_pin']) || @$_POST['mod_action'] === 'post_pin')
{
$mode = 'post_pin';
}
else if (isset($_REQUEST['post_unpin']) || @$_POST['mod_action'] === 'post_unpin')
{
$mode = 'post_unpin';
}
}
// Obtain relevant data
@ -194,8 +202,8 @@ switch ($mode)
case 'unlock':
case 'set_download':
case 'unset_download':
case 'post_stick':
case 'post_unstick':
case 'post_pin':
case 'post_unpin':
if (empty($_POST['topic_id_list']) && empty($topic_id))
{

View file

@ -168,6 +168,8 @@ ajax.callback.mod_action = function(data) {
<input type="submit" name="move" value="{L_MOVE}" />
<input type="submit" name="lock" value="{L_LOCK}" />
<input type="submit" name="unlock" value="{L_UNLOCK}" />
<input type="submit" name="post_pin" value="{L_POST_PIN}" />
<input type="submit" name="post_unpin" value="{L_POST_UNPIN}" />
<label><input id="in-new-window" type="checkbox" />{L_NEW_WINDOW}</label>
</div>
</form>