PageRenderTime 54ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/updates/DM-075-076-Update.php

https://bitbucket.org/mpercy/deeemm-cms
PHP | 27 lines | 6 code | 9 blank | 12 comment | 0 complexity | 82351ab1f16b1974c7881a28c15c8e6d MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause
  1. <?php
  2. defined( '_INDM' ) or die( 'POSSIBLE HACK ATTEMPT!' );
  3. //===========================================================================
  4. $new_version = '0.7.6 (DMCMS RC1)';
  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. ?>