From 01adbd88664e437120bc134d8aa798cfcb93ccc8 Mon Sep 17 00:00:00 2001
From: Laurent Laffont <llaffont@afi-sa.fr>
Date: Mon, 18 Feb 2019 16:29:37 +0100
Subject: [PATCH] hotline #87312 remove not used Skilleos file

---
 VERSIONS_HOTLINE/87312                      |  1 +
 library/digital_resources/Skilleos/Link.php | 67 ---------------------
 2 files changed, 1 insertion(+), 67 deletions(-)
 create mode 100644 VERSIONS_HOTLINE/87312
 delete mode 100644 library/digital_resources/Skilleos/Link.php

diff --git a/VERSIONS_HOTLINE/87312 b/VERSIONS_HOTLINE/87312
new file mode 100644
index 00000000000..362232488fe
--- /dev/null
+++ b/VERSIONS_HOTLINE/87312
@@ -0,0 +1 @@
+ - ticket #87312 : Des clés valides LeKiosk sont dans le code source!
\ No newline at end of file
diff --git a/library/digital_resources/Skilleos/Link.php b/library/digital_resources/Skilleos/Link.php
deleted file mode 100644
index efa2b2cd310..00000000000
--- a/library/digital_resources/Skilleos/Link.php
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-/**
- * Copyright (c) 2012-2014, Agence Française Informatique (AFI). All rights reserved.
- *
- * BOKEH is free software; you can redistribute it and/or modify
- * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
- * the Free Software Foundation.
- *
- * There are special exceptions to the terms and conditions of the AGPL as it
- * is applied to this software (see README file).
- *
- * BOKEH 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 AFFERO GENERAL PUBLIC LICENSE for more details.
- *
- * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
- * along with BOKEH; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
- */
-
-
-class Skilleos_Link extends Skilleos_LinkAbstract {
-  const ROOT_URL = 'http://skilleos.com/sigb/sso/';
-
-  protected $_mail;
-  protected $_base_url;
-
-
-  public function __construct($mail) {
-    $this->_mail = ($mail) ? $mail : Class_Profil::getPortail()->getMailSiteOrPortail();
-  }
-
-
-  public function url($album = null) {
-    $url = static::ROOT_URL
-      . $this->baseUrl()
-      . '&AccessHash=' . $this->accessHash();
-
-    if (!$album)
-      return $url;
-
-    return $url . '&ReturnUrl=' . $this->_getReturnURL($album);
-  }
-
-
-  protected function accessHash() {
-    return sha1($this->baseUrl() . static::SHA1_KEY);
-  }
-
-
-  protected function baseUrl() {
-    if (null === $this->_base_url)
-      $this->_base_url = static::BASE_URL
-        . 'id_resource=' . $this->cryptedMail()
-        . '&id=' . Skilleos_Config::getInstance()->getAdminVar('ID')
-        ;
-
-    return $this->_base_url;
-  }
-
-
-  protected function cryptedMail() {
-    return bin2hex(openssl_encrypt($this->_mail, 'aes-128-cbc', static::AES_KEY, true, static::AES_KEY));
-  }
-}
-?>
\ No newline at end of file
-- 
GitLab