Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
var
/
www
/
ridazz
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
//var/www/ridazz/incidents.php
<?php // include standard files include_once('includes/static/configure.php'); include_once('includes/static/util.php'); include_once('includes/static/dbcon.php'); include_once('includes/static/gdimg.php'); include_once('includes/static/sessions.php'); include_once('includes/appTop.php'); function help_me($no, $str, $file, $line, $context) { //echo $str . ' ' . $file . ' ' . $line . ' '; } set_error_handler('help_me'); // if the user is not logged in, send to the incident map normally if (!isset($_SESSION['user_id']) or !$_SESSION['user_id']) { header('Location: http://ridazz.com/tools/incident/map'); exit; } //connect to the mr database to grab the user information #$db = mysql_connect('db424.perfora.net', 'dbo169653520', 'suUR9dBe'); #mysql_select_db('db169653520', $db); $sessionid = isNum($_SESSION['user_id'], 0); $result = $db->sql_query('SELECT username, email FROM 50mm_users WHERE user_id = $sessionid'); $data = $db->sql_fetchrow($result); // some sort of error, just send them to the map if (!count($data)) { header('Location: http://ridazz.com/tools/incident/map'); exit; } #mysql_free_result($result); #mysql_close($db); // encrypt the user's information $data = $data['username'] . '/' . $data['email'] . '/'; $iv = mcrypt_create_iv (mcrypt_get_block_size (MCRYPT_TripleDES, MCRYPT_MODE_CBC), MCRYPT_DEV_RANDOM); function mr_encrypt($string, $iv) { return base64_encode(mcrypt_cbc (MCRYPT_TripleDES, 'L745aj5dfMoDFUsjfl23xvqw', $string, MCRYPT_ENCRYPT, $iv)); } $encrypted_data = mr_encrypt($data, $iv); // forward the user to the incident tool with the encrypted information header('Location: http://ridazz.com/tools/incident/map?a=' . urlencode($encrypted_data) . '&b=' . urlencode(base64_encode($iv))); exit; ?>