Detected 1 occurrence(s) of ‘mysql_[p]*connect\(["']{0,1}[a-z0-9\-\.\$]+["']{0,1}\s*,’: out and max nodes to check from command line $timeout = (is_null($argv[1])) ? 5 : $argv[1]; $max_nodes = (is_null($argv[2])) ? 10 : $argv[2]; $nodes = array(); $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; $db = mysql_connect(HOST, USER, PASSWORD) or die(mysql_error()); mysql_select_db(DATABASE); // Get list of nodes to monitor $sql = "SELECT address, online, 0 […]
↧