-
Notifications
You must be signed in to change notification settings - Fork 35
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
Script for fill in Pakiti DB of users from gocDB #162
base: master
Are you sure you want to change the base?
Conversation
src/common/site_admins.php
Outdated
|
||
if ($seo === false) { | ||
file_put_contents('php://stderr', "Cannot load list of Site Security Contats from the GOCDB"); | ||
$seo_sites = array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the file can't be loaded, just issue an error and bail out
src/common/site_admins.php
Outdated
|
||
if ($ngi_contacts === false) { | ||
file_put_contents('php://stderr', "Cannot load list of NGI Security Officers from the GOCDB"); | ||
$ngis = array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same as above, i.e. die on errors
src/common/site_admins.php
Outdated
print($verbose); | ||
# Get site security contacts | ||
$seo = new DOMDocument(); | ||
$seo->load("/tmp/pakiti-seo.xml", LIBXML_NOWARNING | LIBXML_NOERROR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass the names of input XML files as command-line parameters
src/common/site_admins.php
Outdated
$err = ''; | ||
# Get NGI security officers | ||
$ngi_contacts = new DOMDocument(); | ||
$ngi_contacts->load("/tmp/pakiti-ngi-so.xml", LIBXML_NOWARNING | LIBXML_NOERROR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
|
No description provided.