mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 01:35:12 +00:00
cleanup
This commit is contained in:
parent
d21f3ef61f
commit
1b79f1f885
4 changed files with 54 additions and 1 deletions
|
@ -337,7 +337,7 @@ class Apps {
|
|||
'Friend Zoom' => t('Friend Zoom'),
|
||||
'Future Posting' => t('Future Posting'),
|
||||
'Gallery' => t('Gallery'),
|
||||
'Guest Access' => t('Guest Access'),
|
||||
'Guest Pass' => t('Guest Pass'),
|
||||
'Help' => t('Help'),
|
||||
'Invite' => t('Invite'),
|
||||
'Language' => t('Language'),
|
||||
|
|
43
Zotlabs/Update/_1248.php
Normal file
43
Zotlabs/Update/_1248.php
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
namespace Zotlabs\Update;
|
||||
|
||||
class _1248 {
|
||||
|
||||
function run() {
|
||||
|
||||
q("START TRANSACTION");
|
||||
|
||||
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
||||
$r1 = q("ALTER TABLE atoken ADD atoken_guid NOT NULL DEFAULT '' ");
|
||||
$r2 = q("create index \"atoken_guid\" on xchan (\"atoken_guid\")");
|
||||
|
||||
$r = ($r1 && $r2);
|
||||
}
|
||||
else {
|
||||
$r = q("ALTER TABLE `atoken` ADD `atoken_guid` char(191) NOT NULL DEFAULT '' ,
|
||||
ADD INDEX `atoken_guid` (`atoken_guid`)");
|
||||
}
|
||||
|
||||
if($r) {
|
||||
q("COMMIT");
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
q("ROLLBACK");
|
||||
return UPDATE_FAILED;
|
||||
|
||||
}
|
||||
|
||||
function verify() {
|
||||
|
||||
$columns = db_columns('atoken');
|
||||
|
||||
if(in_array('atoken_guid',$columns)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
6
app/atoken.apd
Normal file
6
app/atoken.apd
Normal file
|
@ -0,0 +1,6 @@
|
|||
version: 1
|
||||
url: $baseurl/settings/tokens
|
||||
requires: local_channel
|
||||
name: Guest Pass
|
||||
photo: icon:ticket
|
||||
categories: nav_featured_app, Networking
|
|
@ -71,6 +71,10 @@ Set a post to be published at/after a certain date/time. Usually used for automa
|
|||
|
||||
Requires the 'gallery' addon. This provides an improved image browser to your photos than the stock 'Photos' app. Interactions with photos in your stream are modified slightly.
|
||||
|
||||
### Guest Pass
|
||||
|
||||
Does not require app installation, although it will be more accessible if the app is installed. This lets you create guest accounts and/or create links which can access some of your private resources. For instance if you want to send links via email to let the grandparents see a private photo of their grandchildren.
|
||||
|
||||
### Hexit
|
||||
|
||||
Requires the 'hexit' addon. This provides an online hexadecimal/decimal converter.
|
||||
|
|
Loading…
Reference in a new issue