UPOINT:: CGI Scripts: FAQ

Title: @1 Day Publisher: Script installation
Steps of installing the script.

• One main script, daypublisher.cgi (24Kb)
• One data.txt file and one counter.txt file.
• Some button images.

Installation:

1) Defined the path to Perl at the first line of the script (default is #!/usr/bin/perl).
2) Create a folder "daypublisher" under the root directory and chmod to 777.
3) Create a sub-folder "images" under the "daypublisher" folder and chmod to 777.
4) Create a sub-folder "icons" under the "daypublisher" folder.
5) Set the variables in the script and upload the script to the "daypublisher" folder above. Chmod to 755.
6) Upload the data file "data.txt" to the same folder as "daypublisher.cgi" and chmod to 777.
7) Upload the counter file "counter.txt" to the same folder as "daypublisher.cgi" and chmod to 777.
8) Upload all the images to the sub-folder "icons".

• Call the event from a SHTML page via SSI using this tag:

<!--#exec cgi="daypublisher.cgi" --> OR
<!--#include virtual="daypublisher.cgi" -->

Enter the calendar's Admin Interface using this URL:

daypublisher.cgi?status=admin

The Variables:
# == Start of configuration part == #

# Password
$password_check="upoint";

# Data file
$data_base="data.txt";

# Day checking file
$count_file="count.txt";

#Path to this script
$path_to_script="daypublisher.cgi";

#path to image folder
$image_folder="images/";

#path to icons folder
$icons="icons/";

# Difference of time in minutes from GMT time (ie. London time). Can use +xxx or -xxx
$add_time=480;

#Font size
$font_size=1;

# If you want border give its size else leave it like "" ie empty
$border="1";

# Font face
$font_face=verdana;

#Color Scheme

$co1="#E9E9E9"; # Light
$co2="#A2A2A2"; ## Dark
$co3="#676767"; ### Darker
$co4="#000000"; ##### Darkest

# Show years between these...
$year_start=2001;
$year_end=2010;

# Name of 12 months
@month_name =(January,February,March,April,May,June,July,August,September,October,November,December);

# Name of week days
@week_name=(Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday);

# Name of icon files
$go_image="go.gif";
$save_image="save.gif";
$login_image="login.gif";
$confirm_image="delete_c.gif";
$delete_image="delete.gif";
$edit_image="edit.gif";

# ==End of configuration part == #

  Powered by Document Publisher