Hello everyone.
I stumbled over this site in my hunt for a solution to me latest problem, and was hoping that someone here knew the answer to it.
I am making a custom module for my phpNuke site. A friend of mine gave me a php file and I am having trouble getting it to work because
a) it was not part of Nuke before and
b) I am totally stupid about how Nuke finds things.
The lines that seem to be giving me trouble are the form action ones.
<? if (empty($action)) { ?>
<div class=l10>
<table cellpadding=0 cellspacing=0>
<form action="main.php?p=nw_logs" method=post enctype="multipart/form-data">
<tr>
<td>Logfile:</td>
<td><input type="file" name="file"></td>
</tr>
<tr>
<td colspan=2 align=right><input type="submit" name="action" value="Parse"></td>
</tr>
</form>
</table>
</div>
<?
} else {
echo "<form action=\"main.php?p=nw_logs\" method=post name=theform>";
if ($_POST["action"] == "Export BBCode") {
echo "<div class=\"white_page\"><pre>$bbc</pre></div>";
}
Now...
The file I was given was called nw_logs.php
I changed this file to be the index.php file under my new module directory NWNParser
When I navigate to my new module, the first page comes up fine - I have the ability to browse my hd for a file. But when I click the submit button and it tries to actually do stuff, it has a fit and goes hunting for a file that isn't there because my site does not have the same structure as the one the code came from.
Anyone? looks around hopefully