Skip to content

Commit

Permalink
refs #1431
Browse files Browse the repository at this point in the history
  * 관련 문서 정리
  • Loading branch information
inureyes committed Feb 5, 2010
1 parent b332c79 commit 385f2e2
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 105 deletions.
2 changes: 1 addition & 1 deletion documents/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2004-2008, Needlworks / Tatter Network Foundation.
Copyright (C) 2004-2010, Needlworks / Tatter Network Foundation.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
10 changes: 1 addition & 9 deletions documents/INSTALL
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Textcube Installation
---------------------

Please read requirements.txt to see what softwares you need before installation.
Please read manual_requirements.txt to see what softwares you need before installation.

For MySQL 4.1 or above, UTF-8 for default character set and collation settings
is strongly recommended.
Expand Down Expand Up @@ -36,14 +36,6 @@ is strongly recommended.

Step 4: Run setup.php on your web browser.

NOTE: (for localhost installers)
* Use 127.0.0.1 instead of localhost to avoid later login problems for most
of web browsers.
* If you're using Google Chrome, you have to edit your hosts configuration
to avoid login problems, because it refuses to save cookies even for
127.0.0.1 IP address.
See C:\Windows\System32\drivers\etc\hosts file.

Step 5: You will see a notice about IIS during installation.

Step 6: After setup, add $service['fancyURL'] = 2; to config.php to force using rewrites.
Expand Down
29 changes: 0 additions & 29 deletions documents/config.txt

This file was deleted.

54 changes: 54 additions & 0 deletions documents/manual_config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//
// Textcube service-wide configurable options via config.php
// ---------------------------------------------------------
//
// This document explains about the available options at config.php
//
<?php
ini_set('display_errors', 'off');
$database['server'] = 'localhost'; // Location of DBMS server
$database['database'] = 'noname'; // Database name
$database['username'] = 'noname'; // user name to estiblish database connection
$database['password'] = 'noname'; // password to establish database connection
$database['prefix'] = 'tt_'; // prefix (useful when you try to install two or more textcubes in one database.
$service['type'] = 'path'; // Service type.
// 'path' : path-based e.g.) http://www.example.com/blog1 ,
// 'domain' : domain-based. e.g.) http://blog1.example.com
// If you installed Textcube on http://www.example.com/tc, )
$service['domain'] = 'domain.ext'; // Default service domain. (e.g.) http://www.example.com
$service['path'] = '/path1/path2'; // URI path where textcube is installed (e.g.) /tc
$service['skin'] = 'coolant'; // Default blog skin name.
$service['timeout'] = 3600; // Session timeout limit (sec.)
$service['disableEolinSuggestion'] = false; // Disable auto-suggestion using EOLIN server.
//Usually it searches local tag by default.
// From Tattertools 1.1
$service['useEncodedURL'] = false; // URL encoding using RFC1738
$serviceURL = ''; // Useful if using other web program under the same domain
// From Textcube 1.5
$service['fancyURL'] = 2; // fancy-URL control when web server does not support rewrite engine.
// 0 : Do not use fancy-URL, e.g.) http://www.example.com/index.php?tag
// 1 : Use php direction only. e.g.) http://www.example.com/?tag
// 2 : Use full fancy-URL. e.g.) http://www.example.com/tag
$service['useNumericURLonRSS'] = false; // Can force permalink to numeric format on RSS output.
$service['useLegacySupport'] = false; // Uses legacy support (for tattertools plugins) function.
// From Textcube 1.6
$service['flashuploader'] = true; // Use Flash uploader to upload multiple files.
$service['clipboardpoter'] = true; // Use Flash clipboard copy to support one-click trackback address copy.
$service['reader'] = true; // Use Textcube reader. You can set it to false if you do not use Textcube reader, and want to decrease DB load.
$service['pagecache'] = true; // pagecache function. (changed from disablePageCache option at TC 1.5)
$service['debugmode'] = false; // Textcube debug mode. (for core / plugin debug or optimization)
$service['debug_session_dump'] = false; // session info debuging.
$service['debug_rewrite_module'] = false; // rewrite handling module info debuging.
$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.
// From Textcube 1.7
$service['skincache'] = true; // Use skin pre-fetching.
// Textcube will parse static elements (blog name, title…) only when you change skin.
// From Textcube 1.8
$database['port'] = 3639; // Database port number
$database['dbms'] = 'MySQL'; // DBMS. (MySQL, MySQLi, PostgreSQL, Cubrid.)
$service['memcached'] = false; // Using memcache to handle session and cache
$memcached['server'] = 'localhost'; // Where memcache server is.
?>
15 changes: 8 additions & 7 deletions documents/requirements.txt → documents/manual_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
Textcube 1.5 Requirements
Textcube 1.8 Requirements
-------------------------

