diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-05-08 15:49:32 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-02 12:32:36 +0200 |
commit | b0060401e538f797b07f18d6d807868f70e78d38 (patch) | |
tree | f5222c0ad75966cc61a8903093e38ae0af71ae26 /admin/WebConsole/gestores | |
parent | 58fc387d36dfa4b93497d7759970fcf98db4c5a6 (diff) |
#942 schedule commands (web)
Diffstat (limited to 'admin/WebConsole/gestores')
-rw-r--r-- | admin/WebConsole/gestores/gestor_programaciones.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/admin/WebConsole/gestores/gestor_programaciones.php b/admin/WebConsole/gestores/gestor_programaciones.php index 8aa0078b..0a76a8d9 100644 --- a/admin/WebConsole/gestores/gestor_programaciones.php +++ b/admin/WebConsole/gestores/gestor_programaciones.php @@ -13,6 +13,7 @@ include_once("../includes/CreaComando.php"); include_once("../clases/AdoPhp.php"); include_once("../includes/comunes.php"); include_once("../includes/restfunctions.php"); +include_once("../includes/constantes.php"); //________________________________________________________________________________________________________ $op_alta=1; $op_modificacion=2; @@ -71,18 +72,20 @@ if(empty($pminutos)) $pminutos=0; if(empty($psegundos)) $psegundos=0; if(empty($pminutosini)) $pminutosini=0; if(empty($pminutosfin)) $pminutosfin=0; - if($wsw_sus=='true') $psw_sus=1; else $psw_sus=0 ; +if ($ptipoaccion == $EJECUCION_COMANDO) + $pidentificador = $psesion; + if($pswop!=$op_suspension){ $result; $idr=$pidprogramacion; switch($pswop){ case $op_alta: - $result = create_schedule($pidentificador, + $result = create_schedule($pidentificador, $ptipoaccion, $pnombrebloque, $pannos, $pmeses, $psemanas, $pdias, $pdiario, $phoras, $pampm, $pminutos); $swop=$op_alta; |