aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-14 15:17:27 -0800
committerFriendika <info@friendika.com>2010-11-14 15:17:27 -0800
commiteae34f323b85d4126c81eda679d1350d171fd8da (patch)
tree651b53e1057f87301ad49330bfca0b15c027328e
parent0851669b39db770e62374551c9394f0f3a652314 (diff)
downloadvolse-hubzilla-eae34f323b85d4126c81eda679d1350d171fd8da.tar.gz
volse-hubzilla-eae34f323b85d4126c81eda679d1350d171fd8da.tar.bz2
volse-hubzilla-eae34f323b85d4126c81eda679d1350d171fd8da.zip
add openid slot to db
-rw-r--r--boot.php4
-rw-r--r--database.sql1
-rw-r--r--include/poller.php4
-rw-r--r--update.php7
4 files changed, 11 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index ad1df4ed1..3ed349777 100644
--- a/boot.php
+++ b/boot.php
@@ -2,7 +2,7 @@
set_time_limit(0);
-define ( 'BUILD_ID', 1016 );
+define ( 'BUILD_ID', 1017 );
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
define ( 'EOL', "<br />\r\n" );
@@ -145,7 +145,7 @@ class App {
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);
if(x($_GET,'q'))
$this->cmd = trim($_GET['q'],'/');
diff --git a/database.sql b/database.sql
index ced7573f3..ffea60c49 100644
--- a/database.sql
+++ b/database.sql
@@ -351,6 +351,7 @@ CREATE TABLE IF NOT EXISTS `user` (
`password` char(255) NOT NULL,
`nickname` char(255) NOT NULL,
`email` char(255) NOT NULL,
+ `openid` char(255) NOT NULL,
`timezone` char(128) NOT NULL,
`default-location` char(255) NOT NULL,
`allow_location` tinyint(1) NOT NULL DEFAULT '0',
diff --git a/include/poller.php b/include/poller.php
index 3d19d003b..a34a1e01f 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -83,7 +83,7 @@
$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')
? datetime_convert('UTC','UTC','now - 30 days', ATOM_TIME)
@@ -105,7 +105,7 @@
$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) {
logger("poller: $url appears to be dead - marking for death ");
diff --git a/update.php b/update.php
index eb3231b56..7ee27213d 100644
--- a/update.php
+++ b/update.php
@@ -133,4 +133,9 @@ function update_1014() {
function update_1015() {
q("ALTER TABLE `item` CHANGE `body` `body` mediumtext NOT NULL");
-} \ No newline at end of file
+}
+
+function update_1016() {
+ q("ALTER TABLE `user` ADD `openid` CHAR( 255 ) NOT NULL AFTER `email` ");
+}
+