Changeset 1490


Ignore:
Timestamp:
2009년 05월 01일 11시 58분 03초 (3 years ago)
Author:
yupmin
Message:

이동/삭제 부분 개선

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/metabbs/app/default/controllers/board/manage.php

    r1487 r1490  
    22permission_required('admin', $board); 
    33 
    4 if (!$params['posts']) 
     4if (!$params['posts']) { 
     5        // flash message : Æ÷½ºÆ®¸¦ ¼±ÅÃÇϼ¼¿ä 
    56        redirect_back(); 
     7} 
    68 
    7 if (isset($params['action'])) { 
     9if (is_post() and isset($params['action'])) { 
    810        switch ($params['action']) { 
    911                case 'hide': 
     
    2224                break; 
    2325                case 'delete': 
    24                 include 'core/thumbnail.php'; 
     26                requireCore('thumbnail'); 
    2527                foreach ($params['posts'] as $post_id) { 
    2628                        $post = Post::find($post_id); 
     
    5254                } 
    5355                break; 
     56                default: 
     57                        // flash message : ÇàÀ§¸¦ Á¤ÇÏÁö ¾Ê¾Ò½À´Ï´Ù. 
     58                        redirect_back(); 
     59                break; 
    5460        } 
    55         $params = null; 
    56         apply_filters('BeforeRedirectAtManagePosts', $params, $board); 
    57         redirect_to(url_for($board, null, $params)); 
     61        // flash message : 󸮵Ǿú½À´Ï´Ù 
     62        redirect_back(); 
    5863} 
    5964?> 
  • trunk/metabbs/core/template_engines/standard/vars.php

    r1428 r1490  
    11<?php 
    2 global $layout, $routes; 
     2global $layout, $routes, $params; 
    33 
    44if (isset($board)) { 
     
    6666        $categories = null; 
    6767} 
    68 $params = null; 
    69 apply_filters('ManageURLAtStandardVars', $params, $board); 
    70 $manage_url = url_for($board, 'manage', $params); 
    7168 
    7269$taggable = $board->use_tag(); 
  • trunk/metabbs/skins/board-default/list.php

    r1488 r1490  
    2323<? endif; ?> 
    2424 
    25 <form method="post" action="<?=$manage_url?>"> 
     25<form method="post" action="<?=url_with_referer_for($board, 'manage')?>"> 
    2626<table id="posts"> 
    2727        <tr> 
  • trunk/metabbs/skins/gallery-default/list.php

    r1365 r1490  
    1919<? endif; ?> 
    2020 
    21 <form method="post" action="<?=$manage_url?>"> 
     21<form method="post" action="<?=url_with_referer_for($board, 'manage')?>"> 
    2222<? if ($notices): ?> 
    2323<ul id="notices"> 
  • trunk/metabbs/themes/default/manage.php

    r1378 r1490  
    1 <form method="post" style="line-height: 1.5" id="manage"> 
     1<form method="post" id="manage" action="<?=url_with_referer_for($board, 'manage')?>"> 
    22<? foreach ($_POST['posts'] as $id) { ?> 
    33<input type="hidden" name="posts[]" value="<?=$id?>" /> 
     
    4242</p> 
    4343 
    44 <p><input type="submit" value="확인" /></p> 
     44<p><input type="submit" value="<?=i('Submit')?>" class="button"/>  
     45<? if (isset($params['url']) && !empty($params['url'])): ?> <a href="<?=$params['url']?>"><?=i('Cancel')?></a><? endif; ?></p> 
    4546</form> 
  • trunk/reference-skin/list.php

    r976 r1490  
    2424<? endif; ?> 
    2525 
    26 <form method="post" action="<?=$manage_url?>"> 
     26<form method="post" action="<?=url_with_referer_for($board, 'manage')?>"> 
    2727<table id="posts"> 
    2828        <thead> 
Note: See TracChangeset for help on using the changeset viewer.