View Single Post
Old 03-11-2008, 02:28 PM   #1 (permalink)
Gareth
The Acquainted
 
Gareth's Avatar
 
Join Date: Jan 2008
Posts: 136
Thanks: 4
Gareth is on a distinguished road
Default Preview: Upcoming Image Upload Script + Member System

Hi guys.

I am half way through creating an image upload system with an integrated member system and acp features.

A key aim is to make this script incredibly simple, on the surface at least.

I would like to show you the index file, which gives you a very good idea of what I really want the whole script to be like:

PHP Code:
<?php

// **********
// Config..
// **********

    
require_once("conf_global.php"); 
    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <?php display('meta'); ?>
    
    <?php title('Home'); ?>
    
    <style type="text/css">
        @import url("style.css");
    </style>    
</head>

<body>
    
    <?php display('logo'); ?>

    <div class="wrapper">                        
        
        <?php display('loggedinas'); ?>
        
        <div class="nav">
            <a href="index.php">Home</a>
        </div>
        
        <hr />
        
        <?php       
            
            
// **********
            // Is user logged in?
            // **********
              
                
if ( isLoggedIn() ){    
        
                    
display('membernav'); 
                
                }
        
?>
        
        <h1>Upload an Image</h1>        
        
        <div class="mainContent">
            <p>
                Here you can upload an image. 
            </p>
                 
            <?php showUpload(); ?>
            
        </div>
    
    </div>

</body>
</html>
What, in your opinion, would make this even easier to use? What are your opinions on it?

Thanks for reading

Gareth
Gareth is offline  
Reply With Quote