problem with connecting or something.

Discussion in 'PHP' started by yyyk9, Jun 16, 2007.

  1. #1
    What does this error mean?


    Fatal error: Call to undefined function connect_me() in /home/topimage/public_html/admin/index.php on line 22


    my site is http://www.topimagehost.org
     
    yyyk9, Jun 16, 2007 IP
  2. dankenpo

    dankenpo Guest

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It seems to me that you have referenced the function connect_me() without first defining the function. I would need more information, at least seeing line 22 of your code and the code defining connect_me() would be helpful, otherwise I can't say much more.
     
    dankenpo, Jun 16, 2007 IP
  3. yyyk9

    yyyk9 Peon

    Messages:
    670
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey, okay I'll send you the info. Thanks so much for helpping me.
     
    yyyk9, Jun 16, 2007 IP
  4. yyyk9

    yyyk9 Peon

    Messages:
    670
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What is this?

    Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/topimage/public_html/frontpage.php on line 8

    Front page on http://www.topimagehost.org

    <table width="790" border="0" align="center" cellpadding="3" cellspacing="0">
    <tr>
    <?php
    $add_info = get_add();

    ob_start();
    echo '<td width="33%"><div align="center">';
    include($AD_BODY_TEMP);
    echo '</div></td>';
    $ad_body = ob_get_contents();
    ob_end_clean();

    ob_start();
    if($is_complete != 'done' && $_GET['id'] == NULL && $_GET['name'] == NULL){

    ?>
    <td width="33%" valign="top">
    <form name="upload" id="upload" method="post" action="index.php?page=File_Upload" style="display:inline;" enctype="multipart/form-data" onsubmit="javascript:return check_upload(this);">
    <div align="left">
    <p><u><strong><font color="#99FF00">Image Upload (<?=$max_upload_do;?>
    mb - <?php echo number_format($max_upload_do*1024,2);?> KB max): </font></strong></u></p>
    <div id="showprogress" style="display: none;" align="center">
    <p><font size="2">Upload is starting....</font></p>
    <script language="javascript" src="xp_progress.js"></script>
    <font color="#FFFFFF">Uploading file, please be patient...</font>
    <br/><br/>
    <script type="text/javascript">
    var bar1= createBar(200,15,'white',1,'red','red',385,17,3,"");
    </script><br/>
    <font color="#FFFFFF">Success message will appear after done uploading...</font>
    <br/>
    <a href="<?=$add_info[0];?>" alt="<?=$add_info[1];?>" target="_blank"><img src="<?=$add_info[2];?>" alt="<?=$add_info[1];?>" border="0" width="<?=$add_info[3];?>" height="<?=$add_info[4];?>"></a>
    </div>
    <div id="showupload" style="display: block;" align="center">
    <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr>
    <td><div align="left"><font size="2">
    <?php if($_POST['filetype'] == 'file' || $_POST['filetype'] == NULL){$sel=' checked';}else{$sel=NULL;}?>
    <input name="filetype" type="radio" value="file"<?=$sel;?>>
    File name: </font> </div></td>
    <td><input name="user_file" type="file" id="user_file" size="10"></td>
    </tr>
    <tr>
    <td><div align="left"><font size="2">
    <?php if($_POST['filetype'] == 'link'){$sel=' checked';}else{$sel=NULL;}?>
    <input name="filetype" type="radio" value="link"<?=$sel;?>>
    </font>or image link: </div></td>
    <td><input name="image_link" type="text" id="image_link" value="<?=$_POST['image_link'];?>" size="23"></td>
    </tr>
    <tr>
    <td><div align="left"><font size="2">Email: </font></div></td>
    <td><input name="user_email" type="text" id="user_email" value="<?=$_POST['user_email'];?>" size="23"></td>
    </tr>
    <tr>
    <td colspan="2"><div align="center"><font size="2">Allowed extensios: gif, jpg, jpeg, bmp, png <?php if($extensions_allowed == 1){echo ' and flash(swf)';}?><br/>
    <a href="http://www.HotFile.us" target="_blank"><font color="#FF0000">Upload other extensions</font></a></font></div></td>
    </tr>
    <tr>
    <td colspan="2">
    <div align="center">
    <input type="checkbox" name="rules" id="rules" value="yes">
    I agree to <a href="<?=$SITE_URL.$urls['tos'];?>" target="_blank"><?=$SITE_NAME;?> TOS</a> </div></td>
    </tr>
    </table>
    <p align="center">
    <input type="submit" name="Submit" value="Upload Me" class="button">
    <input name="submit_id" type="hidden" id="submit_id" value="2">
    </p>
    </div>

    </div></form>
    </td>
    <?php
    } else {
    ?>
    <td width="33%"><div align="center">
    <p align="left"><strong><font color="#99FF00">Your Image upload is complete:</font></strong></p>
    <?php
    if($ENABLE_THUMB == 1 && $check_thumb == true){
    echo '<img src="'.$thumbnail_link.'"><br/>';
    ?>
    <p>Thumbnail link: </p>
    <p>
    <input name="textfield" type="text" value="<?=$thumbnail_link;?>" style="width:100%; border:1px solid #CCCCCC;" readonly>
    </p>
    <p>
    <?php } ?>
    </p>
    <?php
    if($ALLOW_SELF_VIEW == 1){?>
    <p>Direct Image Link:</p>
    <p>
    <input name="textfield" type="text" value="<?=$selfview_link;?>" style="width:100%; border:1px solid #CCCCCC;" readonly>
    </p>
    <?php } ?>
    <p>HTML Link (Ebay,MySpace,Blogs,etc.):</p>
    <p>
    <textarea name="textfield" rows="3" readonly="readonly" style="width:100%; border:1px solid #CCCCCC;"><?=$html_link;?></textarea>
    </p>
    <p>Image link (Unlimited Usage):</p>
    <p>
    <input name="textfield" type="text" value="<?=$image_link;?>" style="width:100%; border:1px solid #CCCCCC;" readonly>
    </p>
    <p>
    <?php
    if($ENABLE_THUMB == 1 && $check_thumb == true){?>
    BBCode:</p>
    <p>
    <input name="textfield" type="text" value="[​IMG]" style="width:100%; border:1px solid #CCCCCC;" readonly>
    </p>
    <?php } ?>
    <p>File <font color="#FF0000"><strong>DELETE</strong></font> link:</p>
    <p>
    <input name="textfield" type="text" value="<?=$delete_link;?>" style="width:100%; border:1px solid #CCCCCC;" readonly>
    </p>
    <p>&nbsp;
    </p>
    <?php
    if($invalid_email == true){?>
    <p><strong><font color="#FF00FF" size="2">You told us to email you this info, unfortunately we couldn't because you supplied us with an invalid email! </font></strong></p>
    <?php } ?>
    <p><em>Thank you for using <?=$SITE_NAME;?> </em></p>
    </div></td>
    <?php }
    $second = ob_get_contents();
    ob_end_clean();

    if($ROTATE_ADS == 1){
    srand((double)microtime()*1000000);
    $random = rand(0,1);

    switch($random){
    case 0;
    echo $ad_body;
    echo $second;
    break;
    case 1;
    echo $ad_body;
    echo $second;
    break;
    }
    } else {
    echo $second;
    echo $ad_body;
    }

    ?>
    </tr>
    </table>
     
    yyyk9, Jun 16, 2007 IP