Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('max_execution_time', 0);
- ini_set('memory_limit', '2048M');
- define('DIR_APPLICATION', str_replace('\\', '/', realpath(dirname(__FILE__))) . '/');
- if ((isset($_GET['plik']) && file_exists(DIR_APPLICATION . $_GET['plik'])) && isset($_GET['kod'])) {
- $lines = file(DIR_APPLICATION . $_GET['plik']);
- foreach ($lines as $line) {
- $parts = explode(',', $line);
- if (isset($parts[1])) {
- $parts[0] = trim($parts[0]);
- if ($parts[0] == $_GET['kod']) {
- echo trim($parts[1]);
- exit();
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement