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 /* __________________________________________________ | Obfuscated by YAK P..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  | 
    |              on 2023-10-07 08:40:00              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
 goto xaqou1bB6spOcoSu; EW_rJJWoJfh2bOTk: $hosting = new \GDPlayer\Hosting(); goto zNIUQYwOF4Og30V0; oMJRtYG9WN2L1qHz: $alternatives = filter_input(INPUT_POST, "altLinks", FILTER_SANITIZE_URL, FILTER_REQUIRE_ARRAY); goto glqPCLC0A003LTHw; zNIUQYwOF4Og30V0: $videos = new \GDPlayer\Model\Videos(); goto Yty2O5Z6QrccWqGh; Jo08MMy0zeRP5mn1: $subscene = new \GDPlayer\Subscene(); goto EW_rJJWoJfh2bOTk; so50TIOtIIYtylvP: coBWnjpunPWjdIaE: goto zEdaLb472LmIXh9U; lDL9rKOcdoSI9hAL: create_alert("danger", $videos->getLastError(), $_SERVER["REQUEST_URI"]); goto gJYobDQFWt7Yaprg; V8m1x2RE8QieRog1: echo $widget->renderForm("videos/new.html.twig", ["page_title" => get_env("title"), "admin_dir" => ADMIN_DIR]); goto vhb_uTyT3L4b7tEi; SXgOz3TxmjYPVzCk: $widget = new \GDPlayer\Widget(); goto Ga9wkeMBkCztZoq9; Vwg_NF7Qyf55dLpK: $id = $videos->insert($data); goto hz8Qk2RR2hdVbkSv; MoUDsvYTs1as5Kn5: $data["poster"] = ''; goto yaFQLE5qr1LTN1FB; N1C5qm3HlXtSVMUU: $slug = sanitize_html($_POST["slug"]); goto HSVgEDXNmGteS0kG; gK54Z5U3CtSmqg1M: foreach ($alternatives as $i => $url) { goto MeNrsS9TH10_doXR; HbsqMdPC35AwpFd1: session_write_close(); goto vHZir53YC5Td4kQ4; pc0yFyZedC_Z6XT2: if (!(!empty($host) && !empty($host_id))) { goto Rn8554DhOfrwcdQi; } goto HbsqMdPC35AwpFd1; k3wuWt1d7VkVeBQh: Rn8554DhOfrwcdQi: goto Fji3w0lLu5EQmJmJ; Z4y1O68QS6Wdjug4: $hosting->setURL($url); goto OV7XD3Kl5bF3iilC; MeNrsS9TH10_doXR: session_write_close(); goto Z4y1O68QS6Wdjug4; Fji3w0lLu5EQmJmJ: qUcOt2YaYtKL_eMn: goto p3v3smmDqJHWkh7N; vHZir53YC5Td4kQ4: $vAlt->insert(array("vid" => $id, "host" => $host, "host_id" => $host_id, "order" => $i)); goto k3wuWt1d7VkVeBQh; OV7XD3Kl5bF3iilC: $host = $hosting->getHost(); goto S57ySJiCDVRTWZ00; S57ySJiCDVRTWZ00: $host_id = $hosting->getID(); goto pc0yFyZedC_Z6XT2; p3v3smmDqJHWkh7N: } goto RRwQ4UgtXn0zFv2L; XD29tECxfSu4HDy7: d3l6f_T003tA5QqT: goto f8G2IiGzffR7IDKi; skjYhH_IOVRJ1q88: $helper = new \GDPlayer\Helper(); goto Jo08MMy0zeRP5mn1; RRwQ4UgtXn0zFv2L: AjRwyhRc0j5LxBTb: goto MSerUCJrAiG2stcL; TGacvjVLIYkW6s6C: $now = time(); goto szcAvDR16EHa6bOS; mQPIIWQ4f9HjNePC: hno8WVHGDUaVYl7J: goto yulwU9xyDEPvOmKH; vhb_uTyT3L4b7tEi: echo $widget->hostLinkExample(); goto zhdILqAfO9qDR2mo; vmrqWphNs6uZe9xS: kqVqM_1nO2N8lnwa: goto Vwg_NF7Qyf55dLpK; bh1e5PdiTth8XtXb: $subtitles = array_merge($videos->uploadSubtitles($_POST, $_FILES), $videos->uploadSubscene($_POST)); goto oMJRtYG9WN2L1qHz; hz8Qk2RR2hdVbkSv: if ($id) { goto hno8WVHGDUaVYl7J; } goto lNJ7gEW99NdRWBTh; HSVgEDXNmGteS0kG: $slug = create_slug($slug); goto SqLcDyY2rqmGVnv3; S0b49vLyzs7vnoDV: if (empty($alternatives)) { goto Mi35DS83yepsxtQh; } goto x6VCiGQcTy8fdaof; yaFQLE5qr1LTN1FB: $data = array_merge($data, $videos->saveData($_POST, $_FILES)); goto bh1e5PdiTth8XtXb; kFpBoq4DI_lM2TDL: create_alert("success", "The new video has been successfully added", strtr(rtrim($_SERVER["REQUEST_URI"], "/"), ["/new" => "/edit/?id=" . $id])); goto XkQWtiLwWLKqDmI0; bsEMIvrPTCBJsddD: $data["updated"] = $now; goto jnXw_o9eO1xJLBZr; JIojdkINEN4F7YIV: $data["added"] = $now; goto bsEMIvrPTCBJsddD; zEuKqs_lhRVnBzj3: $uid = sanitize_int($userLogin["id"]); goto TGacvjVLIYkW6s6C; Os9LS_CJCUD3l_AZ: $sub = new \GDPlayer\Model\Subtitles(); goto SXgOz3TxmjYPVzCk; ovJxLn94aiWYb3Zs: get_backend_header(); goto V8m1x2RE8QieRog1; kRw1fES8Xj9TCA06: if (empty($subtitles)) { goto xQvLpwEk6EKyygxh; } goto aDf2Y9W4DqPpIr60; XkQWtiLwWLKqDmI0: CckpI5oLxhCPAsgL: goto so50TIOtIIYtylvP; SqLcDyY2rqmGVnv3: $vShort->insert(array("vid" => $id, "key" => $slug)); goto S0b49vLyzs7vnoDV; NiYCJ3s11B2weA2W: foreach ($subtitles as $i => $dt) { goto Lw0udUrfCjW8FfSl; pnTUCDkauRi93DdV: if (empty($dt["file"])) { goto vvR0BByMs1vthLUz; } goto QNSY4SWbMI_UMTgN; p3dBzfK6VPOXOakN: $sub->insert(array("vid" => $id, "language" => $dt["label"], "link" => $dt["file"], "added" => $now, "updated" => $now, "uid" => $uid, "order" => $i)); goto PtgThdtJtRuUslBH; Lw0udUrfCjW8FfSl: session_write_close(); goto pnTUCDkauRi93DdV; QNSY4SWbMI_UMTgN: session_write_close(); goto p3dBzfK6VPOXOakN; PtgThdtJtRuUslBH: vvR0BByMs1vthLUz: goto Rpavw_6Psoe3zDk8; Rpavw_6Psoe3zDk8: qpTPMqYeGoCDMwpB: goto UGp5qPOHsKEON5MS; UGp5qPOHsKEON5MS: } goto XD29tECxfSu4HDy7; gJYobDQFWt7Yaprg: goto CckpI5oLxhCPAsgL; goto mQPIIWQ4f9HjNePC; xaqou1bB6spOcoSu: session_write_close(); goto yLRNFvLy70MKQrrv; f8G2IiGzffR7IDKi: xQvLpwEk6EKyygxh: goto kFpBoq4DI_lM2TDL; yLRNFvLy70MKQrrv: include_once BASE_DIR . "includes/isUser.php"; goto skjYhH_IOVRJ1q88; yulwU9xyDEPvOmKH: session_write_close(); goto N1C5qm3HlXtSVMUU; glqPCLC0A003LTHw: if (!is_array($alternatives)) { goto kqVqM_1nO2N8lnwa; } goto yAl3P6OrojV8hMDh; Yty2O5Z6QrccWqGh: $vAlt = new \GDPlayer\Model\VideosAlternatives(); goto d6ybQ2hKMSvGADSA; lNJ7gEW99NdRWBTh: session_write_close(); goto lDL9rKOcdoSI9hAL; zEdaLb472LmIXh9U: set_env("title", "New Video"); goto ovJxLn94aiWYb3Zs; vHMvn2cJ_QuHp7GK: $alternatives = array_values(array_filter($alternatives)); goto vmrqWphNs6uZe9xS; jnXw_o9eO1xJLBZr: $data["uid"] = $uid; goto MoUDsvYTs1as5Kn5; d6ybQ2hKMSvGADSA: $vShort = new \GDPlayer\Model\VideoShort(); goto Os9LS_CJCUD3l_AZ; x6VCiGQcTy8fdaof: session_write_close(); goto gK54Z5U3CtSmqg1M; aDf2Y9W4DqPpIr60: session_write_close(); goto NiYCJ3s11B2weA2W; Ga9wkeMBkCztZoq9: if (empty($_POST)) { goto coBWnjpunPWjdIaE; } goto SL13rjiAgZ7qlS4J; SL13rjiAgZ7qlS4J: session_write_close(); goto zEuKqs_lhRVnBzj3; szcAvDR16EHa6bOS: $data = []; goto JIojdkINEN4F7YIV; MSerUCJrAiG2stcL: Mi35DS83yepsxtQh: goto kRw1fES8Xj9TCA06; yAl3P6OrojV8hMDh: session_write_close(); goto vHMvn2cJ_QuHp7GK; zhdILqAfO9qDR2mo: get_backend_footer(); 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.14  |
    |              on 2023-10-07 08:40:00              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
 goto xaqou1bB6spOcoSu; EW_rJJWoJfh2bOTk: $hosting = new \GDPlayer\Hosting(); goto zNIUQYwOF4Og30V0; oMJRtYG9WN2L1qHz: $alternatives = filter_input(INPUT_POST, "\x61\154\x74\114\x69\156\153\163", FILTER_SANITIZE_URL, FILTER_REQUIRE_ARRAY); goto glqPCLC0A003LTHw; zNIUQYwOF4Og30V0: $videos = new \GDPlayer\Model\Videos(); goto Yty2O5Z6QrccWqGh; Jo08MMy0zeRP5mn1: $subscene = new \GDPlayer\Subscene(); goto EW_rJJWoJfh2bOTk; so50TIOtIIYtylvP: coBWnjpunPWjdIaE: goto zEdaLb472LmIXh9U; lDL9rKOcdoSI9hAL: create_alert("\144\x61\156\147\145\162", $videos->getLastError(), $_SERVER["\x52\x45\x51\x55\105\x53\124\137\x55\122\x49"]); goto gJYobDQFWt7Yaprg; V8m1x2RE8QieRog1: echo $widget->renderForm("\x76\x69\x64\145\x6f\163\x2f\x6e\145\x77\x2e\x68\164\155\x6c\56\x74\167\x69\147", ["\160\141\147\145\137\164\x69\x74\x6c\145" => get_env("\x74\x69\164\x6c\145"), "\141\x64\x6d\151\x6e\x5f\x64\151\x72" => ADMIN_DIR]); goto vhb_uTyT3L4b7tEi; SXgOz3TxmjYPVzCk: $widget = new \GDPlayer\Widget(); goto Ga9wkeMBkCztZoq9; Vwg_NF7Qyf55dLpK: $id = $videos->insert($data); goto hz8Qk2RR2hdVbkSv; MoUDsvYTs1as5Kn5: $data["\x70\157\163\x74\145\x72"] = ''; goto yaFQLE5qr1LTN1FB; N1C5qm3HlXtSVMUU: $slug = sanitize_html($_POST["\x73\154\165\147"]); goto HSVgEDXNmGteS0kG; gK54Z5U3CtSmqg1M: foreach ($alternatives as $i => $url) { goto MeNrsS9TH10_doXR; HbsqMdPC35AwpFd1: session_write_close(); goto vHZir53YC5Td4kQ4; pc0yFyZedC_Z6XT2: if (!(!empty($host) && !empty($host_id))) { goto Rn8554DhOfrwcdQi; } goto HbsqMdPC35AwpFd1; k3wuWt1d7VkVeBQh: Rn8554DhOfrwcdQi: goto Fji3w0lLu5EQmJmJ; Z4y1O68QS6Wdjug4: $hosting->setURL($url); goto OV7XD3Kl5bF3iilC; MeNrsS9TH10_doXR: session_write_close(); goto Z4y1O68QS6Wdjug4; Fji3w0lLu5EQmJmJ: qUcOt2YaYtKL_eMn: goto p3v3smmDqJHWkh7N; vHZir53YC5Td4kQ4: $vAlt->insert(array("\166\x69\x64" => $id, "\x68\x6f\163\x74" => $host, "\x68\157\x73\164\137\151\x64" => $host_id, "\x6f\162\x64\145\x72" => $i)); goto k3wuWt1d7VkVeBQh; OV7XD3Kl5bF3iilC: $host = $hosting->getHost(); goto S57ySJiCDVRTWZ00; S57ySJiCDVRTWZ00: $host_id = $hosting->getID(); goto pc0yFyZedC_Z6XT2; p3v3smmDqJHWkh7N: } goto RRwQ4UgtXn0zFv2L; XD29tECxfSu4HDy7: d3l6f_T003tA5QqT: goto f8G2IiGzffR7IDKi; skjYhH_IOVRJ1q88: $helper = new \GDPlayer\Helper(); goto Jo08MMy0zeRP5mn1; RRwQ4UgtXn0zFv2L: AjRwyhRc0j5LxBTb: goto MSerUCJrAiG2stcL; TGacvjVLIYkW6s6C: $now = time(); goto szcAvDR16EHa6bOS; mQPIIWQ4f9HjNePC: hno8WVHGDUaVYl7J: goto yulwU9xyDEPvOmKH; vhb_uTyT3L4b7tEi: echo $widget->hostLinkExample(); goto zhdILqAfO9qDR2mo; vmrqWphNs6uZe9xS: kqVqM_1nO2N8lnwa: goto Vwg_NF7Qyf55dLpK; bh1e5PdiTth8XtXb: $subtitles = array_merge($videos->uploadSubtitles($_POST, $_FILES), $videos->uploadSubscene($_POST)); goto oMJRtYG9WN2L1qHz; hz8Qk2RR2hdVbkSv: if ($id) { goto hno8WVHGDUaVYl7J; } goto lNJ7gEW99NdRWBTh; HSVgEDXNmGteS0kG: $slug = create_slug($slug); goto SqLcDyY2rqmGVnv3; S0b49vLyzs7vnoDV: if (empty($alternatives)) { goto Mi35DS83yepsxtQh; } goto x6VCiGQcTy8fdaof; yaFQLE5qr1LTN1FB: $data = array_merge($data, $videos->saveData($_POST, $_FILES)); goto bh1e5PdiTth8XtXb; kFpBoq4DI_lM2TDL: create_alert("\x73\x75\x63\143\x65\x73\x73", "\x54\150\145\x20\x6e\145\167\40\166\x69\x64\x65\x6f\40\x68\141\163\x20\x62\145\x65\x6e\x20\163\165\x63\143\x65\x73\163\x66\165\x6c\154\171\x20\141\x64\x64\145\x64", strtr(rtrim($_SERVER["\122\x45\121\125\105\123\x54\137\125\122\111"], "\x2f"), ["\57\x6e\x65\x77" => "\57\145\x64\x69\164\x2f\x3f\151\x64\75" . $id])); goto XkQWtiLwWLKqDmI0; bsEMIvrPTCBJsddD: $data["\165\x70\x64\141\x74\145\x64"] = $now; goto jnXw_o9eO1xJLBZr; JIojdkINEN4F7YIV: $data["\x61\x64\144\145\144"] = $now; goto bsEMIvrPTCBJsddD; zEuKqs_lhRVnBzj3: $uid = sanitize_int($userLogin["\151\x64"]); goto TGacvjVLIYkW6s6C; Os9LS_CJCUD3l_AZ: $sub = new \GDPlayer\Model\Subtitles(); goto SXgOz3TxmjYPVzCk; ovJxLn94aiWYb3Zs: get_backend_header(); goto V8m1x2RE8QieRog1; kRw1fES8Xj9TCA06: if (empty($subtitles)) { goto xQvLpwEk6EKyygxh; } goto aDf2Y9W4DqPpIr60; XkQWtiLwWLKqDmI0: CckpI5oLxhCPAsgL: goto so50TIOtIIYtylvP; SqLcDyY2rqmGVnv3: $vShort->insert(array("\x76\151\x64" => $id, "\153\145\x79" => $slug)); goto S0b49vLyzs7vnoDV; NiYCJ3s11B2weA2W: foreach ($subtitles as $i => $dt) { goto Lw0udUrfCjW8FfSl; pnTUCDkauRi93DdV: if (empty($dt["\146\x69\154\x65"])) { goto vvR0BByMs1vthLUz; } goto QNSY4SWbMI_UMTgN; p3dBzfK6VPOXOakN: $sub->insert(array("\166\151\144" => $id, "\x6c\x61\x6e\x67\x75\x61\x67\145" => $dt["\154\x61\x62\145\154"], "\x6c\151\156\153" => $dt["\x66\151\x6c\x65"], "\x61\x64\x64\145\144" => $now, "\165\160\x64\141\x74\145\x64" => $now, "\165\151\144" => $uid, "\x6f\x72\144\x65\162" => $i)); goto PtgThdtJtRuUslBH; Lw0udUrfCjW8FfSl: session_write_close(); goto pnTUCDkauRi93DdV; QNSY4SWbMI_UMTgN: session_write_close(); goto p3dBzfK6VPOXOakN; PtgThdtJtRuUslBH: vvR0BByMs1vthLUz: goto Rpavw_6Psoe3zDk8; Rpavw_6Psoe3zDk8: qpTPMqYeGoCDMwpB: goto UGp5qPOHsKEON5MS; UGp5qPOHsKEON5MS: } goto XD29tECxfSu4HDy7; gJYobDQFWt7Yaprg: goto CckpI5oLxhCPAsgL; goto mQPIIWQ4f9HjNePC; xaqou1bB6spOcoSu: session_write_close(); goto yLRNFvLy70MKQrrv; f8G2IiGzffR7IDKi: xQvLpwEk6EKyygxh: goto kFpBoq4DI_lM2TDL; yLRNFvLy70MKQrrv: include_once BASE_DIR . "\151\156\143\x6c\165\144\x65\163\x2f\x69\x73\x55\163\145\162\x2e\160\x68\160"; goto skjYhH_IOVRJ1q88; yulwU9xyDEPvOmKH: session_write_close(); goto N1C5qm3HlXtSVMUU; glqPCLC0A003LTHw: if (!is_array($alternatives)) { goto kqVqM_1nO2N8lnwa; } goto yAl3P6OrojV8hMDh; Yty2O5Z6QrccWqGh: $vAlt = new \GDPlayer\Model\VideosAlternatives(); goto d6ybQ2hKMSvGADSA; lNJ7gEW99NdRWBTh: session_write_close(); goto lDL9rKOcdoSI9hAL; zEdaLb472LmIXh9U: set_env("\164\x69\x74\x6c\x65", "\x4e\145\x77\x20\x56\151\144\145\157"); goto ovJxLn94aiWYb3Zs; vHMvn2cJ_QuHp7GK: $alternatives = array_values(array_filter($alternatives)); goto vmrqWphNs6uZe9xS; jnXw_o9eO1xJLBZr: $data["\x75\151\144"] = $uid; goto MoUDsvYTs1as5Kn5; d6ybQ2hKMSvGADSA: $vShort = new \GDPlayer\Model\VideoShort(); goto Os9LS_CJCUD3l_AZ; x6VCiGQcTy8fdaof: session_write_close(); goto gK54Z5U3CtSmqg1M; aDf2Y9W4DqPpIr60: session_write_close(); goto NiYCJ3s11B2weA2W; Ga9wkeMBkCztZoq9: if (empty($_POST)) { goto coBWnjpunPWjdIaE; } goto SL13rjiAgZ7qlS4J; SL13rjiAgZ7qlS4J: session_write_close(); goto zEuKqs_lhRVnBzj3; szcAvDR16EHa6bOS: $data = []; goto JIojdkINEN4F7YIV; MSerUCJrAiG2stcL: Mi35DS83yepsxtQh: goto kRw1fES8Xj9TCA06; yAl3P6OrojV8hMDh: session_write_close(); goto vHMvn2cJ_QuHp7GK; zhdILqAfO9qDR2mo: get_backend_footer();

Function Calls

None

Variables

None

Stats

MD5 807cd1b8e99a0fde9b62a849b4fc298d
Eval Count 0
Decode Time 59 ms