TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-11-2008, 02:28 PM   #1 (permalink)
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
Old 03-11-2008, 03:27 PM   #2 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 07-10-2008, 06:56 PM   #3 (permalink)
The Wanderer
 
Join Date: Jul 2008
Location: Germany
Posts: 20
Thanks: 0
netsnake is on a distinguished road
Default

Yeah, Smarty would make it shorter, but you still need some php behind.
__________________
Heaven for searching -> Xooria.com
Note: Please don't blame me for my English... 4 Years of it at school don't make it perfect! But feel free correct me!
Send a message via Skype™ to netsnake
netsnake is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:06 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design