Exemplo n.º 1
0
                    }
                }
                $skin = new Skin($context->getProperty('skin.skin'));
                printHtmlHeader();
                ?>
<script type="text/javascript">
	//<![CDATA[
		alert("<?php 
                echo _text('댓글이 등록되었습니다.');
                ?>
");
<?php 
                notifyComment();
                $entry = array();
                $entry['id'] = $comment['entry'];
                $entry['slogan'] = getSloganById($blogid, $entry['id']);
                $tempComments = revertTempTags(removeAllTags(getCommentView($entry, $skin)));
                $tempRecentComments = revertTempTags(getRecentCommentsView(getRecentComments($blogid), null, $skin->recentCommentItem));
                ?>
		if (opener == null) {
			loader = parent;
		} else {
			loader = opener;
		}
		try {
			var obj = loader.document.getElementById("entry<?php 
                echo $comment['entry'];
                ?>
Comment");
			obj.innerHTML = "<?php 
                echo str_innerHTML($tempComments);
Exemplo n.º 2
0
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
if (isset($_POST['page'])) {
    $_GET['page'] = $_POST['page'];
}
if (!empty($_POST['mode']) && $_POST['mode'] == 'fb') {
    $IV = array('GET' => array('page' => array('int', 1, 'default' => 1), 'category' => array('int', 0, 'mandatory' => false)), 'POST' => array('mode' => array(array('fb')), 'partial' => array('bool', 'default' => false), 's_home_title' => array('string', 'default' => ''), 's_name' => array('string', 'default' => ''), 's_no' => array('int'), 'url' => array('string', 'default' => ''), 's_url' => array('string', 'default' => ''), 's_post_title' => array('string', 'default' => ''), 'r1_no' => array('int'), 'r1_name' => array('string', 'default' => ''), 'r1_rno' => array('int'), 'r1_homepage' => array('string', 'default' => ''), 'r1_regdate' => array('timestamp'), 'r1_body' => array('string'), 'r1_url' => array('string', 'default' => ''), 'r2_no' => array('int'), 'r2_name' => array('string', 'default' => ''), 'r2_rno' => array('int'), 'r2_homepage' => array('string', 'default' => ''), 'r2_regdate' => array('timestamp'), 'r2_body' => array('string'), 'r2_url' => array('string', 'default' => '')));
} else {
    $IV = array('GET' => array('page' => array('int', 1, 'default' => 1), 'mode' => array(array('mobile', 'desktop', 'tablet'), 'mandatory' => false), 'category' => array('int', 0, 'mandatory' => false)));
}
require ROOT . '/library/preprocessor.php';
// Redirect for ipod touch / iPhone
$browserUtil = Utils_Browser::getInstance();
if (Setting::getBlogSettingGlobal('useiPhoneUI', true) && $browserUtil->isMobile() == true && (!isset($_GET['mode']) || $_GET['mode'] != 'desktop') && (!isset($_SESSION['mode']) || !in_array($_SESSION['mode'], array('desktop')))) {
    if (isset($suri['id'])) {
        $slogan = getSloganById($blogid, $suri['id']);
        if (!empty($slogan)) {
            header("Location: " . $context->getProperty('uri.blog') . "/i/entry/" . URL::encode($slogan));
            exit;
        }
    } else {
        header("Location: " . $context->getProperty('uri.blog') . "/i");
        exit;
    }
}
$_SESSION['mode'] = 'desktop';
publishEntries();
if (!empty($_POST['mode']) && $_POST['mode'] == 'fb') {
    // Treat comment notifier.
    $result = receiveNotifiedComment($_POST);
    if ($result > 0) {
Exemplo n.º 3
0
             $errorString = _text('관리자 설정에 의해 오픈아이디로만 댓글을 남길 수 있습니다.');
             break;
         case "etc":
             $errorString = _text('귀하는 차단되었으므로 사용하실 수 없습니다.');
             break;
     }
     Respond::PrintResult(array('error' => 1, 'description' => $errorString));
     exit;
 } else {
     if ($result === false) {
         Respond::PrintResult(array('error' => 2, 'description' => _text('댓글을 달 수 없습니다.')));
         exit;
     } else {
         $entry = array();
         $entry['id'] = $entryId;
         $entry['slogan'] = getSloganById($blogid, $entryId);
         if (!$comment['secret']) {
             $pool = DBModel::getInstance();
             $pool->reset('Entries');
             $pool->setQualifier('blogid', 'equals', $blogid);
             $pool->setQualifier('id', 'equals', $entryId);
             $pool->setQualifier('draft', 'equals', 0);
             $pool->setQualifier('visibility', 'equals', 3);
             $pool->setQualifier('acceptcomment', 'equals', 1);
             $row = $pool->getAll('*');
             if (!empty($row)) {
                 sendCommentPing($entryId, $context->getProperty('uri.default') . "/" . ($context->getProperty('blog.useSloganOnPost') ? "entry/{$row['slogan']}" : $entryId), is_null($user) ? $comment['name'] : $user['name'], is_null($user) ? $comment['homepage'] : $user['homepage']);
             }
         }
         importlib('model.blog.skin');
         $skin = new Skin($context->getProperty('skin.skin'));
Exemplo n.º 4
0
function printMobileHTMLFooter()
{
    global $blogURL;
    $context = Model_Context::getInstance();
    if (!is_null($context->getProperty('suri.id'))) {
        $slogan = getSloganById($context->getProperty('blog.id'), $context->getProperty('suri.id'));
    } else {
        if (!is_null($context->getProperty('suri.value'))) {
            $slogan = $context->getProperty('suri.value');
        }
    }
    $link = $context->getProperty('uri.basicblog') . substr($context->getProperty('suri.directive'), 2) . '/' . URL::encode($slogan) . "?mode=desktop";
    ?>
	<div data-role="content" class="ui-bar" data-theme="c"><span class="footer_text"><?php 
    echo _textf('이 페이지는 %1 %2 로 구동됩니다', TEXTCUBE_NAME, TEXTCUBE_VERSION);
    ?>
</span>
		<a href="<?php 
    echo $link;
    ?>
" data-role="button" data-theme="d" data-inline="false" data-icon="refresh" rel="external"><?php 
    echo _text('데스크탑 화면');
    ?>
</a>
	</div>

	</body>
</html>
<?php 
}