Beispiel #1
0
<?php

require 'mail/PHPMailerAutoload.php';
require 'config.php';
require 'users.php';
require 'token.php';
require 'class.php';
session_name($_CONFIG["session_name"]);
session_start();
$lang = filter_input(INPUT_POST, 'thislang', FILTER_SANITIZE_STRING);
require 'translations/' . $lang . '.php';
$setUp = new SetUp();
$utils = new Utils();
$updater = new Updater();
$resetter = new Resetter();
$encodeExplorer = new EncodeExplorer();
$dest = filter_input(INPUT_POST, "user_email", FILTER_VALIDATE_EMAIL);
$pulito = filter_input(INPUT_POST, 'cleanurl', FILTER_SANITIZE_STRING);
$postcaptcha = filter_input(INPUT_POST, "captcha", FILTER_SANITIZE_STRING);
global $_USERS;
global $_TOKENS;
if (!$dest || $setUp->getConfig("show_captcha_reset") == true && !$postcaptcha) {
    print "<div class=\"alert alert-warning\">" . $encodeExplorer->getString("fill_all_fields") . "</div>";
    exit;
}
if (Utils::checkCaptchaReset($postcaptcha) !== true) {
    print "<div class=\"alert alert-danger\">" . $encodeExplorer->getString("wrong_captcha") . "</div>";
    exit;
}
if (!$updater->findEmail($dest)) {
    print "<div class=\"alert alert-danger\">" . $encodeExplorer->getString("email_not_exist") . "</div>";
Beispiel #2
0
global $_TRANSLATIONS;
$gateKeeper = new GateKeeper();
$gateKeeper->init();
$setUp = new SetUp();
$location = new Location();
$location->init();
$downloader = new Downloader();
$updater = new Updater();
$updater->init();
$template = new Template();
$timeconfig = $setUp->getConfig('default_timezone');
$timezone = strlen($timeconfig) > 0 ? $timeconfig : "UTC";
date_default_timezone_set($timezone);
require_once 'doc-admin/token.php';
global $_TOKENS;
$resetter = new Resetter();
$resetter->init();
if ($gateKeeper->isAccessAllowed()) {
    $fileManager = new FileManager();
    $fileManager->run($location);
    $encodeExplorer->run($location);
}
unset($_SESSION['upcoda']);
$_SESSION['upcoda'] = array();
unset($_SESSION['uplist']);
$_SESSION['uplist'] = array();
if (!isset($_GET['response'])) {
    if (isset($_ERROR) && strlen($_ERROR) > 0) {
        $_SESSION['error'] = $_ERROR;
    }
    if (isset($_SUCCESS) && strlen($_SUCCESS) > 0) {