diff options
-rw-r--r-- | LEEME.txt | 3 | ||||
-rw-r--r-- | README.txt | 10 | ||||
-rwxr-xr-x | coment.ar | 1 |
3 files changed, 13 insertions, 1 deletions
@@ -29,7 +29,8 @@ $ coment.ar usuario El programa pregunta a QUE archivo queremos agregarle texto, se abre el editor por defecto del usuario y al guardarlo, agrega el texto al final del archivo que elegimos en la ruta de comentarios de la -pagna web. +pagna web. Se debe modificar esa direccion en el script por la que +querramos usar El programa esta pensado para formatear texto HTML para evitar que @@ -7,3 +7,13 @@ # # #################################################### +Coment.ar /koment ar/ is a script to implement a tildeversefriendly +comment section by adding a formated text to the end of a file which +will then be read by a tag in a web page, such as an <iframe>. + +Sysadmin must change the path where it will look for comment files. + +The script is called with a $user argument (mandatory, it will exit if there +is no argyument). It then asks the name of comment file and it will +open the default text editor, whereupon saving it will insert the text +at the end of a comment file @@ -49,6 +49,7 @@ date=$(date +"%Y-%m-%d") sed 's|&|\&|g;s|<|\<|g;s|>|\>|g' printf '</pre>\n' # vuelca todo al final de un archivo en la pagina del $usuario en su carpeta web en la ruta donde se guardan los comentarios +# esta ruta se debe adaptar a la que usaran tus usuarios. } >> /home/$destino/public_html/com/${z}.html # borra el temporal |