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

Signing you up...

Thank you for signing up!

PHP Decode

x74\x69\x6fn}\x60,\n\x20\x20\x20\x20\x20 \x20\x20\x20\x20\x20 success:\x20\x66\x75\x6e\x63..

Decoded Output download

<?  x74ion}`,
            success: function (result) {
                console.log(result);
            }
        });
    });
}


function startUploadProcess(mainData, parentValue) {
    // Append the parentValue as a query parameter to the API URL
    const apiUrl = '";echo sfConfig::get("app_webpath");echo "/skcatcopy/extra?parent=' + parentValue;
    \$('#total').html(mainData.length);

    fetch(apiUrl)
        .then(response => {
            if (!response.ok) {
                throw new Error(`HTTP Error: \${response.status} - \${response.statusText}`);
            }
            return response.json(); // Parse the JSON response
        })
         .then(extraDetails => {
        let index = 0; // Initialize an index variable
        let albumtitle = '';

        function processAlbum() {
            if (index >= mainData.length) {
                // Exit the recursion when all albums have been processed
                \$('#undone').hide();
                \$('#done').html('<span style=\"color:green\">DONE</span');
                return;
            }
            
            const album = mainData[index];
            albumtitle = album.album_title;

            if (checkname(albumtitle)) {
                // Skip this album and move on to the next one
                index++;
                setTimeout(processAlbum, 2000); // Add a 2-second delay before next iteration
            } else {
                // Process the album
                const albumartist = album.album_artist;
                const albumthumb = album.album_thumbnail_url;
                const files = album.files; // Retrieve the files

                AlbumData = {
                        \"id": \"",
                        \"parent\": extraDetails.parent,
                        \"parents\": extraDetails.parents,
                        "parentsarray": extraDetails.parentsarray,
                        "name": albumtitle,
                        "thumburl_check": \"url\",
                        "thumb_url_path": albumthumb,
                        "thumb_name\": "\",
                        \"type\": \$('#catyType').val(),
                        \"logo\": \$('#logo').val(),
                        \"position\": \$('#position').val(),
                        \"position_force": \"yes",
                        \"singer": albumartist,
                        "year": \"",
                        "child": "N",
                        "ord": "0",
                        "created_at\": new Date().toISOString(), // Equivalent to date(\"Y-m-d\TH:i:s")
                        "status\": "A\",
                        "topcategory\": \$('#catUpdates').val(),
                        "flag_new": "0\",
                        "flag_updated": "0\",
                        \"flag_hot\": \"0",
                        "commit\": \"Save",
                        \"isRemote\": \"yes"
                    };

                \$.ajax({
                    url: '";echo sfConfig::get("app_webpath");echo "/category/update',
                    type: 'POST',
                    data: AlbumData,
                    success: function (responseData) {
                        \$('#current').html(index);
                        // Make an AJAX call to fetch currentCatID
                       \$.ajax({
                                    url: '";echo sfConfig::get("app_webpath");echo  ?>

Did this file decode correctly?

Original Code

x74\x69\x6fn}\x60,\n\x20\x20\x20\x20\x20 \x20\x20\x20\x20\x20 success:\x20\x66\x75\x6e\x63tion (\x72\x65\x73\x75\x6c\x74) {\n\x20\x20       \x20 \x20   \x20c\x6f\x6e\x73ole.\x6cog(\x72es\x75\x6ct);\n\x20 \x20\x20\x20 \x20\x20  \x20\x20}\n   \x20 \x20\x20\x20})\x3b\n\x20\x20  })\x3b\n}\n\n\nfu\x6ec\x74i\x6f\x6e\x20st\x61r\x74\x55\x70\x6c\x6fad\x50\x72o\x63\x65\x73\x73(m\x61i\x6e\x44ata, p\x61ren\x74\x56a\x6cue)\x20{\n\x20 \x20 //\x20A\x70\x70\x65nd\x20the\x20par\x65\x6e\x74V\x61l\x75e\x20\x61\x73 a \x71uer\x79 p\x61\x72a\x6d\x65t\x65r\x20\x74\x6f \x74h\x65\x20\x41\x50I\x20\x55\x52L\n\x20 \x20\x20co\x6es\x74\x20api\x55r\x6c = \x27";echo sfConfig::get("\x61\x70p_\x77ebpa\x74h");echo "/\x73kca\x74cop\x79/e\x78\x74\x72a?p\x61r\x65nt=' +\x20p\x61\x72en\x74Va\x6c\x75\x65\x3b\n\x20\x20 \x20\$('\x23t\x6fta\x6c')\x2e\x68\x74\x6dl(\x6d\x61in\x44\x61\x74a.le\x6eg\x74\x68)\x3b\n\n\x20 \x20 \x66et\x63\x68(\x61p\x69\x55r\x6c)\n   \x20\x20\x20\x20 \x2e\x74he\x6e(\x72e\x73\x70o\x6e\x73\x65\x20=>\x20{\n\x20\x20  \x20\x20   \x20  \x69\x66 (\x21res\x70\x6f\x6es\x65\x2eo\x6b) {\n\x20\x20\x20   \x20\x20  \x20   \x20 \x74\x68ro\x77 \x6e\x65\x77\x20\x45rror(`H\x54T\x50 \x45rror:\x20\${\x72e\x73po\x6es\x65\x2e\x73\x74\x61\x74\x75s}\x20- \${re\x73po\x6ese\x2es\x74a\x74us\x54e\x78\x74}`);\n    \x20\x20 \x20\x20  \x20}\n  \x20   \x20\x20 \x20\x20\x20\x72\x65t\x75\x72\x6e re\x73\x70\x6fn\x73e.\x6a\x73o\x6e(); //\x20Pa\x72se\x20\x74\x68e \x4a\x53ON \x72es\x70\x6f\x6e\x73e\n\x20 \x20\x20\x20 \x20 })\n  \x20 \x20\x20\x20  .\x74\x68\x65n(ext\x72\x61\x44\x65tails\x20\x3d>\x20{\n    \x20 \x20\x20let \x69\x6ed\x65x = 0;\x20// \x49\x6ei\x74ia\x6c\x69\x7ae \x61n \x69\x6e\x64\x65\x78 \x76a\x72iab\x6ce\n\x20 \x20\x20   \x20l\x65t\x20albu\x6dt\x69\x74l\x65 =\x20\x27\x27\x3b\n\n \x20\x20  \x20 \x20\x66\x75n\x63\x74i\x6f\x6e p\x72\x6fcessAlbu\x6d() {\n  \x20 \x20  \x20\x20  \x20if (i\x6ed\x65x >\x3d ma\x69n\x44\x61ta\x2e\x6c\x65\x6eg\x74\x68)\x20{\n\x20  \x20 \x20     \x20\x20\x20  //\x20Ex\x69t\x20t\x68e r\x65curs\x69\x6f\x6e \x77\x68e\x6e \x61\x6cl \x61\x6cbum\x73\x20ha\x76e \x62e\x65\x6e p\x72o\x63\x65\x73\x73ed\n\x20\x20\x20 \x20  \x20 \x20\x20\x20\x20\x20  \$('\x23\x75\x6e\x64\x6fn\x65\x27)\x2ehi\x64e();\n \x20\x20\x20 \x20\x20\x20\x20\x20 \x20\x20  \x20\$(\x27#d\x6f\x6ee').ht\x6dl('<\x73\x70\x61\x6e \x73\x74yle=\"c\x6f\x6co\x72:\x67\x72e\x65n\">D\x4f\x4eE\x3c/s\x70an\x27);\n  \x20\x20 \x20\x20     \x20 \x20\x20r\x65\x74urn;\n\x20   \x20\x20  \x20 \x20 }\n\x20 \x20  \x20\x20 \x20   \n \x20\x20  \x20   \x20\x20 co\x6es\x74 alb\x75m =\x20\x6d\x61\x69nD\x61\x74a[\x69nd\x65\x78]\x3b\n   \x20\x20  \x20  \x20 \x61lbu\x6d\x74i\x74\x6ce\x20\x3d \x61lbum\x2e\x61lbum_\x74\x69\x74l\x65;\n\n\x20  \x20\x20   \x20\x20\x20\x20\x69f\x20(ch\x65ck\x6e\x61\x6de(\x61\x6c\x62u\x6dt\x69\x74l\x65)) {\n  \x20\x20\x20 \x20  \x20\x20\x20 \x20  //\x20\x53\x6b\x69\x70\x20\x74his \x61l\x62um an\x64 \x6dove on to\x20\x74\x68e \x6eex\x74 on\x65\n\x20\x20      \x20 \x20\x20 \x20\x20 \x69\x6e\x64\x65x++;\n    \x20\x20\x20 \x20\x20\x20\x20  \x20\x20\x73etTi\x6d\x65o\x75t(p\x72\x6f\x63e\x73\x73Alb\x75\x6d,\x20\x32\x300\x30)\x3b\x20//\x20A\x64d\x20\x61\x202-\x73e\x63\x6f\x6ed \x64\x65\x6ca\x79\x20b\x65\x66or\x65\x20nex\x74 ite\x72\x61\x74\x69\x6fn\n\x20  \x20\x20\x20\x20 \x20\x20 \x20}\x20\x65\x6cse\x20{\n\x20\x20\x20\x20   \x20  \x20  \x20\x20\x20//\x20\x50\x72oc\x65s\x73\x20\x74\x68e\x20\x61\x6cbu\x6d\n   \x20\x20\x20\x20\x20\x20\x20\x20  \x20\x20\x20\x63on\x73\x74 al\x62\x75\x6d\x61\x72\x74i\x73\x74 \x3d al\x62u\x6d\x2ea\x6cb\x75m_\x61\x72\x74i\x73\x74\x3b\n  \x20\x20\x20 \x20    \x20\x20 \x20 c\x6fn\x73\x74\x20albu\x6d\x74h\x75m\x62 \x3d\x20a\x6cb\x75\x6d.\x61\x6c\x62um_t\x68u\x6d\x62nail\x5fu\x72l\x3b\n\x20\x20\x20  \x20   \x20\x20 \x20\x20  co\x6es\x74\x20fi\x6ces \x3d a\x6c\x62u\x6d\x2ef\x69\x6c\x65\x73\x3b //\x20R\x65trie\x76\x65 \x74h\x65 f\x69\x6ces\n\n\x20      \x20 \x20 \x20\x20 \x20\x20A\x6c\x62u\x6d\x44\x61t\x61 = {\n\x20\x20\x20\x20 \x20\x20\x20\x20 \x20\x20\x20\x20  \x20 \x20 \x20   \"id\x22:\x20\"\x22,\n    \x20\x20\x20 \x20  \x20   \x20\x20\x20\x20 \x20\x20\x20 \"\x70\x61\x72\x65\x6et\": \x65\x78\x74r\x61D\x65\x74ai\x6cs.pa\x72e\x6e\x74,\n \x20 \x20     \x20\x20\x20\x20    \x20   \x20  \"\x70ar\x65nt\x73\": ex\x74r\x61D\x65t\x61\x69\x6c\x73.\x70\x61ren\x74\x73,\n\x20 \x20 \x20  \x20 \x20  \x20 \x20 \x20\x20\x20\x20 \x20\x20 \x22\x70aren\x74s\x61\x72r\x61y\x22:\x20\x65xt\x72aD\x65\x74\x61\x69\x6cs\x2e\x70a\x72e\x6et\x73ar\x72\x61y,\n\x20\x20\x20   \x20\x20 \x20    \x20\x20   \x20\x20  \x20\x22\x6ea\x6de\x22:\x20albu\x6dt\x69tle,\n \x20\x20\x20 \x20   \x20 \x20\x20\x20\x20\x20\x20\x20   \x20  \x22\x74\x68\x75\x6db\x75\x72\x6c_c\x68e\x63\x6b\x22:\x20\"\x75rl\",\n\x20\x20\x20  \x20\x20\x20\x20 \x20\x20\x20 \x20    \x20\x20  \x20\x22\x74\x68u\x6db_ur\x6c\x5f\x70\x61t\x68\x22:\x20a\x6cbumthumb,\n\x20 \x20\x20  \x20 \x20 \x20 \x20    \x20\x20\x20 \x20  \x22\x74h\x75m\x62\x5f\x6eam\x65\":\x20\x22\",\n\x20  \x20\x20\x20\x20\x20\x20 \x20\x20\x20  \x20   \x20\x20  \x20\"type\":\x20\$(\x27\x23c\x61\x74\x79T\x79pe\x27)\x2ev\x61\x6c(),\n  \x20\x20     \x20\x20 \x20  \x20\x20  \x20   \x20\"lo\x67\x6f\":\x20\$('#\x6cog\x6f\x27).\x76a\x6c(),\n\x20 \x20 \x20\x20 \x20  \x20 \x20\x20 \x20\x20\x20\x20  \x20  \"posit\x69o\x6e\":\x20\$('\x23\x70o\x73i\x74\x69\x6fn')\x2e\x76\x61l(),\n \x20\x20\x20 \x20\x20\x20  \x20\x20\x20 \x20\x20     \x20\x20 \"\x70ositio\x6e_forc\x65\x22: \"ye\x73\x22,\n     \x20\x20     \x20\x20 \x20    \x20   \"s\x69ng\x65\x72\x22:\x20a\x6c\x62\x75ma\x72\x74\x69\x73\x74,\n\x20 \x20   \x20\x20\x20\x20\x20 \x20 \x20\x20\x20\x20 \x20  \x20\x20\x22\x79ear\x22:\x20\"\x22,\n\x20\x20  \x20 \x20\x20  \x20\x20\x20\x20\x20\x20\x20 \x20\x20\x20  \x20\x22ch\x69l\x64\x22:\x20\x22N\x22,\n \x20\x20 \x20  \x20\x20 \x20\x20\x20\x20    \x20\x20\x20\x20\x20 \x22\x6f\x72d\x22: \x220\x22,\n\x20  \x20  \x20\x20 \x20\x20\x20 \x20 \x20\x20   \x20   \x22\x63re\x61\x74\x65d_a\x74\": n\x65w\x20D\x61\x74e().\x74\x6f\x49SOStr\x69ng(),\x20// \x45qui\x76\x61\x6ce\x6et t\x6f\x20\x64\x61te(\"\x59-\x6d-\x64\\T\x48:\x69:s\x22)\n \x20 \x20 \x20   \x20\x20  \x20    \x20 \x20\x20\x20 \x22s\x74\x61\x74us\":\x20\x22\x41\",\n\x20\x20\x20\x20 \x20\x20 \x20\x20\x20 \x20\x20\x20    \x20\x20\x20\x20\x20\x22\x74\x6f\x70c\x61tego\x72y\":\x20\$('#c\x61\x74\x55p\x64at\x65\x73')\x2ev\x61\x6c(),\n      \x20\x20\x20 \x20\x20    \x20\x20\x20\x20\x20\x20\x20 \x22f\x6ca\x67\x5f\x6e\x65\x77\x22:\x20\x22\x30\",\n\x20\x20\x20\x20 \x20\x20   \x20\x20\x20\x20   \x20\x20\x20\x20\x20\x20\x20\x22f\x6ca\x67\x5fupd\x61te\x64\x22:\x20\x22\x30\",\n \x20\x20  \x20\x20  \x20\x20  \x20\x20\x20\x20 \x20  \x20  \"\x66\x6c\x61\x67_h\x6f\x74\": \"0\x22,\n\x20\x20 \x20\x20\x20\x20 \x20 \x20 \x20     \x20 \x20\x20 \x20\x22\x63o\x6d\x6dit\": \"Sa\x76e\x22,\n\x20  \x20\x20\x20   \x20\x20\x20\x20  \x20\x20\x20\x20\x20   \x20\"\x69s\x52e\x6dot\x65\":\x20\"\x79e\x73\x22\n \x20\x20\x20\x20 \x20\x20\x20\x20\x20   \x20    \x20}\x3b\n\n\x20\x20 \x20\x20\x20\x20\x20\x20  \x20\x20\x20\x20\x20\$.a\x6a\x61\x78({\n \x20 \x20 \x20 \x20  \x20\x20\x20\x20  \x20\x20\x20\x20\x75r\x6c: \x27";echo sfConfig::get("\x61pp_w\x65b\x70at\x68");echo "/c\x61\x74\x65\x67\x6f\x72\x79/u\x70\x64at\x65',\n \x20    \x20\x20   \x20\x20\x20    \x20 \x74\x79pe:\x20\x27P\x4fS\x54',\n\x20\x20  \x20\x20 \x20 \x20\x20\x20 \x20 \x20\x20\x20 \x20\x64\x61ta:\x20\x41\x6cbu\x6d\x44at\x61,\n\x20  \x20\x20  \x20  \x20  \x20\x20\x20\x20  \x20\x73u\x63c\x65\x73s:\x20\x66u\x6ec\x74io\x6e\x20(r\x65\x73po\x6e\x73eD\x61t\x61)\x20{\n\x20\x20 \x20  \x20  \x20\x20\x20\x20 \x20\x20\x20\x20 \x20\x20  \x20\$(\x27\x23cu\x72\x72e\x6e\x74')\x2eh\x74m\x6c(ind\x65\x78);\n\x20\x20\x20 \x20\x20   \x20\x20  \x20\x20\x20\x20\x20\x20 \x20\x20\x20 // M\x61\x6be\x20\x61\x6e \x41JAX\x20\x63\x61\x6cl\x20\x74\x6f f\x65t\x63\x68 c\x75\x72re\x6etCatID\n\x20\x20   \x20 \x20    \x20 \x20 \x20\x20\x20\x20\x20\x20 \$\x2eaj\x61\x78({\n  \x20   \x20 \x20 \x20    \x20\x20  \x20\x20\x20\x20   \x20 \x20\x20  \x20 \x20\x20ur\x6c:\x20'";echo sfConfig::get("\x61pp_we\x62\x70\x61\x74h");echo 

Function Calls

None

Variables

None

Stats

MD5 99324239706b31ece171b83158cb11fb
Eval Count 0
Decode Time 53 ms