diff --git a/htdocs/admin/skype.php b/htdocs/admin/skype.php
deleted file mode 100644
index db942beb8ad..00000000000
--- a/htdocs/admin/skype.php
+++ /dev/null
@@ -1,162 +0,0 @@
-
- *
- * 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
| ' . $langs->trans('Parameters') . ' | '; -print "||
| ' . $langs->trans("SkypeDeactivateInUser") . ' | '; -print ''; -if ($conf->use_javascript_ajax) -{ - print ajax_constantonoff('SKYPE_DEACTIVATE_IN_USER'); -} -else -{ - if (empty($conf->global->SKYPE_DEACTIVATE_IN_USER)) - { - print ''.img_picto($langs->trans("Disabled"),'switch_off').''; - } - else - { - print ''.img_picto($langs->trans("Enabled"),'switch_on').''; - } -} -print ' | '; -print '|
| ' . $langs->trans("SkypeDeactivateInContact") . ' | '; -print ''; -if ($conf->use_javascript_ajax) -{ - print ajax_constantonoff('SKYPE_DEACTIVATE_IN_CONTACT'); -} -else -{ - if (empty($conf->global->SKYPE_DEACTIVATE_IN_CONTACT)) - { - print ''.img_picto($langs->trans("Disabled"),'switch_off').''; - } - else - { - print ''.img_picto($langs->trans("Enabled"),'switch_on').''; - } -} -print ' | '; -print '|
| ' . $langs->trans("SkypeDeactivateInMember") . ' | '; -print ''; -if ($conf->use_javascript_ajax) -{ - print ajax_constantonoff('SKYPE_DEACTIVATE_IN_MEMBER'); -} -else -{ - if (empty($conf->global->SKYPE_DEACTIVATE_IN_MEMBER)) - { - print ''.img_picto($langs->trans("Disabled"),'switch_off').''; - } - else - { - print ''.img_picto($langs->trans("Enabled"),'switch_on').''; - } -} -print ' | '; -print '|
';
- $newskype.=' ';
+ $newskype.=' ';
- $newskype.='
';
+ $newskype.='
';
$newskype.='';
if (($cid || $socid) && ! empty($conf->agenda->enabled) && $user->rights->agenda->myactions->create)
diff --git a/htdocs/core/modules/modSkype.class.php b/htdocs/core/modules/modSkype.class.php
index 2c7686d9349..d6017b06c16 100644
--- a/htdocs/core/modules/modSkype.class.php
+++ b/htdocs/core/modules/modSkype.class.php
@@ -61,7 +61,7 @@ class modSkype extends DolibarrModules
// Config pages
//-------------
- $this->config_page_url = array("skype.php");
+ $this->config_page_url = array();
// Dependancies
//-------------
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index fff2ea5c32f..232eb3e573f 100755
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -540,7 +540,7 @@ Module2800Desc=FTP Client
Module2900Name=GeoIPMaxmind
Module2900Desc=GeoIP Maxmind conversions capabilities
Module3100Name=Skype
-Module3100Desc=Add a Skype button into card of adherents / third parties / contacts
+Module3100Desc=Add a Skype button into card of users / third parties / contacts / members
Module4000Name=HRM
Module4000Desc=Human resources management
Module5000Name=Multi-company
@@ -1249,11 +1249,6 @@ AddSubscriptionIntoAccount=Suggest by default to create a bank transaction, in b
AdherentLoginRequired= Manage a Login for each member
AdherentMailRequired=EMail required to create a new member
MemberSendInformationByMailByDefault=Checkbox to send mail confirmation to members (validation or new subscription) is on by default
-##### Skype setup #####
-SkypeSetup=Skype module setup
-SkypeDeactivateInUser=Deactivate Skype in user card
-SkypeDeactivateInContact=Deactivate Skype in contact card
-SkypeDeactivateInMember=Deactivate Skype in member card
##### LDAP setup #####
LDAPSetup=LDAP Setup
LDAPGlobalParameters=Global parameters
diff --git a/htdocs/theme/common/skype_callbutton.png b/htdocs/theme/common/skype_callbutton.png
index dd76442627a..ceccf2858d2 100644
Binary files a/htdocs/theme/common/skype_callbutton.png and b/htdocs/theme/common/skype_callbutton.png differ
diff --git a/htdocs/theme/common/skype_chatbutton.png b/htdocs/theme/common/skype_chatbutton.png
index 750b49fa221..d8135bb85a5 100644
Binary files a/htdocs/theme/common/skype_chatbutton.png and b/htdocs/theme/common/skype_chatbutton.png differ
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 62c2e5c9498..9cd92248b87 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -193,7 +193,7 @@ if (empty($reshook)) {
$object->office_phone = GETPOST("office_phone", 'alpha');
$object->office_fax = GETPOST("office_fax", 'alpha');
$object->user_mobile = GETPOST("user_mobile");
- $object->skype = GETPOST("skype");
+ $object->skype = GETPOST("skype", 'alpha');
$object->email = GETPOST("email", 'alpha');
$object->job = GETPOST("job", 'alpha');
$object->signature = GETPOST("signature");
@@ -330,7 +330,7 @@ if (empty($reshook)) {
$object->office_phone = GETPOST("office_phone", 'alpha');
$object->office_fax = GETPOST("office_fax", 'alpha');
$object->user_mobile = GETPOST("user_mobile");
- $object->skype = GETPOST("skype");
+ $object->skype = GETPOST("skype", 'alpha');
$object->email = GETPOST("email", 'alpha');
$object->job = GETPOST("job", 'alpha');
$object->signature = GETPOST("signature");
@@ -1325,14 +1325,6 @@ else
print ''."\n";
}
- // Skype
- if (! empty($conf->skype->enabled))
- {
- print '