echo "<td>" . nameByNetId($first['submitter']) . "</td>"; echo "<td>" . $first['date'] . "</td>"; echo "<td>" . $first['startTime'] . " - " . $first['endTime'] . "</td>"; echo "<td>" . $first['securityProblems'] . "</td>"; echo "<td>" . $first['shiftProblems'] . "</td>"; echo "<td>" . $first['misc'] . "</td><td>"; if ($admin) { echo "<input type='button' value='Edit' onclick=editReport('" . $first['ID'] . "') />"; } echo "</td></tr>"; while ($cur = $securityDeskQuery->fetch(PDO::FETCH_ASSOC)) { echo "<tr>"; echo "<td>" . nameByNetId($cur['submitter']) . "</td>"; echo "<td>" . $cur['date'] . "</td>"; echo "<td>" . $cur['startTime'] . " - " . $cur['endTime'] . "</td>"; echo "<td>" . $cur['securityProblems'] . "</td>"; echo "<td>" . $cur['shiftProblems'] . "</td>"; echo "<td>" . $cur['misc'] . "</td><td>"; if ($admin) { echo "<input type='button' value='Edit' onclick=editReport('" . $cur['ID'] . "') />"; } echo "</td></tr>"; } echo "</table>"; } else { echo "No reports during this period"; } } echo "<h2>Reports</h2>"; printReport($employee, $start, $end, $securityProblems, $shiftProblems, $misc, $params);
$colonna = $_POST['colonna']; $ordinamento = $_POST['ordinamento']; if ($cubename_sel == "") { $parametri = $_GET['parametri']; list($cubename_sel, $level_ser, $colonna, $ordinamento, $slice) = explode("*", $parametri); $levels = explode("-", $level_ser); } printHTMLHead($stylefile, $jsfile); printBar($cubename_sel, $levels, $img_back, $img_save, $img_home, $img_pdf, $img_csv, $img_share, $img_email, $img_weka); print "<script>init_report(\"{$colonna}\",\"{$ordinamento}\");</script>"; $level_ser = implode("-", $levels); //print "LEV $level_ser<br>"; $query = SQLgenerator2($cubename_sel, $level_ser, $slice, $colonna, $ordinamento); $result = exec_query($query); print "<center>"; print "<div id=divReport>"; printReport($cubename_sel, $levels, $result); print "</div>"; print "</center>"; //*********************************************maschere include "slice/slice_mask.php"; include "drill/drill_mask.php"; include "hier/hier_mask.php"; include "dim/dim_mask.php"; include "drill-across/drill_mask.php"; include "pivoting/pivoting_mask.php"; print "<div id='share_fb' style='z-index:300; visibility:hidden;background-color: white; width:200px; height:100px; border: 2px grey solid;position:absolute;top:100px;left:150px;'>"; print "</div>"; print "<div id='DIVsend_email' style='z-index:300; visibility:hidden;background-color: white; width:500px; height:260px; border: 2px grey solid;position:absolute;top:100px;left:150px;'>"; print "</div>"; create_log($query);
function sqlTest($request) { $mass = explode("-tests-", $request); $request = $mass[0] . "te'st" . $mass[1]; $sql = makeRequest($request); $wat = preg_match('/(OLE DB | SQL Server | Incorrect Syntax | ODBC Driver | ORA -|SQL command not | Oracle Error Code | CFQUERY | MySQL | Sybase | DB2 | Pervasive | Microsoft Access | MySQL | CLI Driver | The string constant beginning with | does not have an ending string delimiter | JET Database Engine error)/i', $sql[1]); if ($wat == true) { $sqlVulnerable = 1; printReport("ALERT: Database Error Message Detected:", ''); } else { $sqlVulnerable = 0; } return $sqlVulnerable; }
echo "<td>" . $current['date'] . "</td>"; echo "<td>" . nameByNetId($current['submitter']) . "</td>"; echo "<td>" . $current['reason'] . "</td>"; echo "<td>"; if ($current['public'] == 1) { echo "Yes"; } else { echo "No"; } echo "</td>"; if ($admin) { echo "<td><input type='button' value='Edit' onclick='editLog(\"" . $current['ID'] . "\",\"commendable\")' /></td>"; echo "<td><input type='button' value='Delete' onclick='deleteLog(\"" . $current['ID'] . "\",\"Commendable\")' /></td>"; } echo "</tr>"; } echo "</table>"; } else { echo "0 Commendable Performances during this time period"; } } $params[':start'] = $start; $params[':end'] = $end; echo "<h2>Reports</h2>"; printReport($employee, $outages, $problems, $misc, $params); echo "<h2>Absences</h2>"; getAbsenceLog($params); echo "<h2>Tardies</h2>"; getTardyLog($params); echo "<h2>Commendable Performances</h2>"; getCommendables($params);
function printElementOneUser(&$stack, $level) { if ($level > 0) { $arrData = $stack[$level]['folder']->otherValues; if (is_array($arrData) && $arrData[3] != '') { require_once _lms_ . '/class.module/track.object.php'; $status = Track_Object::getStatusFromId($stack[$level]['folder']->id, $this->stat_idUser); return printReport($status, TRUE, $arrData[1] !== '' ? true : false); } else { $this->tdb->stat_filter_on_items = TRUE; $totC = getSubStatStatusCount($this->stat_idUser, $this->tdb->idCourse, array('completed', 'passed'), $stack[$level]['folder'], $this->tdb); $totF = getSubStatStatusCount($this->stat_idUser, $this->tdb->idCourse, array('failed'), $stack[$level]['folder'], $this->tdb); $tot = count($this->tdb->getDescendantsId($stack[$level]['folder'])); $this->tdb->stat_filter_on_items = TRUE; $out = '<div class="fright" >'; $out .= renderProgress($totC, $totF, $tot, 130); $out .= '</div>'; return $out; } } }
// if ($arrayOfInjections[3]) { // $dListVuln = dirList($dirRequest, $cookie); // $arrayError[3] += $dListVuln; // $count_error += $dListVuln; // } // if ($arrayOfInjections[2]) { // $dPutVuln = dirPut($dirRequest, $cookie); // $count_error += $dPutVuln; // $arrayError[2] += $dPutVuln; // printDirLog($dirRequest); // } // } // } } } fclose($handle); $rept = "Всего уязвимостей было найдено = {$count_error}"; printReport($rept, ""); echo $rept . "<br>"; foreach ($_POST["option"] as $option) { $rept = $arrayName[$option] . '=' . $arrayError[$option]; echo $rept . "<br>"; printReport($rept, ""); } echo "..."; $time = microtime(true) - $start; $rt = sprintf('Скрипт выполнялся %.4F сек.', $time); echo $rt; printReport($rt, ""); printReport("scan complete", ""); echo "<br>end<br>";
# # # # # # # require "../settings.php"; if (isset($_POST["key"])) { if ($_POST["key"] == "show") { $OUTPUT = showReports($_POST); } else { errDie("Invalid use of module."); } } elseif (isset($_GET["key"])) { $OUTPUT = printReport($_GET); } else { $OUTPUT = slctReports(); } require "../template.php"; # select reports to view function slctReports($err = "") { # connect to db db_connect(); # get employees $employees = "\n\t\t<select size='1' name='empnum'>\n\t\t\t<option value='ALL' style='font-align: center'>- ALL -</option>"; $sql = "SELECT empnum, sname, fnames, enum FROM employees WHERE div = '" . USER_DIV . "' ORDER BY sname"; $empRslt = db_exec($sql) or errDie("Unable to select employees from database."); if (pg_numrows($empRslt) < 1) { return "No employees found in database.<p>" . mkQuickLinks(ql("../admin-employee-add.php", "Add Employee"), ql("../admin-employee-view.php", "View Employees"));
$token = $harvester->getResumptionToken(); if (!isset($token['text'])) { $status = 'broken with wrong token: ' . json_encode($token); } else { if ($harvester->getRecordCount() == -1) { $status = 'broken with empty response'; } else { $total += $harvester->getRecordCount(); $params = array('resumptionToken' => $token['text']); $doNext = true; $status = 'to be continued'; } } } } printReport($token, $currentRecordCount); } while ($doNext); echo 'Finished', isset($options['set']) ? ' SET: ' . $options['set'] : '', ' STATUS: ', $status, LN; /** * Processing an individual record */ function processRecord($record) { $metadata = array(); $isDeleted = isset($record['header']['@status']) && $record['header']['@status'] == 'deleted'; $id = $record['header']['identifier']; if (!$isDeleted) { $metadata = dom_to_array($record['metadata']['childNode']); $metadata['qIdentifier'] = $record['header']['identifier']; $metadata['identifier'] = str_replace(ID_PREFIX, '', $record['header']['identifier']); $metadata['sets'] = $record['header']['setSpec'];
return $result; } /** * Print report * * @param array $stats Array with data */ function printReport($stats) { if (!empty($stats)) { print "Downloads report\n"; print "================\n"; foreach ($stats as $url => $files) { print $url . "\n"; sort($files); foreach ($files as $file) { print "\t{$file}\n"; } print "\n"; } } } // If no config specified, use the default one $config = empty($argv[1]) ? getConfig(DEFAULT_CONFIG) : getConfig($argv[1]); if (empty($config)) { die("Empty config. Nothing to do. Work on your " . DEFAULT_CONFIG); } $feeds = getFeeds($config); $stats = processFeeds($feeds, $config); printReport($stats);