Changeset 7012

Show
Ignore:
Timestamp:
11/18/08 17:02:47 (7 weeks ago)
Author:
inureyes
Message:

refs #777

  • context 로딩 부분을 추가.
    (언제나 필요하다)
Location:
trunk
Files:
164 modified

Legend:

Unmodified
Added
Removed
  • trunk/dispatcher.php

    r7010 r7012  
    2020include(ROOT.'/library/base.php'); 
    2121include(ROOT.'/library/settings.php'); 
     22include(ROOT.'/library/context.php'); 
    2223include(ROOT.'/library/loader.php'); 
    2324$config = Config::getInstance(); 
  • trunk/interface/blog/api.php

    r6608 r7012  
    1111 
    1212if (getBlogSetting('useBlogAPI', 0) != 1) { 
    13     respond::NotFoundPage(); 
     13    Respond::NotFoundPage(); 
    1414    exit; 
    1515} 
  • trunk/interface/blog/attachment.php

    r6321 r7012  
    55require ROOT . '/library/includeForBlog.php'; 
    66if (empty($suri['value'])) 
    7     respond::NotFoundPage(); 
     7    Respond::NotFoundPage(); 
    88if (!$attachment = getAttachmentByOnlyName($blogid, $suri['value'])) 
    9     respond::NotFoundPage(); 
     9    Respond::NotFoundPage(); 
    1010$fp = fopen(ROOT . "/attach/$blogid/{$attachment['name']}", 'rb'); 
    1111if (!$fp) 
    12     respond::NotFoundPage(); 
     12    Respond::NotFoundPage(); 
    1313$fstat = fstat($fp); 
    1414if (!empty($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { 
  • trunk/interface/blog/feeder.php

    r6476 r7012  
    99} 
    1010list($status, $url) = updateRandomFeed(); 
    11 respond::PrintResult(array('error' => $status, 'url' => $url)); 
     11Respond::PrintResult(array('error' => $status, 'url' => $url)); 
    1212?> 
  • trunk/interface/blog/keylog.php

    r6958 r7012  
    1010if (strlen($suri['value'])) { 
    1111    if(!$keylog = getKeylogByTitle($blogid, $suri['value'])) { 
    12         respond::ErrorPage(); 
     12        Respond::ErrorPage(); 
    1313        exit; 
    1414    } 
     
    1919        require ROOT . '/interface/common/blog/keylog.php'; 
    2020    } else { 
    21         respond::ErrorPage(_t('No handling plugin')); 
     21        Respond::ErrorPage(_t('No handling plugin')); 
    2222    } 
    2323} else { 
  • trunk/interface/blog/plugin.php

    r6321 r7012  
    99fireEvent($suri['directive'] . '/' . $suri['value']); 
    1010if (!headers_sent()) 
    11     respond::NotFoundPage(); 
     11    Respond::NotFoundPage(); 
    1212?> 
  • trunk/interface/blog/pluginForOwner.php

    r6321 r7012  
    99fireEvent($suri['directive'] . '/' . $suri['value']); 
    1010if (!headers_sent()) 
    11     respond::NotFoundPage(); 
     11    Respond::NotFoundPage(); 
    1212?> 
  • trunk/interface/comment/add/index.php

    r7002 r7012  
    2424); 
    2525if(!Validator::validate($IV)) 
    26     respond::PrintResult(array('error' => 1, 'description' => 'Illigal parameters')); 
     26    Respond::PrintResult(array('error' => 1, 'description' => 'Illigal parameters')); 
    2727requireStrictRoute(); 
    2828header('Content-Type: text/xml; charset=utf-8'); 
  • trunk/interface/comment/comment/index.php

    r7002 r7012  
    3232    list($comment['entry']) = getCommentAttributes($blogid, $suri['id'], 'entry'); 
    3333    if (count($comment) == 0) 
    34         respond::ErrorPage(_text('댓글이 존재하지 않습니다.')); 
     34        Respond::ErrorPage(_text('댓글이 존재하지 않습니다.')); 
    3535    $comment['parent'] = $suri['id']; 
    3636    $comment['name'] = empty($_POST['name']) ? '' : trim($_POST['name']); 
  • trunk/interface/comment/delete/index.php

    r7002 r7012  
    4343        case 'delete': 
    4444            if (!list($entryId) = getCommentAttributes($blogid, $suri['id'], 'entry')) 
    45                 respond::ErrorPage(_text('댓글이 존재하지 않습니다.')); 
     45                Respond::ErrorPage(_text('댓글이 존재하지 않습니다.')); 
    4646            $result = false; 
    4747            if (doesHaveOwnership()) { 
     
    8787                exit; 
    8888            } else { 
    89                 respond::ErrorPage(_text('패스워드가 일치하지 않습니다.')); 
     89                Respond::ErrorPage(_text('패스워드가 일치하지 않습니다.')); 
    9090                exit; 
    9191            } 
     
    101101            } 
    102102            if ($comment === false) 
    103                 respond::ErrorPage(_text('댓글이 존재하지 않거나 패스워드가 일치하지 않습니다.')); 
     103                Respond::ErrorPage(_text('댓글이 존재하지 않거나 패스워드가 일치하지 않습니다.')); 
    104104            $pageTitle = _text('댓글을 수정합니다'); 
    105105            $viewMode = 'edit'; 
     
    116116            } 
    117117            if ($comment === false) 
    118                 respond::ErrorPage(_text('댓글이 존재하지 않거나 패스워드가 일치하지 않습니다.')); 
     118                Respond::ErrorPage(_text('댓글이 존재하지 않거나 패스워드가 일치하지 않습니다.')); 
    119119            if ((doesHaveMembership() || !empty($_POST['name'])) && !empty($_POST['comment'])) { 
    120120                if (!doesHaveOwnership()) { 
     
    174174                    exit; 
    175175                } else { 
    176                     respond::ErrorPage(_text('수정이 실패하였습니다.')); 
     176                    Respond::ErrorPage(_text('수정이 실패하였습니다.')); 
    177177                } 
    178178            } 
    179179    } 
    180     respond::ErrorPage(); 
     180    Respond::ErrorPage(); 
    181181} 
    182182?> 
  • trunk/interface/i/comment/add/index.php

    r6350 r7012  
    1919); 
    2020if(!Validator::validate($IV)) 
    21     respond::NotFoundPage(); 
     21    Respond::NotFoundPage(); 
    2222if (!doesHaveOwnership() && empty($_GET["name_$entryId"])) { 
    2323    printIphoneErrorPage(_text('Comment write error.'), _text('Please enter your name.'), "$blogURL/comment/$entryId"); 
  • trunk/interface/i/comment/comment/add/index.php

    r6350 r7012  
    1818); 
    1919if(!Validator::validate($IV)) 
    20     respond::NotFoundPage(); 
     20    Respond::NotFoundPage(); 
    2121list($entryId) = getCommentAttributes($blogid, $replyId, 'entry'); 
    2222if (!doesHaveOwnership() && empty($_GET["name_$replyId"])) { 
  • trunk/interface/i/imageResizer/index.php

    r6476 r7012  
    4747                    break; 
    4848                default: 
    49                     respond::NotFoundPage(); 
     49                    Respond::NotFoundPage(); 
    5050            } 
    5151            $canvasWidth = 260; 
     
    6969    } 
    7070} else 
    71     respond::NotFoundPage(); 
     71    Respond::NotFoundPage(); 
    7272?> 
  • trunk/interface/m/comment/add/index.php

    r6321 r7012  
    1919); 
    2020if(!Validator::validate($IV)) 
    21     respond::NotFoundPage(); 
     21    Respond::NotFoundPage(); 
    2222if (!doesHaveOwnership() && empty($_POST["name_$entryId"])) { 
    2323    printMobileErrorPage(_text('댓글을 작성할 수 없습니다.'), _text('이름을 입력해 주십시오.'), "$blogURL/comment/$entryId"); 
  • trunk/interface/m/comment/comment/add/index.php

    r6321 r7012  
    1818); 
    1919if(!Validator::validate($IV)) 
    20     respond::NotFoundPage(); 
     20    Respond::NotFoundPage(); 
    2121list($entryId) = getCommentAttributes($blogid, $replyId, 'entry'); 
    2222if (!doesHaveOwnership() && empty($_POST["name_$replyId"])) { 
  • trunk/interface/m/imageResizer/index.php

    r6321 r7012  
    2929                break; 
    3030            default: 
    31                 respond::NotFoundPage(); 
     31                Respond::NotFoundPage(); 
    3232        } 
    3333        $canvasWidth = 240; 
     
    5050    fclose($fp); 
    5151} else 
    52     respond::NotFoundPage(); 
     52    Respond::NotFoundPage(); 
    5353?> 
  • trunk/interface/owner/center/dashboard/cleanup/index.php

    r6321 r7012  
    77 
    88if(CacheControl::flushAll(getBlogId())) 
    9     respond::ResultPage(0); 
     9    Respond::ResultPage(0); 
    1010else  
    11     respond::ResultPage(-1); 
     11    Respond::ResultPage(-1); 
    1212?> 
  • trunk/interface/owner/center/dashboard/index.php

    r7005 r7012  
    169169 
    170170if (isset($_REQUEST['ajaxcall'])) { 
    171     respond::ResultPage(0); 
     171    Respond::ResultPage(0); 
    172172    exit; 
    173173} 
  • trunk/interface/owner/communication/comment/delete/index.php

    r6321 r7012  
    1515if(isset($suri['id'])) { 
    1616    if (trashCommentInOwner($blogid, $suri['id']) === true) 
    17         $isAjaxRequest ? respond::ResultPage(0) : header("Location: ".$_SERVER['HTTP_REFERER']); 
     17        $isAjaxRequest ? Respond::ResultPage(0) : header("Location: ".$_SERVER['HTTP_REFERER']); 
    1818    else 
    19         $isAjaxRequest ? respond::ResultPage(-1) : header("Location: ".$_SERVER['HTTP_REFERER']); 
     19        $isAjaxRequest ? Respond::ResultPage(-1) : header("Location: ".$_SERVER['HTTP_REFERER']); 
    2020} else { 
    2121    foreach(explode(',', $_POST['targets']) as $target) 
    2222        trashCommentInOwner($blogid, $target); 
    23     respond::ResultPage(0); 
     23    Respond::ResultPage(0); 
    2424} 
    2525?> 
  • trunk/interface/owner/communication/filter/change/index.php

    r6709 r7012