Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
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
* @package FDL
5
*/
6
/**
7
* regenerate js version file
8
*
9
* @param string $filename the file which contain new login or ACLs
10
* @author Anakeen
11
* @version $Id: refreshjsversion.php,v 1.2 2005/06/10 13:05:18 eric Exp $
12
* @package FDL
13
* @subpackage WSH
14
*/
15
/**
16
*/
17
18
$usage
=
new
ApiUsage
();
19
$usage
->setDefinitionText(
"regenerate js version file"
);
20
$usage
->verify();
21
22
$nv
=
getJsVersion
();
23
24
$fjs
=
DEFAULT_PUBDIR
.
"/CORE/wversion.js.in"
;
25
26
$fc
= file_get_contents(
$fjs
);
27
$fc
= str_replace(
"%VERSION%"
,
$nv
,
$fc
);
28
29
$cible
=
DEFAULT_PUBDIR
.
"/CORE/wversion.js"
;
30
$fj
= fopen(
$cible
,
"w"
);
31
fputs(
$fj
,
$fc
);
32
fclose(
$fj
);
33
34
global
$action
;
35
$action->parent->param->Set(
"WVERSION"
,
$nv
+ 1);
36
print
"$cible [$nv]\n"
;
$fc
$fc
Definition:
refreshjsversion.php:26
$nv
$nv
Definition:
refreshjsversion.php:22
DEFAULT_PUBDIR
const DEFAULT_PUBDIR
Definition:
Lib.Prefix.php:28
getJsVersion
getJsVersion()
Definition:
Lib.Common.php:663
$fjs
$fjs
Definition:
refreshjsversion.php:24
print
print
Definition:
checklist.php:49
$cible
$cible
Definition:
refreshjsversion.php:29
$fj
$fj
Definition:
refreshjsversion.php:30
$action
global $action
Definition:
refreshjsversion.php:34
$usage
$usage
Definition:
refreshjsversion.php:18
ApiUsage
Verify arguments for wsh programs.
Definition:
Class.ApiUsage.php:28
← centre documentaire
© anakeen