Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Posts
    2,852

    $5 Image Script Help

    Here is my problem.

    PHP Code:
          <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
    PHP Code:
    //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">[url]http://www.imagehut.org/i/[/url]</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.

  2. #2
    Join Date
    Jun 2004
    Posts
    2,852
    Found

    /lock

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •