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)
-   -   Main Control Panel: Including SSH Backup & Restore Through Your AdminCP! (https://vborg.vbsupport.ru/showthread.php?t=50166)

N9ne 03-14-2003 10:00 PM

Main Control Panel: Including SSH Backup & Restore Through Your AdminCP!
 
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Main Control Panel Hack, by N9ne \\ Created on March 15th 2003. \\ Copyright N9ne, 2003+.
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Description: This hack will add a page to the adminCP. On this page, there are many settings.
You can set which userids can access this page and its options in config.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Options available on page:
- Overwrite database with a backup
- Create backup
- Reset post counts
- Include Administrators?
- Delete 0 posters
- Prune all threads and posts
- Prune all PMs
- Delete all smilies
- Delete all icons
- Delete all custom avatars
- Delete all avatars
- Delete all attachments
- Delete all announcements
- Delete all forums

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
You require SSH or telnet access on your server in order to run this hack. It will be running
mysql < and mysqldump > commands, so they must be installed. This may not work on all
windows systems. If you want to run this on localhost with a windows OS, you will need to add
chdir commands before mysql and mysqldump executions.
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Level of hacking: Easy
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Time Taken: 1 minute.
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Files to modify:
admin/index.php
admin/adminfunctions.php
admin/config.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Files to upload:
admin/maincontrol.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
In the attached .zip file you can find: A screenshot of some of the options \\ Instructions for installation \\ maincontrol.php

assassingod 03-15-2003 01:10 AM

Exellent! Just what I needed! Brilliant work!

Thanks N9ne:)

Merjawy 03-15-2003 01:22 AM

very nice indeed.. I will install tonight

thnx

DrkFusion 03-15-2003 01:28 AM

You have released a total package, I will be suprised if this hack doesn't get a million installs :p

Talisman 03-15-2003 01:54 AM

Count me in. Thanks N9ne.

Velocd 03-15-2003 02:18 AM

Nice stuff, I will have to look into this hack. ;)

[high]* Velocd clicks install[/high]

refertech 03-15-2003 02:24 AM

Very elite hack. :)

Thanks,

Mark

joeboo 03-15-2003 03:42 AM

Grr.. this hack comes out right after my database crashed. My backup was only half completed (timed out) XD Very nice though.

LangTuDaTinh 03-15-2003 04:08 AM

Create backup is good but other features.....hehee it's best to do it via phpmyadmin. one wrong mouse click can erase all.

Chris M 03-15-2003 06:45 AM

True;)

Nice hack N9ne...Shame I won't be able to test it out:(

Satan

partang2 03-15-2003 07:21 AM

Will this work with 2.2.9?

assassingod 03-15-2003 07:49 AM

Quote:

Today at 09:21 AM partang2 said this in Post #11
Will this work with 2.2.9?
I shouldn't see why not.

Intex 03-15-2003 09:04 AM

Nice work N9ne. I'll install this soon :cool:.

Sliderx 03-15-2003 09:09 AM

nice hack

Dean C 03-15-2003 09:27 AM

Very nice idea. This is a very touchy hack so it will be interesting to see the bugs flood in ;)

- miSt

AllMadden.net 03-15-2003 12:57 PM

After doing the install I am getting this error when trying to log into my vB admin:

Parse error: parse error, unexpected $ in /home/virtual/site4/fst/var/www/html/madden/forums/admin/index.php on line 346

Not sure what it causing it...I didn't edit anything but what the file said...

Schorsch 03-15-2003 01:09 PM

hmm I can't create a backup with your hack.

I get the message "Backup complete.", but nothing is in the folder.

I have full SSH access and can manually create a dump via mysqldump.

what could be wrong ?

regards,
Schorsch

assassingod 03-15-2003 01:59 PM

Quote:

Today at 02:57 PM AllMadden.net said this in Post #16
After doing the install I am getting this error when trying to log into my vB admin:

Parse error: parse error, unexpected $ in /home/virtual/site4/fst/var/www/html/madden/forums/admin/index.php on line 346

Not sure what it causing it...I didn't edit anything but what the file said...

Could you post line 346 for us? I am guessing you have an extra $ in that line of code

Link14716 03-15-2003 02:35 PM

[high]* Link14716 installs. :)
[/high]

Good job N9ne.

ZiRu$ 03-15-2003 04:38 PM

You mentioned a WINDOWS host.....will this work on a host that is powered by UNIX?

N9ne 03-15-2003 05:15 PM

I mentioned that it might not work on a windows server. It should work on unix systems though.

AllMadden: Please post the code on and around that line.

Schorsch: What are the details of your server? What is the OS being used? Try executing this command from an SSH window on your server:

mysqldump --opt -uDBUSERNAME -pDBPASSWORD DBNAME > /path/to/backup/file.sql

Tell me if that works.

Derek 03-15-2003 05:22 PM

How can I make it so that I automatically have the folder I want my backups to go in remembered? I tried placing it in the code, but it didn't work... ideas?

N9ne 03-15-2003 05:38 PM

Quote:

Today at 07:22 PM Derek said this in Post #22
How can I make it so that I automatically have the folder I want my backups to go in remembered? I tried placing it in the code, but it didn't work... ideas?

Open maincontrol.php

Find:
PHP Code:

  makeinputcode("Full path to folder where you want to create the backup file (<b>With</b> trailing slash)","dumpfilepath",""); 

Replace with:
PHP Code:

makeinputcode("Full path to folder where you want to create the backup file (<b>With</b> trailing slash)","dumpfilepath","/path/to/backup/folder/"); 

Change the path, and it should work.

Schorsch 03-15-2003 10:48 PM

Quote:

Yesterday at 08:15 PM N9ne said this in Post #21
Schorsch: What are the details of your server? What is the OS being used? Try executing this command from an SSH window on your server:

mysqldump --opt -uDBUSERNAME -pDBPASSWORD DBNAME > /path/to/backup/file.sql

Tell me if that works.

I use SuSE Linux 8.1

the mysqldump command works without problems (used this many times before).

N9ne 03-15-2003 10:51 PM

Well I'm really no expert on SSH/telnet or servers...so I guess the problem is out of my hands, and I suppose that's a feature you won't be able to use, until I somehow figure out a way to make it work. Sorry :(.

alkatraz 03-18-2003 07:06 AM

awesome!!!!!!!!!!! I've been waiting for something like this for a long time
thx!

Areku 03-18-2003 10:21 AM

Any screenie? ;)

Schorsch 03-18-2003 10:24 AM

Quote:

Today at 01:21 PM Areku said this in Post #27
Any screenie? ;)
look in the zip file

N9ne 03-18-2003 02:32 PM

Quote:

Today at 09:06 AM alkatraz said this in Post #26
awesome!!!!!!!!!!! I've been waiting for something like this for a long time
thx!


hehe no problem :). I'm glad there's quite a bit of enthusiasm for this hack, version 1.1 may be on its way soon though, with some fixes.

romanticyao 03-19-2003 11:11 AM

great! many thanx!

AllMadden.net 03-29-2003 03:47 PM

Sorry I didn't post the line of code...I fixed that.

But I do have another question. Where does the maincontrol.php go? forums/admin/ ?

I put it there and the options didn't show up in the admin cp (unless I am just blind and don't see them.

N9ne 03-29-2003 03:53 PM

Upload maincontrol.php to your admin directory. Make sure you've made the modifications to admin/index.php to make it show in the navigation.

Entourage 04-10-2003 09:01 AM

nice hack! Works lovely. Tnx

tkeil69575 04-25-2003 04:07 PM

great hack - absolutely perfect. thanks n9ne

tina

N9ne 04-25-2003 07:16 PM

Please click install Tina :)

brianoneill 04-26-2003 05:34 PM

I Have it installed ok, but having problems doing a backup.

Is it the case that it will only backup to a location on the same server? Or will it backup to your local machine?

If it will only do it to the server would someone mind posting an example of a path so I know what to try.

I ain't to hot on linux :ermm:

Thanks in advance.

Brian

N9ne 04-26-2003 07:11 PM

If you have cPanel, most likely the path will be something like:

/home/YOURACCTUSERNAME/public_html/these_are_folders_viewable_by_the_world

And you are correct in saying that they will only backup to the server. It will create a file on your server which you can then download to your local machine.

subu1 04-26-2003 07:32 PM

for which I should delete the Threads and Postings I don't understand

regards,
greetz subu1

rake 04-27-2003 07:07 AM

Very nice hack indeed. I'm not going to use it since i like doing everything myself, but i suggest adding an option to replace

mysqldump --opt
with
mysqldump --add-drop-table --all

since some servers might have restrictions on locking tables.
EDIT: By the way, it is guaranteed not going to work on a windows server, since the sytaxes for mysqldump and mysql are different.

brianoneill 04-27-2003 09:48 PM

Quote:

Yesterday at 09:11 PM N9ne said this in Post #37
If you have cPanel, most likely the path will be something like:

/home/YOURACCTUSERNAME/public_html/these_are_folders_viewable_by_the_world

And you are correct in saying that they will only backup to the server. It will create a file on your server which you can then download to your local machine.

Any idea what the path would be for a plesk server?

Thanks

Brian


All times are GMT. The time now is 12:40 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.01302 seconds
  • Memory Usage 1,819KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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