File: README

package info (click to toggle)
nms-textclock 1.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 44 kB
  • ctags: 2
  • sloc: perl: 64; makefile: 33
file content (83 lines) | stat: -rw-r--r-- 2,707 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
COPYRIGHT

Text Clock  Version 1.00
Copyright 2001 London Perl Mongers, All rights reserved

LICENSE

This script is free software; you are free to redistibute it
and/or modify it under the same terms as Perl itself.

URL

The most up to date version of this script is available from the nms
script archive at  <http://nms-cgi.sourceforge.net/>.

SUMMARY

textclock displays the current tme on a web page. It is intended to be used
as a Server Side Include program.

FILES

In this distribution, you will find three files:

textclock.pl  - The main perl script.
README        - This file. Instructions on how to install and use textclock.
MANIFESTO     - List of files

CONFIGURATION

There are a number of variables that you can change in textclock.pl which
alter the way that the program works.

$DEBUGGING    - This should be set to 1 whilst you are installing
                and testing the script. Once the script is live you
                should change it to 0. When set to 1, errors will
                be output to the browser. This is a security risk and
                should not be used when the script is live.

$Display_Week_Day
$Display_Month
$Display_Month_Day
$Display_Year
$Display_Time
$Display_Time_Zone
              - Each of these variables controls the display of the relevant
                part of the date or time. If the variable is set to 1, then
                that part of the date/time is displayed. If it is set to 0
                then that part of the date/time is omitted.


INSTALLATION

textclock is installed simply by copying the file textclock.pl.pl into your
cgi-bin directory. If you don't know where your cgi-bin directory is, then
please ask your system administrator

You may need to rename textclock.pl to textclock.cgi. Again, your system
administrator will know if this is the case.

You will probably need to turn on execute permissions to the file. You can
do this by running the command "chmod +x textclock.pl" from your command
line. If you don't have command line access to your web server then there
will probably be an equivalent function in your file transfer program.

Then, edit your HTML files and wherever you want to display the time, insert
the following:

     <!--#exec cgi="/cgi-bin/textclock.pl"-->

Note: As this is a "Server Side Include" you will need to ensure that your
web server has been configured to support SSI. Also, it's possible that you
may need to rename any files that include SSI calls to give them a different
extension. A common choice is .shtml. Your system administrator will be able
to help you with these details.


SUPPORT

For support of this script please email:

  <nms-cgi-support@lists.sourceforge.net>