#!/usr/bin/perl #!-------------------- #! LEGAL NOTICE #!-------------------- #! PUBLISHER & MANAGER ENGINE v2.x - Date Version Tuesday, July 14 th 2003 #! #! This file and the source codes contained herein are the property #! of Turn-It-Digital Consulting Group (Turn-It-Digital). Use of this file #! is restricted to the specific terms and conditions in the License Agreement #! associated with this file. Distribution of this file or portions of this #! file for uses ot covered by the License Agreement is not allowed without a #! written agreement signed by an officer of Turn-It-Digital. #! #! Copyright 1998-2002 Turn-It-Digital Consulting Group. All rights reserved. #! http://www.turnitdigital.com/ #! #!-------------------- #! SCRIPT DESCTIPTION #!-------------------- #! #! >>Write description here.<<< #! #! Features: #! #! #!------------------------------------------------------------------------------ #! BEGIN SCRIPT: #!------------------------------------------------------------------------------ #!------------------------------------------------------------------------------ #!--------------WARNING: DO NOT MODIFY BELOW THIS POINT ------------------------ #!------------------------------------------------------------------------------ #!------------------------------------------------------------------------------ ############ Code Library Requirements & Begining Calls ######################## # require "$ENV{'DOCUMENT_ROOT'}/eWebObjects/shared-code/lib1.cgi"; require "$ENV{'DOCUMENT_ROOT'}/eWebMaster/global-variables.cgi"; # ############ Variables ######################################################### # # ############ Intro & Action to Take? ########################################### # # ############ SUB ROUTINES ###################################################### # eval { &intro; } ; if ($@) { &error ("Error Initializing.\nReason: $@"); } sub intro { &print_headers; %in = &parse; require "variables.cgi"; if ($in{'action'} eq "add-record") { &add_record; } elsif ($in{'action'} eq "process-addition") { &process_addition; } elsif ($in{'action'} eq "see-edit-list") { &see_edit_list; } elsif ($in{'action'} eq "see-data-list") { &see_data_list; } elsif ($in{'action'} eq "see-edit-id") { &see_edit_id; } elsif ($in{'action'} eq "process-edit") { &process_edit; } elsif ($in{'action'} eq "see-delete-list") { &see_delete_list; } elsif ($in{'action'} eq "process-delete") { &process_delete; } elsif ($in{'action'} eq "build_pages") { &build_pages; } elsif ($in{'action'} eq "build_pages2") { &build_pages2; } elsif ($in{'action'} eq "build_all") { &build_all; } elsif ($in{'action'} eq "add-many") { &add_many; } elsif ($in{'action'} eq "edit-many") { &edit_many; } else { $timestamp = time; $timenow = &formatday2($rec{'$timestamp'}); $lower=1; $upper=100; $random = int(rand( $upper-$lower+1 ) ) + $lower; ; # hello 555 $timenow -- $random print qq~ $wywg_header
$wywg_footer ~; } } sub add_record { my ($head) = ""; open (HEADER, $template_directory."/$template_admin") or &error ("Error Opening File in sub header_template.\nReason: $@"); @header =|
Edit News Items
|
Currently, the size of "$publisher" is
$max
web page(s). $description
//g; # Trimp leading
# Trim leading blanks...
$tmp =~ s/\s+$//g; # ... then the trailing ones
$tmp =~ s/\Q$delim\E/~~/og; # Change delimeter to ~~ symbol.
$tmp =~ s/\n/
/g; # Change newline to
symbol.
$tmp =~ s/\r//g; # linefeed character.
# add
return ($tmp);
}
sub encode_chars2 {
my ($tmp) = shift;
$tmp =~ s/^\s+//g; # Trim leading blanks...
$tmp =~ s/^\
//g; # Trimp leading
$tmp =~ s/\s+$//g; # ... then the trailing ones
$tmp =~ s/\Q$delim\E/~~/og; # Change delimeter to ~~ symbol.
$tmp =~ s/\n/``/g; # Change newline to `` symbol.
$tmp =~ s/\Q[insert \E/\[an error occurred while processing this directive]/og;
$tmp =~ s/\r//g; # linefeed character.
return ($tmp);
}
sub java {
my ($tmp) = shift;
# $tmp =~ s/\Q"\E/\\"/og;
# $tmp =~ s/\Q'\E/\\'/og;
$tmp =~ s/``/\n/g;
$tmp =~ s/\Q[an error occurred while processing this directive]\E/ -]/og;
return ($tmp);
}
sub java2 {
my ($tmp) = shift;
# $tmp =~ s/\Q"\E/\\"/og;
# $tmp =~ s/\Q'\E/\\'/og;
$tmp =~ s/``/\n/g;
$tmp =~ s/\Q[insert \E/\[an error occurred while processing this directive]/og;
return ($tmp);
}
sub decode_chars {
my ($str);
$str = shift;
$str =~ s/~~/\Q$delim\E/g; # Retrieve Delimiter..
$str =~ s/
/\n/g; # Changes
back to newlines..
return ($str);
}
sub print_headers {
# If the content type header isn't printed yet, this will print it.
if (!$headers_printed) {
print "Content-type: text/html\n\n";
$headers_printed = 1;
}
}
sub html_page {
my %rec = @_;
my ($page) = "";
$page .= qq~ ~;
return ($page);
}
sub header_template {
%rec = @_;
my ($head) = "";
open (HEADER, $template_directory."/$template_name") or &error ("Error Opening File in sub header_template.\nReason: $@");
@header =