The IdeaXoops PowerTools began in order to improve the operations of Xoops. It is based on Java 5 SDK and it can manage files of php souce, putting them on webserver and also be connected to the MySql database. The initial requirements Is a little program which will help the use of modifications in the code (hacks) automating the operations, also will facilitate your site management for the following following reasons:
* Putting a file hack it will say wich files are needed they are modified and it will say wich exists or not. Also with a simple click the source code will be modified automatic.
* The new files will be uploaded automatically in ftp and old will be renamed so they will exist as a backup.
* It will even have the possibility of deinstallation of hack even if the old files do not exist.
* It will remember wich files you have modified so after 6 months when you will want to upgrade XOOPS to know what to make.
* It might export and it creates files hack from files of code php so as to you create easily yours hack having only it modifies the code, and a click in the program.
The precedents were the operations of application with regard to hacks. Now will exist also other functions wich will optimise with regard to as generally speaking xoops. These will be:
* Possibility of export in csv the names and email the users so as to they can be used from independent program as thunderbird, outlook etc.
* image Checking, will look at if exist all the pictures (links) that are reported in the database, if some does not exist it will be recorded.
* Link Checking, will take a table and a field that we will put in and it will check if all links that exist and aren't dead(here are required powerful regular expressions).
* Cleaning/Optimizing the database.
* Backup of base of data in form that would not spoil the data. (If you tryed to make a backup with phpmyadmin and utf-8 you know what I mean.
* Reconstruction of table templates which faces problems after a lot of upgrades.
* Automatic reproduction of files of language so if you do not have all modules translated it won't be needed to make it manually.
* Export of text of files of language so with a copy paste of the text in certain translational tool, the text will be translated and later again with copy paste are created the certain files of language automatically (perhaps with some errors).
* Facility in the use of pictures, with few clicks change all icons that XOOPS and its modules use, that it is very difficult to make it manually. Of course it will upload the new pictures.
* Creation of themes of pictures ready to use that will become as I reported before. These will be the operations that will make my application. Also I should report that the application will have multilanguage support because I make it as XOOPS with language files.
The Hack PatternPosting the form of a Hack wich is used from my application its XML like :
<name>my first hack 1.1name>
<creator>panigrccreator>
<date_created>2006/06/13 10:29:31date_created>
<instructions>
How to install this hack ....
mpla mpla mpla
mpla mpla mpla
mpla mpla mpla
mpla mpla mpla
instructions>
<target_path>/modules/news/.....target_path>
<file_size>20055file_size>
<number_of_line>15number_of_line>
<before_contents>
..... php source before hack
before_contents>
<hack_contents>
HACK HERE !!!
hack_contents>
<target_path>/kerel/....target_path>
<file_size>155005file_size>
<number_of_line>15number_of_line>
<before_contents>
..... php source before hack
before_contents>
<hack_contents>
HACK HERE !!!
hack_contents>
This way all hacks will be validated and perhaps there will be a public hack library !
The Hack in the SourceThe below code demonstrates how will be the hacks applied in the php source:
.
.
. php source before hack
//Όνομα
//2006/1/8 00:48:31
//
.
.
. php of the hack
.
//
___ new line
.
.
. php source continued
So what to you think ?? I am waiting your comments. This project will be open source but I am still developing the core.