trac31 pg support, fixing 2tu typo, set ur1.ca as default service
darcs-hash:20081113152718-099f7-42b60d02395f016c54c5f3c301f9dbe987c1283f.gz
This commit is contained in:
parent
2a8a0c9399
commit
14f69f8d2e
|
@ -42,8 +42,8 @@ class OthersettingsAction extends SettingsAction {
|
||||||
|
|
||||||
$services = array(
|
$services = array(
|
||||||
'' => 'None',
|
'' => 'None',
|
||||||
'ur1.ca' => 'ur1.ca (free)',
|
'ur1.ca' => 'ur1.ca (free service)',
|
||||||
'2tu.ru' => '2tu.ru (free)',
|
'2tu.us' => '2tu.us (free service)',
|
||||||
'ptiturl.com' => 'ptiturl.com',
|
'ptiturl.com' => 'ptiturl.com',
|
||||||
'bit.ly' => 'bit.ly',
|
'bit.ly' => 'bit.ly',
|
||||||
'tinyurl.com' => 'tinyurl.com',
|
'tinyurl.com' => 'tinyurl.com',
|
||||||
|
|
|
@ -65,7 +65,7 @@ create table user (
|
||||||
smsemail varchar(255) comment 'built from sms and carrier',
|
smsemail varchar(255) comment 'built from sms and carrier',
|
||||||
uri varchar(255) unique key comment 'universally unique identifier, usually a tag URI',
|
uri varchar(255) unique key comment 'universally unique identifier, usually a tag URI',
|
||||||
autosubscribe tinyint default 0 comment 'automatically subscribe to users who subscribe to us',
|
autosubscribe tinyint default 0 comment 'automatically subscribe to users who subscribe to us',
|
||||||
urlshorteningservice varchar(50) default 'metamark.net' comment 'service to use for auto-shortening URLs',
|
urlshorteningservice varchar(50) default 'ur1.ca' comment 'service to use for auto-shortening URLs',
|
||||||
created datetime not null comment 'date this record was created',
|
created datetime not null comment 'date this record was created',
|
||||||
modified timestamp comment 'date this record was modified',
|
modified timestamp comment 'date this record was modified',
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,7 @@ create table "user" (
|
||||||
smsemail varchar(255) /* comment 'built from sms and carrier' */,
|
smsemail varchar(255) /* comment 'built from sms and carrier' */,
|
||||||
uri varchar(255) unique /* comment 'universally unique identifier, usually a tag URI' */,
|
uri varchar(255) unique /* comment 'universally unique identifier, usually a tag URI' */,
|
||||||
autosubscribe integer default 0 /* comment 'automatically subscribe to users who subscribe to us' */,
|
autosubscribe integer default 0 /* comment 'automatically subscribe to users who subscribe to us' */,
|
||||||
|
urlshorteningservice varchar(50) default 'ur1.ca' /* comment 'service to use for auto-shortening URLs' */,
|
||||||
created timestamp not null /* comment 'date this record was created' */,
|
created timestamp not null /* comment 'date this record was created' */,
|
||||||
modified timestamp /* comment 'date this record was modified' */
|
modified timestamp /* comment 'date this record was modified' */
|
||||||
|
|
||||||
|
|
|
@ -770,7 +770,7 @@ function common_shorten_link($long_url) {
|
||||||
$short_url = $short_url_service->shorten($long_url);
|
$short_url = $short_url_service->shorten($long_url);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '2tu.ru':
|
case '2tu.us':
|
||||||
$short_url_service = new TightUrl;
|
$short_url_service = new TightUrl;
|
||||||
$short_url = $short_url_service->shorten($long_url);
|
$short_url = $short_url_service->shorten($long_url);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user