Prune.php
[Pman.Core] / Prune.php
index 63d5a86..2fc3587 100644 (file)
--- a/Prune.php
+++ b/Prune.php
@@ -25,19 +25,21 @@ class Pman_Core_Prune extends Pman
     var $cli = false;
     
     function getAuth() {
+        
+         
         $ff = HTML_FlexyFramework::get();
         if (!empty($ff->cli)) {
             $this->cli = true;
             return true;
         }
-//        return true;// for test only
+        
+ //        return true;// for test only
         return false;
     }
     
     function get($m="", $opts=array())
     {
-        echo "start?";
-        // prune irrelivant stuff..
+         // prune irrelivant stuff..
        
         
         
@@ -85,8 +87,8 @@ class Pman_Core_Prune extends Pman
         $f->having("mm > 2");
         $f->orderBy('mm desc') ;
         $f->limit(10000);
-        exit;
-        $ar = $f->fetchAll();
+                $ar = $f->fetchAll();
+
         foreach($ar as $f) {
             $q = DB_DataObject::Factory('Events');
             $q->query("DELETE FROM Events where