12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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)) {
- $mensaje = "
- <h3 class=\"important\">Error reading configuration file</h3>
- <p>There doesn't 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($configFile);
- }
-
- $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('shorten_links', '0');";
-
- $db->ejecutarConsulta($sqlStr);
-
- $sqlStr = "INSERT INTO `".Table_prefix."options` VALUES ('rss_import_frec', '5 minutes');";
-
- $db->ejecutarConsulta($sqlStr);
-
- $sqlStr = "CREATE TABLE `".Table_prefix."feeds` (
- `id_feed` int(11) NOT NULL auto_increment,
- `url` varchar(255) NOT NULL,
- `title` varchar(255) NOT NULL,
- `type` tinyint(4) NOT NULL default '1',
- `updated_at` datetime NOT NULL,
- `error` tinyint(1) NOT NULL default '0',
- `credits` int(1) NOT NULL default '0',
- `site_url` varchar(255) NOT NULL,
- `id_user` int(10) NOT NULL,
- PRIMARY KEY (`id_feed`)
- ) ENGINE=MyISAM ;";
-
- $db->ejecutarConsulta($sqlStr);
-
- if(!is_dir('upload/CACHE')){
- @mkdir('upload/CACHE');
- @chmod('upload/CACHE',777);
- }
-
- echo "<p><em>Finished!</em></p>";
- echo "<p>Now you are running on the new <strong>gelato cioccolato</strong> version!!!</p>";
-
- ?>
|