uexport app
This commit is contained in:
parent
3064f2ced5
commit
d0605e8d5f
@ -1,18 +1,24 @@
|
||||
<?php
|
||||
namespace Zotlabs\Module;
|
||||
|
||||
use App;
|
||||
use Zotlabs\Lib\Apps;
|
||||
use Zotlabs\Web\Controller;
|
||||
|
||||
class Uexport extends \Zotlabs\Web\Controller {
|
||||
class Uexport extends Controller {
|
||||
|
||||
function init() {
|
||||
if(! local_channel())
|
||||
killme();
|
||||
|
||||
|
||||
if(! Apps::system_app_installed(local_channel(), 'Channel Export'))
|
||||
return;
|
||||
|
||||
if(argc() > 1) {
|
||||
|
||||
$sections = (($_REQUEST['sections']) ? explode(',',$_REQUEST['sections']) : '');
|
||||
|
||||
$channel = \App::get_channel();
|
||||
$channel = App::get_channel();
|
||||
|
||||
if(argc() > 1 && intval(argv(1)) > 1900) {
|
||||
$year = intval(argv(1));
|
||||
@ -47,6 +53,15 @@ class Uexport extends \Zotlabs\Web\Controller {
|
||||
}
|
||||
|
||||
function get() {
|
||||
|
||||
if(! Apps::system_app_installed(local_channel(), 'Channel Export')) {
|
||||
//Do not display any associated widgets at this point
|
||||
App::$pdl = '';
|
||||
|
||||
$o = '<b>' . t('Channel Export App') . ' (' . t('Not Installed') . '):</b><br>';
|
||||
$o .= t('Export your channel');
|
||||
return $o;
|
||||
}
|
||||
|
||||
$y = datetime_convert('UTC',date_default_timezone_get(),'now','Y');
|
||||
|
||||
|
@ -9,7 +9,6 @@ class Settings_menu {
|
||||
if(! local_channel())
|
||||
return;
|
||||
|
||||
|
||||
$channel = \App::get_channel();
|
||||
|
||||
$abook_self_id = 0;
|
||||
@ -66,12 +65,6 @@ class Settings_menu {
|
||||
);
|
||||
}
|
||||
|
||||
$tabs[] = array(
|
||||
'label' => t('Export channel'),
|
||||
'url' => z_root() . '/uexport',
|
||||
'selected' => ''
|
||||
);
|
||||
|
||||
if($role === false || $role === 'custom') {
|
||||
$tabs[] = array(
|
||||
'label' => t('Connection Default Permissions'),
|
||||
|
6
app/uexport.apd
Normal file
6
app/uexport.apd
Normal file
@ -0,0 +1,6 @@
|
||||
version: 1
|
||||
url: $baseurl/uexport
|
||||
requires: local_channel
|
||||
name: Channel Export
|
||||
photo: icon:download
|
||||
categories: Personal, System
|
@ -1,5 +1,4 @@
|
||||
[region=aside]
|
||||
[widget=settings_menu][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[widget=notifications][/widget]
|
||||
|
Reference in New Issue
Block a user