Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default Just a wee bit of code for you all.

    If you guess what it's for and what it does, you can have a cookie.

    PHP Code:
    <?php
    session_start
    ();

    $start_count microtime();

    include(
    "core/conf_global.php");
    include(
    "core/class_core.php");
    include(
    "core/class_db.php");
    include(
    "core/class_template.php");

    // Include the code + the DB thingy... doodad >_>

    $core =             new main_core;
    $core->db =         new db_core;
    $core->template =    new template_core;

    $core->db->core =&     $core;
    $core->template->core =& $core;
    $core->template->db =& $core->db;

    $core->db->init_db();

    $start_compile_time microtime();

    switch( 
    $_GET["act"] )
    {
        case 
    "login":
            
    $core->process_login$_POST["username"], $_POST["password"] );
            break;
            
        case 
    "main":
            
    // As this will take on multiple pages, we need to do things a little differently.
            // First is just a page verification check, then we can move on, then we'll move on.
            
            
    if( file_exists"pages/" $_GET["page"] . ".php" ) )
            {
                
    $core->template->compile_template$_GET["page"], "kp_blue""main" );
            }
            else 
            {
                
    $core->template->compile_template"welcome""kp_blue""main" );
            }
            break;
            
        default:
            
    $core->template->compile_template"""kp_blue""login" );
            break;
    }

    $end_compile_time microtime();

    $end_count microtime();

    echo(
    "<!--\nTotal time to complete entire script: " . ($end_count $start_count) . " Seconds\n" 
         
    "Total time to complete page functions: " . ($end_compile_time $start_compile_time) . " Seconds\n-->");

    ?>
    Moved by Agesilaus (Forum Moderator) from Designing & Development: Please post in the correct forum next time.
    Last edited by Agesilaus; 03-01-2008 at 11:48 AM.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  2. #2
    Join Date
    Jan 2007
    Location
    England, Uk, World, Universe,
    Posts
    1,012
    Tokens
    0

    Latest Awards:

    Default

    it looks like a login system for a forum, because it has template stuff aswell. Or a login system?
    my sig ran away,

  3. #3
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    KP login. Some login system by the looks of it.

  4. #4

    Default

    Looks like an object orientated login script?

  5. #5
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    KP 1

    Ive seen the code you sent me. I have all the files aswell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •