dolibarr/htdocs/zapier/admin/about.php

87 lines
2.3 KiB
PHP
Raw Normal View History

2019-05-19 21:12:22 +02:00
<?php
/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2019 Frédéric FRANCE <frederic.france@free.fr>
*
2021-03-29 22:37:03 +02:00
*
* LICENSE =================================================================
*
2019-05-19 21:12:22 +02:00
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2021-03-29 22:37:03 +02:00
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
2019-05-19 21:12:22 +02:00
*/
/**
* \file zapier/admin/about.php
* \ingroup zapier
* \brief About page of module Zapier.
*/
// Load Dolibarr environment
require '../../main.inc.php';
// Libraries
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once '../lib/zapier.lib.php';
// Translations
2021-03-21 18:01:43 +01:00
$langs->loadLangs(array("errors", "admin", "zapier"));
2019-05-19 21:12:22 +02:00
// Access control
2021-02-26 11:59:13 +01:00
if (!$user->admin) {
accessforbidden();
}
2019-05-19 21:12:22 +02:00
// Parameters
2020-09-16 19:39:50 +02:00
$action = GETPOST('action', 'aZ09');
2019-05-19 21:12:22 +02:00
$backtopage = GETPOST('backtopage', 'alpha');
2021-03-21 18:01:43 +01:00
if (empty($conf->zapier->enabled)) accessforbidden();
if (empty($user->admin)) accessforbidden();
2019-05-19 21:12:22 +02:00
/*
* Actions
*/
// None
/*
* View
*/
$form = new Form($db);
$page_name = "ZapierAbout";
2021-03-21 18:20:37 +01:00
$help_url = 'EN:Module_Zapier';
llxHeader('', $langs->trans($page_name), $help_url);
2019-05-19 21:12:22 +02:00
// Subheader
$linkback = '<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1').'">'.$langs->trans("BackToModuleList").'</a>';
2019-05-19 21:12:22 +02:00
2021-03-21 18:01:43 +01:00
print load_fiche_titre($langs->trans($page_name), $linkback, 'object_zapier');
2019-05-19 21:12:22 +02:00
// Configuration header
$head = zapierAdminPrepareHead();
2021-03-21 18:01:43 +01:00
print dol_get_fiche_head($head, 'about', '', 0, 'zapier');
2019-05-19 21:12:22 +02:00
2021-03-21 18:01:43 +01:00
dol_include_once('/core/modules/modZapier.class.php');
2019-05-19 21:12:22 +02:00
$tmpmodule = new modZapier($db);
print $tmpmodule->getDescLong();
// Page end
2020-10-27 18:19:31 +01:00
print dol_get_fiche_end();
2019-05-19 21:12:22 +02:00
llxFooter();
$db->close();