projects
/
mtweb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
public attr / function, constructeurs __construct
[mtweb]
/
mw
/
env
/
modules
/
mw_env_cli.php
diff --git
a/mw/env/modules/mw_env_cli.php
b/mw/env/modules/mw_env_cli.php
index
7ff6ca2
..
adac17d
100644
(file)
--- a/
mw/env/modules/mw_env_cli.php
+++ b/
mw/env/modules/mw_env_cli.php
@@
-2,14
+2,14
@@
class mw_env_cli extends mw_env{
class mw_env_cli extends mw_env{
-
var
$argv;
-
var
$etat;
-
var
$login;
-
var
$password;
-
var
$params;
-
var
$INITED;
+
public
$argv;
+
public
$etat;
+
public
$login;
+
public
$password;
+
public
$params;
+
public
$INITED;
- function run_cli($argv){
+
public
function run_cli($argv){
if(PHP_SAPI != "cli"){
$this->INITED = false;
return "php cli uniquement";
if(PHP_SAPI != "cli"){
$this->INITED = false;
return "php cli uniquement";
@@
-34,11
+34,11
@@
return true;
}
return true;
}
- function inited(){
+
public
function inited(){
return isset($this->INITED) && $this->INITED;
}
return isset($this->INITED) && $this->INITED;
}
- function parse_cli_arguments(){
+
public
function parse_cli_arguments(){
if(!$this->inited()) return "cli not inited";
$FIRST = false;
$SECOND = false;
if(!$this->inited()) return "cli not inited";
$FIRST = false;
$SECOND = false;
@@
-87,7
+87,7
@@
return true;
}
return true;
}
- function init_cli_user(){
+
public
function init_cli_user(){
if(!$this->inited()) return "cli not inited";
$data = $this->data();
if($this->login){
if(!$this->inited()) return "cli not inited";
$data = $this->data();
if($this->login){
@@
-115,7
+115,7
@@
return true;
}
return true;
}
- function cmd_prompt($prompt, $SILENT = false){
+
public
function cmd_prompt($prompt, $SILENT = false){
if(preg_match('/^win/i', PHP_OS)){
$vbscript = sys_get_temp_dir().'prompt_password.vbs';
file_put_contents(
if(preg_match('/^win/i', PHP_OS)){
$vbscript = sys_get_temp_dir().'prompt_password.vbs';
file_put_contents(
@@
-141,5
+141,3
@@
}
}
}
}
-
-?>
\ No newline at end of file