Skip to content

Commit

Permalink
QA: Update copyrights
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/0.8.7@5806 860744bd-22fc-0310-8c96-e9fe5004b5ca
  • Loading branch information
TheWitness committed Apr 28, 2010
1 parent e5b3909 commit c5403f3
Show file tree
Hide file tree
Showing 122 changed files with 215 additions and 215 deletions.
2 changes: 1 addition & 1 deletion about.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
2 changes: 1 addition & 1 deletion auth_changepassword.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
2 changes: 1 addition & 1 deletion auth_login.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
2 changes: 1 addition & 1 deletion cdef.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
20 changes: 10 additions & 10 deletions cli/add_data_query.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -61,15 +61,15 @@
echo "ERROR: You must supply a valid host-id to run this script!\n";
exit(1);
}

break;
case "--data-query-id":
$data_query_id = $value;
if (!is_numeric($data_query_id)) {
echo "ERROR: You must supply a numeric data-query-id for all hosts!\n";
exit(1);
}

break;
case "--reindex-method":
if (is_numeric($value) &&
Expand Down Expand Up @@ -130,9 +130,9 @@
exit(0);
}

/*
* verify required parameters
* for update / insert options
/*
* verify required parameters
* for update / insert options
*/
if (!isset($host_id)) {
echo "ERROR: You must supply a valid host-id for all hosts!\n";
Expand All @@ -150,7 +150,7 @@
}


/*
/*
* verify valid host id and get a name for it
*/
$host_name = db_fetch_cell("SELECT hostname FROM host WHERE id = " . $host_id);
Expand All @@ -159,17 +159,17 @@
exit(1);
}

/*
/*
* verify valid data query and get a name for it
*/
$data_query_name = db_fetch_cell("SELECT name FROM snmp_query WHERE id = " . $data_query_id);
if (!isset($data_query_name)) {
echo "ERROR: Unknown Data Query Id ($data_query_id)\n";
exit(1);
}

/*
* Now, add the data query and run it once to get the cache filled
* Now, add the data query and run it once to get the cache filled
*/
$exists_already = db_fetch_cell("SELECT host_id FROM host_snmp_query WHERE host_id=$host_id AND snmp_query_id=$data_query_id AND reindex_method=$reindex_method");
if ((isset($exists_already)) &&
Expand Down
4 changes: 2 additions & 2 deletions cli/add_device.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -345,7 +345,7 @@
}

function display_help() {
echo "Add Device Script 1.0, Copyright 2004-2009 - The Cacti Group\n\n";
echo "Add Device Script 1.0, Copyright 2004-2010 - The Cacti Group\n\n";
echo "A simple command line utility to add a device in Cacti\n\n";
echo "usage: add_device.php --description=[description] --ip=[IP] --template=[ID] [--notes=\"[]\"] [--disable]\n";
echo " [--avail=[ping]] --ping_method=[icmp] --ping_port=[N/A, 1-65534] --ping_retries=[2]\n";
Expand Down
20 changes: 10 additions & 10 deletions cli/add_graph_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -59,15 +59,15 @@
echo "ERROR: You must supply a valid host-id to run this script!\n";
exit(1);
}

break;
case "--graph-template-id":
$graph_template_id = $value;
if (!is_numeric($graph_template_id)) {
echo "ERROR: You must supply a numeric graph-template-id for all hosts!\n";
exit(1);
}

break;
case "--version":
case "-V":
Expand Down Expand Up @@ -97,16 +97,16 @@
displayHosts($hosts, $quietMode);
exit(0);
}

if ($displayGraphTemplates) {
$graphTemplates = getGraphTemplates();
displayGraphTemplates($graphTemplates, $quietMode);
exit(0);
}
/*
* verify required parameters
* for update / insert options

/*
* verify required parameters
* for update / insert options
*/
if (!isset($host_id)) {
echo "ERROR: You must supply a valid host-id for all hosts!\n";
Expand All @@ -118,7 +118,7 @@
exit(1);
}

/*
/*
* verify valid host id and get a name for it
*/
$host_name = db_fetch_cell("SELECT hostname FROM host WHERE id = " . $host_id);
Expand All @@ -127,7 +127,7 @@
exit(1);
}

/*
/*
* verify valid graph template and get a name for it
*/
$graph_template_name = db_fetch_cell("SELECT name FROM graph_templates WHERE id = " . $graph_template_id);
Expand Down
2 changes: 1 addition & 1 deletion cli/add_graphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
4 changes: 2 additions & 2 deletions cli/add_perms.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -233,7 +233,7 @@
}

function display_help() {
echo "Add Permissions Script 1.0, Copyright 2004-2009 - The Cacti Group\n\n";
echo "Add Permissions Script 1.0, Copyright 2004-2010 - The Cacti Group\n\n";
echo "A simple command line utility to add permissions to tree items in Cacti\n\n";
echo "usage: add_perms.php [ --user-id=[ID] ]\n";
echo " --item-type=[graph|tree|host|graph_template]\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/add_tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -317,7 +317,7 @@
}

function display_help() {
echo "Add Tree Script 1.0, Copyright 2004-2009 - The Cacti Group\n\n";
echo "Add Tree Script 1.0, Copyright 2004-2010 - The Cacti Group\n\n";
echo "A simple command line utility to add objects to a tree in Cacti\n\n";
echo "usage: add_tree.php --type=[tree|node] [type-options] [--quiet]\n\n";
echo "Tree options:\n";
Expand Down
2 changes: 1 addition & 1 deletion cli/convert_innodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
ex: set tabstop=4 shiftwidth=4 autoindent:
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2008 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
2 changes: 1 addition & 1 deletion cli/copy_user.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
4 changes: 2 additions & 2 deletions cli/host_update_template.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -148,7 +148,7 @@

/* display_help - displays the usage of the function */
function display_help () {
print "Cacti Retemplate Host Script 1.0, Copyright 2004-2009 - The Cacti Group\n";
print "Cacti Retemplate Host Script 1.0, Copyright 2004-2010 - The Cacti Group\n";
print "usage: host_update_template.php -host-id=[host-id|All] [--host-template=[ID]] [-d] [-h] [--help] [-v] [--version]\n\n";
print "--host-id=host_id - The host_id to have templates reapplied 'all' to do all hosts\n";
print "--host-template=ID - Which Host Template to Refresh\n\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/import_template.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -125,7 +125,7 @@
}

function display_help() {
echo "Add Graphs Script 1.0, Copyright 2009 - The Cacti Group\n\n";
echo "Add Graphs Script 1.0, Copyright 2010 - The Cacti Group\n\n";
echo "A simple command line utility to import a Template into Cacti\n\n";
echo "usage: import_template.php --filename=[filename] [--with-rras]\n";
echo "Required:\n";
Expand Down
2 changes: 1 addition & 1 deletion cli/poller_data_sources_reapply_names.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down
4 changes: 2 additions & 2 deletions cli/poller_graphs_reapply_names.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -143,7 +143,7 @@

/* display_help - displays the usage of the function */
function display_help () {
print "Cacti Reapply Graph Names Script 1.0, Copyright 2004-2009 - The Cacti Group\n\n";
print "Cacti Reapply Graph Names Script 1.0, Copyright 2004-2010 - The Cacti Group\n\n";
print "usage: poller_graphs_reapply_names.php -id=[host_id|All][host_id1|host_id2|...] [-s=[search_string] [-d] [-h] [--help] [-v] [--version]\n\n";
print "-id=host_id - The host_id or 'All' or a pipe delimited list of host_id's\n";
print "-s=search_str - A graph template name or graph title to search for\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/poller_output_empty.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -83,7 +83,7 @@

/* display_help - displays the usage of the function */
function display_help () {
print "Cacti Empty Poller Output Table Script 1.0, Copyright 2004-2009 - The Cacti Group\n\n";
print "Cacti Empty Poller Output Table Script 1.0, Copyright 2004-2010 - The Cacti Group\n\n";
print "usage: poller_output_empty.php [-h] [--help] [-v] [--version]\n\n";
print "-v --version - Display this help message\n";
print "-h --help - Display this help message\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/poller_reindex_hosts.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -131,7 +131,7 @@

/* display_help - displays the usage of the function */
function display_help () {
print "Cacti Reindex Host Script 1.2, Copyright 2004-2009 - The Cacti Group\n\n";
print "Cacti Reindex Host Script 1.2, Copyright 2004-2010 - The Cacti Group\n\n";
print "usage: poller_reindex_hosts.php --id=[host_id|All] [--qid=[ID|All]] [--host-descr=[description]]\n";
print " [-d] [-h] [--help] [-v] [--version]\n\n";
print "--id=host_id - The host_id to have data queries reindexed or 'All' to reindex all hosts\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/rebuild_poller_cache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -98,7 +98,7 @@

/* display_help - displays the usage of the function */
function display_help () {
print "Cacti Rebuild Poller Cache Script 1.0, Copyright 2004-2009 - The Cacti Group\n\n";
print "Cacti Rebuild Poller Cache Script 1.0, Copyright 2004-2010 - The Cacti Group\n\n";
print "usage: rebuild_poller_cache.php [-d] [-h] [--help] [-v] [--version]\n\n";
print "-d - Display verbose output during execution\n";
print "-v --version - Display this help message\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/repair_database.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| Copyright (C) 2004-2010 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
Expand Down Expand Up @@ -83,7 +83,7 @@

/* display_help - displays the usage of the function */
function display_help () {
print "Cacti Database Repair Tool v1.0, Copyright 2004-2009 - The Cacti Group\n\n";
print "Cacti Database Repair Tool v1.0, Copyright 2004-2010 - The Cacti Group\n\n";
print "usage: repair_database.php [-d] [-h] [--form] [--help] [-v] [-V] [--version]\n\n";
print "-form - Force rebuilding the indexes from the database creation syntax\n";
print "-d - Display verbose output during execution\n";
Expand Down
Loading

0 comments on commit c5403f3

Please sign in to comment.