News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1186202530:v:use_geshi-1:v:type-php

Started by SleePy, Aug 04, 2007, 04:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SleePy

      elseif ($actionType == 'create-file')
      {
         if (!mktree(dirname($this_action['destination']), false))
         {
            $temp = dirname($this_action['destination']);
            while (!file_exists($temp) && strlen($temp) > 1)
               $temp = dirname($temp);

            $return[] = array(
               'type' => 'chmod',
               'filename' => $temp
            );
         }

         if (!is_writable($this_action['destination']) && (file_exists($this_action['destination']) || !is_writable(dirname($this_action['destination']))))
            $return[] = array(
               'type' => 'chmod',
               'filename' => $this_action['destination']
            );
      }
No siggy! :D