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($_POST['ticket_id'])) {
$ticketId = $_POST['ticket_id'];
if (!isset($_SESSION['user_id'])) {
header("Location: ".($phpenable === 'true'?$login_url .'.php': $login_url));
exit;
}
$checkUserSql = "SELECT user_id FROM tickets WHERE id = ?";
$checkUserStmt = $conn->prepare($checkUserSql);
$checkUserStmt->bind_param("i",$ticketId);
$checkUserStmt->execute();
$checkUserStmt->bind_result($ticketUserId);
$checkUserStmt->fetch();
$checkUserStmt->close();
if ($ticketUserId != $_SESSION['user_id']) {
exit("Nicht berechtigt, das Ticket zu schlieen");
}
$updateSql = "UPDATE tickets SET status = 'geschlossen' WHERE id = ?";
$updateStmt = $conn->prepare($updateSql);
$updateStmt->bind_param("i",$ticketId);
if ($updateStmt->execute()) {
$_SESSION['error_message'] = "Das Ticket wurde erfolgreich geschlossen.";
header("Location: ".($phpenable === 'true'?$siteurl .$ticketview_url .'.php?ticket_id='.$ticketId : $siteurl .$ticketview_url .'?ticket_id='.$ticketId));
exit;
}else {
echo "Fehler beim Schlieen des Tickets";
}
$updateStmt->close();
}else {
echo "Ungltige Anfrage";
}
;

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=0x5f0;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NDhiKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxZjQpLCdsWUJ0Mm91T2RBZ1IwYzNTc3F4TVVuR2VoSS96YndDRWFtUER5K1Y3dkpaOTROS0hMVEYxajhrZjVwcldpNlFYPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>qtFj`KV[nnqR_\mSwkmJzuUvwu+NIxaJSD2f0DhT3tdL0tlJIu++gBw2he0aUf+1wunNdu+1wBYmhVw+zuo8IVnKRPYB/eqjIxYKweqrIxY+/Gp+dup+wGnFIxYGIeA1/G6KdxbJ3FqSM1lLM1lLM1l6bfqFefA+buTmhkUvA86Eqy+0qn6EAFLPAFdKA26SM1YS02iL0B5PAFd4A26SM1lL0tYS0BayMj6S0tlL0tYSgBqS02iL026S0tlvA2iL0tYS02iL0BLyMjiL02iL0tlLgxL7zo+BwtAHwU6ysGwx0u01UfcTC28nzyw+/2yHCVAfsjnmznY2CxNGcfIgGDyjMyNdMoqu0Gv5/kh8bOAe/MIqGtj7RBwYsyc2qUIOx2+gxjTcMy6sUnAMnonGn8mIGVoPhkq+IVwv/GJ9zu8KzfYTb7cjweIfCO+r0t2F01s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+w2+ygM4g/GhagBq8buqmwunMwu8jRMp+CunDweq+gByJdO4gAo6MqncMxU63GFw+b7AHb+6NIec1hGw+A8jaSxlPquo1doqJhkN+wBYfweAyIxY+bVIHzuwFIG+D/BY7IecD/uTHbfc+zP5P3LJvIGoyIedvdyTHhkoj/G6K3PlPRPaybumLIGpmhVT+dtj6Sxl7wOA8IxbXAOcJwun8bVLaRPqj/Gc9Ieqk/GnfefnFzBlKAFpL/OlXwu+D/knjek+ySxbKAOqJhkN+w2+ydtvaAOcJwun8bVLaRPqj/Gc9Ieqk/GnfefnFzBlKA16j/Gc9IeqE/Gs6AF5ywu+D/knjxGsJgM4gIemJwt4gEGn4bkUaCLJ+hkmHdBAuIGm4IedahVnJzxYMhkm4/Get7knKduq+bFYU/Gc9Ieq1dD4gEsvyweYyheq+UfqNwBjQhkTHbkUvgM4gEGn4bkUaCLJ+hkmHdBAnzVEtHuTj/Gw+d2oKI7AmIkUP3LJ6BD4=C{l~JM}ySJDdIxCP

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 1520
$OO00O00O0 session_start(); require '../db_connection.php'; if (isset(..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 87be4f9c91dff9475dac6db4a54bff3e
Eval Count 3
Decode Time 119 ms