Source for file dbconnect.inc.php

Documentation is available at dbconnect.inc.php

  1. <?php
  2.  
  3. /**
  4. * Database connection file. Sets up SQLiteAdmin class instance.
  5. *
  6. * <pre>
  7. * PROJECT : SQLiteAdmin
  8. * A Crafty demonstration project.
  9. * AUTHOR : Crafty Team <crafty@zulan.net>
  10. * COPYRIGHT : (c) Thomas Ryssel, 2004
  11. *
  12. * FILE : [ROOT]\includes\dbconnect.inc.php
  13. * DESCRIPTION: Database connection file. Sets up SQLiteAdmin class instance.
  14. * </pre>
  15. *
  16. * This library is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU Lesser General Public
  18. * License as published by the Free Software Foundation; either
  19. * version 2.1 of the License, or (at your option) any later version.
  20. *
  21. * This library is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24. * Lesser General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Lesser General Public
  27. * License along with this library; if not, write to the Free Software
  28. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  29. *
  30. * SQLiteAdmin is only a demonstration project for {@link Crafty}, so please be
  31. * aware of the fact that this has minor priority compared to the main project
  32. * itself.
  33. *
  34. * @package SQLiteAdmin
  35. * @author Crafty Team <crafty@zulan.net>
  36. * @copyright Copyright (c) Thomas Ryssel 2004
  37. * @version 1.0.1.2004.09.25
  38. * @link sqliteadmin.zulan.net
  39. * @license http://www.gnu.org/licenses/lgpl.html
  40. * GNU Lesser General Public License Version 2.1
  41. ***/
  42.  
  43. if ($params['db_file']['isset']) {
  44. $sql = new SQLiteAdmin($params['db_file']['content']);
  45. if (empty($sql->filename) && isset($_REQUEST['mode'])
  46. && $_REQUEST['mode'] == 'Create') {
  47. $sql->createDB($params['db_file']['content']);
  48. }
  49. }
  50.  
  51. ?>

Documentation generated on Sat, 19 Feb 2005 01:43:52 +0100 by phpDocumentor 1.3.0RC3