Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$O..

Decoded Output download


session_start();
require '../../db_connection.php';
if (!isset($_SESSION['user_id'])) {
header("Location: ".($phpenable === 'true'?$siteurl .$login_url .'.php': $siteurl .$login_url));
exit;
}
$sql = "SELECT * FROM benutzer WHERE id = ".$_SESSION['user_id'] ." AND admin = 1";
$result = $conn->query($sql);
$user = $result->fetch_assoc();
if (!$user) {
header("Location: $login_url");
exit;
}
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$ticketId = $_POST['ticket_id'];
$replyMessage = $_POST['reply_message'];
$teamReply = 1;
if (empty($ticketId) ||empty($replyMessage)) {
header("Location: ".($phpenable === 'true'?$admin_directory .$tickets_url_admin .'.php': $admin_directory .$tickets_url_admin));
exit;
}
$userId = $_SESSION['user_id'];
$sql = "INSERT INTO ticket_replies (ticket_id, user_id, message, team_reply) VALUES (?, ?, ?, ?)";
$stmt = $conn->prepare($sql);
$stmt->bind_param("iisi",$ticketId,$userId,$replyMessage,$teamReply);
$stmt->execute();
if ($stmt->affected_rows >0) {
$updateStatusSql = "UPDATE tickets SET status = 'bearbeitung' WHERE id = ?";
$updateStatusStmt = $conn->prepare($updateStatusSql);
$updateStatusStmt->bind_param("i",$ticketId);
$updateStatusStmt->execute();
$_SESSION['success_message'] = "Deine Antwort wurde nun gesendet.";
header("Location: ".($phpenable === 'true'?$siteurl .$admin_directory .$tickets_url_admin .'.php?ticket_id='.$ticketId : $siteurl .$admin_directory .$tickets_url_admin .'?ticket_id='.$ticketId));
}else {
header("Location: ".($phpenable === 'true'?$siteurl .$admin_directory .$tickets_url_admin .'.php': $siteurl .$admin_directory .$tickets_url_admin));
}
$stmt->close();
$updateStatusStmt->close();
$conn->close();
}else {
header("Location: ../ticket.php");
exit;
}
;

Did this file decode correctly?

Original Code

<?php /*  */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x90c;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NDhjKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxZjQpLCdsWUJ0Mm91T2RBZ1IwYzNTc3F4TVVuR2VoSS96YndDRWFtUER5K1Y3dkpaOTROS0hMVEYxajhrZjVwcldpNlFYPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>oTHu@ZG~TVpo~Z[O~|wkmJzuUvwu+NIxaJSD2f0DhT3tdL0tlJIu++gBw2he0aUf+1wunNdu+1wBYmhVw+zuo8IVnKRPYB/eqjIxYKweqrIxY+/Gp+dup+wGnFIxYGIeA1/G6KdxbJ3FqSM1l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Fzo6mIu8JzPlKAFpL/OlXwu+D/knjek+ySxbKAOqJhkN+w2+ydtvaAOcJwun8bVLaRPqmIu8Jz+6y/eA+hfqHb7yaRPqj/Gc9Ieq1efnFzo6mIu8JzPlKA16j/Gc9IeqE/Gs6AF5ywu+D/knjxGsJgM4gEGn4bkUaCLJvIGoyIedvdyTHhkoj/G6K3PlPRPaybumLIGpmhVT+dtj6Sxl7wOA8IxbXAOcJwun8bVLaRPqmIu8Jz+6y/eA+hfqHb7yaRPqj/Gc9Ieq1efnFzo6mIu8JzPlKAFpL/Ol73Plybk+jIenFzBlKAuoyzG+KekqJbVnDwu6FCxlKAOqJhkN+wOcEweA4ekoyzG+KgxyWB7jgAOcjzesNSVc4zfc+gByWBPq8buqmwunMwuojwecMwu8jRMpDzu61IxaJ3Lvyhk6KzPjQhkTHbkUvgM4gEGn4bkUaCLJvIGoyIedvdyTHhkoj/G6K3PlKRP6j/Gc9IesKbumLdPyWBVn5/esWB7jg3L==SJ]k]gYCvzB^][

Function Calls

time 2
fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O000O0O fgetc
$O0O00OO00 fread
$OO00O0000 2316
$OO00O00O0 session_start(); require '../../db_connection.php'; if (!is..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 f36e74b9bfac296f01af8ccff6db8f46
Eval Count 3
Decode Time 128 ms