Web Hosting Talk







View Full Version : $5 Image Script Help


Hands-on Mark
04-27-2005, 04:57 PM
Here is my problem.

<td bgcolor="white" rowSpan="1" colspan="2" valign="top" align="center">
<form method=POST action=index.php enctype=multipart/form-data>
<p><font face="Arial">Here is your log:</font><br>
<?

echo "$log";

?>
<p><br>

OR

//Checks if file is an image
if (($img_type[$i] == $cert1) or ($img_type[$i] == $cert2) or ($img_type[$i] == $cert3) or ($img_type[$i] == $cert4) or ($img_type[$i] == $cert5) or ($img_type[$i] == $cert6) or ($img_type[$i] == $cert7) or ($img_type[$i] == $cert8) or ($img_type[$i] == $cert9) or ($img_type[$i] == $cert10) or ($img_type[$i] == $cert11) or ($img_type[$i] == $cert12) or ($img_type[$i] == $cert13) or ($img_type[$i] == $cert14) or ($img_type[$i] == $cert15) or ($img_type[$i] == $cert16) or ($img_type[$i] == $cert17)) {
@copy($img[$i], "$abpath/".$randomstr."$img_name[$i]") or $log .= "Couldn't copy image 1 to server<br>";
if (file_exists("$abpath/".$randomstr."$img_name[$i]")) {
$log .= "File was uploaded<br>View at <a href="http://www.imagehut.org/i/" target="_blank">http://www.imagehut.org/i/</a>$randomstr$img_name[$i]<br>You IP is $ip_address<br>________<br>";
$fp=fopen('log.htm','r+');
$old=file_get_contents('log.htm');
$new = "$log";
if(rewind($fp))


What it shows back now:

Here is your log:
File was uploaded
View at http://www.imagehut.org/i/3r0corner_top_right.gif *
You IP is x.
* DOES NOT SHOW CLICKABLE

I Need it returned like ImageShack.us(text box, so easy copy/paste etc)

Please PM me.

Hands-on Mark
04-27-2005, 06:11 PM
Found

/lock