forked from Cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature Cacti#1588: Check that PHP can run a test file (Cacti#1722)
* Feature Cacti#1588: Check that PHP can run a test file * Feature Cacti#1628 - Allow the User to define a initial Network Discovery during Setup * Fix QA issue with PHP 5.4 * Replace \n with PHP_EOL * Minor changes to tabs vs. space and PHP_EOL Will have to update packages based upon this too. * Another minor pull where PHP_EOL was removed
- Loading branch information
Showing
9 changed files
with
464 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/php -q | ||
<?php | ||
/* | ||
+-------------------------------------------------------------------------+ | ||
| Copyright (C) 2004-2018 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 | | ||
| as published by the Free Software Foundation; either version 2 | | ||
| of the License, or (at your option) any later version. | | ||
| | | ||
| This program is distributed in the hope that it will be useful, | | ||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | | ||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | ||
| GNU General Public License for more details. | | ||
+-------------------------------------------------------------------------+ | ||
| Cacti: The Complete RRDtool-based Graphing Solution | | ||
+-------------------------------------------------------------------------+ | ||
| This code is designed, written, and maintained by the Cacti Group. See | | ||
| about.php and/or the AUTHORS file for specific developer information. | | ||
+-------------------------------------------------------------------------+ | ||
| http://www.cacti.net/ | | ||
+-------------------------------------------------------------------------+ | ||
*/ | ||
|
||
/* do NOT run this script through a web browser */ | ||
if (!isset($_SERVER['argv'][0]) || isset($_SERVER['REQUEST_METHOD']) || isset($_SERVER['REMOTE_ADDR'])) { | ||
die('<br><strong>This script is only meant to run at the command line.</strong>'); | ||
} | ||
|
||
if (sizeof($argv)) { | ||
$value = intval($argv[1]); | ||
print $value * $value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.