From 92f38f664a10ecc27a28677e0dd3e132846f1dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 20 Dec 2020 10:44:55 +0100 Subject: [PATCH] Remove no more needed file --- htdocs/admin/socialnetworks.php | 118 -------------------------------- 1 file changed, 118 deletions(-) delete mode 100644 htdocs/admin/socialnetworks.php diff --git a/htdocs/admin/socialnetworks.php b/htdocs/admin/socialnetworks.php deleted file mode 100644 index 0ab3a91432b..00000000000 --- a/htdocs/admin/socialnetworks.php +++ /dev/null @@ -1,118 +0,0 @@ - - * Copyright (C) 2019 Alexandre Spangaro - * - * 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 - * along with this program. If not, see . - */ - -/** - * \file htdocs/admin/socialnetworks.php - * \ingroup socialnetworks - * \brief Page to setup the module Social Networks - */ - -require '../main.inc.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/mailmanspip.lib.php'; -require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; - -// Load translation files required by the page -$langs->loadLangs(array("admin", "errors")); - -if (!$user->admin) accessforbidden(); - -$type = array('yesno', 'texte', 'chaine'); - -$action = GETPOST('action', 'aZ09'); - - - -/* - * Action - */ -if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg)) -{ - $code = $reg[1]; - if (dolibarr_set_const($db, $code, 1, 'chaine', 0, '', $conf->entity) > 0) - { - header("Location: ".$_SERVER["PHP_SELF"]); - exit; - } else { - dol_print_error($db); - } -} - -if (preg_match('/del_([a-z0-9_\-]+)/i', $action, $reg)) -{ - $code = $reg[1]; - if (dolibarr_del_const($db, $code, $conf->entity) > 0) - { - header("Location: ".$_SERVER["PHP_SELF"]); - exit; - } else { - dol_print_error($db); - } -} - - -/* - * View - */ - -$help_url = ''; - -llxHeader('', $langs->trans("SocialNetworkSetup"), $help_url); - - -$linkback = ''.$langs->trans("BackToModuleList").''; -print load_fiche_titre($langs->trans("SocialNetworkSetup"), $linkback, 'title_setup'); - -//$head = socialnetworks_admin_prepare_head(); -$h = 0; -$head = array(); -$head[$h][0] = DOL_URL_ROOT.'/admin/socialnetworks.php'; -$head[$h][1] = $langs->trans("Setup"); -$head[$h][2] = 'setup'; -$h++; - - -print '
'; - -print dol_get_fiche_head($head, 'setup', '', 0, 'user'); - -print '
'; - -$arrayofsocialnetworks = array('jabber'=>'Jabber', 'skype'=>'Skype', 'twitter'=>'Twitter', 'facebook'=>'Facebook', 'linkedin'=>'LinkedIn'); - -foreach ($arrayofsocialnetworks as $snkey => $snlabel) { - $consttocheck = 'SOCIALNETWORKS_'.strtoupper($snkey); - if ($conf->use_javascript_ajax) { - $link = ajax_constantonoff($consttocheck); - } else { - $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes")); - $link = $form->selectarray($consttocheck, $arrval, $conf->global->$consttocheck); - } - - print $langs->trans('EnableFeatureFor', $snlabel).' '.$link.'

'; -} - - -print dol_get_fiche_end(); - -print '
'; - - -// End of page -llxFooter(); -$db->close();