1 |
<?php |
2 |
/*---------------------------------------- |
3 |
$Id: install.php,v 1.27 2006/01/17 20:03:36 migurski Exp $ |
4 |
vim: ts=4 foldcolumn=4 foldmethod=marker |
5 |
|
6 |
This file is part of Reblog: http://reblog.org |
7 |
A derivative work of Feed On Feeds: http://feedonfeeds.com |
8 |
|
9 |
Distributed under the Gnu Public License, see LICENSE |
10 |
|
11 |
Copyright ©2004 Michael Frumin, Michal Migurski |
12 |
mike@stamen.com, http://stamen.com |
13 |
mfrumin@eyebeam.org, http://eyebeam.org |
14 |
|
15 |
install.php - creates tables and cache directory, if they don't exist |
16 |
----------------------------------------*/ |
17 |
?> |
18 |
<?php |
19 |
$INSTALLING = true; |
20 |
$SUPPRESS_INSTALL_VERIFY = true; |
21 |
require_once(dirname(__FILE__) . '/init.php'); |
22 |
|
23 |
$install_controller = new RF_Install_Controller($GLOBALS['REBLOG_CONTROLLER']); |
24 |
$input_controller = new RF_Input_Controller($GLOBALS['REBLOG_CONTROLLER']); |
25 |
|
26 |
?> |
27 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
28 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
29 |
<head> |
30 |
<title>reFeed: installation</title> |
31 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
32 |
<link rel="stylesheet" href="style/font.css" media="screen" /> |
33 |
<link rel="stylesheet" href="style/layout.css" media="screen" /> |
34 |
<link rel="stylesheet" href="style/color.css" media="screen" /> |
35 |
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> |
36 |
</head> |
37 |
<body id="panel-page"> |
38 |
<p>Installing Refeed...</p> |
39 |
<?php |
40 |
|
41 |
if($install_controller->installRefeed($_GET['upgrade']) && defined('REBLOG_DEFAULT_FEED')) { |
42 |
$input_controller->subscribeUserToFeedURL($GLOBALS['REBLOG_USER'], REBLOG_DEFAULT_FEED); |
43 |
|
44 |
?> |
45 |
<p style="color: red; font-weight: bold;">If you got this far, Refeed was successfully installed.</p> |
46 |
<p>Head over the <a href="index.php">front page</a> and start <a href="add.php">adding some feeds</a>.</a> |
47 |
<?php |
48 |
} |
49 |
|
50 |
?> |
51 |
</body> |
52 |
</html> |