/**
  * Set enable template
  *
  * @param object $A
  * @param string $value
  * @return string
  */
 public function set_enabletemplate($A, $value)
 {
     $file = G::decrypt($A, URL_KEY);
     $value = $value == "1" ? "1" : "0";
     // $dbc2 = new DBConnection( PATH_DYNAFORM . $file . '.xml', '', '', '', 'myxml' );
     // $ses2 = new DBSession( $dbc2 );
     // $ses2->execute( "UPDATE . SET ENABLETEMPLATE = '$value'" );
     $dynaform = new dynaFormHandler(PATH_DYNAFORM . "{$file}.xml");
     $dynaform->modifyHeaderAttribute('enabletemplate', $value);
     return $value;
 }
 /**
  * Set enable template
  *
  * @param object $A
  * @param string $value
  * @return string
  */
 public function set_enabletemplate($A, $value)
 {
     G::LoadSystem('inputfilter');
     $filter = new InputFilter();
     $file = G::decrypt($A, URL_KEY);
     $value = $value == "1" ? "1" : "0";
     // $dbc2 = new DBConnection( PATH_DYNAFORM . $file . '.xml', '', '', '', 'myxml' );
     // $ses2 = new DBSession( $dbc2 );
     // $ses2->execute( "UPDATE . SET ENABLETEMPLATE = '$value'" );
     $pathFile = $filter->xssFilterHard(PATH_DYNAFORM . "{$file}.xml", 'path');
     $dynaform = new dynaFormHandler($pathFile);
     $dynaform->modifyHeaderAttribute('enabletemplate', $value);
     return $value;
 }