HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u103727277 (3416564)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /homepages/oneclick/joomla/3.5.1/2/scripts/pre-configure.php
<?php
if(count($argv) != 3)
{
    print "Usage: pre-configure.php uid gid\n";
    exit(1);
}

$uid = $argv[1];
$gid = $argv[2];

$my_web_dir = getenv("WEB___DIR");

while($my_web_dir[strlen($my_web_dir) - 1] == "/")
{
    $my_web_dir = substr($my_web_dir, 0, strlen($my_web_dir) - 1);
}

if(file_exists($my_web_dir."/configuration.php"))
{
    system("chown $uid:$gid ".$my_web_dir."/configuration.php");
}