Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [Andy] Need Some Help With Links2 Error

Quote Reply
Re: [Andy] Need Some Help With Links2 Error In reply to
Andy, thanks again. Here is my add.cgi file. Is this where you wanted the code you provided?
Code:
#!/usr/bin/perl
# -------------
# Links
# -------------
# Links Manager
#
# File: add.cgi
# Description: Adds a record marked unvalidated to the database and
# optionally emails someone.
# Author: Alex Krohn
# Email: alex@gossamer-threads.com
# Web: http://www.gossamer-threads.com/
# Version: 2.01
#
# (c) 1998 Gossamer Threads Inc.
#
# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================
#
# Setup Notes:
# Make sure the require statement below points to the config file.

# Required Librariers
# --------------------------------------------------------

use lib '/usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/x86_64-linux-64int/';
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require "/home/website/public_html/links/cgi-bin/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";
};

Also I created the test.cgi file with the code you provided, chmod to 755 and got a 500 server error when browsing to it.
Basshook
Subject Author Views Date
Thread Need Some Help With Links2 Error Basshook 4015 Apr 9, 2021, 4:04 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 4001 Apr 10, 2021, 12:02 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3962 Apr 17, 2021, 10:00 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3949 Apr 18, 2021, 8:54 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3930 Apr 20, 2021, 8:27 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3928 Apr 20, 2021, 9:36 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3923 Apr 20, 2021, 10:14 AM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3918 Apr 20, 2021, 11:20 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3901 Apr 20, 2021, 11:56 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3885 Apr 21, 2021, 10:15 AM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3869 Apr 21, 2021, 5:06 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3864 Apr 21, 2021, 6:29 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3859 Apr 21, 2021, 10:44 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3855 Apr 21, 2021, 11:03 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3852 Apr 21, 2021, 11:25 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3850 Apr 21, 2021, 11:34 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3847 Apr 21, 2021, 11:35 PM
Thread Re: [Andy] Need Some Help With Links2 Error
Basshook 3842 Apr 21, 2021, 11:45 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Basshook 3838 Apr 21, 2021, 11:52 PM
Thread Re: [Basshook] Need Some Help With Links2 Error
Andy 3835 Apr 21, 2021, 11:54 PM
Post Re: [Andy] Need Some Help With Links2 Error
Basshook 3789 Apr 23, 2021, 1:27 PM
Post Re: [Basshook] Need Some Help With Links2 Error
Andy 3831 Apr 21, 2021, 11:53 PM