]> git.p6c8.net - devedit.git/log
devedit.git
20 years ago- There is no need to load the POSIX module twice
pcanterino [Sun, 31 Oct 2004 09:31:17 +0000 (09:31 +0000)]
- There is no need to load the POSIX module twice
- Dev-Editor also shows the current umask of the process in the about dialogue

20 years agoBecause of the ugly behaviour of $(, I'm now using the getgid() function from
pcanterino [Sat, 30 Oct 2004 17:32:26 +0000 (17:32 +0000)]
Because of the ugly behaviour of $(, I'm now using the getgid() function from
the POSIX module to detect the process GID. For being consistent, I'm now using
getuid() (also from the POSIX module) to detect the process UID.

20 years agoIn file edit and file upload dialogue, I added <label> tags for the checkboxes
pcanterino [Fri, 29 Oct 2004 15:06:17 +0000 (15:06 +0000)]
In file edit and file upload dialogue, I added <label> tags for the checkboxes
and radio buttons.

20 years agoChanged a comment
pcanterino [Thu, 28 Oct 2004 14:58:38 +0000 (14:58 +0000)]
Changed a comment

20 years agoRemoving one and more whitespace makes more sense than removing no, one and more...
pcanterino [Thu, 28 Oct 2004 09:45:07 +0000 (09:45 +0000)]
Removing one and more whitespace makes more sense than removing no, one and more whitespaces.

20 years agoWe are now using the `chgrp` system command to change the group of a file
pcanterino [Wed, 27 Oct 2004 19:47:35 +0000 (19:47 +0000)]
We are now using the `chgrp` system command to change the group of a file
(see bug [1052335])

20 years agoWhen viewing a file, insert the contents of the file into the template AFTER
pcanterino [Sat, 23 Oct 2004 13:29:13 +0000 (13:29 +0000)]
When viewing a file, insert the contents of the file into the template AFTER
parsing the "editable" {IF}-block.
(Ever tried to view the viewfile.htm template file using Dev-Editor? Oh my god!)

20 years agoDev-Editor 2.1a version_2_1a
pcanterino [Fri, 22 Oct 2004 09:58:50 +0000 (09:58 +0000)]
Dev-Editor 2.1a

20 years agoInstead of absolute paths in error_file and template_file, I use relative ones.
pcanterino [Fri, 22 Oct 2004 09:58:09 +0000 (09:58 +0000)]
Instead of absolute paths in error_file and template_file, I use relative ones.
That's better for me ;-)

20 years agoNow we already unlock the file at the begining of exec_endedit(), because if an
pcanterino [Fri, 22 Oct 2004 09:40:22 +0000 (09:40 +0000)]
Now we already unlock the file at the begining of exec_endedit(), because if an
error occurs during saving, the file keeps locked.
This is not a perfect solution, there are still problems. I have to figure out
another one.

20 years agoDev-Editor 2.1 version_2_1
pcanterino [Wed, 13 Oct 2004 19:55:45 +0000 (19:55 +0000)]
Dev-Editor 2.1

20 years agoRemoved the note which said that existing files can't be overwritten
pcanterino [Thu, 7 Oct 2004 16:35:24 +0000 (16:35 +0000)]
Removed the note which said that existing files can't be overwritten

20 years agoChanged some comments
pcanterino [Tue, 5 Oct 2004 18:05:26 +0000 (18:05 +0000)]
Changed some comments

20 years agoexec_unlock() now checks if the file is really in use. Otherwise, we return to
pcanterino [Tue, 5 Oct 2004 17:43:11 +0000 (17:43 +0000)]
exec_unlock() now checks if the file is really in use. Otherwise, we return to
directory view (maybe we change this behaviour and display an error message...).

20 years agoCheck if the user wants to write text data into a binary file when saving a file
pcanterino [Tue, 5 Oct 2004 17:33:47 +0000 (17:33 +0000)]
Check if the user wants to write text data into a binary file when saving a file

20 years agoImproved file editing using another filename:
pcanterino [Mon, 4 Oct 2004 17:50:05 +0000 (17:50 +0000)]
Improved file editing using another filename:
- If the user just entered spaces as filename (detection works for other
  commands using the "newfile" CGI parameter too), we use the original filename
- Saving even works if the file has to be created first

20 years agoImproved file editing using another filename:
pcanterino [Mon, 4 Oct 2004 17:50:04 +0000 (17:50 +0000)]
Improved file editing using another filename:
- If the user just entered spaces as filename (detection works for other
  commands using the "newfile" CGI parameter too), we use the original filename
- Saving even works, if the file has to be created first

20 years agoOoops...?
pcanterino [Sun, 5 Sep 2004 15:25:09 +0000 (15:25 +0000)]
Ooops...?
What was that?

Something definitely went wrong when I remade the copy and the rename functions.
They printed a wrong error message if the destination already existed and if it
was a file.
Dev-Editor also didn't deny copying a directory.

20 years agoAdded an option for overwriting files during file upload if they already exist
pcanterino [Sun, 29 Aug 2004 12:43:15 +0000 (12:43 +0000)]
Added an option for overwriting files during file upload if they already exist

20 years agoDev-Editor 2.0 version_2_0
pcanterino [Mon, 9 Aug 2004 13:51:28 +0000 (13:51 +0000)]
Dev-Editor 2.0

20 years ago- Added some notes for changing mode and group
pcanterino [Sat, 7 Aug 2004 11:33:19 +0000 (11:33 +0000)]
- Added some notes for changing mode and group
- The formular fields are no longer filled with the old values

20 years agoRemoved the race condition in file_create() which could set a file to 0 if it
pcanterino [Thu, 5 Aug 2004 10:06:49 +0000 (10:06 +0000)]
Removed the race condition in file_create() which could set a file to 0 if it
already exist.
I wanted to use O_EXCL, but `perldoc -f sysopen` doesn't say that O_EXCL is
avaiable in _every_ system. So I use O_RDONLY and O_CREAT.
Additionally, I replaced all the open() calls in this module by sysopen() calls.

20 years agoSome small changes
pcanterino [Mon, 2 Aug 2004 09:55:53 +0000 (09:55 +0000)]
Some small changes

20 years agoAllow to change the group of a file using the Group ID
pcanterino [Sun, 1 Aug 2004 11:39:56 +0000 (11:39 +0000)]
Allow to change the group of a file using the Group ID
(Let's hope nobody will define a group composed only of numbers - let's hope it
isn't allowed at all - I should install Linux at home...)

20 years agoReplaced the code of mode_string() by some self-written code that I also
pcanterino [Fri, 30 Jul 2004 10:03:32 +0000 (10:03 +0000)]
Replaced the code of mode_string() by some self-written code that I also
understand
(The previous code was grabbed from Sven Rautenberg's SELFHTML Developer
internal PHP Dev-Editor)

20 years agoDev-Editor is now able to change the mode and the group of files
pcanterino [Thu, 29 Jul 2004 13:46:03 +0000 (13:46 +0000)]
Dev-Editor is now able to change the mode and the group of files

20 years agoCommands are now case-insensitive
pcanterino [Tue, 27 Jul 2004 12:30:46 +0000 (12:30 +0000)]
Commands are now case-insensitive

20 years agoDo not allow removing or renaming the root directory
pcanterino [Thu, 22 Jul 2004 10:50:16 +0000 (10:50 +0000)]
Do not allow removing or renaming the root directory

20 years agoFiles and directories are now sorted case-insensitively
pcanterino [Wed, 21 Jul 2004 19:50:41 +0000 (19:50 +0000)]
Files and directories are now sorted case-insensitively

20 years agoTypo
pcanterino [Wed, 21 Jul 2004 11:29:25 +0000 (11:29 +0000)]
Typo

20 years agoWhen viewing a file and if the file is editable, there is a new link to edit this...
pcanterino [Tue, 20 Jul 2004 12:07:37 +0000 (12:07 +0000)]
When viewing a file and if the file is editable, there is a new link to edit this file.

20 years agoThe Artistic License is now embedded in the about dialogue
pcanterino [Sun, 18 Jul 2004 19:50:31 +0000 (19:50 +0000)]
The Artistic License is now embedded in the about dialogue

20 years agoReplaced "&" by "&amp;" in query strings
pcanterino [Sun, 18 Jul 2004 11:41:31 +0000 (11:41 +0000)]
Replaced "&" by "&amp;" in query strings

20 years agoSmall enhancement for devedit_reload()
pcanterino [Sat, 17 Jul 2004 10:50:46 +0000 (10:50 +0000)]
Small enhancement for devedit_reload()

20 years agoD'oh!
pcanterino [Mon, 12 Jul 2004 13:40:39 +0000 (13:40 +0000)]
D'oh!

20 years agoHeavily improved devedit_reload():
pcanterino [Mon, 12 Jul 2004 12:30:35 +0000 (12:30 +0000)]
Heavily improved devedit_reload():

- Detection of SSL encrypted HTTP (HTTPS) by checking the HTTPS environment
  variable
- Check if the server listens on the default port or not
- Support for query string parameters with multiple values - thanks a lot to
  Andre Malo (n.d. parker)!
- Encode non-ASCII-chars and special chars in the query string
- Using virtual_host() from the CGI module (has some advantages)

20 years agoIn directory listing, when clicking on the buttons next to the fields for
pcanterino [Sun, 11 Jul 2004 14:04:51 +0000 (14:04 +0000)]
In directory listing, when clicking on the buttons next to the fields for
creating new files and directories without entering a file or directory name,
the user got an error message which is a little bit strange.
Now, the user will see a form for creating new files or directories.

Well, this is not perfect, but at least, this error will be catched.

20 years agoSmall improvement for the JavaScript code which activates the checkbox for
pcanterino [Sun, 4 Jul 2004 13:52:19 +0000 (13:52 +0000)]
Small improvement for the JavaScript code which activates the checkbox for
saving under a different file name:
If the field for the file name is empty, the checkbox will be deactivated.

20 years agoSome comments changed/added
pcanterino [Sun, 4 Jul 2004 13:16:40 +0000 (13:16 +0000)]
Some comments changed/added

20 years agoIf the user wants to view/edit a file larger than a defined size, Dev-Editor
pcanterino [Sat, 3 Jul 2004 07:23:14 +0000 (07:23 +0000)]
If the user wants to view/edit a file larger than a defined size, Dev-Editor
denies file access

20 years agoTypo
pcanterino [Tue, 29 Jun 2004 14:31:58 +0000 (14:31 +0000)]
Typo

20 years agoForgot the line break at the end of the file
pcanterino [Tue, 29 Jun 2004 14:30:41 +0000 (14:30 +0000)]
Forgot the line break at the end of the file

20 years agoWe "require" an active internet connection
pcanterino [Tue, 29 Jun 2004 14:29:00 +0000 (14:29 +0000)]
We "require" an active internet connection

20 years agoAdded a small field to jump to a directory or to view a file quickly
pcanterino [Tue, 29 Jun 2004 14:26:56 +0000 (14:26 +0000)]
Added a small field to jump to a directory or to view a file quickly

20 years agoUpdated to version 1.3
pcanterino [Sun, 23 May 2004 15:57:30 +0000 (15:57 +0000)]
Updated to version 1.3
See http://www.patshaping.de/redirector/redirect.php?page=template-class

20 years agoSplitted the configuration file into three parts:
pcanterino [Sun, 25 Apr 2004 13:04:06 +0000 (13:04 +0000)]
Splitted the configuration file into three parts:
- devedit.dat: The main configuration file
- errors.dat: Contains the error messages
- templates.dat: Contains the path to the templates files

20 years agoIn directory listing, there is a new menu item "View in browser" for each directory...
pcanterino [Mon, 15 Mar 2004 20:51:34 +0000 (20:51 +0000)]
In directory listing, there is a new menu item "View in browser" for each directory entry (except "..").

20 years agoAdded an "About" dialogue, which shows some (more or less useful) information about...
pcanterino [Sun, 14 Mar 2004 09:41:57 +0000 (09:41 +0000)]
Added an "About" dialogue, which shows some (more or less useful) information about Dev-Editor.
Additionally, the $VERSION variable in devedit.pl is back again.

20 years agoThere is no need to export error_in_use() any more, because I removed this function.
pcanterino [Sun, 14 Mar 2004 09:38:50 +0000 (09:38 +0000)]
There is no need to export error_in_use() any more, because I removed this function.

20 years agoAdded an "equals" link at the top and a horizontal rule at the bottom of the page.
pcanterino [Sun, 14 Mar 2004 08:01:41 +0000 (08:01 +0000)]
Added an "equals" link at the top and a horizontal rule at the bottom of the page.

20 years agoNow, all the error messages are defined in the configuration file.
pcanterino [Thu, 4 Mar 2004 17:21:38 +0000 (17:21 +0000)]
Now, all the error messages are defined in the configuration file.

20 years agoOooops...
pcanterino [Mon, 1 Mar 2004 15:37:57 +0000 (15:37 +0000)]
Oooops...

20 years agoDev-Editor is now able to accept HTTP file uploads.
pcanterino [Mon, 1 Mar 2004 15:36:41 +0000 (15:36 +0000)]
Dev-Editor is now able to accept HTTP file uploads.

20 years ago- Improved file editing (especially if the file should be saved using a different...
pcanterino [Sat, 28 Feb 2004 14:07:38 +0000 (14:07 +0000)]
- Improved file editing (especially if the file should be saved using a different name)
- After reading a file, the line separators will be converted to the system specific line separator
- Some other error messages are now found in the configuration file

20 years agoSome cleanings...
pcanterino [Sat, 28 Feb 2004 14:02:11 +0000 (14:02 +0000)]
Some cleanings...

20 years agoAdded a little bit JavaScript code which activates the checkbox before
pcanterino [Fri, 20 Feb 2004 14:09:35 +0000 (14:09 +0000)]
Added a little bit JavaScript code which activates the checkbox before
"Save as new file" when changing the corresponding input field

20 years agoCopying and renaming of files is back again!
pcanterino [Fri, 20 Feb 2004 11:51:30 +0000 (11:51 +0000)]
Copying and renaming of files is back again!
Additionally, there was an error which caused existing files not to be replaced
if they were not in the root directory. Now, this is fixed.

20 years agoBegan to implement the possibility to control the output using template files
pcanterino [Fri, 13 Feb 2004 12:40:18 +0000 (12:40 +0000)]
Began to implement the possibility to control the output using template files
and the configuration file.
The source code became much cleaner and we can now easily change the output.
The template system is not completely implemented yet, but I thought it's time
to save the current state of development.

20 years agoNow, we are using an extern configuration file.
pcanterino [Sat, 17 Jan 2004 18:13:32 +0000 (18:13 +0000)]
Now, we are using an extern configuration file.
The format of the configuration file is INI-like, but it has no sections and uses the #-sign for comments.
Currently, the parser is very simple. It doesn't support quotation marks around the keys and values, for example.

20 years agoDev-Editor 1.2 version_1_2
pcanterino [Mon, 29 Dec 2003 15:21:46 +0000 (15:21 +0000)]
Dev-Editor 1.2

20 years agoNow, when the user wants to remove a file, a confirmation dialog will be displayed
pcanterino [Mon, 22 Dec 2003 13:34:15 +0000 (13:34 +0000)]
Now, when the user wants to remove a file, a confirmation dialog will be displayed

20 years agoIf a file or directory shall be renamed and the destination file already exists,...
pcanterino [Sun, 21 Dec 2003 14:11:38 +0000 (14:11 +0000)]
If a file or directory shall be renamed and the destination file already exists, a confirmation dialog, which asks if the file should be overwritten, will be displayed. If the destination file already exists and it is a directory, renaming is not allowed.

20 years ago- If a file shall be copied and the destination file already exists, a confirmation...
pcanterino [Fri, 19 Dec 2003 09:24:41 +0000 (09:24 +0000)]
- If a file shall be copied and the destination file already exists, a confirmation dialog, which asks if the file should be overwritten, will be displayed. If the destination file already exists and it is a directory, copying is not allowed.
- Some small enhancements

20 years ago- Cleaned the comments
pcanterino [Sat, 13 Dec 2003 11:14:38 +0000 (11:14 +0000)]
- Cleaned the comments
- Fixed a typo

20 years agoSome cleanings...
pcanterino [Tue, 2 Dec 2003 17:57:33 +0000 (17:57 +0000)]
Some cleanings...

20 years ago- The commands are now dispatched in Command.pm. Only the method exec_command() is...
pcanterino [Tue, 2 Dec 2003 17:55:16 +0000 (17:55 +0000)]
- The commands are now dispatched in Command.pm. Only the method exec_command() is exported now (devedit.pl became a little bit cleaner).
- In directory listing, the link "Do other stuff" was renamed to "Work with file".
- In directory listing, there is now a link called "Work with directory" which displays a form to rename and to remove a directory.
- Added the possibility to completely remove a directory (I built a confirmation dialog!).
- Added default permission to mkdir() (sometimes, this is necessary).

20 years agoWe don't use the FILEHANDLE,MODE,FILENAME version of open() any more, because it...
pcanterino [Mon, 1 Dec 2003 13:43:44 +0000 (13:43 +0000)]
We don't use the FILEHANDLE,MODE,FILENAME version of open() any more, because it doesn't work everywhere.

21 years agoVersion 1.2:
pcanterino [Fri, 21 Nov 2003 17:08:28 +0000 (17:08 +0000)]
Version 1.2:
- We don't use the FILEHANDLE,MODE,FILENAME version of open() any more, because it doesn't work everywhere
- add_file() and remove_file() now return true if they succeed
- unlock() doesn't check any more if the lock file already exists

21 years agoIn directory listing, when a file cannot be viewed or edited, a tool tip on the ... version_1_1
pcanterino [Mon, 10 Nov 2003 18:27:59 +0000 (18:27 +0000)]
In directory listing, when a file cannot be viewed or edited, a tool tip on the "View" or "Edit" link will show the reason why it is so.

21 years agoRemoved the $VERSION variable. The version number of Dev-Editor is now found in the...
pcanterino [Wed, 5 Nov 2003 17:39:52 +0000 (17:39 +0000)]
Removed the $VERSION variable. The version number of Dev-Editor is now found in the head comment.

21 years agofile_save() does not use a temporary file any more. Otherwise, it would destroy the...
pcanterino [Wed, 5 Nov 2003 15:33:56 +0000 (15:33 +0000)]
file_save() does not use a temporary file any more. Otherwise, it would destroy the permissions of the file the user saves.

21 years agoAdded directory links in some error messages
pcanterino [Thu, 30 Oct 2003 12:03:50 +0000 (12:03 +0000)]
Added directory links in some error messages

21 years ago- Added devedit_reload() to easily reload Dev-Editor with different arguments
pcanterino [Mon, 27 Oct 2003 10:37:09 +0000 (10:37 +0000)]
- Added devedit_reload() to easily reload Dev-Editor with different arguments
- Fixed a small output error introduced with revision 1.6 of Command.pm (I'm so stupid...)

21 years ago- Now checking if we have enough permissions to copy a file
pcanterino [Mon, 27 Oct 2003 10:17:02 +0000 (10:17 +0000)]
- Now checking if we have enough permissions to copy a file

21 years ago- Added default colors for text and links
pcanterino [Wed, 22 Oct 2003 09:43:19 +0000 (09:43 +0000)]
- Added default colors for text and links
- Error messages can now show a link to a directory

21 years ago- exec_endedit(): Any line seperator will be converted to the OS specific line seperator
pcanterino [Wed, 22 Oct 2003 09:41:46 +0000 (09:41 +0000)]
- exec_endedit(): Any line seperator will be converted to the OS specific line seperator
- Implemented some checks if we have enough permissions to do some things if files (still needs work)
- Some error messages now include directory links

21 years agoVersion 1.1.1:
pcanterino [Fri, 17 Oct 2003 17:13:22 +0000 (17:13 +0000)]
Version 1.1.1:
- Improved constructor
- If we tried to unlock the list file and the lock file already exists, the 'lock' variable in the object properties wasn't set to 0
- Fixed a lot of typos
- Removed $VERSION variable (version number is now found in the head comment)

21 years agocheck_path() was cleaned up. It now uses upper_path() and file_name() instead of...
pcanterino [Mon, 13 Oct 2003 17:35:48 +0000 (17:35 +0000)]
check_path() was cleaned up. It now uses upper_path() and file_name() instead of fileparse().

21 years agoRemoved the call of canonpath() in dir_read(). File::Spec is not longer included...
pcanterino [Mon, 13 Oct 2003 17:09:03 +0000 (17:09 +0000)]
Removed the call of canonpath() in dir_read(). File::Spec is not longer included in this module.

21 years agoDev-Editor 1.0 version_1_0
pcanterino [Wed, 8 Oct 2003 11:47:51 +0000 (11:47 +0000)]
Dev-Editor 1.0

21 years agoVersion 1.1:
pcanterino [Fri, 26 Sep 2003 17:46:03 +0000 (17:46 +0000)]
Version 1.1:
- The file with the list will ony be unlocked, if it was locked by ourselves
- If the path to lock file is missing, it will be created by adding ".lock" to the path of the list file
- The return value of print() in save() is now checked
- Comments translated into English

21 years agoSome checks for the return values of open(), close() and print() added
pcanterino [Fri, 26 Sep 2003 17:29:13 +0000 (17:29 +0000)]
Some checks for the return values of open(), close() and print() added

21 years ago- Special chars will be encoded to HTML entities in directory listing and in other...
pcanterino [Thu, 25 Sep 2003 13:49:18 +0000 (13:49 +0000)]
- Special chars will be encoded to HTML entities in directory listing and in other messages (very dirty at several points)
- Improved check for binary files (empty files were recognized as binary files)
- Check if someone tries to delete a directory

21 years ago- Added check for binary files in directory view
pcanterino [Tue, 23 Sep 2003 20:02:25 +0000 (20:02 +0000)]
- Added check for binary files in directory view
- Several comments added

21 years agoInitial version first
pcanterino [Tue, 23 Sep 2003 12:15:14 +0000 (12:15 +0000)]
Initial version

patrick-canterino.de