vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   I'm going to attempt the impossible (https://vborg.vbsupport.ru/showthread.php?t=85843)

filburt1 01-02-2003 07:05 PM

Well it's connecting to the database, starting a stopwatch, fetching raw template contents, eval'ing it, and then echoing the output.

And no I didn't do this:
Code:

echo "Test variable contains: \" it worked \""; // suckers!

Tony G 01-02-2003 09:59 PM

Weee, Good luck now that you've started! :D

filburt1 01-02-2003 10:01 PM

Hey I'm going simple, no multiple levels of forums, no PMs, no announcements, etc. Just posts, threads, and forums for starters. :)

Tony G 01-02-2003 10:04 PM

Screenshot anything you get done! :p

Should be super fast with only that on the forum. ;)

filburt1 01-02-2003 10:05 PM

0.002 seconds for the main page that references everything :D

There aren't that many templates because nothing that will be echoed will be hardcoded (a lession learned from vB2 template modding) but I'll have a screenshot in a few minutes once I fix a quick bug.

Tony G 01-02-2003 10:05 PM

Already something done, quick one. ;)

*Will feel like being on Cable* ;)

filburt1 01-02-2003 10:06 PM

1 Attachment(s)
Coincidently an error message screenshot:

Tony G 01-02-2003 10:08 PM

Didn't expect that one at all! :p

filburt1 01-02-2003 10:10 PM

1 Attachment(s)
Undergoing the startup procedure...

filburt1 01-02-2003 10:13 PM

And code! Yay!
PHP Code:

<?
require_once("helpers/mysqldbwrapper.php");
require_once("helpers/templates/engine.php");
require_once("helpers/miniclasses.php");
require_once("helpers/settings.php");

$watch = new stopwatch();

echo "Connecting to database...<br>";
$db = new mysqldbwrapper("localhost", "newforum", "mypasswordisnt", "yourpassword");

echo "Loading settings...<br>";
loadallsettings();

echo "Caching templates...<br>";
cachealltemplates();

echo "Startup complete!<br><br>";


$testvar = "it worked";
eval(makeevaltemplatecode("testtemplate", "echovar"));
echo "$echovar<br>";

echo "Shutting down db connection...<br>";
$db->close();

echo "Elapsed: " . $watch->elapsed() / 1000 . " sec; queries: " . $db->querycount;
?>



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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01304 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete