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
appadmin.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
* Add, modify or delete WHAT application
9
*
10
*
11
* @param string $appname internal name of the application
12
* @param string $method may be "init","reinit","update","delete"
13
* @author Anakeen 2003
14
* @version $Id: appadmin.php,v 1.8 2008/05/21 07:27:02 marc Exp $
15
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
16
* @package FDL
17
* @subpackage WSH
18
*/
19
/**
20
*/
21
include_once (
"Class.Application.php"
);
22
23
$appname
=
GetHttpVars
(
"appname"
,
""
);
24
$method
=
GetHttpVars
(
"method"
,
"init"
);
25
26
if
(
$appname
==
""
) {
27
echo
"[appadmin::$method] missing application. Please set it whith --appname=<application name>\n"
;
28
exit
;
29
}
30
if
(
$method
!=
"init"
&&
$method
!=
"reinit"
&&
$method
!=
"update"
&&
$method
!=
"delete"
) {
31
echo
"[appadmin] allowed method : init reinit update delete.\n"
;
32
exit
;
33
}
34
echo
" $appname...$method\n"
;
35
$app
=
new
Application
();
36
37
$Null
=
""
;
38
$app
->Set(
$appname
,
$Null
, null,
true
);
39
if
(
$method
==
"reinit"
)
$app
->InitApp(
$appname
,
false
, null,
true
);
40
if
(
$method
==
"update"
)
$app
->InitApp(
$appname
,
true
);
41
if
(
$method
==
"delete"
)
$app
->DeleteApp();
42
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase