repo.or.cz
/
Backup_bans.verniy.xyz.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initialization of Logs/4Chan_Bans_Log-Reverse_Chrono-415.json
[Backup_bans.verniy.xyz.git]
/
Scripts
/
Maintenance-DO_NOT_USE
/
Functions
/
ExtensionFixer.php
blob
4723ed6bf30d5bd80ce60bc2724affc7faf4cd10
1
<
?php
2
//replace .txt with .json
3
function
changeExtension
(&
$ready_file
, &
$file_path
){
4
$new_name
=
preg_replace
(
"/.txt/"
,
".json"
,
$file_path
);
5
rename
(
$file_path
,
$new_name
);
6
fclose
(
$ready_file
);
7
$file_path
=
$new_name
;
8
$ready_file
=
fopen
(
"
$new_name
"
,
"r"
);
9
}
10
?
>