<?
/**
* Copyright (C) 2004 Tony Bierman
*
* 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.
*/
/*
see README.html for complete documentation
*/
/*
validate words folder
*/
$words_folder = phpGiggle_ABSPATH.'words';
if(file_exists($words_folder))
{
$audit_wordsfolder_found = "yes";
$phpgiggle_tests++;
}
else
{
$audit_wordsfolder_found = "no";
$phpgiggle_errors++;
}
if(is_writable($words_folder))
{
$audit_wordsfolder_write = "yes";
$phpgiggle_tests++;
}
else
{
$audit_wordsfolder_write = "no";
$phpgiggle_errors++;
}
/*
validate clicks file
*/
if(file_exists(phpgiggle_clicksfile))
{
$audit_clicksfile_found = "yes";
$phpgiggle_tests++;
}
else
{
$audit_clicksfile_found = "no";
$phpgiggle_errors++;
}
if(is_writable(phpgiggle_clicksfile))
{
$audit_clicksfile_write = "yes";
$phpgiggle_tests++;
}
else
{
$audit_clicksfile_write = "no";
$phpgiggle_errors++;
}
/*
validate words file
*/
if(file_exists(phpgiggle_wordsfile))
{
$audit_wordsfile_found = "yes";
$phpgiggle_tests++;
}
else
{
$audit_wordsfile_found = "no";
$phpgiggle_errors++;
}
if(is_writable(phpgiggle_wordsfile))
{
$audit_wordsfile_write = "yes";
$phpgiggle_tests++;
}
else
{
$audit_wordsfile_write = "yes";
$phpgiggle_errors++;
}
//$to = "hide@address.com";
//$subject = "Hi!";
//$body = "Hi,\n\nHow are you?";
//if (mail($to, $subject, $body))
//{
// echo("<p>Message sent!</p>");
//}
//else
//{
// echo("<p>Message delivery failed...</p>");
//}
?>
<div id="content" width="80%">
<h2>phpGiggle Bug Report</h2>
<br />
<table summary="">
<form action="http://www.biermana.org/bugreport/submit.php" method="POST" enctype="x-www-form-urlencoded">
<input type="HIDDEN" name="bugreport" value="phpGiggle">
<tr>
<td><font size="1" face="verdana"><b>Words folder found: </b></font></td>
<td><input type="TEXT" size="4" name="wordsfolder_found" value="<?php echo $audit_wordsfolder_found; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Words folder writeable: </b></font></td>
<td><input type="TEXT" size="4" name="wordsfolder_write" value="<?php echo $audit_wordsfolder_write; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Words file found: </b></font></td>
<td><input type="TEXT" size="4" name="wordsfile_found" value="<?php echo $audit_wordsfile_found; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Words file writeable: </b></font></td>
<td><input type="TEXT" size="4" name="wordsfile_write" value="<?php echo $audit_wordsfile_write; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Clicks file found: </b></font></td>
<td><input type="TEXT" size="4" name="clicksfile_found" value="<?php echo $audit_clicksfile_found; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Clicks file writeable: </b></font></td>
<td><input type="TEXT" size="4" name="clicksfile_write" value="<?php echo $audit_clicksfile_write; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Using ads: </b></font></td>
<td><input type="TEXT" size="1" name="clicksfile_write" value="<?php echo show_ads; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>phpGiggle version: </b></font></td>
<td><input type="TEXT" size="6" name="clicksfile_write" value="<?php echo phpgiggle_version; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Site url: </b></font></td>
<td><input type="TEXT" size="40" name="clicksfile_write" value="<?php echo phpgiggle_url; ?>"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Your e-mail: </b></font></td>
<td><input type="TEXT" size="40" name="e-mail"> </td>
</tr>
<tr>
<td><font size="1" face="verdana"><b>Error Info</b></font></td>
<td><textarea rows="10" name="err_info" cols="32" wrap="virtual"></textarea></td>
</tr>
<tr>
<td>
<center><input type="SUBMIT" value="Send" class="nupp"></center>
</td>
</tr>
</table>
</div>