Beispiel #1
0
";
				oOption.value = "<?php 
            echo escapeJSInCData(getAttachmentValue($attachment));
            ?>
";
				try {
<?php 
            if (!empty($attachment)) {
                ?>
					for( i=0; i<oSelect.options.length; i++) {
						//alert(oSelect.options[i].value+"   "+ "<?php 
                echo escapeJSInCData($attachment['label']);
                ?>
");
						if(oSelect.options[i].value == "<?php 
                echo escapeJSInCData($attachment['label']);
                ?>
") {
							oSelect.remove(i);
						}
					}
<?php 
            }
            ?>
					oSelect.appendChild(oOption);
					//oSelect.selectedIndex = oSelect.options.length - 1;
					//window.parent.document.getElementById("selectedImage").src = "<?php 
            echo strncmp($attachment['mime'], 'image/', 6) == 0 ? "{$context->getProperty('uri.blog')}/attach/{$blogid}/{$attachment['name']}" : "{$context->getProperty('uri.blog')}/resources/image/spacer.gif";
            ?>
";
					parent.refreshFileSize();
Beispiel #2
0
            ?>
											returnURI = "<?php 
            echo escapeJSInCData($_GET['returnURL']);
            ?>
";
<?php 
        } else {
            ?>
											if(originalPermalink == changedPermalink) {
												returnURI = "<?php 
            echo escapeJSInCData($_GET['returnURL']);
            ?>
";
											} else {
												returnURI = "<?php 
            echo escapeJSInCData($context->getProperty('uri.blog')) . "/" . $entry['id'];
            ?>
";
											}
<?php 
        }
        ?>
											window.location = returnURI;
