<?php
    
require_once("../config.php");
    
$res= new PDO($mysql_server,$mysql_user,$mysql_pass);
    
mysql_select_db($mysql_db);

   require(
"../../codebase/tree_connector.php");
   
$tree = new TreeConnector($res);
   
$tree->enable_log("temp.log",true);
   function 
my_check($action){
        if (
strlen($action->get_value("taskName"))<5)
            
$action->invalid();
   }
   
$tree->event->attach("beforeProcessing",my_check);
   
$tree->render_table("tasks","taskId","taskName","","parentId");
?>