Raised This Month: $213 Target: $400
 53% 

Console Explorer v2.4 6/25/07


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
stupok
Veteran Member
Join Date: Feb 2006
Old 06-08-2007 , 22:42   Console Explorer v2.4 6/25/07
Reply With Quote #1


Console Explorer v2.4
Last updated 6/25/07

Description
This plugin allows the admin to edit files and folders on the server through the console.

Commands
ce_help
Use this to list all commands and their usages.


ce_open <full path>

Use this to open folders or files. To open the base directory, type "te_open ."
When you open text files the line numbers will be appended to the beginning
of each line.

* Correct usage: ce_open ".\maps\some folder\a file.txt"

Also note:
In order to open the parent directory, you may use:
ce_open "directory\.."


ce_new <full path>

Use this to create a new file or folder.


ce_delete <full path>

Use this to delete a file or folder. Please note that you cannot delete a directory
that contains a directory with files or folders. You may only delete a directory
that contains no directory with files or folders.
For example, we are given: ".\folder1\"

folder1 contains:
folder2
file.txt
Now, if folder2 has no files or folders inside, then you can delete folder1
with one command:
ce_delete ".\folder1"
However, if folder2 contains any files or folders, then you must delete it
seperately:
ce_delete ".\folder1\folder2"
ce_delete ".\folder1"


ce_replace_line <line number> <new line text>

First you must open a text file with "ce_open file". Then, use this to replace a
line in the text file with your own line.

* Correct usage: ce_replace_line 51 "This is the text that will go on line 51."


ce_replace_string <replace this text> <with this text>

First you must open a text file with "ce_open file". Then, use this to replace all
phrases in the text file that match the first argument.

* Correct usage: ce_replace_string "admin" "lolzor"


ce_cmd <yes|no>

This commands only works after you use the command te_delete. You must confirm
that you want to delete a file or directory before it is actually deleted.
Plans for the future
Clean up and optimize the code.

Changelog
Code:
06/24/07 - v2.4 - More optimization, better recognition of files/dirs. te -> ce
06/23/07 - v2.3 - Optimization, te_cmd instead of two commands. More than
                  one person can use it at one time.
06/09/07 - v2.1 - Added te_help.
06/08/07 - v2.0 - Initial release.
Warning
Code:
*********************************** WARNING ***********************************
*********************************** WARNING ***********************************
*********************************** WARNING ***********************************

This plugin can potentially make your server COMPLETELY vulnerable. It may also
violate your terms of service with your server provider. Use at your own risk.
	
*********************************** WARNING ***********************************
*********************************** WARNING ***********************************
*********************************** WARNING ***********************************
Attached Files
File Type: sma Get Plugin or Get Source (console_explorer.sma - 1606 views - 17.3 KB)

Last edited by stupok; 06-25-2007 at 15:14. Reason: Added warning from sma
stupok is offline
datwinkle
BANNED
Join Date: May 2006
Location: Virginia
Old 06-08-2007 , 22:52   Re: Console Explorer v2.0 6/8/07
Reply With Quote #2

neat. trying it now!
datwinkle is offline
Send a message via AIM to datwinkle
regalis
Veteran Member
Join Date: Jan 2007
Old 06-08-2007 , 23:03   Re: Console Explorer v2.0 6/8/07
Reply With Quote #3

Nice, waited just for this to check it out ;)

greetz regalis
__________________
regalis is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 06-09-2007 , 00:53   Re: Console Explorer v2.0 6/8/07
Reply With Quote #4

Very Usefull and origional.
__________________
bmann_420 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-09-2007 , 02:13   Re: Console Explorer v2.0 6/8/07
Reply With Quote #5

Heh,atleast is out! Gj stupok
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 06-09-2007 , 06:39   Re: Console Explorer v2.0 6/8/07
Reply With Quote #6

Original, but how can i use te_replace_line/te_replace_string without viewing the source for already existing file? te_view command would be helpful.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm

Last edited by Simon Logic; 03-25-2008 at 06:39.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 06-09-2007 , 09:09   Re: Console Explorer v2.0 6/8/07
Reply With Quote #7

Good idea! +k

An instance: you may add an command ( "te_help" etc. ) for show all the commands & manual. Thanks.
Ryu2877 is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 06-09-2007 , 13:11   Re: Console Explorer v2.0 6/8/07
Reply With Quote #8

@Simon Logic
The way I have it set up, you must open the text file first with te_open and then you can use te_replace_line or te_replace_string to edit the file. I don't know what you mean by te_view, sorry.

@Ryu2877
I think adding a help command is a great idea.
stupok is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 06-09-2007 , 13:20   Re: Console Explorer v2.0 6/8/07
Reply With Quote #9

Just looked into the source code. I did't know that you print contents on ts_open. Now, it's ok =)
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-10-2007 , 14:38   Re: Console Explorer v2.1 6/9/07
Reply With Quote #10

Nicely done. I suggest however, that with te_open, when displaying files, display like 10 files at a time. Because if for some reason, someone were to go into "the wrong place" (such as the maps or models dir. which contains many many files), it will completely flood their console (not to the point of crashing, but it would be annoying).

Otherwise looks good.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply


Thread Tools
Display Modes

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 -4. The time now is 04:10.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode