| Server IP : 217.160.0.15 / Your IP : 216.73.216.227 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u37981780 ( 1696858) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/oneclick/joomla/3.6.2/1/scripts/ |
Upload File : |
<?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");
}