This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christian Junk
committed
Jun 9, 2020
1 parent
1e5b955
commit 8522d83
Showing
292 changed files
with
31,767 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
RewriteEngine on | ||
RewriteBase / | ||
|
||
Action php-fcgid /fcgi-bin/php-fcgi-starter-5 | ||
|
||
|
||
<IfModule mod_rewrite.c> | ||
# Potential fix for broken flush(). | ||
RewriteEngine on | ||
RewriteCond %{QUERY_STRING} ^refresh.*$ | ||
RewriteRule (.*) $1 [E=no-gzip:1] | ||
</IfModule> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
================================================================================ | ||
FEED YOUR SERVER FEVER | ||
|
||
Following Instructions 101: | ||
|
||
Please read *every* step of the relevant instructions before undertaking | ||
the first step. A little context goes a long way towards understanding. | ||
|
||
Installation in three easy steps. Uninstall instructions below. | ||
-------------------------------------------------------------------------------- | ||
|
||
1. Upload the entire /fever/ folder to your server. | ||
|
||
2. Change the /fever/ folder's permissions to 755 (777 might be necessary on | ||
some servers). | ||
|
||
3. Now load the Fever Server Compatibility Suite in a web browser | ||
<http://yourdomain.com/fever/boot.php> and proceed with the Suite. You should | ||
have your MySQL database connection details ready. Please consult your host's | ||
documentation or ask your sysadmin if you have a question about your database. | ||
If you encounter 500 error your server is probably running SuPHP. Changing the | ||
/fever/ folder's permissions to 775 might solve the problem. | ||
|
||
|
||
================================================================================ | ||
Uninstalling Fever | ||
|
||
Too hot for some | ||
-------------------------------------------------------------------------------- | ||
|
||
1. Log into your Fever installation and click on the action menu. | ||
|
||
2. Click on Uninstall and follow the instructions. | ||
|
||
3. Finally, remove the /fever/ folder from your server. | ||
|
||
If you cannot delete the /fever/ folder or the Uninstall option is not available | ||
you should rename safety-unlace.php to unlace.php and load it in a web browser | ||
<http://yourdomain.com/fever/unlace.php>. | ||
|
||
|
||
================================================================================ | ||
Copyright 2008-2009 Shaun Inman. This package cannot be redistributed without | ||
permission from http://shauninman.com/ | ||
|
||
More info at: http://feedafever.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
<?php error_reporting(0); ob_start(); ?> | ||
This server either doesn't support PHP or its version of PHP doesn't support output buffer functions. <div style="display:none;"> | ||
<?php ob_end_clean(); | ||
|
||
// Make sure we haven't included any unexpected files | ||
// that might interfer with operations. | ||
$included_files = get_included_files(); | ||
if (!defined('UNLACE') && count($included_files) > 1) | ||
{ | ||
|
||
echo 'Encountered unexpected includes. Please ensure that PHP auto prepend/append file directives have been disabled for this directory.'; | ||
echo '<pre>Files: '; | ||
print_r($included_files); | ||
echo '</pre>'; | ||
exit(); | ||
} | ||
|
||
// SNIP <?php // -------------------------------------------------------- // | ||
|
||
define('APP_NAME', 'Fever'); | ||
define('SOURCES_URL', 'http://feedafever.com/gateway/'); | ||
|
||
/************************************************************************** | ||
remote_copy() | ||
Enables remote copying even when allow_url_fopen is disabled | ||
**************************************************************************/ | ||
function remote_copy($remote_url, $local_path) | ||
{ | ||
if (ini_get('allow_url_fopen')) | ||
{ | ||
return copy($remote_url, $local_path); | ||
} | ||
else | ||
{ | ||
$socket_timeout = 30; | ||
$request_timeout = 30; | ||
$parsed_url = array | ||
( | ||
'scheme' => 'http', | ||
'host' => 'localhost', | ||
'path' => '/', | ||
'query' => '', | ||
'port' => 80 | ||
); | ||
$parsed_url = array_merge($parsed_url, parse_url($remote_url)); | ||
$path_with_query = (!empty($parsed_url['query'])) ? "{$parsed_url['path']}?{$parsed_url['query']}" : $parsed_url['path']; | ||
|
||
$request = @fsockopen($parsed_url['host'], $parsed_url['port'], $error_no, $error_str, $socket_timeout); | ||
if ($request) | ||
{ | ||
$headers = "GET {$path_with_query} HTTP/1.1\r\n"; | ||
$headers .= "Host: {$parsed_url['host']}\r\n\r\n"; | ||
|
||
fwrite($request, $headers); | ||
stream_set_timeout($request, $request_timeout); | ||
|
||
$response = ''; | ||
while (!feof($request)) | ||
{ | ||
$response .= fgets($request, 1024); | ||
} | ||
fclose($request); | ||
|
||
$chunks = explode(str_repeat("\r\n", 2), $response, 2); | ||
$content = isset($chunks[1]) ? $chunks[1] : ''; | ||
|
||
return save_to_file($content, $local_path); | ||
} | ||
else | ||
{ | ||
return false; | ||
} | ||
} | ||
} | ||
|
||
/************************************************************************** | ||
save_to_file() | ||
**************************************************************************/ | ||
function save_to_file($content, $local_path) | ||
{ | ||
if (($h = fopen($local_path, 'w')) !== false) | ||
{ | ||
return (fwrite($h, $content) && fclose($h)); | ||
} | ||
else | ||
{ | ||
return false; | ||
} | ||
} | ||
|
||
/************************************************************************** | ||
rm() | ||
Deletes files and directories recursively. | ||
**************************************************************************/ | ||
function rm($file_path) | ||
{ | ||
if (empty($file_path)) return; | ||
|
||
if (is_dir($file_path) && !is_link($file_path)) | ||
{ | ||
if ($dir = opendir($file_path)) | ||
{ | ||
while (($item = readdir($dir)) !== false) | ||
{ | ||
if ($item == '.' || $item == '..') | ||
{ | ||
continue; | ||
} | ||
rm($file_path.'/'.$item); | ||
} | ||
closedir($dir); | ||
} | ||
return rmdir($file_path); | ||
} | ||
else | ||
{ | ||
return unlink($file_path); | ||
} | ||
} | ||
|
||
// SNIP // -------------------------------------------------------------- // | ||
|
||
// Allow unlace.php to include just the above constants and functions. | ||
if (defined('UNLACE')) { return; } | ||
|
||
$required_php_version = '4.2.3'; | ||
$required_mysql_version = '3.23'; | ||
|
||
// No IIS. Full stop. | ||
if (isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'],'IIS') !== false) | ||
{ | ||
exit('Microsoft IIS is not support.'); | ||
} | ||
|
||
// Check PHP version | ||
if (!version_compare(PHP_VERSION, $required_php_version, 'ge')) | ||
{ | ||
exit('PHP '.$required_php_version.' or higher is required. This server is running PHP '.PHP_VERSION.'.'); | ||
} | ||
|
||
// Check MySQL version | ||
$extensions = get_loaded_extensions(); | ||
if (!in_array('mysql', $extensions)) | ||
{ | ||
exit('PHP on this server does not appear to be compiled with support for MySQL. MySQL or higher is required.'); | ||
} | ||
else | ||
{ | ||
$mysql_version = mysql_get_client_info(); | ||
$mysql_version = preg_replace('#(^\D*)([0-9.]+).*$#', '\2', $mysql_version); // strip extra-version cruft | ||
if (!version_compare($mysql_version, $required_mysql_version, 'ge')) | ||
{ | ||
exit('MySQL '.$required_mysql_version.' or higher is required. This server is running MySQL '.$mysql_version.'.'); | ||
} | ||
} | ||
|
||
if (!file_exists('boot.php')) | ||
{ | ||
// that's this file, it must exist. DANGER! DANGER! | ||
// something is wrong with this server's working or | ||
// include path | ||
exit('This server failed a basic check intended to prevent dataloss.'); | ||
} | ||
|
||
if (!file_exists('index.php')) | ||
{ | ||
// save a copy of our utility funcs that index.php can use | ||
$boot = file_get_contents('boot.php'); | ||
$parts = explode('// SNIP ', $boot, 3); | ||
save_to_file($parts[1], 'util.php'); | ||
|
||
if (!file_exists('util.php')) | ||
{ | ||
// just created this file | ||
exit('This directory must be writable, please set its permissions to 777.'); | ||
} | ||
|
||
if (!is_dir('firewall')) { mkdir('firewall'); } | ||
remote_copy(SOURCES_URL.'public/firewall.php', 'index.php'); | ||
if (!file_exists('index.php')) | ||
{ | ||
// just copied this file from a remote server | ||
exit('Unable to copy the necessary files from a remote server. Your host may block outgoing connections.'); | ||
} | ||
|
||
// existing .htaccess file must be 0777 so Pluto can take ownership of file for later modification | ||
$htaccess_content = ''; | ||
$htaccess_path = '.htaccess'; | ||
if (file_exists($htaccess_path)) | ||
{ | ||
$htaccess_content = file_get_contents($htaccess_path); | ||
unlink($htaccess_path); | ||
} | ||
// $htaccess_content .= "\n# user script addition"; | ||
save_to_file($htaccess_content, $htaccess_path); | ||
@chmod($htaccess_path, 0777); | ||
} | ||
|
||
header('Location:./'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
================================================= | ||
FEVER | ||
------------------------------------------------- | ||
End User License Agreement | ||
================================================= | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Is it hot in here or is it just me? | ||
================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h2>Feed a Fever</h2> | ||
|
||
<p>Conventional wisdom be damned, Fever needs fuel to burn. | ||
<?php if (isset($show_opml_msg)) : ?> | ||
Import your feeds from an existing OPML below and be sure | ||
to d<?php else : e('D'); endif; ?>rag this <?php e($this->feedlet_link()); ?> onto your | ||
browser bookmark bar. The feedlet allows you to subscribe | ||
to any feed embedded in a page.</p> | ||
|
||
<p>You can also subscribe via url in various applications:</p> | ||
|
||
<pre><code><?php e($this->subscribe_link()); ?></code></pre> | ||
|
||
<h2>Crank up the heat</h2> | ||
|
||
<p>In order to get the most out of Fever you need to take | ||
advantage of Sparks. Your regular subscriptions are like | ||
kindling. Sparks are feeds that you subscribe to solely to | ||
increase the temperature of the information you are most | ||
interested in.</p> |
Oops, something went wrong.