Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
refreshjsversion.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* regenerate js version file
9
*
10
* @param string $filename the file which contain new login or ACLs
11
* @author Anakeen 2002
12
* @version $Id: refreshjsversion.php,v 1.2 2005/06/10 13:05:18 eric Exp $
13
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
14
* @package FDL
15
* @subpackage WSH
16
*/
17
/**
18
*/
19
20
$nv
=
getJsVersion
();
21
22
$fjs
=
getParam
(
"CORE_PUBDIR"
) .
"/CORE/wversion.js.in"
;
23
24
$fc
= file_get_contents(
$fjs
);
25
$fc
= str_replace(
"%VERSION%"
,
$nv
,
$fc
);
26
27
$cible
=
getParam
(
"CORE_PUBDIR"
) .
"/CORE/wversion.js"
;
28
$fj
= fopen(
$cible
,
"w"
);
29
fputs(
$fj
,
$fc
);
30
fclose(
$fj
);
31
32
$action
->parent->param->Set(
"WVERSION"
,
$nv
);
33
print
"$cible [$nv]\n"
;
34
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase