A tumblelog CMS built on AJAX, PHP and MySQL.

update.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. if(!defined('entry')) define('entry',true);
  3. /* ===========================
  4. gelato CMS - A PHP based tumblelog CMS
  5. development version
  6. http://www.gelatocms.com/
  7. gelato CMS is a free software licensed under the GPL 2.0
  8. Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
  9. =========================== */
  10. ?>
  11. <?php
  12. require('entry.php');
  13. global $configFile, $db;
  14. if (!file_exists($configFile) || true) {
  15. $mensaje = '
  16. <h3 class="importan">'.__("Error reading configuration file").'</h3>
  17. <p>'.__("There does not seem to be a <code>config.php</code> file. I need this before we can get started.").'</p>
  18. <p>'.__("This either means that you did not rename the <code>config-sample.php</code> file to <code>config.php</code>.").'</p>';
  19. die($mensaje);
  20. } else {
  21. require_once($configFile);
  22. }
  23. $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('check_version', '1'), ('active_plugins', '[{\"total\":0},[]]');";
  24. $db->ejecutarConsulta($sqlStr);
  25. echo '<p><em>'.__("Finished!").'</em></p>';
  26. echo '<p>'.__("Now you are running on the new <strong>gelato vaniglia</strong> version!!!").'</p>';
  27. echo '<p><a href="index.php">'.__("Return to your tumblelog").'</a></p>';
  28. ?>