I guess this the right forum for modifications.
I need to allow the USER, when logged in, to ADD CATEGORIES under the only category that I have; therefore, I created a file called addcategory.cgi, but the user still going through the Editor's Login checking when trying to add a category.
Can someone please tell me how to modify this file to allow the user to add categories:
# ==================================================================
# Links SQL - enhanced directory management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# CVS Info : 087,071,086,094,085
# Revision : $Id: browser.cgi,v 1.22 2001/12/30 19:33:05 alex Exp $
#
# Copyright (c) 2001 Gossamer Threads Inc. All Rights Reserved.
# Redistribution in part or in whole strictly prohibited. Please
# see LICENSE file for full details.
# ==================================================================
use strict;
use lib '/home/www/mydomain/cgi-bin/links/admin';
use Links qw/$CFG/;
use Links::User::Editor;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/home/www/mydomain/cgi-bin/links/admin');
Links::init_user();
if (GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'check_request', \&Links::check_request)) {
GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'handle_editor', \&Links::User::Editor::handle);
}
Thank you for your help...
Mark
I need to allow the USER, when logged in, to ADD CATEGORIES under the only category that I have; therefore, I created a file called addcategory.cgi, but the user still going through the Editor's Login checking when trying to add a category.
Can someone please tell me how to modify this file to allow the user to add categories:
Code:
#!/usr/local/bin/perl # ==================================================================
# Links SQL - enhanced directory management system
#
# Website : http://gossamer-threads.com/
# Support : http://gossamer-threads.com/scripts/support/
# CVS Info : 087,071,086,094,085
# Revision : $Id: browser.cgi,v 1.22 2001/12/30 19:33:05 alex Exp $
#
# Copyright (c) 2001 Gossamer Threads Inc. All Rights Reserved.
# Redistribution in part or in whole strictly prohibited. Please
# see LICENSE file for full details.
# ==================================================================
use strict;
use lib '/home/www/mydomain/cgi-bin/links/admin';
use Links qw/$CFG/;
use Links::User::Editor;
local $SIG{__DIE__} = \&Links::fatal;
Links::init('/home/www/mydomain/cgi-bin/links/admin');
Links::init_user();
if (GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'check_request', \&Links::check_request)) {
GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'handle_editor', \&Links::User::Editor::handle);
}
Thank you for your help...
Mark