mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
23 lines
No EOL
422 B
PHP
23 lines
No EOL
422 B
PHP
<?php
|
|
require('constants.php');
|
|
require(LIB_PATH . '/lib_rss.php');
|
|
if (FRESHRSS_VERSION === '0.8.1'){
|
|
require('app/Models/Configuration.php');
|
|
require('app/Models/Entry.php');
|
|
}
|
|
|
|
$ch = curl_init(FRESHRSS_UPDATE_WEBSITE);
|
|
$fp = fopen("update.php", "w");
|
|
|
|
curl_setopt($ch, CURLOPT_FILE, $fp);
|
|
curl_setopt($ch, CURLOPT_HEADER, 0);
|
|
|
|
curl_exec($ch);
|
|
curl_close($ch);
|
|
fclose($fp);
|
|
|
|
|
|
require('update.php');
|
|
|
|
apply_update();
|
|
?>
|