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