Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Antoine
ae2
Commits
02e31294
Commit
02e31294
authored
Aug 14, 2007
by
Ayolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bleh
parent
1823d896
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
phpcron/hourly.php
phpcron/hourly.php
+1
-3
No files found.
phpcron/hourly.php
View file @
02e31294
<?php
$_SERVER
[
'SCRIPT_FILENAME'
]
=
"/var/www/ae/www/ae2/phpcron"
;
/*
* hourly
*/
...
...
@@ -10,7 +11,6 @@ define('MAGPIE_CACHE_AGE', 50*60); //50minutes pour etre certain d'avoir un truc
define
(
'MAGPIE_OUTPUT_ENCODING'
,
"UTF-8"
);
define
(
'MAX_NUM'
,
20
);
define
(
'MAX_SUM_LENGHT'
,
200
);
$_SERVER
[
'SCRIPT_FILENAME'
]
=
"/var/www/ae/www/ae2/phpcron"
;
require_once
(
$topdir
.
"include/site.inc.php"
);
require_once
(
$topdir
.
"include/lib/magpierss/rss_fetch.inc.php"
);
...
...
@@ -23,8 +23,6 @@ $req = new requete($site->db,"SELECT `url` FROM `planet_flux` WHERE `modere`='1'
while
(
list
(
$url
)
=
$req
->
get_row
()
)
$rs
=
fetch_rss
(
$url
);
// Tâche 1 [planet] : nettoyage du cache
$cache
=
opendir
(
MAGPIE_CACHE_DIR
);
while
(
$file
=
readdir
(
$cache
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment