Esempio n. 1
0
<?

session_start();

include("rgt.config.php");
include("rgt.functions.php");
include("rgt.functions.cache.php");

set_exception_handler('error_exception');
set_error_handler('error_err'); 

setBusy();

switch ($_GET["cmd"]) {
	case "cache_setup": cache_setup(); die();
	case "cache_check": cache_check(); die();
	}

// ----------------------------------------------------------------------------

$imgFile = $_GET["f"];
if ($_GET["src"]) { $imgFile = $_GET["src"]; }

$imgFile = stripslashes($imgFile);

	// Some minor checking & stuff
	$realImgFile = $imgFile; // Save actual imgFile (imgFile itself may be modified later on..)
	if (strpos($imgFile,"ttp://")==1 || strpos($imgFile,"ttps://")==1) { $imgIsRemote=true; }

// ----------------------------------------------------------------------------
Esempio n. 2
0
function feeds_perform_matching($feeds)
{
    global $config_values;
    if (isset($config_values['Global']['HTMLOutput'])) {
        echo '<div class="progressBarUpdates">';
        setup_rss_list_html();
    }
    if (isset($config_values['Global']['HTMLOutput']) && $config_values['Settings']['Combine Feeds'] == 1) {
        show_feed_html(0);
    }
    cache_setup();
    foreach ($feeds as $key => $feed) {
        switch ($feed['Type']) {
            case 'RSS':
                rss_perform_matching($config_values['Global']['Feeds'][$feed['Link']], $key, $feed['Name'], $feed['Link']);
                break;
            case 'Atom':
                atom_perform_matching($config_values['Global']['Feeds'][$feed['Link']], $key, $feed['Name'], $feed['Link']);
                break;
            default:
                _debug("Unknown Feed. Feed: " . $feed['Link'] . "Type: " . $feed['Type'] . "\n", -1);
                break;
        }
    }
    if (isset($config_values['Global']['HTMLOutput']) && $config_values['Settings']['Combine Feeds'] == 1) {
        close_feed_html();
    }
    if ($config_values['Settings']['Client'] == "Transmission") {
        show_transmission_div();
    }
    if (isset($config_values['Global']['HTMLOutput'])) {
        echo '</div>';
        if (function_exists('finish_rss_list_html')) {
            finish_rss_list_html();
        }
    }
}
Esempio n. 3
0
<?php

session_start();
include "rgt.config.php";
include "rgt.functions.php";
include "rgt.functions.cache.php";
set_exception_handler('error_exception');
set_error_handler('error_err');
setBusy();
switch ($_GET["cmd"]) {
    case "cache_setup":
        cache_setup();
        die;
    case "cache_check":
        cache_check();
        die;
}
// ----------------------------------------------------------------------------
$imgFile = $_GET["f"];
if ($_GET["src"]) {
    $imgFile = $_GET["src"];
}
$imgFile = stripslashes($imgFile);
// Some minor checking & stuff
$realImgFile = $imgFile;
// Save actual imgFile (imgFile itself may be modified later on..)
if (strpos($imgFile, "ttp://") == 1 || strpos($imgFile, "ttps://") == 1) {
    $imgIsRemote = true;
}
// ----------------------------------------------------------------------------
$thWidth = $_GET["w"];