No PHP skills needed - all it needs is HTML skills. You could have googled for a solution, as this is being covered on many sites. Here's the JavaScript-driven solution that will not work if your visitors have turned JavaScript off. If you need the foolproof method that works with JavaScript turned off as well, you will need PHP skills, as you will have to edit the code at db_input.php.
Anyway, here's the solution: edit upload.php , find </script>
and add before it into a new line of it's own var checkobj
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){ //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}
function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("I am sure")
return false
}
}
}
Then find <form method="post" action="$path" enctype="multipart/form-data">
and replace with <form name="uploadform" method="post" action="$path" enctype="multipart/form-data" onSubmit="return defaultagree(this)">
Finally, find <input type="submit" value="{$button_value}" class="button" />
and replace with <input name="agreecheck" id="agreecheck" type="checkbox" onClick="agreesubmit(this)" /><label for="agreecheck">I swear that I'm a nice guy and won't upload copyrighted material, yada yada.</label>
</td>
</tr>
<tr>
<td colspan="2" align="center" class="tablef">
<input type="submit" value="{$button_value}" class="button" disabled="disabled" />
Not one single line of PHP affected - all plain HTML and JavaScript.
The code I have pasted in comes originally from modifyalb.php...