예제 #1
0
파일: index.php 프로젝트: hinablue/TextCube
<?php

/// Copyright (c) 2004-2011, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
if (isset($_GET['page'])) {
    $page = $_GET['page'];
} else {
    $page = 1;
}
if (!empty($suri['id'])) {
    list($entries, $paging) = getEntryWithPaging($blogid, $suri['id']);
    $entry = $entries ? $entries[0] : null;
    ?>
<div id="trackback_<?php 
    echo $entry['id'] . "_" . time();
    ?>
" title="<?php 
    echo _text('트랙백');
    ?>
 : <?php 
    echo htmlspecialchars($entry['title']);
    ?>
" selected="false">
<?php 
    printIphoneTrackbackView($entry['id']);
    ?>
	<fieldset class="navi margin-top10">
예제 #2
0
파일: index.php 프로젝트: ragi79/Textcube
    $IV = array('POST' => array('replyId' => array('id'), 'password' => array('string', 'mandatory' => false)));
}
require ROOT . '/library/preprocessor.php';
requireView('mobileView');
requireStrictRoute();
if (empty($suri['id'])) {
    list($entryId) = getCommentAttributes($blogid, $_POST['replyId'], 'entry');
    if (deleteComment($blogid, $_POST['replyId'], $entryId, isset($_POST['password']) ? $_POST['password'] : '') === false) {
        printMobileErrorPage(_text('댓글을 삭제할 수 없습니다.'), _text('비밀번호가 일치하지 않습니다.'), $context->getProperty('uri.blog') . "/comment/delete/{$_POST['replyId']}");
        exit;
    }
} else {
    list($entryId) = getCommentAttributes($blogid, $suri['id'], 'entry');
    if (deleteComment($blogid, $suri['id'], $entryId, '') === false) {
        printMobileErrorPage(_t('댓글을 삭제할 수 없습니다'), _t('관리자가 아닙니다'), $context->getProperty('uri.blog') . "/comment/delete/{$suri['id']}");
        exit;
    }
}
list($entries, $paging) = getEntryWithPaging($blogid, $entryId);
$entry = $entries ? $entries[0] : null;
printMobileHtmlHeader();
?>
<div id="content">
	<h2><?php 
echo _t('댓글이 삭제됐습니다');
?>
</h2>
</div>
<?php 
printMobileNavigation($entry);
printMobileHtmlFooter();