surrealtodo-v0.5.1-gtd1.patch [ダウンロード]

diff -Nur surrealtodo-v0.5.1/ajax.php surrealtodo-v0.5.1-gtd1/ajax.php
--- surrealtodo-v0.5.1/ajax.php	2010-09-20 15:53:14.000000000 +0900
+++ surrealtodo-v0.5.1-gtd1/ajax.php	2010-10-21 17:36:44.000000000 +0900
@@ -62,7 +62,7 @@
 			
 // list actions
 		case 'newList':
-			ToDo::newList($_GET['page_id']);
+			ToDo::newList($_GET['page_id'], $_GET['list_name']);
 			break;
 
 		case 'editList':
diff -Nur surrealtodo-v0.5.1/connect.php surrealtodo-v0.5.1-gtd1/connect.php
--- surrealtodo-v0.5.1/connect.php	2010-09-09 13:41:24.000000000 +0900
+++ surrealtodo-v0.5.1-gtd1/connect.php	2010-10-22 11:25:37.000000000 +0900
@@ -7,6 +7,8 @@
 $db_pass		= 'webapps';
 $db_database	= 'surrealtodo'; 
 
+$gtd_mode	= true;
+
 /* End config */
 
 $link = @mysql_connect($db_host,$db_user,$db_pass) or die('Unable to establish a DB connection');
diff -Nur surrealtodo-v0.5.1/content/install.php surrealtodo-v0.5.1-gtd1/content/install.php
--- surrealtodo-v0.5.1/content/install.php	2010-09-21 14:27:32.000000000 +0900
+++ surrealtodo-v0.5.1-gtd1/content/install.php	2010-10-21 19:02:31.000000000 +0900
@@ -66,6 +66,14 @@
 mysql_query("insert into config set name = 'default_list_name', value = 'New List'");
 mysql_query("insert into config set name = 'default_item_name', value = 'Double-click to Edit.'");
 
+mysql_query("insert into config set name = 'gtd_inbox', value = 'Inbox'");
+mysql_query("insert into config set name = 'gtd_next_actions', value = 'Next Actions'");
+mysql_query("insert into config set name = 'gtd_projects', value = 'Projects'");
+mysql_query("insert into config set name = 'gtd_wait', value = 'Wait'");
+mysql_query("insert into config set name = 'gtd_someday', value = 'Someday'");
+mysql_query("insert into config set name = 'gtd_calendar', value = 'Calendar'");
+mysql_query("insert into config set name = 'gtd_complete', value = 'Complete'");
+
 mysql_query("
 	CREATE TABLE `tabs` (
 	  `tab_id` int(8) unsigned NOT NULL auto_increment,
@@ -95,9 +103,33 @@
 	) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 ");
 
-mysql_query("
-	insert into pages set name = 'Main Page', tab_id = 1, position = 1;
-");
+if ($gtd_mode){
+	mysql_query("
+		insert into pages set name = 'Inbox', tab_id = 1, position = 1;
+	");
+	mysql_query("
+		insert into pages set name = 'Next Actions', tab_id = 1, position = 2;
+	");
+	mysql_query("
+		insert into pages set name = 'Projects', tab_id = 1, position = 3;
+	");
+	mysql_query("
+		insert into pages set name = 'Wait', tab_id = 1, position = 4;
+	");
+	mysql_query("
+		insert into pages set name = 'Someday', tab_id = 1, position = 5;
+	");
+	mysql_query("
+		insert into pages set name = 'Calendar', tab_id = 1, position = 6;
+	");
+	mysql_query("
+		insert into pages set name = 'Complete', tab_id = 1, position = 7;
+	");
+} else {
+	mysql_query("
+		insert into pages set name = 'Main Page', tab_id = 1, position = 1;
+	");
+}
 
 mysql_query("
 	CREATE TABLE `lists` (
diff -Nur surrealtodo-v0.5.1/content/notebook.php surrealtodo-v0.5.1-gtd1/content/notebook.php
--- surrealtodo-v0.5.1/content/notebook.php	2010-09-21 14:15:46.000000000 +0900
+++ surrealtodo-v0.5.1-gtd1/content/notebook.php	2010-10-21 18:27:29.000000000 +0900
@@ -27,6 +27,7 @@
 
 
 
Are you sure you want to delete this item?
+
Are you sure you want to separate this ToDo item?
All Items in this List will be deleted.
All Lists and Items on this Page will be deleted.
All Pages, Lists and Items on this Tab will be deleted.
diff -Nur surrealtodo-v0.5.1/content/settings.php surrealtodo-v0.5.1-gtd1/content/settings.php --- surrealtodo-v0.5.1/content/settings.php 2010-09-09 13:46:08.000000000 +0900 +++ surrealtodo-v0.5.1-gtd1/content/settings.php 2010-10-21 19:02:31.000000000 +0900 @@ -42,6 +42,26 @@     + + + GTD::Inbox" size="25" /> + GTD::Next Actions" size="25" /> + GTD::Projects" size="25" /> + GTD::Wait" size="25" /> + GTD::Someday" size="25" /> + GTD::Calendar" size="25" /> + GTD::Complete" size="25" /> + +   +   + + + Time Zone: