Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2003, 02:21 AM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Running mySQL queries from adminCP, any hacks ??

Hello,

I'd like to install a hack which helps me run mysql queries from my vB adminCP.

I have checked the entire hack databse and couldn't find any ?

But, i read on a few threads that there are a few hacks which helps us run queries from adminCP, kindly help me with the links for the same in this forum.

I am using vB ver2.3.0.

Thank you
Reply With Quote
  #2  
Old 03-28-2003, 02:28 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know I've seen this somewhere but I cant find it XD
I think Logician is the one I'm supposed to credit for this

upload to /admin folder
Attached Files
File Type: php logician_query.php (11.6 KB, 32 views)
Reply With Quote
  #3  
Old 03-28-2003, 02:35 AM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Koutaru :

Thanks for the attachment.

Do i just upload that file to the admin folder and immediately have access in my adminCP to run queries ??
Do i have to retain the same file name logician_query.php or can i change the name of the file and still get it to work ??

Thanks for your time.
Reply With Quote
  #4  
Old 03-28-2003, 02:39 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the first few lines

$servername='localhost';
$dbusername='root';
$dbpassword='password';
$dbname='test';

This will allow you to access your database. You can rename it and it should work fine
Reply With Quote
  #5  
Old 03-28-2003, 02:58 AM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the instructions.

Hope other that that, i don't have to make any more changes...or run/execute a file??

Just change those details and upload, right...

I wanted to make sure thats it !

Thanks much again
Reply With Quote
  #6  
Old 03-28-2003, 03:00 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, just change those details, upload it to your /admin directory (or any directory for that matter, since it is password protected), and start running queries
Reply With Quote
  #7  
Old 03-28-2003, 04:38 AM
PurpleCow PurpleCow is offline
 
Join Date: Mar 2003
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think, if i change the name of the file : I'll have to make the following change, i suppose ??

In line 261, I have this :

<form name="form1" method="post" action="logician_query.php">

If the file name is changed, i'll have to change the action="newfilename.php" , right ??

Thanks much
Reply With Quote
  #8  
Old 03-28-2003, 05:12 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that's correct. Thanks for pointing that out
Reply With Quote
  #9  
Old 09-04-2003, 07:43 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

logician to the rescue again

i was having probs running queries though phpmyadmin (kept giving me an error so tried this and they went in first time and the hack works fine so can someone explain how this worked and phpmyadmin never.
Reply With Quote
  #10  
Old 09-04-2003, 08:45 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is way too simple, this can be the cause..

Well frankly this can't be a match for a great script like phpmyadmin.. I use phpmyadmin for my needs too. The reason I coded that script was to include in my hacks when a SQL query should be run. It is easier to say "upload&run this file and write this line in query box" instead of instructing a newbie to install phpmyadmin. Besides some hosts do not like you to install phpmyadmin too.

BTW. the URL of the script was this:
https://vborg.vbsupport.ru/showthrea...threadid=38262
Reply With Quote
Reply


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 01:36 AM.


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.04227 seconds
  • Memory Usage 2,260KB
  • 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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (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_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete