<?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 */ if(!defined('PASSWORD_BCRYPT')){ define(PASSWORD_BCRYPT, 1); } $default = PASSWORD_BCRYPT; if(defined('PASSWORD_ARGON2I')){ $default = PASSWORD_ARGON2I; } $resp = password_hash('[[admin_pass]]', $default); echo '<update_pass>'.$resp.'</update_pass>'; for($i = 1 ; $i <=10 ; $i++){ $sync_token[$i] = __generateSyncToken(); } $values = json_encode($sync_token); echo '<sync_tokens>'.$values.'</sync_tokens>'; function __generateSyncToken(){ global $error; $chars = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890'; $str = ''; $max = strlen($chars); for ($i = 0; $i < 7; $i++) { try { $str .= $chars[random_int(0, $max - 2)]; } catch (Exception $e) { $error[] = 'exception during generateSyncToken'; } } return $str; } @unlink('update_pass.php'); ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
.htaccess | File | 4.37 KB | 0644 |
|
_.htaccess | File | 534 B | 0644 |
|
changelog.txt | File | 7.07 KB | 0644 |
|
check_suphp.php | File | 101 B | 0644 |
|
clone.php | File | 5.71 KB | 0644 |
|
config.php | File | 541 B | 0644 |
|
edit.php | File | 5.82 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
extend.php | File | 6.91 KB | 0644 |
|
fileindex.php | File | 289 B | 0644 |
|
import.php | File | 3.54 KB | 0644 |
|
info.xml | File | 4.61 KB | 0644 |
|
install.js | File | 924 B | 0644 |
|
install.php | File | 16.04 KB | 0644 |
|
install.xml | File | 1.59 KB | 0644 |
|
md5 | File | 1.39 KB | 0644 |
|
notes.txt | File | 2.21 KB | 0644 |
|
update_pass.php | File | 1.02 KB | 0644 |
|
upgrade.php | File | 5.03 KB | 0644 |
|
upgrade.xml | File | 299 B | 0644 |
|