This commit is contained in:
Romain Neutron
2013-10-30 19:35:23 +01:00
parent 36f7b24f26
commit 9b471fdf76
129 changed files with 473 additions and 477 deletions

View File

@@ -593,14 +593,14 @@ class task_Scheduler
break;
}
}
if(function_exists('pcntl_sigprocmask')) {
if (function_exists('pcntl_sigprocmask')) {
@pcntl_sigprocmask(SIG_BLOCK, array(SIGCHLD));
}
sleep(1);
for ($i = 0; $this->schedstatus=='started' && $i < $sleeptime; $i++) {
sleep(1);
}
if(function_exists('pcntl_sigprocmask')) {
if (function_exists('pcntl_sigprocmask')) {
@pcntl_sigprocmask(SIG_UNBLOCK, array(SIGCHLD));
}
}

View File

@@ -96,7 +96,7 @@ class task_manager
$classname = $row['class'];
if (!class_exists($classname)) {
if(substr($classname, 0, 12) == "task_period_") {
if (substr($classname, 0, 12) == "task_period_") {
$classfile = __DIR__ . "/../../../config/classes/task/period/" . substr($classname, 12) . ".php";
if (file_exists($classfile)) {
require_once $classfile;

View File

@@ -168,7 +168,7 @@ class task_period_RecordMover extends task_appboxAbstract
, dataType:'json'
, type:"POST"
, async:true
, success:function(data) {
, success:function (data) {
t = "";
for (i in data.tasks) {
t += "<div class=\"title\">&nbsp;";
@@ -210,7 +210,7 @@ class task_period_RecordMover extends task_appboxAbstract
, dataType:'json'
, type:"POST"
, async:true
, success:function(data) {
, success:function (data) {
for (i in data.tasks) {
if (data.tasks[i].sql) {
if (data.tasks[i].sql.test.err) {
@@ -235,11 +235,11 @@ class task_period_RecordMover extends task_appboxAbstract
}
$(document).ready(
function(){
(function( $ ){
$.fn.serializeJSON=function() {
function () {
(function ($) {
$.fn.serializeJSON=function () {
var json = {};
jQuery.map($(this).serializeArray(), function(n, i){
jQuery.map($(this).serializeArray(), function (n, i) {
json[n['name']] = n['value'];
});
@@ -251,7 +251,7 @@ class task_period_RecordMover extends task_appboxAbstract
'period':{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
'delay':{min:0}
} ;
$(".formElem").change(function(){
$(".formElem").change(function () {
fieldname = $(this).attr("name");
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
case "inputtext":

View File

@@ -170,12 +170,12 @@ class task_period_archive extends task_abstract
$(document).ready(function(){
$(document).ready(function () {
var limits = {
'period':{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
'cold':{'min':<?php echo self::MINCOLD; ?>, 'max':<?php echo self::MAXCOLD; ?>}
} ;
$(".formElem").change(function(){
$(".formElem").change(function () {
fieldname = $(this).attr("name");
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
case "inputtext":
@@ -1746,7 +1746,7 @@ class task_period_archive extends task_abstract
$record = null;
$postProcess = function($element, $visa, $code) use (&$record) {
$postProcess = function ($element, $visa, $code) use (&$record) {
$record = $element;
};

View File

@@ -174,7 +174,7 @@ class task_period_cindexer extends task_abstract
xml = $.parseXML(xml);
xml = $(xml);
var isyes = function(v) {
var isyes = function (v) {
v = v.toUpperCase().trim();
return v=='O' || v=='Y' || v=='OUI' || v=='YES' || v=='1';
@@ -235,8 +235,8 @@ class task_period_cindexer extends task_abstract
$('#cmd').html(cmd);
}
$(document).ready(function(){
$("#graphicForm *").change(function(){
$(document).ready(function () {
$("#graphicForm *").change(function () {
taskFillGraphic_<?php echo(get_class($this));?>(null);
});
});

View File

@@ -105,11 +105,11 @@ class task_period_ftp extends task_appboxAbstract
}
}
$(document).ready(function(){
$(document).ready(function () {
var limits = {
'period' :{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>}
} ;
$(".formElem").change(function(){
$(".formElem").change(function () {
fieldname = $(this).attr("name");
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
case "inputtext":

View File

@@ -127,11 +127,11 @@ class task_period_ftpPull extends task_appboxAbstract
}
}
$(document).ready(function(){
$(document).ready(function () {
var limits = {
'period' :{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>}
} ;
$(".formElem").change(function(){
$(".formElem").change(function () {
fieldname = $(this).attr("name");
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
case "inputtext":

View File

@@ -181,14 +181,14 @@ class task_period_subdef extends task_databoxAbstract
}
}
$(document).ready(function(){
$(document).ready(function () {
var limits = {
'period' :{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
'flush' :{'min':<?php echo self::MINFLUSH; ?>, 'max':<?php echo self::MAXFLUSH; ?>},
'maxrecs':{'min':<?php echo self::MINRECS; ?>, 'max':<?php echo self::MAXRECS; ?>},
'maxmegs':{'min':<?php echo self::MINMEGS; ?>, 'max':<?php echo self::MAXMEGS; ?>}
} ;
$(".formElem").change(function(){
$(".formElem").change(function () {
fieldname = $(this).attr("name");
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
case "inputtext":

View File

@@ -133,13 +133,13 @@ class task_period_writemeta extends task_databoxAbstract
}
}
$(document).ready(function(){
$(document).ready(function () {
var limits = {
'period':{'min':<?php echo self::MINPERIOD; ?>, 'max':<?php echo self::MAXPERIOD; ?>},
'maxrecs':{'min':<?php echo self::MINRECS; ?>, 'max':<?php echo self::MAXRECS; ?>},
'maxmegs':{'min':<?php echo self::MINMEGS; ?>, 'max':<?php echo self::MAXMEGS; ?>}
} ;
$(".formElem").change(function(){
$(".formElem").change(function () {
fieldname = $(this).attr("name");
switch ((this.nodeName+$(this).attr("type")).toLowerCase()) {
case "inputtext":