1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Upgraded hybridAuth to v2.8.1

This commit is contained in:
Cameron
2016-12-08 07:24:31 -08:00
parent 69b096f8d0
commit 655ce01b87
5 changed files with 79 additions and 10 deletions

View File

@@ -1993,7 +1993,70 @@ class e_parse extends e_parser
}
function toASCII($text)
{
$forn[] = utf8_encode("Ç"); $chg[] = "C";
$forn[] = utf8_encode("È"); $chg[] = "E";
$forn[] = utf8_encode("É"); $chg[] = "E";
$forn[] = utf8_encode("Ê"); $chg[] = "E";
$forn[] = utf8_encode("Ë"); $chg[] = "E";
$forn[] = utf8_encode("Ó"); $chg[] = "O";
$forn[] = utf8_encode("Ô"); $chg[] = "O";
$forn[] = utf8_encode("Õ"); $chg[] = "O";
$forn[] = utf8_encode("Ö"); $chg[] = "O";
$forn[] = utf8_encode("Ù"); $chg[] = "U";
$forn[] = utf8_encode("Ú"); $chg[] = "U";
$forn[] = utf8_encode("Û"); $chg[] = "U";
$forn[] = utf8_encode("Ü"); $chg[] = "U";
$forn[] = utf8_encode("Í"); $chg[] = "I";
$forn[] = utf8_encode("Á"); $chg[] = "A";
$forn[] = utf8_encode("Ñ"); $chg[] = "N";
$forn[] = utf8_encode("â"); $chg[] = "a";
$forn[] = utf8_encode("ã"); $chg[] = "a";
$forn[] = utf8_encode("ä"); $chg[] = "a";
$forn[] = utf8_encode("å"); $chg[] = "a";
$forn[] = utf8_encode("à"); $chg[] = "a";
$forn[] = utf8_encode("á"); $chg[] = "a";
$forn[] = utf8_encode("ç"); $chg[] = "c";
$forn[] = utf8_encode("è"); $chg[] = "e";
$forn[] = utf8_encode("é"); $chg[] = "e";
$forn[] = utf8_encode("ê"); $chg[] = "e";
$forn[] = utf8_encode("ë"); $chg[] = "e";
$forn[] = utf8_encode("ì"); $chg[] = "i";
$forn[] = utf8_encode("í"); $chg[] = "i";
$forn[] = utf8_encode("î"); $chg[] = "i";
$forn[] = utf8_encode("ï"); $chg[] = "i";
$forn[] = utf8_encode("î"); $chg[] = "i";
$forn[] = utf8_encode("ñ"); $chg[] = "n";
$forn[] = utf8_encode("ð"); $chg[] = "o";
$forn[] = utf8_encode("ò"); $chg[] = "o";
$forn[] = utf8_encode("ó"); $chg[] = "o";
$forn[] = utf8_encode("ô"); $chg[] = "o";
$forn[] = utf8_encode("õ"); $chg[] = "o";
$forn[] = utf8_encode("ö"); $chg[] = "o";
$forn[] = utf8_encode("ü"); $chg[] = "u";
$forn[] = utf8_encode("ú"); $chg[] = "u";
$forn[] = utf8_encode("ù"); $chg[] = "u";
$forn[] = utf8_encode("û"); $chg[] = "u";
$text = str_replace($forn,$chg,$text);
return $text;
}

View File

@@ -15,7 +15,7 @@
*/
class Hybrid_Auth {
public static $version = "2.8.0";
public static $version = "2.8.1";
/**
* Configuration array

View File

@@ -239,14 +239,7 @@ class Hybrid_Provider_Adapter {
throw new Exception("Call to undefined function Hybrid_Providers_{$this->id}::$name().");
}
$counter = count($arguments);
if ($counter == 1) {
return $this->adapter->$name($arguments[0]);
} elseif ($counter == 2) {
return $this->adapter->$name($arguments[0], $arguments[1]);
} else {
return $this->adapter->$name();
}
return call_user_func_array(array($this->adapter, $name), $arguments);
}
/**

View File

@@ -8,7 +8,7 @@
// ------------------------------------------------------------------------
// HybridAuth End Point
// ------------------------------------------------------------------------
require_once("../../class2.php");
require_once( "Hybrid/Auth.php" );
require_once( "Hybrid/Endpoint.php" );

View File

@@ -0,0 +1,13 @@
<?php
/**
* HybridAuth
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
* (c) 2009-2015, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
*/
// ------------------------------------------------------------------------
// HybridAuth End Point
// ------------------------------------------------------------------------
$_REQUEST['hauth_done'] = 'Live';
require_once( "Hybrid/Auth.php" );
require_once( "Hybrid/Endpoint.php" );
Hybrid_Endpoint::process();