<?php 
    } else {
        ?>
											window.location.href = "<?php 
        echo $context->getProperty('uri.blog');
        ?>
/owner/entry";
<?php 
Beispiel #3
0
function getScriptsOnHead($paging, $entryIds = null)
{
    $context = Model_Context::getInstance();
    ob_start();
    ?>
    <script type="text/javascript"
            src="<?php 
    echo doesHaveOwnership() ? $context->getProperty('service.path') . '/resources' : $context->getProperty('service.resourcepath');
    ?>
/script/jquery/jquery-<?php 
    echo JQUERY_VERSION;
    ?>
.js"></script>
    <script type="text/javascript"
            src="<?php 
    echo doesHaveOwnership() ? $context->getProperty('service.path') . '/resources' : $context->getProperty('service.resourcepath');
    ?>
/script/jquery/jquery.bpopup-<?php 
    echo JQUERY_BPOPUP_VERSION;
    ?>
.js"></script>
    <script type="text/javascript">jQuery.noConflict();</script>

    <script type="text/javascript"
            src="<?php 
    echo $context->getProperty('service.resourcepath');
    ?>
/script/EAF4.js"></script>
    <script type="text/javascript"
            src="<?php 
    echo $context->getProperty('service.resourcepath');
    ?>
/script/common3.min.js"></script>
    <script type="text/javascript"
            src="<?php 
    echo $context->getProperty('service.resourcepath');
    ?>
/script/gallery.min.js"></script>
    <script type="text/javascript"
            src="<?php 
    echo $context->getProperty('service.resourcepath');
    ?>
/script/flash.js"></script>
    <script type="text/javascript">
        var servicePath = "<?php 
    echo $context->getProperty('service.path');
    ?>
";
        var serviceURL = "<?php 
    echo $context->getProperty('uri.service');
    ?>
";
        var blogURL = "<?php 
    echo $context->getProperty('uri.blog');
    ?>
";
        var prevURL = "<?php 
    echo isset($paging['prev']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['prev']}{$paging['postfix']}") : '';
    ?>
";
        var nextURL = "<?php 
    echo isset($paging['next']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['next']}{$paging['postfix']}") : '';
    ?>
";
        var commentKey = "<?php 
    echo md5(filemtime(ROOT . '/config.php'));
    ?>
";
        var doesHaveOwnership = <?php 
    echo doesHaveOwnership() ? 'true' : 'false';
    ?>
;
        var isReaderEnabled = <?php 
    echo $context->getProperty('service.reader') ? 'true' : 'false';
    ?>
;
        var displayMode = "<?php 
    echo $context->getProperty('blog.displaymode', 'desktop');
    ?>
";
        var workMode = "<?php 
    echo $context->getProperty('blog.workmode', 'enhanced');
    ?>
";
		var cookie_prefix = "<?php 
    echo $context->getProperty('service.cookie_prefix', '');
    ?>
";
        <?php 
    if (!is_null($entryIds)) {
        ?>
        var entryIds = [<?php 
        echo implode(',', $entryIds);
        ?>
];
        <?php 
    }
    ?>
        var messages = {
            "trackbackUrlCopied": "<?php 
    echo _text('엮인글 주소가 복사되었습니다.');
    ?>
",
            "operationFailed": "<?php 
    echo _text('실패했습니다.');
    ?>
",
            "confirmTrackbackDelete": "<?php 
    echo _text('선택된 글걸기를 삭제합니다. 계속 하시겠습니까?');
    ?>
",
            "confirmEntryDelete": "<?php 
    echo _text('이 글 및 이미지 파일을 완전히 삭제합니다. 계속 하시겠습니까?');
    ?>
",
            "onSaving": "<?php 
    echo _text('저장하고 있습니다');
    ?>
"
        }
    </script>
    <?php 
    $view = ob_get_contents();
    ob_end_clean();
    return $view;
}
Beispiel #4
0
												<p><?php 
echo _t('블로그에서 사용할 시간대를 설정합니다.');
?>
</p>
											</dd>
										</dl>
									</fieldset>
									<div class="button-box">
										<input type="submit" class="save-button input-button wide-button" value="<?php 
echo _t('저장하기');
?>
" onclick="setLocale(); return false;" />
									</div>
								</div>
							</form>
						</div>
<?php 
if (isset($_GET['message'])) {
    $msg = escapeJSInCData($_GET['message']);
    ?>
	<script type="text/javascript">
		//<![CDATA[
			window.onload = function() { PM.showMessage("<?php 
    echo $msg;
    ?>
", "center", "bottom"); }
		//]]>
	</script>
<?php 
}
require ROOT . '/interface/common/owner/footer.php';
Beispiel #5
0
/// Copyright (c) 2004-2016, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
require ROOT . '/library/preprocessor.php';
require ROOT . '/interface/common/owner/header.php';
printFormatterSelectScript();
?>
						<script type="text/javascript">
							//<![CDATA[
								var title = "<?php 
echo escapeJSInCData($context->getProperty('blog.title'));
?>
";
								var description = "<?php 
echo escapeJSInCData(trim($context->getProperty('blog.description')));
?>
";
								
								function setResample() {
									document.getElementById("resample-form").submit();
								}
		

								
								function setEditorConfig() {
									var request = new HTTPRequest("GET", "<?php 
echo $context->getProperty('uri.blog');
?>
/owner/setting/entry/editor/?defaultEditor=" + document.getElementById('editor-form').defaultEditor.value + "&defaultFormatter=" + document.getElementById('editor-form').defaultFormatter.value + "&useBlogAPI=" + document.getElementById('editor-form').useBlogAPI.checked + "&blogApiPassword=" + document.getElementById('editor-form').blogApiPassword.value );
									request.onSuccess = function() {
Beispiel #6
0
<?php

/// Copyright (c) 2004-2016, Needlworks  / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
$IV = array('GET' => array('name' => array('string')));
require ROOT . '/library/preprocessor.php';
importlib("model.blog.attachment");
$file = array_pop($_FILES);
$attachment = getAttachmentByLabel($blogid, $suri['id'], $_GET['name']);
$result = escapeJSInCData(getPrettyAttachmentLabel($attachment)) . '!^|' . escapeJSInCData(getAttachmentValue($attachment));
echo 'result=' . base64_encode(trim($result));
Beispiel #7
0
function getUpperView($paging)
{
    $context = Model_Context::getInstance();
    ob_start();
    ?>
	<!--
		<?php 
    echo TEXTCUBE_NAME . " " . TEXTCUBE_VERSION . CRLF;
    ?>

		Homepage: <?php 
    echo TEXTCUBE_HOMEPAGE . CRLF;
    ?>
		<?php 
    echo TEXTCUBE_COPYRIGHT . CRLF;
    ?>
	-->
	<script type="text/javascript">
	//<![CDATA[
		var servicePath = "<?php 
    echo $context->getProperty('service.path');
    ?>
";
		var serviceURL  = "<?php 
    echo $context->getProperty('uri.service');
    ?>
";
		var blogURL = "<?php 
    echo $context->getProperty('uri.blog');
    ?>
";
		var prevURL = "<?php 
    echo isset($paging['prev']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['prev']}{$paging['postfix']}") : '';
    ?>
";
		var nextURL = "<?php 
    echo isset($paging['next']) ? escapeJSInCData("{$paging['url']}{$paging['prefix']}{$paging['next']}{$paging['postfix']}") : '';
    ?>
";
		var commentKey = "<?php 
    echo md5(filemtime(ROOT . '/config.php'));
    ?>
";
		var doesHaveOwnership = <?php 
    echo doesHaveOwnership() ? 'true' : 'false';
    ?>
;
		var isReaderEnabled = <?php 
    echo $context->getProperty('service.reader') ? 'true' : 'false';
    ?>
;
		var messages = {
			"trackbackUrlCopied": "<?php 
    echo _text('엮인글 주소가 복사되었습니다.');
    ?>
",
			"operationFailed": "<?php 
    echo _text('실패했습니다.');
    ?>
",
			"confirmTrackbackDelete": "<?php 
    echo _text('선택된 글걸기를 삭제합니다. 계속 하시겠습니까?');
    ?>
",
			"confirmEntryDelete": "<?php 
    echo _text('이 글 및 이미지 파일을 완전히 삭제합니다. 계속 하시겠습니까?');
    ?>
",
			"onSaving": "<?php 
    echo _text('저장하고 있습니다');
    ?>
"
		}
	//]]>
	</script>
<?php 
    if (doesHaveOwnership()) {
        ?>
	<script type="text/javascript" src="<?php 
        echo $context->getProperty('service.resourcepath');
        ?>
/script/owner.js" ></script>
<?php 
    }
    ?>
	<script type="text/javascript">
		//<![CDATA[
			document.onkeydown = processShortcut;
		//]]>
	</script>
<?php 
    if ($context->getProperty('service.flashclipboardpoter') == true) {
        ?>
<div style="position:absolute;top:0;left:0; background-color:transparent;background-image:none">
<script type="text/javascript">
//<![CDATA[
	AC_FL_RunContent(
		'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
		'width','1',
		'height','1',
		'id','clipboardPoter',
		'src','<?php 
        echo $context->getProperty('service.path');
        ?>
/resources/script/clipboardPoter/clipboardPoter',
		'wmode','transparent',
		'name','clipboardPoter',
		'allowscriptaccess','sameDomain',
		'pluginspage','http://www.macromedia.com/go/getflashplayer',
		'movie','<?php 
        echo $context->getProperty('service.path');
        ?>
/resources/script/clipboardPoter/clipboardPoter',
		'flashvars', 'callback=onClipBoard'
	);
	window.clipboardPoter = document.getElementById("clipboardPoter");
//]]>
</script>
</div>
<?php 
    }
    $view = ob_get_contents();
    ob_end_clean();
    return $view;
}