more d* infrastructure for relaying signed messages and storing non-connected people details
This commit is contained in:
parent
ff723caae3
commit
c30f523c62
2
boot.php
2
boot.php
|
@ -9,7 +9,7 @@ require_once("include/pgettext.php");
|
|||
|
||||
define ( 'FRIENDIKA_VERSION', '2.2.1075' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||
define ( 'DB_UPDATE_VERSION', 1079 );
|
||||
define ( 'DB_UPDATE_VERSION', 1080 );
|
||||
|
||||
define ( 'EOL', "<br />\r\n" );
|
||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||
|
|
24
database.sql
24
database.sql
|
@ -521,7 +521,18 @@ CREATE TABLE IF NOT EXISTS `fcontact` (
|
|||
`url` CHAR( 255 ) NOT NULL ,
|
||||
`name` CHAR( 255 ) NOT NULL ,
|
||||
`photo` CHAR( 255 ) NOT NULL ,
|
||||
`request` CHAR( 255 ) NOT NULL
|
||||
`request` CHAR( 255 ) NOT NULL,
|
||||
`nick` CHAR( 255 ) NOT NULL ,
|
||||
`addr` CHAR( 255 ) NOT NULL ,
|
||||
`notify` CHAR( 255 ) NOT NULL ,
|
||||
`poll` CHAR( 255 ) NOT NULL ,
|
||||
`confirm` CHAR( 255 ) NOT NULL ,
|
||||
`priority` TINYINT( 1 ) NOT NULL ,
|
||||
`network` CHAR( 32 ) NOT NULL ,
|
||||
`alias` CHAR( 255 ) NOT NULL ,
|
||||
`pubkey` TEXT NOT NULL ,
|
||||
INDEX ( `addr` ),
|
||||
INDEX ( `network` )
|
||||
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `ffinder` (
|
||||
|
@ -581,3 +592,14 @@ CREATE TABLE IF NOT EXISTS `guid` (
|
|||
INDEX ( `guid` )
|
||||
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `sign` (
|
||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||
`iid` INT UNSIGNED NOT NULL ,
|
||||
`signed_text` MEDIUMTEXT NOT NULL ,
|
||||
`signature` TEXT NOT NULL ,
|
||||
`signer` CHAR( 255 ) NOT NULL ,
|
||||
INDEX ( `iid` )
|
||||
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
|
|
|
@ -19,14 +19,10 @@ function like_content(&$a) {
|
|||
|
||||
switch($verb) {
|
||||
case 'like':
|
||||
$activity = ACTIVITY_LIKE;
|
||||
break;
|
||||
case 'dislike':
|
||||
$activity = ACTIVITY_DISLIKE;
|
||||
break;
|
||||
case 'unlike':
|
||||
$activity = ACTIVITY_LIKE;
|
||||
break;
|
||||
case 'dislike':
|
||||
case 'undislike':
|
||||
$activity = ACTIVITY_DISLIKE;
|
||||
break;
|
||||
|
|
|
@ -55,7 +55,7 @@ function wall_upload_post(&$a) {
|
|||
if(($maximagesize) && ($filesize > $maximagesize)) {
|
||||
echo sprintf( t('Image exceeds size limit of %d'), $maximagesize) . EOL;
|
||||
@unlink($src);
|
||||
return;
|
||||
killme();
|
||||
}
|
||||
|
||||
$imagedata = @file_get_contents($src);
|
||||
|
|
27
update.php
27
update.php
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1079 );
|
||||
define( 'UPDATE_VERSION' , 1080 );
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -646,3 +646,28 @@ function update_1077() {
|
|||
function update_1078() {
|
||||
q("ALTER TABLE `item` ADD `guid` CHAR( 64 ) NOT NULL AFTER `id` , ADD INDEX ( `guid` ) ");
|
||||
}
|
||||
|
||||
function update_1079() {
|
||||
q("CREATE TABLE IF NOT EXISTS `sign` (
|
||||
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||
`iid` INT UNSIGNED NOT NULL ,
|
||||
`signed_text` MEDIUMTEXT NOT NULL ,
|
||||
`signature` TEXT NOT NULL ,
|
||||
`signer` CHAR( 255 ) NOT NULL ,
|
||||
INDEX ( `iid` )
|
||||
) ENGINE = MYISAM ");
|
||||
|
||||
q("ALTER TABLE `fcontact` ADD `nick` CHAR( 255 ) NOT NULL ,
|
||||
ADD `addr` CHAR( 255 ) NOT NULL ,
|
||||
ADD `notify` CHAR( 255 ) NOT NULL ,
|
||||
ADD `poll` CHAR( 255 ) NOT NULL ,
|
||||
ADD `confirm` CHAR( 255 ) NOT NULL ,
|
||||
ADD `priority` TINYINT( 1 ) NOT NULL ,
|
||||
ADD `network` CHAR( 32 ) NOT NULL ,
|
||||
ADD `alias` CHAR( 255 ) NOT NULL ,
|
||||
ADD `pubkey` TEXT NOT NULL ,
|
||||
ADD INDEX ( `addr` ) ,
|
||||
ADD INDEX ( `network` ) ");
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user