Code Improvements
This commit is contained in:
parent
08ee5eaf39
commit
75b705ee2c
14 changed files with 933 additions and 521 deletions
|
@ -3,11 +3,13 @@
|
|||
* PHP Version 7
|
||||
*
|
||||
* @category Atom_Feed
|
||||
* @package Rbe
|
||||
* @package Rcc
|
||||
* @author Marcel Kapfer (mmk2410) <marcelmichaelkapfer@yahoo.co.nz>
|
||||
* @license MIT License
|
||||
* @link https://github.com/mmk2410/rangitaki
|
||||
*
|
||||
* Feed Generator
|
||||
*
|
||||
* The MIT License
|
||||
*
|
||||
* Copyright 2015 mmk2410.
|
||||
|
@ -88,11 +90,14 @@ if ($_SESSION['login']) {
|
|||
$feed = $writer->execute();
|
||||
|
||||
$file = fopen($feed_path, "w");
|
||||
|
||||
if (fwrite($file, $feed) === false) {
|
||||
echo "-1";
|
||||
exit;
|
||||
}
|
||||
|
||||
fclose($file);
|
||||
|
||||
echo "0";
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue