blob: fa8503a4b81f64289949eb09fbde48ed6ea128e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/* This script generates the .reg file to set up an event source for use by the php syslog() function. */
$PATH = "SYSTEM\\CurrentControlSet\\Services\\Eventlog\\Application\\PHP-" . phpversion();
$dll = $argv[1];
$dll = addslashes($dll);
file_put_contents("win32/syslog.reg", <<<REG
REGEDIT4
[HKEY_LOCAL_MACHINE\\$PATH]
"TypesSupported"=dword:00000007
"EventMessageFile"="$dll"
REG
);
?>
|