Commit 4106c5a9 authored by BenC's avatar BenC

Revert (faut coder un truc pour tester les heldmsg en local)

Voir sur vache : /usr/local/bin/list_heldmsgs.sh
parent 079a217f
......@@ -720,9 +720,8 @@ class asso extends stdentity
{
if (strlen($this->nom_unix) <= 0)
return 0;
if(file_exists("/tmp/vachedown"))
return 0;
$pendings = file_get_contents("http://barty.me.aeinfo.net/list_heldmsgs.php");
/* $pendings = file_get_contents("http://barty.me.aeinfo.net/list_heldmsgs.php");
$pendings = explode("\n", $pendings);
foreach ($pendings as $asso_pending)
......@@ -731,7 +730,7 @@ class asso extends stdentity
if ($asso_pending[0] == ($this->nom_unix . ".membres"))
return $asso_pending[1];
}
}*/
return 0;
}
}
......
<?php
// check if vache is up
$ping = @fopen("http://barty.me.aeinfo.net/list_heldmsgs.php",'r');
if(!$ping && !file_exists("/tmp/vachedown"))
@touch("/tmp/vachedown");
elseif($ping && file_exists("/tmp/vachedown"))
@unlink("/tmp/vachedown");
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment