View previous topic :: View next topic |
Author |
Message |
Mystis
Joined: 02 Mar 2003 Posts: 74
|
Posted: Mon Jun 16, 2003 6:07 pm Post subject: b2sql: Run SQL queries from your control panel |
|
|
Allows you to run SQL queries directly from your control panel. Incredibly useful in installing hacks that require you to run an SQL query, especially for those people that don't have access to something like phpMyAdmin. Very simple installation, just drop b2sql.php into your root b2 folder, and add the following line to b2menutop.txt:
That's it! I have added a security measure to it and disabled DROP statements, but do realize that this is still relatively insecure. Do NOT change the access level required to acces b2sql.php. That is a massive security risk. I'm not responsible for anything that happens to your data as a result of this hack! Be smart though, and nothing will happen to any of it.
Enjoy!
Edit by michel v: URL removed because of security issue, see my reply for explanation. _________________ - Mystis
[url=tidakada.com/board/viewtopic.php?t=3375]b2customfields v2[/url] | [url=tidakada.com/board/viewtopic.php?t=3375]b2sql[/url] | [url=tidakada.com/board/viewtopic.php?t=3375]b2quotes[/url] |
|
Back to top |
|
 |
xytx
Joined: 24 May 2003 Posts: 48
|
Posted: Mon Jun 16, 2003 7:55 pm Post subject: |
|
|
the greatest! now i dont have to go in my phpmyadmin anymore! thanks mystis!!! what would we be without you or michael  |
|
Back to top |
|
 |
moose
Joined: 04 May 2003 Posts: 196 Location: Winnipeg Canada
|
Posted: Mon Jun 30, 2003 7:48 pm Post subject: |
|
|
Great hack, thanks! |
|
Back to top |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Thu Jul 03, 2003 3:09 am Post subject: |
|
|
I removed the download URL after I checked the code.
There's one thing to know about b2menutop.txt, the access levels there are only for presentationnal purposes.
You still have to check the user's level on any b2 admin page. This is what's done on the standard b2/wordpress admin pages.
So, please copy/paste some code from other areas to check the user's level, uplod a corrected version, and then edit your post to give the corrected version's URL.  |
|
Back to top |
|
 |
|