Browse Source

Oups 1/2

merge-requests/1/head
Erase 6 years ago
parent
commit
31a47f08e3
12 changed files with 0 additions and 19270 deletions
  1. +0
    -177
      vendor/RSS-Fusion/LICENSE.md
  2. +0
    -86
      vendor/RSS-Fusion/README.md
  3. +0
    -30
      vendor/RSS-Fusion/index.php
  4. +0
    -1
      vendor/RSS-Fusion/system/cache/.gitignore
  5. +0
    -332
      vendor/RSS-Fusion/system/classes/Config.php
  6. +0
    -604
      vendor/RSS-Fusion/system/classes/Date.php
  7. +0
    -164
      vendor/RSS-Fusion/system/classes/FeedReader.php
  8. +0
    -41
      vendor/RSS-Fusion/system/config/agents.php
  9. +0
    -64
      vendor/RSS-Fusion/system/config/default.php
  10. +0
    -2
      vendor/RSS-Fusion/system/config/localconfig.php
  11. +0
    -17768
      vendor/RSS-Fusion/system/vendor/simplepie/SimplePie.php
  12. +0
    -1
      vendor/goofi

+ 0
- 177
vendor/RSS-Fusion/LICENSE.md View File

@ -1,177 +0,0 @@
## creative commons
# Attribution-NonCommercial-ShareAlike 4.0 International
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
### Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
* __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors).
* __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees).
## Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
### Section 1 – Definitions.
a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. __BY-NC-SA Compatible License__ means a license listed at [creativecommons.org/compatiblelicenses](http://creativecommons.org/compatiblelicenses), approved by Creative Commons as essentially the equivalent of this Public License.
d. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
e. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
f. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
g. __License Elements__ means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution, NonCommercial, and ShareAlike.
h. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
i. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
h. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License.
i. __NonCommercial__ means not primarily intended for or directed towards commercial advantage or monetary compensation. For purposes of this Public License, the exchange of the Licensed Material for other material subject to Copyright and Similar Rights by digital file-sharing or similar means is NonCommercial provided there is no payment of monetary compensation in connection with the exchange.
j. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
k. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
l. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
### Section 2 – Scope.
a. ___License grant.___
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
A. reproduce and Share the Licensed Material, in whole or in part, for NonCommercial purposes only; and
B. produce, reproduce, and Share Adapted Material for NonCommercial purposes only.
2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. __Term.__ The term of this Public License is specified in Section 6(a).
4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
5. __Downstream recipients.__
A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
B. __Additional offer from the Licensor – Adapted Material.__ Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply.
C. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. ___Other rights.___
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties, including when the Licensed Material is used other than for NonCommercial purposes.
### Section 3 – License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
a. ___Attribution.___
1. If You Share the Licensed Material (including in modified form), You must:
A. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
b. ___ShareAlike.___
In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply.
1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-NC-SA Compatible License.
2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material.
3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply.
### Section 4 – Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database for NonCommercial purposes only;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
### Section 5 – Disclaimer of Warranties and Limitation of Liability.
a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__
b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
### Section 6 – Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
### Section 7 – Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
### Section 8 – Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
```
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
Creative Commons may be contacted at creativecommons.org
```

+ 0
- 86
vendor/RSS-Fusion/README.md View File

@ -1,86 +0,0 @@
RSS-Fusion
----------
**Fusion de flux RSS multiples.**
* Sans base de données
* Script auto hébergeable
* Gestion des flux RSS/ATOM
* Flux global
* Surcharge de personnalisation
Par défaut
----------
* Système de mise en cache des flux (durée par défaut = 1h)
* Données triées par date/heure décroissante
* Possibilité de spécifier des mots clés ("star and bad words")
Prérequis
---------
* Serveur Web (tel que Apache2)
* A partir de PHP 5.4 avec les modules suivants : `cUrl`, `JSON`, `SimpleXML`, `DOMDocument` (et potentiellement quelques autres selon votre configuration)
Installation
------------
Récupération des sources
```
$ git clone https://git.framasoft.org/Erase/RSS-Fusion.git
```
ou en [téléchargeant l'archive zip]
Vérifier/assigner les droits en écriture au sein du répertoire :
* `/data`
Personnalisation
----------
En se basant sur les paramètres précisés dans le fichier `/system/config/default.php`, il est possible de surcharger les informations en les précisant dans le fichier `/system/config/localconfig.php`, notamment les mots clés.
Le reste des traitements à personnaliser peuvent se baser sur ceux présents dans le fichier `index.php`
Informations annexes
--------
* RSS-Fusion utilise la librairie [SimplePie] pour parser les flux RSS.
* Les données en caches sont dans le répertoire `/system/cache`
* La recherche des mots-clés se fait sur le titre et la description de chaque élément des flux RSS
* Deux types de mots clés sont pris en charge : **star** pour des éléments à mettre en avant et **bad** pour des éléments à masquer
Structuration des éléments des flux
--------
```
array(11) {
["link"] => URL de l'élément
["title"] => Titre de l'élément
["permalink"] => Permalien de l'élément
["description"] => Description de l'élément
["pubdate"] => Timestamp de publication
["date_read"] => Date de publication au format jour-mois-année heures:minutes
["category"] => Catégorie de l'élément
["base"] => URL du flux RSS source
["show"] => true (default) | false (bad word) | star (star word)
["enclosure"] => Elément inclus
}
```
Licence
-------
En dehors des différentes licences spécifiques aux outils utilisés, le reste du code est distribué sous licence [Creative Commons BY-NC-SA 4.0]
Auteur
------
* [Un simple développeur paysagiste] :) avec un peu de temps libre et aucune prétention - contact_at_green-effect.fr
[//]: #
[téléchargeant l'archive zip]: <https://framagit.org/Erase/RSS-Fusion/repository/archive.zip>
[SimplePie]: <http://simplepie.org/>
[Creative Commons BY-NC-SA 4.0]: <http://creativecommons.org/licenses/by-nc-sa/4.0/>
[Un simple développeur paysagiste]: <http://www.green-effect.fr>

+ 0
- 30
vendor/RSS-Fusion/index.php View File

@ -1,30 +0,0 @@
<?php
//~ Define the root path
define('TL_ROOT', dirname(__DIR__.'/RSS-Fusion'));
require TL_ROOT.'/system/classes/Config.php';
require TL_ROOT.'/system/classes/Date.php';
require TL_ROOT.'/system/classes/FeedReader.php';
require TL_ROOT.'/system/vendor/simplepie/SimplePie.php';
Config::preload();
//~ Adjust the error handling
ini_set('display_errors', (Config::get('displayErrors') ? 1 : 0));
error_reporting((Config::get('displayErrors') || Config::get('logErrors')) ? 1 : 0);
/*
$_links = array(
"http://www.lemonde.fr/rss/une.xml",
"https://rss.framasoft.org/"
);
$feeds = new FeedReader($_links);
echo "<pre>";
var_dump($feeds->objParseFeed->items)
*/
?>

+ 0
- 1
vendor/RSS-Fusion/system/cache/.gitignore View File

@ -1 +0,0 @@
*.spc

+ 0
- 332
vendor/RSS-Fusion/system/classes/Config.php View File

@ -1,332 +0,0 @@
<?php
/**
* Loads the local configuration file
*/
class Config
{
/**
* Object instance (Singleton)
* @var \Config
*/
protected static $objInstance;
/**
* Local file existance
* @var boolean
*/
protected static $blnHasLcf;
/**
* Top content
* @var string
*/
protected $strTop = '<?php';
/**
* Bottom content
* @var string
*/
protected $strBottom = '';
/**
* Data
* @var array
*/
public $arrData = array();
/**
* Default Data
* @var array
*/
public $arrDefaultData = array();
/**
* Prevent direct instantiation (Singleton)
*/
protected function __construct() {}
/**
* Prevent cloning of the object (Singleton)
*/
final public function __clone() {}
/**
* Return the current object instance (Singleton)
*
* @return \Config The object instance
*/
public static function getInstance()
{
if (static::$objInstance === null)
{
static::$objInstance = new static();
static::$objInstance->initialize();
}
return static::$objInstance;
}
/**
* Load all configuration files
*/
protected function initialize()
{
if (static::$blnHasLcf === null)
{
static::preload();
}
// Include the local configuration file again
if (static::$blnHasLcf)
{
include TL_ROOT.'/system/config/localconfig.php';
}
}
/**
* Return a configuration value
*
* @param string $strKey The short key (e.g. "displayErrors")
*
* @return mixed|null The configuration value
*/
public static function get($strKey)
{
if (isset($GLOBALS['TL_CONFIG'][$strKey]))
{
return $GLOBALS['TL_CONFIG'][$strKey];
}
return null;
}
/**
* Temporarily set a configuration value
*
* @param string $strKey The short key (e.g. "displayErrors")
* @param string $varValue The configuration value
*/
public static function set($strKey, $varValue)
{
$GLOBALS['TL_CONFIG'][$strKey] = $varValue;
}
/**
* Preload the default and local configuration
*/
public static function preload()
{
// Load the default files
include TL_ROOT.'/system/config/default.php';
include TL_ROOT.'/system/config/agents.php';
// Include the local configuration file
if (($blnHasLcf = file_exists(TL_ROOT.'/system/config/localconfig.php')) === true)
{
include TL_ROOT.'/system/config/localconfig.php';
}
static::$blnHasLcf = $blnHasLcf;
}
/**
* Read file and set array
*/
public function read()
{
// Parse the local configuration file
if (static::$blnHasLcf)
{
$resFile = fopen(TL_ROOT.'/system/config/localconfig.php', 'rb');
while (!feof($resFile))
{
$strLine = fgets($resFile);
$strTrim = trim($strLine);
if ($strTrim == '?>' OR $strTrim == $this->strTop)
{
continue;
}
if ($strTrim != '')
{
$arrChunks = array_map('trim', explode('=', $strLine, 2));
$this->arrData[$arrChunks[0]] = $arrChunks[1];
}
}
fclose($resFile);
}
}
/**
* Save the local configuration file
*/
public function save()
{
if ($this->strTop == '')
{
$this->strTop = '<?php';
}
$strFile = trim($this->strTop) . "\n\n";
foreach ($this->arrData as $k=>$v)
{
$strFile .= "$k = $v\n";
}
$this->strBottom = trim($this->strBottom);
if ($this->strBottom != '')
{
$strFile .= "\n" . $this->strBottom . "\n";
}
$strTemp = md5(uniqid(mt_rand(), true));
// Write to a temp file first
$objFile = fopen(TL_ROOT.'/system/cache/' . $strTemp, 'wb');
fputs($objFile, $strFile);
fclose($objFile);
// Make sure the file has been written
if (!filesize(TL_ROOT.'/system/cache/' . $strTemp))
{
return;
}
// Then move the file to its final destination
rename(TL_ROOT.'/system/cache/' . $strTemp, TL_ROOT.'/system/config/localconfig.php');
// Reset the Zend OPcache
if (function_exists('opcache_invalidate'))
{
opcache_invalidate(TL_ROOT.'/system/config/localconfig.php', true);
}
// Reset the Zend Optimizer+ cache (unfortunately no API to delete just a single file)
if (function_exists('accelerator_reset'))
{
accelerator_reset();
}
// Recompile the APC file
if (function_exists('apc_compile_file') && !ini_get('apc.stat'))
{
apc_compile_file(TL_ROOT.'/system/config/localconfig.php');
}
// Purge the eAccelerator cache
if (function_exists('eaccelerator_purge') && !ini_get('eaccelerator.check_mtime'))
{
@eaccelerator_purge();
}
// Purge the XCache cache (thanks to Trenker)
if (function_exists('xcache_count') && !ini_get('xcache.stat'))
{
if (($count = xcache_count(XC_TYPE_PHP)) > 0)
{
for ($id=0; $id<$count; $id++)
{
xcache_clear_cache(XC_TYPE_PHP, $id);
}
}
}
}
/**
* Add a configuration variable to the local configuration file
*
* @param string $strKey The full variable name
* @param mixed $varValue The configuration value
*/
public function add($strKey, $varValue)
{
$this->read();
$this->arrData[$strKey] = $this->escape($varValue) . ';';
}
/**
* Remove a configuration variable
*
* @param string $strKey The full variable name
*/
public function delete($strKey)
{
$this->read();
unset($this->arrData[$strKey]);
}
/**
* Permanently set a configuration value
*
* @param string $strKey The short key or full variable name
* @param mixed $varValue The configuration value
*/
public static function persist($strKey, $varValue)
{
$objConfig = static::getInstance();
if (strncmp($strKey, '$GLOBALS', 8) !== 0)
{
$strKey = "\$GLOBALS['TL_CONFIG']['$strKey']";
}
$objConfig->add($strKey, $varValue);
}
/**
* Escape a value depending on its type
*
* @param mixed $varValue The value
*
* @return mixed The escaped value
*/
protected function escape($varValue)
{
if (is_numeric($varValue) && !preg_match('/e|^00+/', $varValue) && $varValue < PHP_INT_MAX)
{
return $varValue;
}
if (is_bool($varValue))
{
return $varValue ? 'true' : 'false';
}
if ($varValue == 'true')
{
return 'true';
}
if ($varValue == 'false')
{
return 'false';
}
return "'" . str_replace('\\"', '"', preg_replace('/[\n\r\t ]+/', ' ', addslashes($varValue))) . "'";
}
}

+ 0
- 604
vendor/RSS-Fusion/system/classes/Date.php View File

@ -1,604 +0,0 @@
<?php
/**
* Converts dates and date format string
*
* The class converts arbitrary date strings to Unix timestamps and provides
* extended information like the begin or end of the day, week, month or year.
*
* Usage:
*
* $date = new Date();
* echo $date->datim;
*
* $date = new Date('2011-09-18', 'Y-m-d');
* echo $date->monthBegin;
*
* Date::formatToJs('m/d/Y H:i');
*/
class Date
{
/**
* Date string
* @var int
*/
protected $strDate;
/**
* Format string
* @var string
*/
protected $strFormat;
/**
* Date range
* @var array
*/
protected $arrRange = array();
/**
* Set the object properties
*
* @param integer $strDate An optional date string
* @param string $strFormat An optional format string
*/
public function __construct($strDate=null, $strFormat=null)
{
$this->strDate = ($strDate !== null) ? $strDate : time();
$this->strFormat = ($strFormat !== null) ? $strFormat : static::getNumericDateFormat();
if (!preg_match('/^\-?[0-9]+$/', $this->strDate) || preg_match('/^[a-zA-Z]+$/', $this->strFormat))
{
$this->dateToUnix();
}
}
/**
* Return an object property
*
* Supported keys:
*
* * timestamp: the Unix timestamp
* * date: the formatted date
* * time: the formatted time
* * datim: the formatted date and time
* * dayBegin: the beginning of the current day
* * dayEnd: the end of the current day
* * monthBegin: the beginning of the current month
* * monthEnd: the end of the current month
* * yearBegin: the beginning of the current year
* * yearEnd: the end of the current year
* * format: the date format string
*
* @param string $strKey The property name
*
* @return mixed|null The property value
*/
public function __get($strKey)
{
switch ($strKey)
{
case 'tstamp':
case 'timestamp':
return $this->strDate;
break;
case 'date':
return static::parse(static::getNumericDateFormat(), $this->strDate);
break;
case 'time':
return static::parse(static::getNumericTimeFormat(), $this->strDate);
break;
case 'datim':
return static::parse(static::getNumericDatimFormat(), $this->strDate);
break;
case 'dayBegin':
$this->createDateRanges();
return $this->arrRange['day']['begin'];
break;
case 'dayEnd':
$this->createDateRanges();
return $this->arrRange['day']['end'];
break;
case 'monthBegin':
$this->createDateRanges();
return $this->arrRange['month']['begin'];
break;
case 'monthEnd':
$this->createDateRanges();
return $this->arrRange['month']['end'];
break;
case 'yearBegin':
$this->createDateRanges();
return $this->arrRange['year']['begin'];
break;
case 'yearEnd':
$this->createDateRanges();
return $this->arrRange['year']['end'];
break;
case 'format':
return $this->strFormat;
break;
}
return null;
}
/**
* Create the date ranges
*/
protected function createDateRanges()
{
if (!empty($this->arrRange))
{
return;
}
$intYear = date('Y', $this->strDate);
$intMonth = date('m', $this->strDate);
$intDay = date('d', $this->strDate);
$this->arrRange['day']['begin'] = mktime(0, 0, 0, $intMonth, $intDay, $intYear);
$this->arrRange['day']['end'] = mktime(23, 59, 59, $intMonth, $intDay, $intYear);
$this->arrRange['month']['begin'] = mktime(0, 0, 0, $intMonth, 1, $intYear);
$this->arrRange['month']['end'] = mktime(23, 59, 59, $intMonth, date('t', $this->strDate), $intYear);
$this->arrRange['year']['begin'] = mktime(0, 0, 0, 1, 1, $intYear);
$this->arrRange['year']['end'] = mktime(23, 59, 59, 12, 31, $intYear);
}
/**
* Return the begin of the week as timestamp
*
* @param integer $intStartDay The week start day
*
* @return integer The Unix timestamp
*/
public function getWeekBegin($intStartDay=0)
{
$intOffset = date('w', $this->strDate) - $intStartDay;
if ($intOffset < 0)
{
$intOffset += 7;
}
return strtotime('-' . $intOffset . ' days', $this->strDate);
}
/**
* Return the end of the week as timestamp
*
* @param integer $intStartDay The week start day
*
* @return integer The Unix timestamp
*/
public function getWeekEnd($intStartDay=0)
{
return strtotime('+1 week', $this->getWeekBegin($intStartDay)) - 1;
}
/**
* Return a regular expression to check a date
*
* @param string $strFormat An optional format string
*
* @return string The regular expression string
*
* @throws \Exception If $strFormat is invalid
*/
public static function getRegexp($strFormat=null)
{
if ($strFormat === null)
{
$strFormat = static::getNumericDateFormat();
}
if (!static::isNumericFormat($strFormat))
{
throw new \Exception(sprintf('Invalid date format "%s"', $strFormat));
}
return preg_replace_callback('/[a-zA-Z]/', function($matches)
{
// Thanks to Christian Labuda
$arrRegexp = array
(
'a' => '(?P<a>am|pm)',
'A' => '(?P<A>AM|PM)',
'd' => '(?P<d>0[1-9]|[12][0-9]|3[01])',
'g' => '(?P<g>[1-9]|1[0-2])',
'G' => '(?P<G>[0-9]|1[0-9]|2[0-3])',
'h' => '(?P<h>0[1-9]|1[0-2])',
'H' => '(?P<H>[01][0-9]|2[0-3])',
'i' => '(?P<i>[0-5][0-9])',
'j' => '(?P<j>[1-9]|[12][0-9]|3[01])',
'm' => '(?P<m>0[1-9]|1[0-2])',
'n' => '(?P<n>[1-9]|1[0-2])',
's' => '(?P<s>[0-5][0-9])',
'Y' => '(?P<Y>[0-9]{4})',
'y' => '(?P<y>[0-9]{2})',
);
return isset($arrRegexp[$matches[0]]) ? $arrRegexp[$matches[0]] : $matches[0];
}
, preg_quote($strFormat));
}
/**
* Return an input format string for a particular date (e.g. YYYY-MM-DD)
*
* @param string $strFormat An optional format string
*
* @return string The input format string
*
* @throws \Exception If $strFormat is invalid
*/
public static function getInputFormat($strFormat=null)
{
if ($strFormat === null)
{
$strFormat = static::getNumericDateFormat();
}
if (!static::isNumericFormat($strFormat))
{
throw new \Exception(sprintf('Invalid date format "%s"', $strFormat));
}
$arrCharacterMapper = array
(
'a' => 'am',
'A' => 'AM',
'd' => 'DD',
'j' => 'D',
'm' => 'MM',
'n' => 'M',
'y' => 'YY',
'Y' => 'YYYY',
'h' => 'hh',
'H' => 'hh',
'g' => 'h',
'G' => 'h',
'i' => 'mm',
's' => 'ss',
);
$arrInputFormat = array();
$arrCharacters = str_split($strFormat);
foreach ($arrCharacters as $strCharacter)
{
if (isset($arrCharacterMapper[$strCharacter]))
{
$arrInputFormat[$strFormat] .= $arrCharacterMapper[$strCharacter];
}
else
{
$arrInputFormat[$strFormat] .= $strCharacter;
}
}
return $arrInputFormat[$strFormat];
}
/**
* Convert a date string into a Unix timestamp using the format string
*
* @throws \Exception If the format string is invalid
* @throws \OutOfBoundsException If the timestamp does not map to a valid date
*/
protected function dateToUnix()
{
if (!static::isNumericFormat($this->strFormat))
{
throw new \Exception(sprintf('Invalid date format "%s"', $this->strFormat));
}
$intCount = 0;
$intDay = '';
$intMonth = '';
$intYear = '';
$intHour = '';
$intMinute = '';
$intSecond = '';
$blnMeridiem = false;
$blnCorrectHour = false;
$arrCharacterMapper = array
(
'd' => 'intDay',
'j' => 'intDay',
'm' => 'intMonth',
'n' => 'intMonth',
'y' => 'intYear',
'Y' => 'intYear',
'h' => 'intHour',
'H' => 'intHour',
'g' => 'intHour',
'G' => 'intHour',
'i' => 'intMinute',
's' => 'intSecond'
);
$arrCharacters = str_split($this->strFormat);
foreach ($arrCharacters as $strCharacter)
{
$var = isset($arrCharacterMapper[$strCharacter]) ? $arrCharacterMapper[$strCharacter] : 'dummy';
switch ($strCharacter)
{
case 'a':
case 'A':
$blnCorrectHour = true;
$blnMeridiem = (strtolower(substr($this->strDate, $intCount, 2)) == 'pm') ? true : false;
$intCount += 2;
break;
case 'd':
case 'm':
case 'y':
case 'h':
case 'H':
case 'i':
case 's':
$$var .= substr($this->strDate, $intCount, 2);
$intCount += 2;
break;
case 'j':
case 'n':
case 'g':
case 'G':
$$var .= substr($this->strDate, $intCount++, 1);
if (preg_match('/[0-9]+/', substr($this->strDate, $intCount, 1)))
{
$$var .= substr($this->strDate, $intCount++, 1);
}
break;
case 'Y':
$$var .= substr($this->strDate, $intCount, 4);
$intCount += 4;
break;
default:
++$intCount;
break;
}
}
$intHour = (int) $intHour;
if ($blnMeridiem)
{
$intHour += 12;
}
if ($blnCorrectHour && ($intHour == 12 || $intHour == 24))
{
$intHour -= 12;
}
if (!strlen($intMonth))
{
$intMonth = 1;
}
if (!strlen($intDay))
{
$intDay = 1;
}
if ($intYear == '')
{
$intYear = 1970;
}
// Validate the date
if (checkdate($intMonth, $intDay, $intYear) === false)
{
throw new \OutOfBoundsException(sprintf('Invalid date "%s"', $this->strDate));
}
$this->strDate = mktime((int) $intHour, (int) $intMinute, (int) $intSecond, (int) $intMonth, (int) $intDay, (int) $intYear);
}
/**
* Convert a PHP format string into a JavaScript format string
*
* @param string $strFormat The PHP format string
*
* @return mixed The JavaScript format string
*/
public static function formatToJs($strFormat)
{
$chunks = str_split($strFormat);
foreach ($chunks as $k=>$v)
{
switch ($v)
{
case 'D': $chunks[$k] = 'a'; break;
case 'j': $chunks[$k] = 'e'; break;
case 'l': $chunks[$k] = 'A'; break;
case 'S': $chunks[$k] = 'o'; break;
case 'F': $chunks[$k] = 'B'; break;
case 'M': $chunks[$k] = 'b'; break;
case 'a': $chunks[$k] = 'p'; break;
case 'A': $chunks[$k] = 'p'; break;
case 'g': $chunks[$k] = 'l'; break;
case 'G': $chunks[$k] = 'k'; break;
case 'h': $chunks[$k] = 'I'; break;
case 'i': $chunks[$k] = 'M'; break;
case 's': $chunks[$k] = 'S'; break;
case 'U': $chunks[$k] = 's'; break;
}
}
return preg_replace('/([a-zA-Z])/', '%$1', implode('', $chunks));
}
/**
* Check for a numeric date format
*
* @param string $strFormat The PHP format string
*
* @return boolean True if the date format is numeric
*/
public static function isNumericFormat($strFormat)
{
return !preg_match('/[BbCcDEeFfIJKkLlMNOoPpQqRrSTtUuVvWwXxZz]+/', $strFormat);
}
/**
* Return the numeric date format string
*
* @return string The numeric date format string
*/
public static function getNumericDateFormat()
{
return \Config::get('dateFormat');
}
/**
* Return the numeric time format string
*
* @return string The numeric time format string
*/
public static function getNumericTimeFormat()
{
return \Config::get('timeFormat');
}
/**
* Return the numeric datim format string
*
* @return string The numeric datim format string
*/
public static function getNumericDatimFormat()
{
return \Config::get('datimFormat');
}
/**
* Return a numeric format string depending on the regular expression name
*
* @return string The numeric format string
*/
public static function getFormatFromRgxp($strRgxp)
{
switch ($strRgxp)
{
case 'date':
return static::getNumericDateFormat();
break;
case 'time':
return static::getNumericTimeFormat();
break;
case 'datim':
return static::getNumericDatimFormat();
break;
}
return null;
}
/**
* Parse a date format string and translate textual representations
*
* @param string $strFormat The date format string
* @param integer $intTstamp An optional timestamp
*
* @return string The textual representation of the date
*/
public static function parse($strFormat, $intTstamp=null)
{
$strModified = str_replace
(
array('l', 'D', 'F', 'M'),
array('w::1', 'w::2', 'n::3', 'n::4'),
$strFormat
);
if ($intTstamp === null)
{
$strDate = date($strModified);
}
elseif (!is_numeric($intTstamp))
{
return '';
}
else
{
$strDate = date($strModified, $intTstamp);
}
if (strpos($strDate, '::') === false)
{
return $strDate;
}
$strReturn = '';
$chunks = preg_split("/([0-9]{1,2}::[1-4])/", $strDate, -1, PREG_SPLIT_DELIM_CAPTURE);
foreach ($chunks as $chunk)
{
list($index, $flag) = explode('::', $chunk);
switch ($flag)
{
case 1:
$strReturn .= $GLOBALS['TL_CONFIG']['DAYS'][$index];
break;
case 2:
$strReturn .= $GLOBALS['TL_CONFIG']['DAYS_SHORT'][$index];
break;
case 3:
$strReturn .= $GLOBALS['TL_CONFIG']['MONTHS'][($index - 1)];
break;
case 4:
$strReturn .= $GLOBALS['TL_CONFIG']['MONTHS_SHORT'][($index - 1)];
break;
default:
$strReturn .= $chunk;
break;
}
}
return $strReturn;
}
}

+ 0
- 164
vendor/RSS-Fusion/system/classes/FeedReader.php View File

@ -1,164 +0,0 @@
<?php
/**
* Read RSS feeds
*
* The class provides an interface to read RSS feeds.
*
* Usage:
*
* $feed = new Feed('FEED_URL');
* echo $feed->objParseFeed->title
*
*/
class FeedReader
{
/**
* objParseFeed
* @var object
*/
public $objParseFeed;
/**
* Items
* @var array
*/
public $arrItems = array();
public $objFeed;
/**
* Store the feed name
*
* @param array $_urlFeeds The feed url
*/
public function __construct($_urlFeeds)
{
$this->objFeed = new SimplePie();
$this->objFeed->set_useragent(\Config::get('RssReaderReferer'));
if (count($_urlFeeds) > 1)
{
$this->objFeed->set_feed_url($_urlFeeds);
}
else
{
$this->objFeed->set_feed_url($_urlFeeds[0]);
}
$this->objFeed->set_output_encoding(\Config::get('characterSet'));
$this->objFeed->set_cache_location(TL_ROOT.'/system/cache/');
$this->objFeed->enable_cache(\Config::get('enableCache'));
$this->objFeed->set_cache_duration(\Config::get('cacheDuration'));
$this->objFeed->enable_order_by_date();
if (!$this->objFeed->init())
{
return '';
}
$this->objFeed->handle_content_type();
$this->objParseFeed = new \stdClass();
$this->objParseFeed->link = $this->objFeed->get_link();
$this->objParseFeed->title = $this->objFeed->get_title();
$this->objParseFeed->language = $this->objFeed->get_language();
$this->objParseFeed->description = $this->objFeed->get_description();
$this->objParseFeed->copyright = $this->objFeed->get_copyright();
// Add image
if ($this->objFeed->get_image_url())
{
$this->objParseFeed->image = true;
$this->objParseFeed->src = $this->objFeed->get_image_url();
$this->objParseFeed->alt = $this->objFeed->get_image_title();
$this->objParseFeed->href = $this->objFeed->get_image_link();
$this->objParseFeed->height = $this->objFeed->get_image_height();
$this->objParseFeed->width = $this->objFeed->get_image_width();
}
// Get the items
$this->arrItems = array_slice($this->objFeed->get_items(0, $GLOBALS['TL_CONFIG']['maxResultsPerBlock']), 0, $GLOBALS['TL_CONFIG']['maxResultsPerBlock']);
$limit = count($this->arrItems);
$offset = 0;
$items = array();
$last = min($limit, count($this->arrItems)) - 1;
for ($i=0; $i<$limit; $i++)
{
$items[$i] = array
(
'link' => $this->arrItems[$i]->get_link(),
'title' => $this->arrItems[$i]->get_title(),
'permalink' => $this->arrItems[$i]->get_permalink(),
'description' => str_replace(array('<?', '?>'), array('&lt;?', '?&gt;'), $this->arrItems[$i]->get_description()),
'pubdate' => $this->arrItems[$i]->get_date('U'),
'date_read' => \Date::parse(Config::get('datimFormat'), $this->arrItems[$i]->get_date('U')),
'category' => $this->arrItems[$i]->get_category(0),
'base' => $this->arrItems[$i]->get_base(),
'show' => 'show' // show || hide || star
);
// Where
$where = \Config::get('where');
if(!is_null($where) && $where == 'title'){
$merge_str = strtolower($items[$i]['title']);
}elseif(!is_null($where) && $where == 'description'){
$merge_str = strtolower($items[$i]['description']);
}else{
$merge_str = strtolower($items[$i]['title']." ".$items[$i]['description']);
}
// Bad and star words
if(count(Config::get('_starWords'))){
if($this->isInStr($merge_str, Config::get('_starWords')))
{
$items[$i]['show'] = 'star';
}
}
if(count(Config::get('_badWords'))){
if($this->isInStr($merge_str, Config::get('_badWords')))
{
$items[$i]['show'] = 'hide';
}
}
// Add author
if (($objAuthor = $this->arrItems[$i]->get_author(0)) != false)
{
$items[$i]['author'] = trim($objAuthor->name . ' ' . $objAuthor->email);
}
// Add enclosure
if (($objEnclosure = $this->arrItems[$i]->get_enclosure(0)) != false)
{
$items[$i]['enclosure'] = $objEnclosure->get_link();
}
}
$this->objParseFeed->items = array_values($items);
}
public static function isInStr($strString, $varWords)
{
foreach ((array) $varWords as $strWord)
{
if(empty($strWord)){
continue;
}
$t = preg_match("/".preg_quote(htmlentities($strWord), '/')."/i", $strString);
if($t){
return true;
}
}
return false;
}
}

+ 0
- 41
vendor/RSS-Fusion/system/config/agents.php View File

@ -1,41 +0,0 @@
<?php
//~ Operating systems
$GLOBALS['TL_CONFIG']['os'] = array
(
'Macintosh' => array('os'=>'mac', 'mobile'=>false),
'Windows CE' => array('os'=>'win-ce', 'mobile'=>true),
'Windows Phone' => array('os'=>'win-ce', 'mobile'=>true),
'Windows' => array('os'=>'win', 'mobile'=>false),
'iPad' => array('os'=>'ios', 'mobile'=>false),
'iPhone' => array('os'=>'ios', 'mobile'=>true),
'iPod' => array('os'=>'ios', 'mobile'=>true),
'Android' => array('os'=>'android', 'mobile'=>true),
'BB10' => array('os'=>'blackberry', 'mobile'=>true),
'Blackberry' => array('os'=>'blackberry', 'mobile'=>true),
'Symbian' => array('os'=>'symbian', 'mobile'=>true),
'WebOS' => array('os'=>'webos', 'mobile'=>true),
'Linux' => array('os'=>'unix', 'mobile'=>false),
'FreeBSD' => array('os'=>'unix', 'mobile'=>false),
'OpenBSD' => array('os'=>'unix', 'mobile'=>false),
'NetBSD' => array('os'=>'unix', 'mobile'=>false),
);
//~ Browsers
$GLOBALS['TL_CONFIG']['browser'] = array
(
'MSIE' => array('browser'=>'ie', 'shorty'=>'ie', 'engine'=>'trident', 'version'=>'/^.*MSIE (\d+(\.\d+)*).*$/'),
'Trident' => array('browser'=>'ie', 'shorty'=>'ie', 'engine'=>'trident', 'version'=>'/^.*Trident\/\d+\.\d+; rv:(\d+(\.\d+)*).*$/'),
'Firefox' => array('browser'=>'firefox', 'shorty'=>'fx', 'engine'=>'gecko', 'version'=>'/^.*Firefox\/(\d+(\.\d+)*).*$/'),
'Chrome' => array('browser'=>'chrome', 'shorty'=>'ch', 'engine'=>'webkit', 'version'=>'/^.*Chrome\/(\d+(\.\d+)*).*$/'),
'OmniWeb' => array('browser'=>'omniweb', 'shorty'=>'ow', 'engine'=>'webkit', 'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
'Silk' => array('browser'=>'silk', 'shorty'=>'si', 'engine'=>'silk', 'version'=>'/^.*Silk\/(\d+(\.\d+)*).*$/'),
'Safari' => array('browser'=>'safari', 'shorty'=>'sf', 'engine'=>'webkit', 'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
'Opera Mini' => array('browser'=>'opera-mini', 'shorty'=>'oi', 'engine'=>'presto', 'version'=>'/^.*Opera Mini\/(\d+(\.\d+)*).*$/'),
'Opera Mobi' => array('browser'=>'opera-mobile', 'shorty'=>'om', 'engine'=>'presto', 'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
'Opera' => array('browser'=>'opera', 'shorty'=>'op', 'engine'=>'presto', 'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
'IEMobile' => array('browser'=>'ie-mobile', 'shorty'=>'im', 'engine'=>'trident', 'version'=>'/^.*IEMobile (\d+(\.\d+)*).*$/'),
'Camino' => array('browser'=>'camino', 'shorty'=>'ca', 'engine'=>'gecko', 'version'=>'/^.*Camino\/(\d+(\.\d+)*).*$/'),
'Konqueror' => array('browser'=>'konqueror', 'shorty'=>'ko', 'engine'=>'webkit', 'version'=>'/^.*Konqueror\/(\d+(\.\d+)*).*$/')
);

+ 0
- 64
vendor/RSS-Fusion/system/config/default.php View File

@ -1,64 +0,0 @@
<?php
##############################################################
# #
# DO NOT CHANGE ANYTHING HERE! USE THE LOCAL CONFIGURATION #
# FILE localconfig.php TO MODIFY THE CONFIGURATION! #
# #
##############################################################
/**
* -------------------------------------------------------------------------
* GENERAL SETTINGS
* -------------------------------------------------------------------------
*/
$GLOBALS['TL_CONFIG']['characterSet'] = 'utf-8';
$GLOBALS['TL_CONFIG']['displayErrors'] = false;
$GLOBALS['TL_CONFIG']['logErrors'] = false;
/**
* -------------------------------------------------------------------------
* DATE AND TIME SETTINGS
* -------------------------------------------------------------------------
*
* datimFormat = show date and time
* dateFormat = show date only
* timeFormat = show time only
* timeZone = the server's default time zone
*
* See PHP function date() for more information.
*/
$GLOBALS['TL_CONFIG']['datimFormat'] = 'd-m-Y H:i';
$GLOBALS['TL_CONFIG']['dateFormat'] = 'd-m-Y';
$GLOBALS['TL_CONFIG']['timeFormat'] = 'H:i';
$GLOBALS['TL_CONFIG']['timeZone'] = (!is_null(ini_get('date.timezone')) ? ini_get('date.timezone') : 'GMT+1');
$GLOBALS['TL_CONFIG']['DAYS'] = array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi');
$GLOBALS['TL_CONFIG']['DAYS_SHORT'] = array('Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam');
$GLOBALS['TL_CONFIG']['MONTHS'] = array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
$GLOBALS['TL_CONFIG']['MONTHS_SHORT'] = array('Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Juin', 'Juil', 'Aoû', 'Sep', 'Oct', 'Nov', 'Déc');
/**
* -------------------------------------------------------------------------
* RSS SETTINGS
* -------------------------------------------------------------------------
*/
$GLOBALS['TL_CONFIG']['maxResultsPerBlock'] = 50;
$GLOBALS['TL_CONFIG']['enableCache'] = true;
$GLOBALS['TL_CONFIG']['cacheDuration'] = 3600; //~ 1h
$GLOBALS['TL_CONFIG']['RssReaderReferer'] = "RSS-Fusion with SimplePie";
/**
* -------------------------------------------------------------------------
* WORDS AND SEARCH SETTINGS
* -------------------------------------------------------------------------
*/
$GLOBALS['TL_CONFIG']['_starWords'] = array();
$GLOBALS['TL_CONFIG']['_badWords'] = array();
$GLOBALS['TL_CONFIG']['where'] = 'all'; //~ (title | description | all)

+ 0
- 2
vendor/RSS-Fusion/system/config/localconfig.php View File

@ -1,2 +0,0 @@
<?php

+ 0
- 17768
vendor/RSS-Fusion/system/vendor/simplepie/SimplePie.php
File diff suppressed because it is too large
View File


+ 0
- 1
vendor/goofi

@ -1 +0,0 @@
Subproject commit 6b03d6453330059bc196d282b49565ce2001c590

Loading…
Cancel
Save