1. For Linux Systems :

Minimum requirements :
* Apache 1.3 or above
* with mod_rewrite module
* PHP 4.3 or above
* MySQL 3.23 or above
* with UTF-8 emulation routine in Textcube
* PHP 5.2 or above
* Database Management System
* MySQL 4.1 / MariaDB 5 or above
* with UTF-8 emulation routine in Textcube
* Cubrid R2008 or above
* PostgreSQL 8.3 or above

Suggested environment :
* Apache 2.2 or above
* with mode_rewrite module
* PHP 5.1 or above
* PHP 5.2 or above
* with iconv / gd module
* MySQL 5.0 or above
* with UTF-8 character set and collation settings
Expand All @@ -24,8 +27,6 @@ Textcube 1.5 Requirements
(Need to modify config.php. referer 'config' in DOC directory.)
* InnoDB with Entries / Tags / TagRelations table.

WARNING: From Textcube 1.8 and 2.0, PHP 5.2 will be the MINIMUM requirement.

2. For Microsoft Windows :

* IIS 5.0 or above
Expand Down
File renamed without changes.
47 changes: 0 additions & 47 deletions documents/workflow_1.7.txt

This file was deleted.

5 changes: 3 additions & 2 deletions library/preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@
/** LOAD : Configuration and Debug module (if necessary)
--------------------
*/
global $config, $context, $uri;
global $context, $uri;
//global $config, $context, $uri;

/// Loading configuration
$context = Model_Context::getInstance(); // automatic initialization via first instanciation
$config = Model_Config::getInstance();
//$config = Model_Config::getInstance();
$uri = Model_URIHandler::getInstance();

/// Loading debug module
Expand Down
18 changes: 8 additions & 10 deletions library/view/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ function getScriptsOnHead() {
}

function getUpperView($paging) {
global $blogURL;
$config = Model_Config::getInstance();
$service = $config->service;
$context = Model_Context::getInstance();
ob_start();
?>
<!--
Expand All @@ -95,13 +93,13 @@ function getUpperView($paging) {
-->
<script type="text/javascript">
//<![CDATA[
var servicePath = "<?php echo $service['path'];?>";
var blogURL = "<?php echo $blogURL;?>";
var servicePath = "<?php echo $context->getProperty('service.path');?>";
var blogURL = "<?php echo $config->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 ($service['reader'] ? 'true' : 'false'); ?>;
var isReaderEnabled = <?php echo ($context->getProperty('service.reader') ? 'true' : 'false'); ?>;
var messages = {
"trackbackUrlCopied": "<?php echo _text('엮인글 주소가 복사되었습니다.');?>",
"operationFailed": "<?php echo _text('실패했습니다.');?>",
Expand All @@ -114,7 +112,7 @@ function getUpperView($paging) {
<?php
if (doesHaveOwnership()) {
?>
<script type="text/javascript" src="<?php echo $service['resourcepath'];?>/script/owner.js" ></script>
<script type="text/javascript" src="<?php echo $context->getProperty('service.resourcepath');?>/script/owner.js" ></script>
<?php
}
?>
Expand All @@ -124,7 +122,7 @@ function getUpperView($paging) {
//]]>
</script>
<?php
if($service['flashclipboardpoter'] == true) {
if($context->getProperty('service.flashclipboardpoter') == true) {
?>
<div style="position:absolute;top:0;left:0; background-color:transparent;background-image:none">
<script type="text/javascript">
Expand All @@ -134,12 +132,12 @@ function getUpperView($paging) {
'width','1',
'height','1',
'id','clipboardPoter',
'src','<?php echo $service['path'];?>/resources/script/clipboardPoter/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 $service['path'];?>/resources/script/clipboardPoter/clipboardPoter',
'movie','<?php echo $context->getProperty('service.path');?>/resources/script/clipboardPoter/clipboardPoter',
'flashvars', 'callback=onClipBoard'
);
window.clipboardPoter = document.getElementById("clipboardPoter");
Expand Down

0 comments on commit 385f2e2

Please sign in to comment.