PageRenderTime 33ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/updates/DM-064-065-Update.php

https://bitbucket.org/mpercy/deeemm-cms
PHP | 27 lines | 6 code | 9 blank | 12 comment | 1 complexity | aca40f065831122339331edc3d303d0e MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause
  1. <?php
  2. if (!isset($INDM)) {echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><meta name="Content-Language" content="en"><meta name="description" content="DMCMS"><meta name="author" content="Mick Percy"><meta name="copyright" content="Copyright 2007 DeeEmm"><title>DMCMS</title></HEAD><body><br><br><br><br><br><br><br><br><center><img src="http://www.deeemm.com/images/logo.png" alt="DMCMS"><br><a href="http://www.deeemm.com"><span style="font-weight:bold">http://www.deeemm.com</span></a></center></body></html>'; exit;}
  3. //===========================================================================
  4. $new_version = '0.6.5 (BETA)';
  5. /*===========================================================================
  6. //>update version number
  7. ===========================================================================*/
  8. mysql_query("UPDATE `" . $db_table_prefix . "admin` SET `version` = '$new_version' WHERE `id` = 0") OR DIE ("<b>A fatal MySQL error occured</b>.\n<br />Query: " . $sql_query . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());
  9. echo $version . ' -> ' . $new_version . ' Update<br><br>';
  10. /*===========================================================================
  11. //>update control tables in database
  12. ===========================================================================*/
  13. //No changes
  14. /*===========================================================================
  15. //>update non control (content) tables in database
  16. ===========================================================================*/
  17. //No changes
  18. ?>