add openid slot to db
This commit is contained in:
parent
0851669b39
commit
eae34f323b
4
boot.php
4
boot.php
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
define ( 'BUILD_ID', 1016 );
|
define ( 'BUILD_ID', 1017 );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
|
||||||
|
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
|
@ -145,7 +145,7 @@ class App {
|
||||||
|
|
||||||
set_include_path("include/$this->hostname" . PATH_SEPARATOR . 'include' . PATH_SEPARATOR . '.' );
|
set_include_path("include/$this->hostname" . PATH_SEPARATOR . 'include' . PATH_SEPARATOR . '.' );
|
||||||
|
|
||||||
if((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,2) == "q=")
|
if((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,2) === "q=")
|
||||||
$_SERVER['QUERY_STRING'] = substr($_SERVER['QUERY_STRING'],2);
|
$_SERVER['QUERY_STRING'] = substr($_SERVER['QUERY_STRING'],2);
|
||||||
if(x($_GET,'q'))
|
if(x($_GET,'q'))
|
||||||
$this->cmd = trim($_GET['q'],'/');
|
$this->cmd = trim($_GET['q'],'/');
|
||||||
|
|
|
@ -351,6 +351,7 @@ CREATE TABLE IF NOT EXISTS `user` (
|
||||||
`password` char(255) NOT NULL,
|
`password` char(255) NOT NULL,
|
||||||
`nickname` char(255) NOT NULL,
|
`nickname` char(255) NOT NULL,
|
||||||
`email` char(255) NOT NULL,
|
`email` char(255) NOT NULL,
|
||||||
|
`openid` char(255) NOT NULL,
|
||||||
`timezone` char(128) NOT NULL,
|
`timezone` char(128) NOT NULL,
|
||||||
`default-location` char(255) NOT NULL,
|
`default-location` char(255) NOT NULL,
|
||||||
`allow_location` tinyint(1) NOT NULL DEFAULT '0',
|
`allow_location` tinyint(1) NOT NULL DEFAULT '0',
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
|
|
||||||
$importer = $r[0];
|
$importer = $r[0];
|
||||||
|
|
||||||
logger("poller: IMPORTER: {$importer['name']}");
|
logger("poller: poll: IMPORTER: {$importer['name']}, CONTACT: {$contact['name']}");
|
||||||
|
|
||||||
$last_update = (($contact['last-update'] === '0000-00-00 00:00:00')
|
$last_update = (($contact['last-update'] === '0000-00-00 00:00:00')
|
||||||
? datetime_convert('UTC','UTC','now - 30 days', ATOM_TIME)
|
? datetime_convert('UTC','UTC','now - 30 days', ATOM_TIME)
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
|
|
||||||
$xml = fetch_url($url);
|
$xml = fetch_url($url);
|
||||||
|
|
||||||
logger('poller: handshake with url ' . $url . ' returns xml: ' . $xml);
|
logger('poller: handshake with url ' . $url . ' returns xml: ' . $xml, LOGGER_DATA);
|
||||||
|
|
||||||
if(! $xml) {
|
if(! $xml) {
|
||||||
logger("poller: $url appears to be dead - marking for death ");
|
logger("poller: $url appears to be dead - marking for death ");
|
||||||
|
|
|
@ -134,3 +134,8 @@ function update_1014() {
|
||||||
function update_1015() {
|
function update_1015() {
|
||||||
q("ALTER TABLE `item` CHANGE `body` `body` mediumtext NOT NULL");
|
q("ALTER TABLE `item` CHANGE `body` `body` mediumtext NOT NULL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1016() {
|
||||||
|
q("ALTER TABLE `user` ADD `openid` CHAR( 255 ) NOT NULL AFTER `email` ");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user