====== Directory structure with permissions ====== The file permissions are the same as were there on lthcwww. \\ The directory %%"/var/www/demos/encoding"%% has permission \\ drwxrwSr-x 2 rathi ipgdemos 4096 2008-08-21 23:50 encoding This is the directory structure of %%"/var/www/demos/ensembles"%% \\ with permissions. \\ -rwxrwxr-x 1 rathi ipgdemos 50141 2008-07-25 16:58 encoding -rwxrwxrwx 1 rathi ipgdemos 171 2008-08-14 22:35 encodingparameters -rwxrwxrwx 1 rathi ipgdemos 250262 2008-08-17 20:08 hmatrix.pbm -rw-rw-r-- 1 rathi ipgdemos 12226 2008-08-15 19:55 index.php -rw-rw-r-- 1 rathi ipgdemos 4893 2008-08-14 13:40 lthc_index.php The file %%"lthc_index.php"%% has the old lthc way of giving inputs. ====== Important lines in index.php ====== Line 46 to 396: The code is about checking the validity of the polynomials.\\ Line 554 to 573: parameters are written if there is an input from the user.\\ Line 574: Execution of the command to generate the image. \\ Line 580: pbm to gif generated.\\ Line 594: gif is displayed.\\ ====== Location of files related to execution and writing ====== The directory %%"/var/www/demos/files/encoding"%% has permission drwxrwsrwx 2 apache ipgdemos 20480 2008-08-17 18:06 encoding Inside the directory %%"/var/www/demos/files/encoding"%% there are two files for a seesion.\\ * **param** contains the parameter of the ensembles and suffixed by session id.\\ * **gif file** It is the gif image of the triangulated matrix and its name is \\ based on the session id. All these files have permissions: %%"-rw-r--r--"%%. =====Important Remark===== There should be a %%"crone"%% job deleting the files in %%"/var/www/demos/files/encoding"%%.\\ Right now the %%".pbm"%% file, which is the output for the triangulated matrix, is generated \\ in the directory %%"/var/www/demos/encoding"%%. Its naming is not based on session id. I do not \\ 'know if it is very crucial, but will be better to name it also according to the session id.\\ Then we give give both the matrix and triangulated matrix to the user as a text file. \\ There are some **777** permissions which should be taken care of. These are there on lthcwww as well, \\ so I did not try to change them.