Skip to content

Commit

Permalink
refs #514
Browse files Browse the repository at this point in the history
  * 1.8 트리와 동기화
  • Loading branch information
inureyes committed Jan 15, 2010
1 parent 7ddda5e commit 68b146d
Show file tree
Hide file tree
Showing 9 changed files with 6,179 additions and 15 deletions.
2 changes: 1 addition & 1 deletion framework/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private function URIinterpreter() {
$interfacePath = 'interface/blog/'.$pathPart.'/index.php';
break;
case 'i': case 'm':
if(isset($uri['fragment'][1]) && in_array($uri['fragment'][1],array('entry','comment','guestbook','trackback'))) {
if(isset($uri['fragment'][1]) && in_array($uri['fragment'][1],array('archive','category','comment','entry','guestbook','imageResizer','link','login','logout','pannels','protected','search','tag','trackback'))) {
$pathPart = $uri['fragment'][0].'/'.$uri['fragment'][1];
} else {
$pathPart = $uri['fragment'][0];
Expand Down
8 changes: 6 additions & 2 deletions framework/legacy/Needlworks.Cache.PageCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,16 +578,20 @@ function flushItemsByPlugin($pluginName) {
}
}
function flushDBCache($prefix = null) {
$pool = queryCache::getInstance();
$pool->reset('PageCacheLog',$prefix);
return $pool->flush();
/*
global $database;
$context = Model_Context::getInstance();
if($context->getProperty('service.memcached') == true) {
if($context->getProperty('service.memcached') !== null) {
$memcache = Cache_Memcache::getInstance();
$memcache->reset('PageCacheLog',$prefix);
return $memcache->flush();
}
return POD::query("DELETE FROM {$database['prefix']}PageCacheLog
WHERE blogid = ".getBlogId()."
AND name like '%".(!empty($prefix) ? $prefix.'-' : '')."queryCache%'");
AND name like '%".(!empty($prefix) ? $prefix.'-' : '')."queryCache%'");*/
}
function purgeItems($items) {
if(!empty($items)) {
Expand Down
3 changes: 2 additions & 1 deletion framework/legacy/Textcube.Control.Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,15 @@ private static function query($mode='query',$sql) {

$result = self::DBQuery($mode,$sql);
if($result === false) {
if (self::$sessionDBRepair === false) {
if (self::$sessionDBRepair === false) {
@POD::query("REPAIR TABLE ".self::$context->getProperty('database.prefix')."Sessions, ".self::$context->getProperty('database.prefix')."SessionVisits");
$result = self::DBQuery($mode,$sql);
self::$sessionDBRepair = true;
}
}
return $result;
}

private static function DBQuery($mode='query',$sql) {
switch($mode) {
case 'cell': return POD::queryCell($sql);
Expand Down
21 changes: 14 additions & 7 deletions interface/owner/plugin/adminMenu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
require ROOT . '/library/preprocessor.php';
require ROOT . '/interface/common/owner/header.php';


if (false) {
fetchConfigVal();
getBlogSetting();
setBlogSetting();
}

if ((isset($_REQUEST['name'])) && (isset($adminMenuMappings[$_REQUEST['name']])))
{

Expand Down Expand Up @@ -46,6 +39,18 @@
$pluginURL = "{$service['path']}/plugins/{$plugin}";
$pluginPath = ROOT . "/plugins/{$plugin}";
$pluginName = $plugin;

// Loading locale resource
$languageDomain = null;
if(is_dir($pluginPath . '/locale/')) {
$locale = Locale::getInstance();
$languageDomain = $locale->domain;
if(file_exists($pluginPath.'/locale/'.$locale->defaultLanguage.'.php')) {
$locale->setDirectory($pluginPath.'/locale');
$locale->set($locale->defaultLanguage, $pluginName);
$locale->domain = $pluginName;
}
}
include_once (ROOT . "/plugins/{$plugin}/index.php");
if (function_exists($handler)) {
if( !empty( $configMappings[$plugin]['config'] ) )
Expand All @@ -54,6 +59,8 @@
$configVal ='';
call_user_func($handler);
}
/// unload.
if(!is_null($languageDomain)) $locale->domain = $languageDomain;
}
}
require ROOT . '/interface/common/owner/footer.php';
Expand Down
4 changes: 2 additions & 2 deletions library/config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
define('TEXTCUBE_VERSION', '1.9 : Alpha 1');
define('TEXTCUBE_COPYRIGHT', 'Copyright © 2004-2010. Needlworks / Tatter Network Foundation. All rights reserved. Licensed under the GPL.');
define('TEXTCUBE_HOMEPAGE', 'http://www.textcube.org/');
define('TEXTCUBE_RESOURCE_URL', 'http://resources.textcube.org/1.8.1');
define('TEXTCUBE_RESOURCE_URL', 'http://resources.textcube.org/1.8.2');
define('CRLF', "\r\n");
define('TAB', " ");
define('INT_MAX',2147483647);
define('JQUERY_VERSION','1.3.2');
define('JQUERY_VERSION','1.4');
if( strstr( PHP_OS, "WIN") !== false ) {
define('DS', "\\");
} else {
Expand Down
4 changes: 3 additions & 1 deletion library/view/iphoneView.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,9 @@ function printIphoneTrackbackView($entryId, $page, $mode = null) {
<span class="left">
<?php echo htmlspecialchars($trackback['subject']);?>
</span>
<span class="right">&nbsp;</span>
<span class="right">
<a href="<?php echo $blogURL;?>/i/entry/<?php echo $trackback['entry'];?>"><?php echo _text('글보기');?></a>
</span>
</li>
<li class="body">
<span class="date">DATE : <?php echo Timestamp::format5($trackback['written']);?></span>
Expand Down
2 changes: 1 addition & 1 deletion library/view/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ function getRandomTagsView($tags, $template) {
return $view;
}

function getEntryContentView($blogid, $id, $content, $formatter, $keywords = array(), $type = 'Post', $useAbsolutePath = false, $bRssMode = false) {
function getEntryContentView($blogid, $id, $content, $formatter, $keywords = array(), $type = 'Post', $useAbsolutePath = true, $bRssMode = false) {
global $hostURL, $service;
requireModel('blog.attachment');
requireModel('blog.keyword');
Expand Down
Loading

0 comments on commit 68b146d

Please sign in to comment.