Browse Source

removed basic script with unwanted info

Frederic G. Marand 17 years ago
parent
commit
7abca1b19a
1 changed files with 2 additions and 55 deletions
  1. 2 55
      u_ftp.php

+ 2 - 55
u_ftp.php

@@ -4,7 +4,7 @@
  * (c) 2006 Ouest Systèmes Informatiques (OSI)
  * Licensed under the CeCILL 2.0 license
  *
- * $Id: u_ftp.php,v 1.1 2006-12-03 23:20:08 marand Exp $
+ * $Id: u_ftp.php,v 1.2 2006-12-03 23:23:38 marand Exp $
  */
 
 require_once('u_fsm.php');
@@ -420,58 +420,5 @@ class ftp_client extends fsm
     return $ret;
     }
 
-/*put*/
+  /* missing: put*/
   }
-
-/**
- * test script
- */
-/*
-ob_end_flush();
-
-$ftp = new ftp_client();
-$ftp->set_host('osinet.typhon.org')
-    ->set_user('osinet')
-    ->set_pass('eev6ohbahX')
-    ->set_file('price.xml')
-    ->set_callback('progress');
-
-if ($ftp->is_event_allowed('connect'))
-  {
-  echo "Connecting...";
-  $ftp->connect();
-  }
-else
-  die('connect not allowed');
-
-if($ftp->is_event_allowed('login'))
-  {
-  echo "success\nLogging in...";
-  $ftp->login();
-  }
-else
-  die("failure\n");
-
-if ($ftp->is_event_allowed('get'))
-  {
-  echo "success\nsetting directory...";
-  $ftp->chdir('/osinet.fr/www/code');
-  }
-else
-  die("failure\n");
-
-if ($ftp->is_event_allowed('get'))
-  {
-  echo "success\nfetching";
-  $ftp->get();
-  }
-else
-  die("failure\n");
-
-do
-  {
-  $sts = $ftp->cont();
-  if ($sts == FTP_FAILED)
-    throw new Exception("main: continue failed\n");
-  } while ($sts == FTP_MOREDATA);
-*/