<?php error_reporting(E_ERROR | E_PARSE); include "functions.php"; echo "\nRunning:\n"; $list = glob("scans/*"); for ($i = 0; $i < count($list); $i++) { echo "\t" . $i . "/" . count($list) . " - " . $list[$i] . "... "; buildFromListNew(explode("\n", file_get_contents($list[$i]))); echo "Done!\n"; }
<?php include "functions.php"; //Parse local scan if (isset($_POST['paste'])) { $lscan = buildFromListNew(explode("\n", $_POST['paste'])); $key = saveLScan($lscan); file_put_contents("scans/" . $key, $_POST['paste']); header('Location: /local/' . $key); } saveHit(); ?> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <!-- Latest compiled and minified CSS --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <?php include "../switcher.php"; ?> <link rel="stylesheet" href="/local/css/custom.css"> <!-- Optional theme --> <!-- Latest compiled and minified JavaScript --> <!-- Custom Page CSS --> </head>
<?php include "functions.php"; print_r(buildFromListNew(explode("\n", file_get_contents("scans/026f3b6a5193d2f365cbf9a3361d129bd125b0e0"))));