Core  3.2
PHP API documentation
 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 
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";
const DEFAULT_PUBDIR
Definition: Lib.Prefix.php:28
getJsVersion()
Definition: Lib.Common.php:663
print
Definition: checklist.php:49
global $action
Verify arguments for wsh programs.
← centre documentaire © anakeen