TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Show Off (http://www.talkphp.com/show-off/)
-   -   Preview: Upcoming Image Upload Script + Member System (http://www.talkphp.com/show-off/2460-preview-upcoming-image-upload-script-member-system.html)

Gareth 03-11-2008 02:28 PM

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

ReSpawN 03-11-2008 03:27 PM

Overall pretty simple, but that is from my perspective. I'm using SMARTY myself, so that people can script in HTML and just copy my SMARTY functions.

It overall, once again, looks pretty understandable. :-)

netsnake 07-10-2008 06:56 PM

Yeah, Smarty would make it shorter, but you still need some php behind.


All times are GMT. The time now is 11:45 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0