Ejemplo n.º 1
0
function decrypt($string)
{
    $decoded = base64_decode($string);
    $broken = str_split($decoded, 21);
    $string_to_decrypt = $broken[1];
    $decrypt = $string_to_decrypt[9];
    $crypt = '';
    switch ($decrypt) {
        case "1":
            $crypt = decrypt1($string_to_decrypt);
            break;
        case "2":
            $crypt = decrypt2($string_to_decrypt);
            break;
        case "3":
            $crypt = decrypt3($string_to_decrypt);
            break;
        case "4":
            $crypt = decrypt4($string_to_decrypt);
            break;
        case "5":
            $crypt = decrypt5($string_to_decrypt);
            break;
    }
    return $crypt;
}
Ejemplo n.º 2
0
<?php

require_once 'functions.php';
$email = decrypt2($_GET['enc']);
$arr = explode(" ", $email);
$email = $arr[0];
$time = intval($arr[1]);
$sql = "select * from member where email='" . mysql_real_escape_string($email) . "';";
$res = mysql_fetch_array(mysql_query($sql));
if (empty($res) || time() - $time > 1800) {
    echo 'Link has expired, please request a reset again.';
} else {
    echo 'Resetting password for ' . $email . '<br />';
    ?>
		<form method="POST" name="reset" action="doResetPassword.php">
			<input type="hidden" name='email' value="<?php 
    echo $email;
    ?>
" />
			Enter new password: <input type="password" name="p1" /> <br />
			Reenter new password: <input type="password" name="p2" /> <br />
			<input type="submit" value="Reset Password" />
		</form>
<?php 
}
Ejemplo n.º 3
0
if (isset($_GET['type']) && $type == "") {
    die("");
}
if (!isset($_GET['id'])) {
    die("");
}
$id = isset($_GET['id']) ? safe($_GET['id']) : '';
if (isset($_GET['id']) && $id == "") {
    die("");
}
/*function tty($title){
		$content = $title;
		preg_match('/tt[0-9]{7}/',$content,$matches);
		return $matches[0];
	}*/
$id = decrypt2($id);
//echo $id;
//print($id);
if (!is_valid_id($id)) {
    die('not valid id');
}
if ($type == '' || $id == '') {
    die('');
}
$types = array('nfo', 'sfv', 'm3u', 'jpg', 'diz', 'msg');
if (!in_array($type, $types)) {
    die('err1');
}
$whichdb = array('nfo' => 'nfo', 'sfv' => 'sfv', 'm3u' => 'm3u', 'jpg' => 'jpg', 'diz' => 'diz', 'msg' => 'ftp_message');
$t = $whichdb[$type];
$tt = 'rel_' . $t;