BadVPN – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <?php
2  
3 $filename = $argv[1];
4 $contents = file_get_contents($filename);
5 if ($contents === FALSE) exit(1);
6 $search = array("<inttypes.h>", "#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L");
7 $replace = array("<stdint.h>", "#if 1");
8 $contents = str_replace($search, $replace, $contents);
9 $res = file_put_contents($filename, $contents);
10 if ($res === FALSE) exit(1);