THT Community (TCom)

Full Version: [Huge Project] Universal Mod Installer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Oh wow lol.

If you could actually do this i would be suprised
it is totally possible, just difficult.
Yes. But tbh, I added a few shell_exec commands so its not really appropriate. To create and to get the files, etc. Like:

PHP Code:
$cmds "";
$xml $umi->xmlParse("<file>""php");
for(
$i=0;$i<count($xml);$i++){
 
$cmds .= $xml[$i];
}
$umi->shell_exec_safe("cd ".$umi->tht_root_dir." && ".$cmds); 
I'm not sure how was the code (shell_exec_safe is used to execute shell commands safely, without the rm-rf * or these dangerous commands. But the UMI's API is not that vulnerable, its just a percaution)

So its possible, but difficult, and probably unsafe. Who knows, one day someone will write it up again Wink
i had a shell exec in one of the plugins I showed Jonny a while ago. I never did find out if he decided to use it.
Pages: 1 2
Reference URL's