Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-21-2005, 09:58 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it were my page I'd reverse how you have the tags. Your also missing a couple tag and have some extra tags as well

PHP Code:
<?php
error_reporting
(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''filename');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head> 
<title>Free Image hosting</title>

<style type='text/css'>

/* CSS generated at csscreator.com */ 
a {
    color:FF6600; text-decoration:none; 

a : visited {
    color:FF6600; 

a : hover {
    color:000000; text-decoration:underline; 

</style> 

</head> 

<body background="img/wall.gif"> 

<p align="center">&nbsp;</p> 
<div align="center"> 
    <table border="1" width="800" bordercolor="#000000" cellspacing="3" cellpadding="3"> 
        <tr> 
            <td height="74" width="310" bordercolor="#000000" bgcolor="#FFFFFF"> 
                   <p align="center"> 
                    <img border="0" src="img/logo.gif" width="292" height="74">
                </p>
            </td> 
            <td height="1" width="10" bordercolor="#000000" bgcolor="#FFFFFF"> 
                <p align="center"> 
                    <img border="0" src="img/ad1.gif" width="468" height="60" align="right">
                </p>
            </td> 
        </tr> 
        <tr> 
            <td width="1044" bordercolor="#000000" bgcolor="#FFFFFF" colspan="2"> 
                <p align="center">
                    <font face="Verdana" style="font-size: 9pt\">Welcome to <em> 
                    <font color="#FF6600">****</font></em>, a fast and reliable <strong>free</strong> 
                    image hosting service, no registration is required and you may share 
                    your images, instantly!
                    </font>
                </p> 
                <p align="center">
                    <form enctype="multipart/form-data" action="index.php" method="post"> 
                        <p align="center">
                            File: <input type="file" name="userfile" />
                            <br /> 
                            <br /> 
                            <font face="Verdana" style="font-size: 9pt">Image Types Allowed:<strong> jpg, png, gif</strong>
                            <br /> 
                            Maximum Size: <strong>200kb</strong></font>
                            <br /> 
                            <br /> 
                            <input type="submit" VALUE="Upload"> 
                        </p> 
                    </form> 
                </p>
                <p align="center">
    
                <?php
                $path 
"images/"
                
$max_size 200000
                
                if (!isset(
$HTTP_POST_FILES['userfile'])) exit; 
                
                if (
is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) { 
                
                if (
$HTTP_POST_FILES['userfile']['size']>$max_size) { echo "<center>The file is too big</center><br />\n"; exit; } 
                if ((
$HTTP_POST_FILES['userfile']['type']=="image/gif") || ($HTTP_POST_FILES['userfile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/jpeg")) { 
                
                if (
file_exists($path $HTTP_POST_FILES['userfile']['name'])) { echo "The file already exists<br />\n"; exit; } 
                
                
$res copy($HTTP_POST_FILES['userfile']['tmp_name'], $path 
                
$HTTP_POST_FILES['userfile']['name']); 
                if (!
$res) { echo "<center>upload failed!</center><br />\n"; exit; } else { echo "<center>upload sucessful</center><br />\n"; } 
                
                echo 
"<center>File Name: http://www.eh5.com/images/".$HTTP_POST_FILES['userfile']['name']."</center><br />\n"
                } else { echo 
"<center>Wrong file type</center><br />\n"; exit; } 
                
                }
                
                
?>
    
                </p>
            </td> 
        </tr> 
    </table> 
</div> 
<p align="center">
<font face="Verdana" size="1">&copy; 2005, All rights reserved<br /></font>
<font face="Verdana" size="2"><a href="about.php">About</a> | <a href="contact.php">Contact</a> | <a href="faq.php">FAQ</a> | <a href="tos.php">TOS</a></font>
</p>
</body>
</html>
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03870 seconds
  • Memory Usage 2,618KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete