Subversion Repositories ALCASAR

Rev

Rev 679 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 679 Rev 696
Line 17... Line 17...
17
 *   along with this program; if not, write to the                         *
17
 *   along with this program; if not, write to the                         *
18
 *   Free Software Foundation, Inc.,                                       *
18
 *   Free Software Foundation, Inc.,                                       *
19
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20
 ***************************************************************************/
20
 ***************************************************************************/
21
 
21
 
22
// $Id: portail.php 679 2011-07-21 17:53:48Z richard $
22
// $Id: portail.php 696 2011-08-08 20:59:53Z franck $
23
 
23
 
24
// xml_utilisateur()
24
// xml_utilisateur()
25
 
25
 
26
function request ($texte) {
26
function request ($texte) {
27
		$strResult = 0;
27
		$strResult = 0;
Line 55... Line 55...
55
	
55
	
56
	return $_text;
56
	return $_text;
57
} 
57
} 
58
// Fonction de test de connectivité internet
58
// Fonction de test de connectivité internet
59
function internetTest(){
59
function internetTest(){
60
        $host = "208.67.220.220";  # opendns
60
        $host = "www.google.fr";  # Google Test
61
        $host2 = "www.alcasar.info";
61
        $host2 = "www.alcasar.info";
62
        $port = "80";
62
        $port = "80";
63
        //var $num;     //non utilisé
63
        //var $num;     //non utilisé
64
        //var $error;   //non utilisé
64
        //var $error;   //non utilisé
65
	if (! $sock = @fsockopen($host, $port, $num, $error, 2)) {
65
	if (! $sock = @fsockopen($host, $port, $num, $error, 2)) {