dolibarr  13.0.2
about.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2019 Frédéric FRANCE <frederic.france@free.fr>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
25 // Load Dolibarr environment
26 require '../../main.inc.php';
27 
28 // Libraries
29 require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
30 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
31 require_once '../lib/zapier.lib.php';
32 
33 // Translations
34 $langs->loadLangs(array("errors", "admin", "zapier@zapier"));
35 
36 // Access control
37 if (!$user->admin) accessforbidden();
38 
39 // Parameters
40 $action = GETPOST('action', 'aZ09');
41 $backtopage = GETPOST('backtopage', 'alpha');
42 
43 
44 /*
45  * Actions
46  */
47 
48 // None
49 
50 
51 /*
52  * View
53  */
54 
55 $form = new Form($db);
56 
57 $page_name = "ZapierAbout";
58 llxHeader('', $langs->trans($page_name));
59 
60 // Subheader
61 $linkback = '<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1').'">'.$langs->trans("BackToModuleList").'</a>';
62 
63 print load_fiche_titre($langs->trans($page_name), $linkback, 'object_zapier@zapier');
64 
65 // Configuration header
66 $head = zapierAdminPrepareHead();
67 print dol_get_fiche_head($head, 'about', '', 0, 'zapier@zapier');
68 
69 dol_include_once('/zapier/core/modules/modZapier.class.php');
70 $tmpmodule = new modZapier($db);
71 print $tmpmodule->getDescLong();
72 
73 // Page end
75 llxFooter();
76 $db->close();
if(!function_exists('dol_getprefix')) dol_include_once($relpath, $classname= '')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
zapierAdminPrepareHead()
Prepare admin pages header.
Definition: zapier.lib.php:29
llxHeader()
Empty header.
Definition: wrapper.php:45
Class to manage generation of HTML components Only common components must be here.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
Definition: index.php:89
dol_get_fiche_end($notab=0)
Return tab footer of a card.
Description and activation class for module Zapier.
llxFooter()
Empty footer.
Definition: wrapper.php:59