
 Dwaine Halberg - 2013-03-14 03:46:43
this is the output from guibuilder.php, I have other php apps working on the server so I know things work properly, but not My Rad, any clues?
apache 2.4.2, php 5.4.10, smarty works for the configapp.php.
makedalclass($tabla)."\n"; if(isset($_POST["conservar"])) $a=filevalidator(true,"../dal/".$tabla.".php"); else $a=filevalidator(false,"../dal/".$tabla.".php"); if(strlen($a)>0) $contenido.=$a."*/\n?>"; else $contenido.=$a."\n?>"; genfile("../dal/".$tabla.".php",$contenido); } if($opciones==2) { $contenido="makemetadata($tabla)."\n"; if(isset($_POST["conservar"])) $a=filevalidator(true,"../dal/".$tabla."_meta.php"); else $a=filevalidator(false,"../dal/".$tabla."_meta.php"); if(strlen($a)>0) $contenido.=$a."*/\n?>"; else $contenido.=$a."\n?>"; genfile("../dal/".$tabla."_meta.php",$contenido); } if($opciones==3) { $configsecur=true; $tblsecur=$tabla; } } } $includesdal.="include(\"".$tabla.".php\");\n"; $includesmeta.="include(\"".$tabla."_meta.php\");\n"; } $contenido= "makecontext($afiles); $a=filevalidator($_POST["conservar"],"../dal/datacontext.php"); if(strlen($a)>0) $contenido.=$a."*/\n?>"; else $contenido.=$a."\n?>"; genfile("../dal/datacontext.php",$contenido); $includesdal.="\n?>"; $includesmeta.="\n?>"; $contenido.=filevalidator($_POST["conservar"],"../dal/dalall.php"); genfile("../dal/dalall.php",$includesdal); $contenido.=filevalidator($_POST["conservar"],"../dal/metadata.php"); genfile("../dal/metadata.php",$includesmeta); if($configsecur==false) header("Location: ../index.php"); else header("Location: makesecure.php?tabla=".$tblsecur); } $coneccion = $GLOBALS['coneccion']; if( !$smarty1 = new Smarty_myrad4php() ) { echo 'Smarty not loaded'; exit; } $tablas = $coneccion->traetablas(); $ids1=array(1,2,3); $nombres1=array("Mapeo de Tabla","Metadata", "Es seguridad"); $atablas=array(); while ($row = mysql_fetch_row($tablas)) { $atablas[]=array($row[0],"opc_".$row[0],"secur_".$row[0]); } $smarty1->assign("tablas",$atablas); $smarty1->assign("opciones",array("ids"=>$ids1,"nombres"=>$nombres1)); $smarty1->assign("valores",array(1,2)); $smarty1->assign("nomuser",""); $err=array(); $smarty1->assign("error",$err); $smarty1->display('guibuilder.tpl'); function genfile($archivo,$cadena) { $archivo=fopen($archivo,'x+'); fwrite($archivo,$cadena); fclose($archivo); } function filevalidator($conservar,$file) { $contenido=""; if(file_exists($file)) { if($conservar) { $contenido =substr(file_get_contents($file),5); } unlink($file); } if(strlen($contenido)>0) $contenido="\n/*".$contenido; return $contenido; } ?>