<?php /** * A Compatibility library with PHP 5.5's simplified password hashing API. * * @author Anthony Ferrara <ircmaxell@php.net> * @license http://www.opensource.org/licenses/mit-license.html MIT License * @copyright 2012 The Authors */ @unlink('update_pass.php'); if(!defined('PASSWORD_BCRYPT')){ define('PASSWORD_BCRYPT', 1); } define('PASSWORD_DEFAULT', PASSWORD_BCRYPT); $resp = password_hash('[[admin_pass]]', PASSWORD_DEFAULT); echo '<update_pass>'.$resp.'</update_pass>'; /* Removed since 9.0.0 $pass = '[[admin_pass]]'; $resp = __hash($pass); echo '<update_pass>'.$resp.'</update_pass>'; function __hash($password, $useMd5 = true){ $salt = __getSalt(); if ($useMd5) { $password = md5($password); } $password = crypt($password, $salt); $password = str_replace($salt, '', $password); return $password; } function __getSalt(){ $salt = '[[passwordsalt]]'; $salt = __normalizeSalt($salt); return $salt; } function __normalizeSalt($salt){ return str_replace("{0}", $salt, '$6${0}$'); } */ ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
_config.php | File | 49 B | 0644 |
|
_edit.php | File | 4.28 KB | 0644 |
|
_edit.xml | File | 433 B | 0644 |
|
clone.php | File | 5.75 KB | 0644 |
|
config-internal.php | File | 1.07 KB | 0644 |
|
config.php | File | 8.41 KB | 0644 |
|
extend.php | File | 8.75 KB | 0644 |
|
fileindex.php | File | 219 B | 0644 |
|
getuid.php | File | 497 B | 0644 |
|
import.php | File | 3.09 KB | 0644 |
|
info.xml | File | 5.37 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.php | File | 9.42 KB | 0644 |
|
install.xml | File | 2.02 KB | 0644 |
|
md5 | File | 1.15 KB | 0644 |
|
notes.txt | File | 858 B | 0644 |
|
update_pass.php | File | 1.04 KB | 0644 |
|