You appear to be a bot. Output may be restricted
Description
Perform a trace resetIf the trace file exists and is writable then we can attempt to unlink it. We precede the call to unlink with an @ to attempt to avoid getting warning messages. This file may not exist so we have two choices. 1. precede with an @, 2. test for it but if $file is not set then we should test Note: We shouldn't be doing this if we're not tracing the specific IP.
Usage
bw_trace_reset();
Parameters
Returns
voidSource
File name: oik-bwtrace/includes/bwtrace.phpLines:
1 to 14 of 14
function bw_trace_reset() { static $reset_done = false; if ( ! $reset_done ) { $file = bw_trace_file2(); if ( is_file($file) ) { if ( is_writable( $file ) ) { @unlink( $file ); } else { // We can't unlink the file at the moment - never mind eh? } } } $reset_done = true; }View on GitHub View on Trac