示例#1
0
<?php

/*
Copyright (C) 2004  C.N.Eberhardt (webmaster@jugglingdb.com)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
require "SiteCheck.php";
require "URLSourceArray.php";
require "ReportWriterHTML.php";
$urlSource = new URLSourceArray(array("index.php", "links/", "links/index.php?parent=4", "links/index.php?child=20", "links/submit.php", "clubs/", "clubs/index.php?country=14", "news/search.php"));
$siteCheck = new SiteCheck($urlSource, new ReportWriterHTML(), 1337, "www.jugglingdb.com", "");
$siteCheck->runCheck();
示例#2
0
文件: Example.php 项目: gdvarela/ET3
<?php

/*
Copyright (C) 2004  C.N.Eberhardt (webmaster@jugglingdb.com)

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
session_start();
ini_set('display_errors', '1');
include "SiteCheck.php";
include "URLSourceArray.php";
include "ReportWriterHTML.php";
$Pags = explode(";", $_POST["PaginasComprobar"], -1);
$urlSource = new URLSourceArray($Pags);
$siteCheck = new SiteCheck($urlSource, new ReportWriterHTML(), 80, $_SERVER['SERVER_NAME']);
$_SESSION["Resultado"] = $siteCheck->runCheck2();
header("Location: testErrores.php");