Current time: 02-06-2012, 05:57 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Huge Project] Universal Mod Installer
05-20-2009, 04:50 PM
Post: #11
RE: [Huge Project] Universal Mod Installer
Oh wow lol.

If you could actually do this i would be suprised
Find all posts by this user
Quote this message in a reply
05-20-2009, 06:23 PM
Post: #12
RE: [Huge Project] Universal Mod Installer
it is totally possible, just difficult.

Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
05-25-2009, 12:50 PM
Post: #13
RE: [Huge Project] Universal Mod Installer
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

Jimmie Lin - Community Manager & THT.Next Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
05-26-2009, 11:55 AM
Post: #14
RE: [Huge Project] Universal Mod Installer
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.

Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)