Programming can be fun.

1    09 Jun 2018 22:45 by u/veriodd


    switch($wpiece) {                                                                           // switch 1 -> descending/multicatch
        case 'login':                                                                           // basics then full abort
                jsbod('lg');
                $ltop = implode( '', file("assets/tmpl/login.htm"));
                $lbot = implode( '', file("assets/tmpl/about.htm"));
                $but = wutbut('scrolly-middle style2', 'About Vereum', '#banner');
                $trepout = wutpeece('header', '', $ltop, $but);
                $trepout .= wutpeece('banner', '', $lbot, '');
                return $trepout;                                                                // should be safe to proceed
                exit;
        break;
        // -- ANUSTART
        case 'forums':
        case 'topics':                                                  // ------> Forums/Topics/Posts
        case 'posts':
                if($_REQUEST['sub_do'] == 'vnw') {      require_once 'f_post.php'; }    // generates $ltop
                else {                                  require_once 'data_edit.php'; }
        break;
    }
    switch($wpiece) {                                                                           // switch 2

2 comments

0

What's the fun in here? I don't get it. :)

Or is it incomplete, because the second switch statement only has an opening brace.

0

ANUSTART