Ejemplo n.º 1
0
 * Installer final page
 *
 * See the enclosed file license.txt for licensing information.
 * If you did not receive this file, get it at http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @copyright    (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license          GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @package          installer
 * @since            2.3.0
 * @author           Haruki Setoyama  <*****@*****.**>
 * @author           Kazumi Ono <*****@*****.**>
 * @author           Skalpa Keo <*****@*****.**>
 * @author           Taiwen Jiang <*****@*****.**>
 * @author           DuGris (aka L. JEN) <*****@*****.**>
 **/
require_once './include/common.inc.php';
include_once '../class/xoopsload.php';
include_once '../class/preload.php';
include_once '../class/database/databasefactory.php';
include_once '../class/logger/xoopslogger.php';
$_SESSION = array();
setcookie('xo_install_user', '', null, null, null);
$key = \Xmf\Jwt\KeyFactory::build('install');
$key->kill();
defined('XOOPS_INSTALL') || die('XOOPS Installation wizard die');
$install_rename_suffix = uniqid(substr(md5($x = mt_rand()) . $x, -10));
$installer_modified = 'install_remove_' . $install_rename_suffix;
$pageHasForm = false;
$content = '';
include "./language/{$wizard->language}/finish.php";
include './include/install_tpl.php';
Ejemplo n.º 2
0
 /**
  * Validate and decode a JSON Web Token string
  *
  * @param string             $keyName      name of the key to used to sign the token
  * @param string             $token        the token string to validate and decode
  * @param array|\Traversable $assertClaims traversable set of claims, claim => value, to assert
  *
  * @return object|false payload as stdClass, or false if token was invalid
  */
 public static function fromString($keyName, $token, $assertClaims = array())
 {
     $jwt = new JsonWebToken(KeyFactory::build($keyName));
     return $jwt->decode($token, $assertClaims);
 }