Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.7.20rc #96

Open
wants to merge 175 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
8bc9805
- instead of spaces to deliniate levels in topics list
Aug 28, 2009
2f14bda
Fix caching and wording problem for administering institutions
Sep 1, 2009
5b390ee
Switch to Sun-compatible ps, Nova changes for signature dates
Dec 7, 2009
ff93dd5
Preserve timestamp when copying
Dec 8, 2009
aa58757
Missing require
Dec 9, 2009
503c9bb
Add signed/not signed to popup
Dec 28, 2009
6a06af2
If the user can't modify the document, only show signagtures, don't p…
Dec 28, 2009
e6534b1
Bump version, documentation changes
Dec 28, 2009
3c6d550
Fix author sorting
Feb 26, 2010
0e09b7e
Fix Minerva bug for event/session location
Feb 26, 2010
23ca993
Suggested clarification from Anne Heavey
Nov 5, 2010
2eb8dd1
Obsolete = 0 backport
Nov 9, 2010
ed4aa84
Fix for obsolete groups
Nov 10, 2010
34b5422
Provide a way to override AuthName
Nov 12, 2010
1b39a0d
Merge in changes from cd_1105
Jul 27, 2011
d2b1083
Merge in cd_1111 changes
Jan 13, 2012
705c931
Fold in cd_1203c
Mar 20, 2012
48c24e2
Don't loose security when updating public docs
Apr 24, 2012
2357e72
Fix spelling of administrator
Jan 28, 2013
d2f9919
Non-FNAL specific change to certificate authorization
ericvaandering May 3, 2013
e9e84b0
update 2009 to 2013
ericvaandering Jun 19, 2013
538ef57
update 2011/12 to 2013
ericvaandering Jun 19, 2013
bdd5df0
Add CGI::Untaint classes for escaped HTML (safehtml) and integers wit…
ericvaandering Jun 26, 2013
9d243fd
Remove CVS variables, add description to ShowDocument
ericvaandering Jun 26, 2013
a3c715f
Minor cleanups to Untaint routines
ericvaandering Jun 26, 2013
e97bd3f
Start cleanup of adding documents
ericvaandering Jun 27, 2013
c9ef59c
Update the easy things in ProcessDocumentAdd
ericvaandering Jun 27, 2013
c3a5793
Minimal SmartHTML for testing
ericvaandering Jul 1, 2013
7b9ae97
Add line breaks back in
ericvaandering Jul 1, 2013
a72baec
Try URL parsing
ericvaandering Jul 1, 2013
858c928
Try URL parsing, reverse order
ericvaandering Jul 1, 2013
8b2a07f
Ignore %, -, and use hex form
ericvaandering Jul 7, 2013
0273b95
Refactor untaint, add list of ints
ericvaandering Jul 7, 2013
33fec1c
Working list of integer untainter
ericvaandering Jul 7, 2013
4038e4d
To avoid conflict
ericvaandering Jul 7, 2013
b39be1a
To avoid conflict
ericvaandering Jul 7, 2013
1f59d55
Remove debugging from UntaintList
ericvaandering Jul 7, 2013
55c5b3c
Try one line version
ericvaandering Jul 8, 2013
718ab3d
add gitignore
ericvaandering Jul 8, 2013
fcac8fb
Add List Of Ints, take care of lists & file entry
ericvaandering Jul 8, 2013
1821b20
Switch authors to untaint, cleanup Mode, untaint archive files, minor…
ericvaandering Jul 8, 2013
da9b6bd
Get rid of remaining params uses
ericvaandering Jul 9, 2013
2130f3e
Go back to Param for actual file
ericvaandering Jul 9, 2013
8184554
Use SmartHTML for notes, pubinfo
ericvaandering Jul 9, 2013
01829b3
Add protections to title and file descriptions
ericvaandering Jul 9, 2013
f9d715c
Use SmartHTML on authors
ericvaandering Jul 10, 2013
d5435f6
Move Topics from CGI::escapeHTML to SmartHTML
ericvaandering Jul 10, 2013
afd868c
Fix institute in ListBy
ericvaandering Jul 10, 2013
df6b130
Make keyword printing safe
ericvaandering Jul 10, 2013
93f069f
Make keyword printing safe
ericvaandering Jul 10, 2013
c7b62cc
Make keyword printing safe
ericvaandering Jul 10, 2013
bb70650
Update Title, abstract, notes, pubinfo entry boxes to use SmartHTML
ericvaandering Jul 10, 2013
42c6c70
SmartHTML for Author Entry
ericvaandering Jul 10, 2013
ed4fba5
SmartHTML for KeywordsBox
ericvaandering Jul 10, 2013
0a890ef
Do topics with SmartHTML
ericvaandering Jul 10, 2013
54f3ed8
Fix mistakes in TopicHTML
ericvaandering Jul 10, 2013
b4cdf1c
Fix up keyword chooser
ericvaandering Jul 11, 2013
8dd2727
Fix Keyword Chooser
ericvaandering Jul 11, 2013
bf42e07
Can't untaint single_upload either
ericvaandering Jul 11, 2013
01c97b3
Use correct types for override variables
ericvaandering Jul 11, 2013
24c3f23
Fix keyword hash
ericvaandering Jul 11, 2013
4649945
Clean up params a bit
ericvaandering Jul 22, 2013
8e58967
Fix author add script, administer forms, and file addition
ericvaandering Jul 22, 2013
9a5dc78
Update more scripts with untaint
ericvaandering Jul 29, 2013
20fae3f
Untaint scripts starting with D
ericvaandering Jul 29, 2013
8c3115c
Untaint scripts starting with E
ericvaandering Jul 29, 2013
c4e2e22
Untaint more admin scripts
ericvaandering Jul 29, 2013
f1502fc
Untaint keyword admin scripts
ericvaandering Jul 29, 2013
8fe7176
Start of routine to do rlike searches
ericvaandering Jul 30, 2013
f7a314c
Start adding special character handling to search
ericvaandering Jul 30, 2013
c81ddaa
All five formats
ericvaandering Jul 30, 2013
2e36ee8
Filter duplicates
ericvaandering Jul 30, 2013
dd4f478
Switch to regexp
ericvaandering Jul 30, 2013
1b09701
allow special characters for text fields in search
ericvaandering Jul 30, 2013
791c95b
allow special characters for text fields in search
ericvaandering Jul 30, 2013
8263139
allow special characters for text fields in search
ericvaandering Jul 30, 2013
2e7be21
Update SearchForm
ericvaandering Jul 30, 2013
fc27369
Fix document link, add CGI::Untaint to scripts modified so far
ericvaandering Jul 31, 2013
c24fdad
Need both CGI and CGI::Untaint
ericvaandering Jul 31, 2013
3861cde
Need both CGI and CGI::Untaint
ericvaandering Jul 31, 2013
5b175d0
Fix instructions
ericvaandering Jul 31, 2013
fab40b0
Fix selects for Institution and doctype, ListBy for DocType
ericvaandering Jul 31, 2013
288f1a1
Try to fix institution
ericvaandering Jul 31, 2013
daa6a2e
Add UntaintInput to each script
ericvaandering Jul 31, 2013
11fbf82
Fix checkboxes on AddFiles, use SafeHTML in journals
ericvaandering Aug 1, 2013
956ae7d
SmartHTML for security group table, selector, and links
ericvaandering Aug 1, 2013
4a947a7
SmartHTML for security group table, selector, and links
ericvaandering Aug 1, 2013
4923e00
Make ListBy safe for Groups and events
ericvaandering Aug 1, 2013
11d2c64
Make ListBy safe for Groups and events
ericvaandering Aug 1, 2013
d78ab3e
Make keyword selectable lists safe
ericvaandering Aug 1, 2013
3c38363
Make keyword selectable lists safe
ericvaandering Aug 1, 2013
22be333
Try URI escaping on keywords
ericvaandering Aug 2, 2013
caafc9c
Use right scope
ericvaandering Aug 2, 2013
cd7c383
Untaint and no autoescaping for List* scripts
ericvaandering Aug 5, 2013
ce302e2
Untaint MeetingModify (including untaint handler for list of safe HTM…
ericvaandering Aug 5, 2013
f62e83c
Santize SelectEmailPrefs and other Select* scripts
ericvaandering Aug 5, 2013
907bad9
Sanitize SessionModify
ericvaandering Aug 5, 2013
a951acf
Sanitize the S* scripts
ericvaandering Aug 5, 2013
0a16eb2
Modify last of scripts for untainting
ericvaandering Aug 5, 2013
516ded4
Use SmartHTML for event and event group links
ericvaandering Aug 6, 2013
a7fa493
Localize
ericvaandering Aug 6, 2013
96c6b63
Merge branch 'XSS_for_FNAL' of https://github.com/ericvaandering/DocD…
ericvaandering Aug 6, 2013
f79ea8c
Make a bunch of event stuff SmartHTML
ericvaandering Aug 6, 2013
de6c88b
Fix right sidebar
ericvaandering Aug 6, 2013
56ea31f
Fix SessionLink, ListEventsBy
ericvaandering Aug 6, 2013
dbab0c0
Fix event selectors
ericvaandering Aug 7, 2013
8b43424
Protect agains tags in old event groups as updating, try to fix Sessi…
ericvaandering Aug 7, 2013
1655ac8
Fix issues with UntaintListOfHTML
ericvaandering Aug 7, 2013
da724a6
Fix untaint list of HTML
ericvaandering Aug 7, 2013
75daff3
Safe preambles and epilogues
ericvaandering Aug 7, 2013
1d096b3
Safe -> SmartHTML for text area
ericvaandering Aug 7, 2013
73f01e5
Fix doctype buttons and list by topic
ericvaandering Aug 7, 2013
7c87869
Fix ListEventsBy and ListGroupUsers
ericvaandering Aug 7, 2013
4ebbe15
Fix ListGroups, ListKeywords, ListTypes
ericvaandering Aug 7, 2013
77bc489
Debug
ericvaandering Aug 7, 2013
fcf8aff
Should not fetch conference when confID is 0
ericvaandering Aug 7, 2013
9b82c88
Don't return values when input value is null
ericvaandering Aug 7, 2013
ccf923f
MeetingOrderIDs are not integer
ericvaandering Aug 7, 2013
3922b78
Time is not an int since it includes minutes
ericvaandering Aug 8, 2013
09da519
Times are not ints
ericvaandering Aug 8, 2013
936c1e3
Merge branch 'XSS_for_FNAL' of https://github.com/ericvaandering/DocD…
ericvaandering Aug 8, 2013
6fb1d53
Fix external DocDBs
ericvaandering Aug 12, 2013
d8f8f5d
Safer XRefs, fix defined issue with version/date
ericvaandering Aug 12, 2013
7d719fd
Filename for RetrieveFile need not be HTML safe
ericvaandering Aug 12, 2013
7dfda42
Use default mime rather than magic since backticks are insecure
ericvaandering Aug 12, 2013
4423d75
Merge branch 'XSS_for_FNAL' of https://github.com/ericvaandering/DocD…
ericvaandering Aug 12, 2013
1508b16
Missing semicolon
ericvaandering Aug 12, 2013
02706db
Remove params from overlooked things
ericvaandering Aug 19, 2013
f555f1d
Missed use statement for help, asof should be undef by default
ericvaandering Aug 20, 2013
7a74a0e
Make first author safe
ericvaandering Aug 20, 2013
990b571
Insert 'attachment' to headers for some MS Office data types
ericvaandering Aug 29, 2013
e614833
Build topic descendant list
ericvaandering Aug 29, 2013
b7dbfd5
Protect against administering topics wrong and the consequences if it…
ericvaandering Aug 29, 2013
33fe3d3
Protect against administering topics wrong and the consequences if it…
ericvaandering Aug 29, 2013
1baa1e7
Add EndPage at correct spots
ericvaandering Aug 30, 2013
2d583d8
Add EndPage at correct spots
ericvaandering Aug 30, 2013
2bf9292
Merge branch 'RemoveCVSKeywords' into XSS_for_FNAL
ericvaandering Aug 30, 2013
0abb62c
Fix renamed parameter in DeleteDocument
ericvaandering Sep 3, 2013
f7a9dc1
Merge branch 'topic_loop' into v8stable
ericvaandering Sep 3, 2013
05abbb3
Merge branch 'office_attachment' into v8stable
ericvaandering Sep 3, 2013
8427e87
Tag 8.7.19
ericvaandering Sep 3, 2013
8ba239c
Convert remaining uses of URLify, Paragraphize, AddLineBreaks, SafeHT…
ericvaandering Sep 3, 2013
a869753
Make error, warning, debug output safe
ericvaandering Sep 3, 2013
17420ff
Sanitize email addresses and usernames (DNs) wherever they occur sinc…
ericvaandering Sep 3, 2013
9899b2d
Release notes for 8.7.19
ericvaandering Sep 4, 2013
dbb88bc
release notes
ericvaandering Sep 4, 2013
fa7e7dd
Sanitize or remove user input
ericvaandering Sep 4, 2013
f9ea65f
Use typedint for ShowDocument
ericvaandering Sep 4, 2013
94d0fe9
Use typedint for ConfirmTalkHint
ericvaandering Sep 4, 2013
59c76b2
Fix list in hash
ericvaandering Sep 6, 2013
e5f1ef8
Merge remote-tracking branch 'origin/office_hotfix' into v8stable
ericvaandering Sep 6, 2013
2b67f91
Stray } in attachment
ericvaandering Sep 9, 2013
52e680f
Abort and warn about topic loops in a couple more places
ericvaandering Sep 10, 2013
e9b6f62
Revert changes to TopicHTML, add require to SessionModify
ericvaandering Sep 10, 2013
2b98507
Merge branch 'v8stable' of https://github.com/ericvaandering/DocDB in…
ericvaandering Sep 10, 2013
8a479ac
Remove HTML from Action, Error, WarnStack
ericvaandering Sep 12, 2013
e053457
Do grep of item in list correctly
ericvaandering Sep 13, 2013
e61349b
Merge XSS_for_FNAL into 8.7.19/8.7.20rc
ericvaandering Sep 16, 2013
f6d0883
Add version string
ericvaandering Sep 16, 2013
dc5857c
Wrong regexp
ericvaandering Sep 24, 2013
b7b13f1
Bug in extracting parent value, minor style changes
ericvaandering Sep 30, 2013
c2bfa1f
Allow ?, =, + in URL unmodified
ericvaandering Oct 11, 2013
4b68edf
wrong parameter name on DeleteConfirm
ericvaandering Oct 11, 2013
f9e7016
Allow ?, =, + in URL unmodified
ericvaandering Oct 11, 2013
68d1776
wrong parameter name on DeleteConfirm
ericvaandering Oct 11, 2013
bbc2d0d
Merge branch 'XSS_for_FNAL' into 8.7.20rc
ericvaandering Oct 14, 2013
4e49450
Fix setting view to public
ericvaandering Oct 15, 2013
07d0b47
Merge branch '8.7.20rc' of https://github.com/ericvaandering/DocDB in…
ericvaandering Oct 15, 2013
c5941de
Change default version from 0 to undef
ericvaandering Oct 15, 2013
ddc7a09
Change default version from 0 to undef
ericvaandering Oct 15, 2013
920955f
Detect URLs with ; in them
ericvaandering Oct 16, 2013
b4e577b
RC5
ericvaandering Oct 16, 2013
9ed5513
Don't send special characters out in e-mail
ericvaandering Oct 17, 2013
259ba55
RC6
ericvaandering Oct 17, 2013
3754cac
Don't send special characters out in e-mail
ericvaandering Oct 17, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

51 changes: 28 additions & 23 deletions DocDB/cgi/AddFiles
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Author: Eric Vaandering ([email protected])
# Modified:

# Copyright 2001-2009 Eric Vaandering, Lynn Garren, Adam Bryant
# Copyright 2001-2013 Eric Vaandering, Lynn Garren, Adam Bryant

# This file is part of DocDB.

Expand All @@ -27,6 +27,7 @@

use Benchmark;
use CGI;
use CGI::Untaint;
use DBI;

$StartTime = new Benchmark;
Expand All @@ -40,6 +41,7 @@ require "MiscSQL.pm";
require "FSUtilities.pm";
require "WebUtilities.pm";
require "HTMLUtilities.pm";
require "UntaintInput.pm";
require "FileUtilities.pm";
require "Security.pm";

Expand All @@ -61,7 +63,7 @@ $dbh = DBI -> connect('DBI:mysql:'.$db_name.':'.$db_host,$db_rwuser,$db_rwpass

### Set up, give user initial information

%params = $query -> Vars;
my $Untaint = CGI::Untaint -> new($query -> Vars);

print $query -> header( -charset => $HTTP_ENCODING );
&DocDBHeader("$Project File Addition Results","File Addition Results");
Expand All @@ -73,33 +75,30 @@ print $query -> header( -charset => $HTTP_ENCODING );

### Get document and revision ID

my $DocumentID = $params{docid};
my $Version = $params{version};
my $Replace = $params{replace};
my $MaxFiles = $params{maxfiles};
my $SubmitAgree = $params{submitagree};
my $PreserveSigs = $params{preservesigs};
my $DocumentID = $Untaint -> extract(-as_integer => "docid") || 0;
my $Version = $Untaint -> extract(-as_integer => "version") || 0;
my $Replace = $Untaint -> extract(-as_printable => "replace") || "";
my $MaxFiles = $Untaint -> extract(-as_integer => "maxfiles") || 0;
my $SubmitAgree = $Untaint -> extract(-as_printable => "submitagree") || "";
my $PreserveSigs = $Untaint -> extract(-as_printable => "preservesigs") || "";

my $DocRevID;

### Check for user errors

if ($DocumentID && $Version) {
$DocRevID = &FetchRevisionByDocumentAndVersion($DocumentID,$Version);
unless ($DocRevID) {
push @ErrorStack,"No such document exists.";
}
unless (&CanModify($DocumentID,$Version)) {
push @ErrorStack,"You are not authorized to modify this document.";
unless ($DocRevID && CanModify($DocumentID,$Version)) {
push @ErrorStack,"You are not authorized to modify this document or it does not exist.";
}
} else {
push @ErrorStack,"You must supply document and version numbers to add files.";
}

if ($Preferences{Options}{SubmitAgree} && !$SubmitAgree) {
push @ErrorStack,'You must check the box near with this statement: <br/>'.
push @ErrorStack,'You must check the box near with this statement: \n'.
$Preferences{Options}{SubmitAgree}.
'<br/>to add files to the document.';
'\nto add files to the document.';
}

if ($PreserveSigs && !CanPreserveSigs()) {
Expand All @@ -110,16 +109,22 @@ if ($PreserveSigs && !CanPreserveSigs()) {
my $UpdateLink = $DocumentAddForm."?mode=update&docid=$DocumentID";

# Fill in file hash
my $HttpUser = $Untaint -> extract(-as_printable => "http_user") || "";
my $HttpPass = $Untaint -> extract(-as_printable => "http_pass") || "";

my %Files = ();
my $NeedURLs = 0;
my $AddNewFile = 0;

for (my $i = 1; $i<= $MaxFiles; ++$i) {
my $Key = $i; # Probably something better later
if ($params{"upload$i"}) {
my $UploadI = $query -> param("upload$i");
my $UrlI = $Untaint -> extract(-as_printable => "url$i") || "";
my $MainI = $Untaint -> extract(-as_printable => "main$i") || "";
my $DescriptionI = $Untaint -> extract(-as_safehtml => "filedesc$i") || "";
if ($UploadI) {
$AddNewFile = 1;
$Files{$Key}{File} = $query -> param("upload$i");
$Files{$Key}{File} = $UploadI;
if (&ExistsUpload($DocRevID,$Files{$Key}{File})) {
if ($Replace) {
push @WarnStack,"The file $short_file already existed and has been
Expand All @@ -131,12 +136,12 @@ for (my $i = 1; $i<= $MaxFiles; ++$i) {
document, not add files.";
}
}
} elsif ($params{"url$i"}) {
} elsif ($UrlI) {
$NeedURLs = 1;
$AddNewFile = 1;
$Files{$Key}{URL} = $params{"url$i"};
$Files{$Key}{User} = $params{http_user};
$Files{$Key}{Pass} = $params{http_pass};
$Files{$Key}{URL} = $UrlI;
$Files{$Key}{User} = $HttpUser;
$Files{$Key}{Pass} = $HttpPass;
if (&ExistsURL($DocRevID,$Files{$Key}{URL})) {
if ($Replace) {
push @WarnStack,"The file $short_file already existed and has been
Expand All @@ -150,13 +155,13 @@ for (my $i = 1; $i<= $MaxFiles; ++$i) {
}
}

if ($params{"main$i"}) {
if ($MainI) {
$Files{$Key}{Main} = 1;
} else {
$Files{$Key}{Main} = 0;
}

$Files{$Key}{Description} = $params{"filedesc$i"};
$Files{$Key}{Description} = $DescriptionI;
}

unless ($AddNewFile) {
Expand Down
22 changes: 12 additions & 10 deletions DocDB/cgi/AddFilesForm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Author: Eric Vaandering ([email protected])
# Modified:

# Copyright 2001-2009 Eric Vaandering, Lynn Garren, Adam Bryant
# Copyright 2001-2013 Eric Vaandering, Lynn Garren, Adam Bryant

# This file is part of DocDB.

Expand All @@ -27,6 +27,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

use CGI qw(-nosticky);
use CGI::Untaint;
use DBI;

require "DocDBGlobals.pm";
Expand All @@ -45,20 +46,21 @@ require "FileHTML.pm";
require "Cookies.pm";
require "Defaults.pm";
require "HTMLUtilities.pm";
require "UntaintInput.pm";
require "Scripts.pm";

$query = new CGI; # Global for subroutines
$query -> autoEscape(0);
my $Untaint = CGI::Untaint -> new($query -> Vars);
$dbh = DBI->connect('DBI:mysql:'.$db_name.':'.$db_host,$db_rouser,$db_ropass);

&GetSecurityGroups;
&GetPrefsCookie;

%params = $query -> Vars;

$DocumentID = $params{docid};
$Upload = $params{upload};
$NumberUploads = $params{numfile};
#$Version done later
my $DocumentID = $Untaint -> extract(-as_integer => "docid") || 0;
my $Upload = $Untaint -> extract(-as_safehtml => "upload") || undef;
my $NumberUploads = $Untaint -> extract(-as_integer => "numfile") || 0; # Global since not passed (oversight)
my $InputVersion = $Untaint -> extract(-as_integer => "version") || undef;

# Set defaults

Expand All @@ -76,11 +78,11 @@ unless ($DocumentID) {

&FetchDocument($DocumentID);

if ($params{version} eq "0") {
if ($InputVersion eq "0") {
$Version = 0;
} else {
if ($params{version}) {
$Version = $params{version};
if ($InputVersion) {
$Version = $InputVersion;
} else {
$Version = $Documents{$DocumentID}{NVersions};
}
Expand Down
4 changes: 2 additions & 2 deletions DocDB/cgi/AdministerElements.pm
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Name: $RCSfile$
# Description: Various routines which supply input forms for adminstrative
# Description: Various routines which supply input forms for administrative
# functions
#
# Revision: $Revision$
# Modified: $Author$ on $Date$
#
# Author: Eric Vaandering ([email protected])

# Copyright 2001-2009 Eric Vaandering, Lynn Garren, Adam Bryant
# Copyright 2001-2013 Eric Vaandering, Lynn Garren, Adam Bryant

# This file is part of DocDB.

Expand Down
4 changes: 3 additions & 1 deletion DocDB/cgi/AdministerForm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
# Author: Eric Vaandering ([email protected])

# Copyright 2001-2009 Eric Vaandering, Lynn Garren, Adam Bryant
# Copyright 2001-2013 Eric Vaandering, Lynn Garren, Adam Bryant

# This file is part of DocDB.

Expand Down Expand Up @@ -49,9 +49,11 @@ require "MiscSQL.pm";
require "ResponseElements.pm";

require "HTMLUtilities.pm";
require "UntaintInput.pm";
require "Sorts.pm";

$query = new CGI; # Global for subroutines
$query -> autoEscape(0);
$dbh = DBI -> connect('DBI:mysql:'.$db_name.':'.$db_host,$db_rouser,$db_ropass);

&GetSecurityGroups;
Expand Down
8 changes: 5 additions & 3 deletions DocDB/cgi/AdministerHome
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#! /usr/bin/env perl
#
# Name: AdministerHome
# Description: A "home page" for the various administration pages
#
# Author: Lynn Garren ([email protected])
# Modified: Eric Vaandering ([email protected])

# Copyright 2001-2009 Eric Vaandering, Lynn Garren, Adam Bryant
# Copyright 2001-2013 Eric Vaandering, Lynn Garren, Adam Bryant

# This file is part of DocDB.

Expand All @@ -30,13 +33,12 @@ require "Scripts.pm";
require "ResponseElements.pm";
require "FormElements.pm";
require "Messages.pm";
#require "Cookies.pm";
require "Security.pm";
require "SecuritySQL.pm";
require "SecurityHTML.pm";
#require "MeetingSecurityUtilities.pm";

$query = new CGI; # Global for subroutines
$query -> autoEscape(0);
$dbh = DBI->connect('DBI:mysql:'.$db_name.':'.$db_host,$db_rouser,$db_ropass);

GetSecurityGroups();
Expand Down
2 changes: 1 addition & 1 deletion DocDB/cgi/AdministerIntructions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Author: Eric Vaandering ([email protected])
# Modified:

# Copyright 2001-2009 Eric Vaandering, Lynn Garren, Adam Bryant
# Copyright 2001-2013 Eric Vaandering, Lynn Garren, Adam Bryant

# This file is part of DocDB.

Expand Down
Loading