forked from znarf/dokuwiki-openid
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a session issue when registering a new account, add a php4 compat…
…ibility fix
- Loading branch information
François Hodierne
committed
May 18, 2009
1 parent
7bf9e05
commit 0360443
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
if (!function_exists('file_put_contents')) { | ||
|
||
function file_put_contents($filename, $data) | ||
{ | ||
$f = @fopen($filename, 'w'); | ||
if (!$f) { | ||
return false; | ||
} else { | ||
$bytes = fwrite($f, $data); | ||
fclose($f); | ||
return $bytes; | ||
} | ||
} | ||
|
||
} |