| 
<?php
 include "class.php";
 $author = $_POST['author'];
 $description = $_POST['class_description'];
 $description = str_replace("\n","",$description);
 $description = str_replace("\r","",$description);
 $description = str_replace("\t","",$description);
 $classDefs = $_POST['class'];
 
 $c = new JHClassCreator($classDefs, $description , $author);
 
 $variables = @$_POST['attribute'];
 if($variables)
 {
 foreach($variables as $variable)
 {
 $c->addVariableArray($variable);
 }
 }
 
 if($_POST['method'])
 {
 foreach($_POST['method'] as $functions)
 {
 $c->addFunctionArray($functions);
 }
 }
 
 $c->Build();
 
 header("location:index.php?fname=complete");
 
 |