diff options
author | thaiel <thaiel@texto-plano.xyz> | 2022-06-01 20:34:47 +0000 |
---|---|---|
committer | thaiel <thaiel@texto-plano.xyz> | 2022-06-01 20:34:47 +0000 |
commit | df52678a13073839f1d25d700299897a4707f8fa (patch) | |
tree | de01235d1117072944803c217367501471a1a977 | |
parent | 56f607e265a0c3cd288618b8b23f7765b1dfbfb6 (diff) | |
download | coment.ar-df52678a13073839f1d25d700299897a4707f8fa.tar.gz |
-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 |