View Single Post
  #76  
Old 6th February 2006, 22:40
danf.1979 danf.1979 is offline
Senior Member
 
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979
Default

Ok, I'm using this now:
Code:
    function _do_delete() {

	$httpd_root = "/var/www"; # This will be taken from isp_server

	if(stristr($this->path_to_delete, $httpd_root."/web".$this->web_id) == TRUE AND stristr($this->path_to_delete, "..") == FALSE){
			if ( is_array($this->do_delete) ) {    
				foreach ($this->do_delete as $value) {
					print "rm -rf ".$this->path_to_delete."/".$value."<br>";			
					//system("rm -rf ".$this->path_to_delete."/".$value);
        				}
				}
			}
	else {
		echo 'Access denied.';
		}
	}
I dont know what do you mean by this Till: ...and is escaped by escapeshellcmd.
Thanks both.
Reply With Quote