This commit is contained in:
Laurent Destailleur 2010-06-23 12:08:18 +00:00
parent 08ed85a84c
commit 1e40ddd202

View File

@ -1,5 +1,5 @@
<?PHP <?PHP
/* Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2008-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -66,6 +66,12 @@ if ($db->type != 'mysql' && $db->type != 'mysqli')
// Show parameters // Show parameters
print 'Tablename='.$argv[1]."\n"; print 'Tablename='.$argv[1]."\n";
//--------------------------------
// Build skeleton_class.class.php
//--------------------------------
$table=$argv[1]; $table=$argv[1];
$property=array(); $property=array();
$foundprimary=0; $foundprimary=0;
@ -355,8 +361,11 @@ if ($fp)
else $error++; else $error++;
//--------------------------------
// Build skeleton_script.php
//--------------------------------
// Read skeleton_class.class.php file // Read skeleton_script.php file
$skeletonfile='skeleton_script.php'; $skeletonfile='skeleton_script.php';
$sourcecontent=file_get_contents($skeletonfile); $sourcecontent=file_get_contents($skeletonfile);
if (! $sourcecontent) if (! $sourcecontent)