Ejemplo n.º 1
0
function printScriptCheckTextcubeVersion()
{
    $context = Model_Context::getInstance();
    if (isNeededCheckupBlogVersion()) {
        $message = _t('텍스트큐브 시스템 점검이 필요합니다. 지금 점검하시겠습니까?');
        if (getBlogVersion() == '0') {
            $message = _t('버전업 체크를 위한 파일을 생성합니다. 지금 생성하시겠습니까?');
        }
        ?>
		window.addEventListener("load", checkTextcubeVersion, false);
		function checkTextcubeVersion() {
			if (confirm("<?php 
        echo $message;
        ?>
"))
				window.location.href = "<?php 
        echo $context->getProperty('uri.blog');
        ?>
/checkup";
		}
<?php 
    }
}
Ejemplo n.º 2
0
<?php

/// Copyright (c) 2004-2015, 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_LOGIN__', true);
require ROOT . '/library/preprocessor.php';
$codeCache = new CodeCache();
$codeCache->flush();
importlib('blogskin');
importlib('model.blog.skin');
importlib('model.common.setting');
importlib('model.blog.entry');
importlib('model.blog.trash');
importlib('model.blog.version');
$currentVersion = getBlogVersion();
function setSkinSettingForMigration($blogid, $name, $value, $mig = null)
{
    $pool = DBModel::getInstance();
    $name = POD::escapeString($name);
    $value = POD::escapeString($value);
    if ($mig === null) {
        $pool->reset("SkinSettingsMig");
    } else {
        $pool->reset("SkinSettings");
    }
    $pool->setAttribute("blogid", $blogid);
    $pool->setAttribute("name", $name, true);
    $pool->setAttribute("value", $value, true);
    return $pool->replace();
}