Exemple #1
0
 public function __contruct($dlpath)
 {
     $this->ftp_folders = array('/home3/myminipi/ftppinoy', '/home3/myminipi/ftppinas', '/home3/myminipi/ftppanot');
     if (!empty($dlpath) && folder_exists($dlpath)) {
         $this->dlpath = $dlpath;
     } else {
         $this->dlpath = dirname(__FILE__) . '/download';
     }
 }
Exemple #2
0
 function include_all($folder)
 {
     if (folder_exists($folder)) {
         $includes = scandir($folder);
         foreach ($includes as $include) {
             if (contains($include, ".php")) {
                 include_once $folder . $include;
             }
         }
     }
 }