diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/INSTALL.txt | 18 | ||||
-rw-r--r-- | install/database.sql | 28 | ||||
-rw-r--r-- | install/update.php | 34 |
3 files changed, 64 insertions, 16 deletions
diff --git a/install/INSTALL.txt b/install/INSTALL.txt index 65efa9cfe..c23cf740e 100644 --- a/install/INSTALL.txt +++ b/install/INSTALL.txt @@ -33,7 +33,23 @@ Put some thought into this - because changing it is currently not-supported. Things will break, and some of your friends may have difficulty communicating with you. We plan to address this limitation in a future release. -Decide if you will use SSL and obtain an SSL cert before software installation. You SHOULD use SSL. If you use SSL, you MUST use a "browser-valid" certificate. Please test your certificate prior to installation. A web tool for testing your certificate is available at "http://www.digicert.com/help/". When visiting your site for the first time, please use the SSL ("https://") URL if SSL is available. This will avoid problems later. +Decide if you will use SSL and obtain an SSL certificate before software +installation. You SHOULD use SSL. If you use SSL, you MUST use a +"browser-valid" certificate. You MUST NOT use self-signed certificates! + +Please test your certificate prior to installation. A web tool for testing your +certificate is available at "http://www.digicert.com/help/". When visiting your +site for the first time, please use the SSL ("https://") URL if SSL is +available. This will avoid problems later. The installation routine will not +allow you to use a non browser-valid certificate. + +This restriction is incorporated because public posts from you may for example +contain references to images on your own hub. If your certificate is not known +by the internet browser of users they get a warning message complaining about +some security issues. Although these complains are not the real truth - there +are no security issues with your encryption! - the users may be confused, +nerved or even worse may become scared about Red Matrix having security issues. +Use one of the free certification instances! 1. Requirements diff --git a/install/database.sql b/install/database.sql index cbfca822c..a5094b8e1 100644 --- a/install/database.sql +++ b/install/database.sql @@ -470,31 +470,32 @@ CREATE TABLE IF NOT EXISTS `item` ( `author_xchan` char(255) NOT NULL DEFAULT '', `source_xchan` char(255) NOT NULL DEFAULT '', `mimetype` char(255) NOT NULL DEFAULT '', - `title` text NOT NULL, - `body` mediumtext NOT NULL, + `title` text NOT NULL DEFAULT '', + `body` mediumtext NOT NULL DEFAULT '', `app` char(255) NOT NULL DEFAULT '', `lang` char(64) NOT NULL DEFAULT '', `revision` int(10) unsigned NOT NULL DEFAULT '0', `verb` char(255) NOT NULL DEFAULT '', `obj_type` char(255) NOT NULL DEFAULT '', - `object` text NOT NULL, + `object` text NOT NULL DEFAULT '', `tgt_type` char(255) NOT NULL DEFAULT '', - `target` text NOT NULL, + `target` text NOT NULL DEFAULT '', `layout_mid` char(255) NOT NULL DEFAULT '', - `postopts` text NOT NULL, + `postopts` text NOT NULL DEFAULT '', + `route` text NOT NULL DEFAULT '', `llink` char(255) NOT NULL DEFAULT '', `plink` char(255) NOT NULL DEFAULT '', `resource_id` char(255) NOT NULL DEFAULT '', `resource_type` char(16) NOT NULL DEFAULT '', - `attach` mediumtext NOT NULL, - `sig` text NOT NULL, + `attach` mediumtext NOT NULL DEFAULT '', + `sig` text NOT NULL DEFAULT '', `location` char(255) NOT NULL DEFAULT '', `coord` char(255) NOT NULL DEFAULT '', `comment_policy` char(255) NOT NULL DEFAULT '', - `allow_cid` mediumtext NOT NULL, - `allow_gid` mediumtext NOT NULL, - `deny_cid` mediumtext NOT NULL, - `deny_gid` mediumtext NOT NULL, + `allow_cid` mediumtext NOT NULL DEFAULT '', + `allow_gid` mediumtext NOT NULL DEFAULT '', + `deny_cid` mediumtext NOT NULL DEFAULT '', + `deny_gid` mediumtext NOT NULL DEFAULT '', `item_restrict` int(11) NOT NULL DEFAULT '0', `item_flags` int(11) NOT NULL DEFAULT '0', `item_private` tinyint(4) NOT NULL DEFAULT '0', @@ -621,7 +622,7 @@ CREATE TABLE IF NOT EXISTS `notify` ( `aid` int(11) NOT NULL, `uid` int(11) NOT NULL, `link` char(255) NOT NULL, - `parent` int(11) NOT NULL, + `parent` char(255) NOT NULL DEFAULT '', `seen` tinyint(1) NOT NULL DEFAULT '0', `type` int(11) NOT NULL, `verb` char(255) NOT NULL, @@ -865,7 +866,8 @@ CREATE TABLE IF NOT EXISTS `site` ( `site_access` int(11) NOT NULL DEFAULT '0', `site_flags` int(11) NOT NULL DEFAULT '0', `site_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `site_sync` datetime NOT NULL, + `site_pull` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `site_sync` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `site_directory` char(255) NOT NULL DEFAULT '', `site_register` int(11) NOT NULL DEFAULT '0', `site_sellpage` char(255) NOT NULL DEFAULT '', diff --git a/install/update.php b/install/update.php index 11b1c1da6..d497cda70 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1103 ); +define( 'UPDATE_VERSION' , 1107 ); /** * @@ -1158,4 +1158,34 @@ function update_r1102() { intval(ABOOK_FLAG_UNCONNECTED) ); return UPDATE_SUCCESS; -}
\ No newline at end of file +} + +function update_r1103() { + $x = curl_version(); + if(stristr($x['ssl_version'],'openssl')) + set_config('system','curl_ssl_ciphers','ALL:!eNULL'); + return UPDATE_SUCCESS; +} + +function update_r1104() { + $r = q("ALTER TABLE `item` ADD `route` TEXT NOT NULL DEFAULT '' AFTER `postopts` "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + +function update_r1105() { + $r = q("ALTER TABLE `site` ADD `site_pull` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `site_update` , +CHANGE `site_sync` `site_sync` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', ADD INDEX ( `site_pull` ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + +function update_r1106() { + $r = q("ALTER TABLE `notify` CHANGE `parent` `parent` CHAR( 255 ) NOT NULL DEFAULT ''"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |