vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   SQL Query from Control Panel (https://vborg.vbsupport.ru/showthread.php?t=33731)

JamesUS 01-01-2002 10:00 PM

This hack allows you to execute custom SQL queries from the control panel.

I know there are one or two other hacks that do this but this one is different in that it can also cope with 'SELECT' queries. Results are displayed in a table for select queries. Inspired by wluke's older version of this hack for vB 1.1.x, I have been using this succesfully for a few days now on my own forums.

Instructions[list type=1][*]Upload attached 'query.php' file to the admin folder.[*]In admin/index.php, find:
PHP Code:

makenavselect("Options","<hr>"); 

underneath, add:
PHP Code:

makenavoption("Run Query""query.php?t=0");
makenavselect("Database Maintanence""<br>"); 

[/list]This hack copyright James Ussher-Smith &copy; 2001 - 2002

Dalius 01-02-2002 04:13 PM

This is VERY useful, thanks!

Dalius 01-02-2002 04:42 PM

I did exactly what it sais but....

whats with the gap?

Lesane 01-02-2002 04:52 PM

GREAT hack, thanks.

FWC 01-02-2002 05:22 PM

Quote:

Originally posted by Dalius
I did exactly what it sais but....

whats with the gap?

Remove the <br> after Database Maintenance if you want that gap to go away.

FWC 01-02-2002 05:24 PM

Quote:

Originally posted by JamesUS
Inspired by wluke's older version of this hack for vB 1.1.x, I have been using this succesfully for a few days now on my own forums.
Very nice, James! I've been using Wayne's hack for months. This version looks much more vB like. :)

Dalius 01-02-2002 06:18 PM

Quote:

Originally posted by FWC
Remove the <br> after Database Maintenance if you want that gap to go away.
thanks

DelusionalMind 01-06-2002 10:57 PM

very nice :)

no more firing up phpmyadmin :)

Stretchr 01-16-2002 03:19 PM

Nice job but unless I'm missing something, Chen already wrote and posted a similar hack to this with a little more functionality:
https://vborg.vbsupport.ru/showthrea...threadid=26272

Ph0eniX 08-21-2002 01:53 AM

I'm getting this when I click on "Run Query":

"CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:"

...any ideas?


All times are GMT. The time now is 08:45 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.01156 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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