Skip to content

Commit

Permalink
refs #514 : merge with 2.0 tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 25, 2011
2 parents fe7ebbe + e5a6e17 commit 46e0891
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 20 deletions.
4 changes: 3 additions & 1 deletion documents/manual_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ $service['memcached'] = false; // Using memcache to handle session and cac
$memcached['server'] = 'localhost'; // Where memcache server is.
// From Textcube 1.8.4
$service['requirelogin'] = false; // Force log-in process to every blogs. (for private blog service)
?>
// From Textcube 2.0
$service['jqueryURL'] = ''; // Add URL if you want to use external jquery via CDN. e.g.) Microsoft's CDN: http://ajax.aspnetcdn.com/ajax/jQuery/
?>
3 changes: 2 additions & 1 deletion framework/id/textcube/config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
define('CRLF', "\r\n");
define('TAB', " ");
define('INT_MAX',2147483647);
define('JQUERY_VERSION','1.4.4');
define('JQUERY_VERSION','1.5.1');
if( strstr( PHP_OS, "WIN") !== false ) {
define('DS', "\\");
} else {
Expand Down Expand Up @@ -61,4 +61,5 @@
$service['debug_rewrite_module'] = false;
$service['useNumericURLonRSS'] = false;
$service['forceinstall'] = false;
$service['jqueryURL'] = ""; // You can change this to use external CDNs. (microsoft / google, etc..)
?>
2 changes: 1 addition & 1 deletion interface/blog/trackback/send/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<title><?php echo _text('글걸기 시도');?></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $context->getProperty('service.path') . $context->getProperty('panel.skin');?>/popup-trackback.css" />
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.resourcepath');?>/script/common2.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/EAF4.js"></script>
Expand Down
11 changes: 1 addition & 10 deletions interface/common/control/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,21 +353,12 @@
//]]>
</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/byTextcube.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/EAF4.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/common2.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/owner.js"></script>
<?php
if(!in_array($blogMenu['contentMenu'],array('post','edit'))) {
?>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/mootools10.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/moodalbox/moodalbox.js"></script>
<link rel="stylesheet" href="<?php echo $context->getProperty('service.path');?>/resources/style/helper/moodalbox.css" type="text/css" media="screen" />
<?php
}
?>
<?php
if($context->getProperty('service.interface') == 'simple') {
if(!in_array($blogMenu['contentMenu'],array('post','edit'))) {
?>
Expand Down
2 changes: 1 addition & 1 deletion interface/common/owner/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
//]]>
</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/byTextcube.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/EAF4.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/common2.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion interface/common/owner/headerForPopupEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/locale/messages.php"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/byTextcube.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/EAF4.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/common2.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion interface/login/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<link rel="stylesheet" type="text/css" href="<?php echo $context->getProperty('service.path').$context->getProperty('panel.skin');?>/login.ie7.css" />
<![endif]-->
<script type="text/javascript" src="<?php echo $context->getProperty('service.resourcepath');?>/script/byTextcube.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.resourcepath');?>/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.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/common2.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion interface/owner/entry/attach/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $context->getProperty('service.path').$context->getProperty('panel.skin');?>/editor.css" />
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<?php echo $context->getProperty('service.path').$context->getProperty('panel.skin');?>/editor.ie.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<?php echo $context->getProperty('service.path').$context->getProperty('panel.skin');?>/editor.ie7.css" /><![endif]-->
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/EAF4.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/common2.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion interface/owner/plugin/currentSetting/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<?php
}
?>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/EAF4.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/pluginconfig.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion interface/owner/skin/setting/tree/preview/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
var adminSkin = "<?php echo $context->getProperty('panel.skin');?>";
//]]>
</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/jquery/jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/EAF4.js"></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.path');?>/resources/script/common2.js"></script>
Expand Down
8 changes: 7 additions & 1 deletion library/preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,13 @@
unset($languageDomain);
unset($language);
}

/** Resource Options
----------------
Determine the resource URLs and paths.
*/
if(is_null($context->getProperty('service.jqueryURL'))) {
$context->setProperty('service.jqueryURL',$context->getProperty('service.path')."/resources/script/jquery/";
}
/** Administration panel skin / editor template
-------------------------------------------
When necessary, loads admin panel skin information.
Expand Down
16 changes: 16 additions & 0 deletions resources/script/jquery/jquery-1.5.1.min.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,16 @@ function fail($msg) {
//\$service['debug_rewrite_module'] = true; // rewrite handling module debuging.
//\$service['session_cookie_path'] = \$service['path']; // for avoiding spoiling other textcube's session id sharing root.
//\$service['allowBlogVisibilitySetting'] = true; // Allow service users to change blog visibility.
//\$service['externalresources'] = false; // Loads resources from external storage.
//\$service['resourcepath'] = 'http://example.com/resource'; // Specify the full URI of external resource.
//\$service['favicon_daily_traffic'] = 10; // Set favicon traffic limitation. default is 10MB.
//\$service['skincache'] = true; // Use skin pre-fetching. Textcube will parse static elements (blog name, title…) only when you change skin. Reduces CPU loads.
//\$database['port'] = 3639; // Database port number
//\$database['dbms'] = 'MySQL'; // DBMS. (MySQL, MySQLi, PostgreSQL, Cubrid.)
//\$service['memcached'] = true; // Using memcache to handle session and cache
//\$memcached['server'] = 'localhost'; // Where memcache server is.
//\$service['requirelogin'] = false; // Force log-in process to every blogs. (for private blog service)
//\$service['jqueryURL'] = ''; // Add URL if you want to use external jquery via CDN. e.g.) Microsoft's CDN: http://ajax.aspnetcdn.com/ajax/jQuery/
?>"
);
fclose($fp);
Expand Down

0 comments on commit 46e0891

Please sign in to comment.