mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-26 13:17:34 +02:00
Upgrade LBCAlerte to version 3.3
Add upgrade script
This commit is contained in:
@ -6,6 +6,10 @@ $values = array(
|
||||
|
||||
$categoryCollection = new \Lbc\CategoryCollection();
|
||||
|
||||
if (isset($_GET["preurl"])) {
|
||||
$values["url"] = $_GET["preurl"];
|
||||
}
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
foreach ($_POST AS $name => $value) {
|
||||
if (is_array($value)) {
|
||||
|
@ -5,7 +5,6 @@ if (!isset($_GET["url"])) {
|
||||
}
|
||||
|
||||
$disableLayout = true;
|
||||
$logFile = DOCUMENT_ROOT."/var/logs/rss.log";
|
||||
|
||||
use \FeedWriter\RSS2;
|
||||
|
||||
@ -35,7 +34,7 @@ $logger = Logger::getLogger("main");
|
||||
|
||||
$id = sha1($_SERVER["REQUEST_URI"]);
|
||||
$cache_filename = DOCUMENT_ROOT."/var/feeds/".$id.".xml";
|
||||
if (is_file($cache_filename)) {
|
||||
if ("development" != APPLICATION_ENV && is_file($cache_filename)) {
|
||||
readfile($cache_filename);
|
||||
return;
|
||||
}
|
||||
@ -49,6 +48,7 @@ $content = $client->request($_GET["url"]);
|
||||
|
||||
$filter = new \AdService\Filter($params);
|
||||
$siteConfig = \AdService\SiteConfigFactory::factory($_GET["url"]);
|
||||
$baseurl = $config->get("general", "baseurl", "");
|
||||
|
||||
$ads = $parser->process(
|
||||
$content,
|
||||
|
Reference in New Issue
Block a user