WhitespaceClean-app/batch_2
whitespace pass over files for reference regex that was used s/[ \t]+(\r?\n)/\1/
This commit is contained in:
@@ -61,7 +61,7 @@ function download_send_headers($filename) {
|
|||||||
header("Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate");
|
header("Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate");
|
||||||
header("Last-Modified: {$now} GMT");
|
header("Last-Modified: {$now} GMT");
|
||||||
|
|
||||||
// force download
|
// force download
|
||||||
header("Content-Type: application/force-download");
|
header("Content-Type: application/force-download");
|
||||||
header("Content-Type: application/octet-stream");
|
header("Content-Type: application/octet-stream");
|
||||||
header("Content-Type: application/download");
|
header("Content-Type: application/download");
|
||||||
@@ -154,9 +154,9 @@ $row_style["1"] = "row_style1";
|
|||||||
echo "<th><input type=\"checkbox\" id=\"selecctall\"/>";
|
echo "<th><input type=\"checkbox\" id=\"selecctall\"/>";
|
||||||
echo "</th>";
|
echo "</th>";
|
||||||
echo "<th> Column Name";
|
echo "<th> Column Name";
|
||||||
echo "</th>";
|
echo "</th>";
|
||||||
echo "<th> Description";
|
echo "<th> Description";
|
||||||
echo "</th>";
|
echo "</th>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
foreach ($columns as $value) {
|
foreach ($columns as $value) {
|
||||||
@@ -164,9 +164,9 @@ $row_style["1"] = "row_style1";
|
|||||||
echo " <td width = '20px' valign='top' class='".$row_style[$c]."'><input class=\"checkbox1\" type=\"checkbox\" name=\"column_group[]\" value=\"$value\"/>";
|
echo " <td width = '20px' valign='top' class='".$row_style[$c]."'><input class=\"checkbox1\" type=\"checkbox\" name=\"column_group[]\" value=\"$value\"/>";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'> $value";
|
echo " <td valign='top' class='".$row_style[$c]."'> $value";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
if ($c==0) { $c=1; } else { $c=0; }
|
if ($c==0) { $c=1; } else { $c=0; }
|
||||||
}
|
}
|
||||||
@@ -181,7 +181,7 @@ $row_style["1"] = "row_style1";
|
|||||||
echo "</table>";
|
echo "</table>";
|
||||||
echo "<br><br>";
|
echo "<br><br>";
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
?>
|
?>
|
||||||
@@ -151,15 +151,15 @@ if(!function_exists('fax_enqueue')) {
|
|||||||
$date_utc_now_sql = "datetime('now')";
|
$date_utc_now_sql = "datetime('now')";
|
||||||
}
|
}
|
||||||
$sql = <<<HERE
|
$sql = <<<HERE
|
||||||
INSERT INTO v_fax_tasks( fax_task_uuid, fax_uuid,
|
INSERT INTO v_fax_tasks( fax_task_uuid, fax_uuid,
|
||||||
task_next_time, task_lock_time,
|
task_next_time, task_lock_time,
|
||||||
task_fax_file, task_wav_file, task_uri, task_dial_string, task_dtmf,
|
task_fax_file, task_wav_file, task_uri, task_dial_string, task_dtmf,
|
||||||
task_interrupted, task_status, task_no_answer_counter, task_no_answer_retry_counter, task_retry_counter,
|
task_interrupted, task_status, task_no_answer_counter, task_no_answer_retry_counter, task_retry_counter,
|
||||||
task_reply_address, task_description)
|
task_reply_address, task_description)
|
||||||
VALUES (?, ?,
|
VALUES (?, ?,
|
||||||
$date_utc_now_sql, NULL,
|
$date_utc_now_sql, NULL,
|
||||||
?, ?, ?, ?, ?,
|
?, ?, ?, ?, ?,
|
||||||
'false', 0, 0, 0, 0,
|
'false', 0, 0, 0, 0,
|
||||||
?, ?);
|
?, ?);
|
||||||
HERE;
|
HERE;
|
||||||
$stmt = $db->prepare($sql);
|
$stmt = $db->prepare($sql);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* cache class provides an abstracted cache
|
* cache class provides an abstracted cache
|
||||||
*
|
*
|
||||||
* @method string dialplan - builds the dialplan for the fax servers
|
* @method string dialplan - builds the dialplan for the fax servers
|
||||||
*/
|
*/
|
||||||
//define the fax class
|
//define the fax class
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
$dialplan["dialplan_details"][$y]["dialplan_detail_data"] = substr($data,8,strlen($data));
|
$dialplan["dialplan_details"][$y]["dialplan_detail_data"] = substr($data,8,strlen($data));
|
||||||
}
|
}
|
||||||
elseif (substr($data,0,9) == "outbound:") {}
|
elseif (substr($data,0,9) == "outbound:") {}
|
||||||
else {
|
else {
|
||||||
$dialplan["dialplan_details"][$y]["dialplan_detail_data"] = $data;
|
$dialplan["dialplan_details"][$y]["dialplan_detail_data"] = $data;
|
||||||
}
|
}
|
||||||
$dialplan["dialplan_details"][$y]["dialplan_detail_group"] = "1";
|
$dialplan["dialplan_details"][$y]["dialplan_detail_group"] = "1";
|
||||||
|
|||||||
@@ -188,8 +188,8 @@ else {
|
|||||||
if ($c==0) { $c=1; } else { $c=0; }
|
if ($c==0) { $c=1; } else { $c=0; }
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
|
||||||
|
|
||||||
//Current logged members
|
//Current logged members
|
||||||
//set the alternating row styles
|
//set the alternating row styles
|
||||||
$c = 0;
|
$c = 0;
|
||||||
@@ -201,33 +201,33 @@ else {
|
|||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
echo "<br><br>Logged in agents<br><br>\n";
|
echo "<br><br>Logged in agents<br><br>\n";
|
||||||
|
|
||||||
|
|
||||||
//show the content
|
//show the content
|
||||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||||
|
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<th>".$text['label-username']."</th>\n";
|
echo "<th>".$text['label-username']."</th>\n";
|
||||||
echo "<th>Total inbound calls</th>\n";
|
echo "<th>Total inbound calls</th>\n";
|
||||||
echo "<th>Logged on since</th>\n";
|
echo "<th>Logged on since</th>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
//print_r($xml->fifo->outbound->member[0]);
|
//print_r($xml->fifo->outbound->member[0]);
|
||||||
//print_r($xml->fifo->outbound->member[1]);
|
//print_r($xml->fifo->outbound->member[1]);
|
||||||
|
|
||||||
|
|
||||||
foreach ($xml->fifo->outbound->member as $row) {
|
foreach ($xml->fifo->outbound->member as $row) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$username=explode("@",$row);
|
$username=explode("@",$row);
|
||||||
$username=explode("/",$username[0]);
|
$username=explode("/",$username[0]);
|
||||||
$username=$username[1];
|
$username=$username[1];
|
||||||
|
|
||||||
$fifo_duration_formatted=$row["logged-on-since"];
|
$fifo_duration_formatted=$row["logged-on-since"];
|
||||||
$fifo_total_inbound_calls=$row["outbound-call-total-count"];
|
$fifo_total_inbound_calls=$row["outbound-call-total-count"];
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>$username </td>\n";
|
echo "<td valign='top' class='".$row_style[$c]."'>$username </td>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_total_inbound_calls </td>\n";
|
echo "<td valign='top' class='".$row_style[$c]."'>$fifo_total_inbound_calls </td>\n";
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ require_once "resources/header.php";
|
|||||||
$available_presets[] = json_decode($json, true);
|
$available_presets[] = json_decode($json, true);
|
||||||
}
|
}
|
||||||
unset($preset_region);
|
unset($preset_region);
|
||||||
|
|
||||||
//set the action as an add or an update
|
//set the action as an add or an update
|
||||||
if (isset($_REQUEST["id"])) {
|
if (isset($_REQUEST["id"])) {
|
||||||
$action = "update";
|
$action = "update";
|
||||||
@@ -250,14 +250,14 @@ require_once "resources/header.php";
|
|||||||
$is_preset = (in_array($group_id, $_REQUEST['preset'])) ? true : false;
|
$is_preset = (in_array($group_id, $_REQUEST['preset'])) ? true : false;
|
||||||
|
|
||||||
//set group and order number
|
//set group and order number
|
||||||
|
|
||||||
$dialplan_detail_group_user = check_str($_POST["group_$group_id"]);
|
$dialplan_detail_group_user = check_str($_POST["group_$group_id"]);
|
||||||
if($dialplan_detail_group_user!='') {
|
if($dialplan_detail_group_user!='') {
|
||||||
$dialplan_detail_group = $dialplan_detail_group_user;
|
$dialplan_detail_group = $dialplan_detail_group_user;
|
||||||
} else {
|
} else {
|
||||||
$dialplan_detail_group = $group_id;
|
$dialplan_detail_group = $group_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
$dialplan_detail_order = 0;
|
$dialplan_detail_order = 0;
|
||||||
|
|
||||||
foreach ($conditions as $cond_num => $cond_var) {
|
foreach ($conditions as $cond_num => $cond_var) {
|
||||||
|
|||||||
@@ -2,21 +2,21 @@
|
|||||||
/*
|
/*
|
||||||
graph.php
|
graph.php
|
||||||
part of m0n0wall (http://m0n0.ch/wall)
|
part of m0n0wall (http://m0n0.ch/wall)
|
||||||
|
|
||||||
Copyright (C) 2004-2006 T. Lechat <dev@lechat.org>, Manuel Kasper <mk@neon1.net>
|
Copyright (C) 2004-2006 T. Lechat <dev@lechat.org>, Manuel Kasper <mk@neon1.net>
|
||||||
and Jonathan Watt <jwatt@jwatt.org>.
|
and Jonathan Watt <jwatt@jwatt.org>.
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions are met:
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice,
|
1. Redistributions of source code must retain the above copyright notice,
|
||||||
this list of conditions and the following disclaimer.
|
this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
notice, this list of conditions and the following disclaimer in the
|
notice, this list of conditions and the following disclaimer in the
|
||||||
documentation and/or other materials provided with the distribution.
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
@@ -197,7 +197,7 @@ function fetch_data() {
|
|||||||
function plot_data(obj) {
|
function plot_data(obj) {
|
||||||
// Show datetimelegend
|
// Show datetimelegend
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
var datetime = (now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear() + ' ' +
|
var datetime = (now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear() + ' ' +
|
||||||
LZ(now.getHours()) + ":" + LZ(now.getMinutes()) + ":" + LZ(now.getSeconds());
|
LZ(now.getHours()) + ":" + LZ(now.getMinutes()) + ":" + LZ(now.getSeconds());
|
||||||
SVGDoc.getElementById('datetime').firstChild.data = datetime;
|
SVGDoc.getElementById('datetime').firstChild.data = datetime;
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ function plot_data(obj) {
|
|||||||
last_ugmt = ugmt;
|
last_ugmt = ugmt;
|
||||||
last_ifin = ifin;
|
last_ifin = ifin;
|
||||||
last_ifout = ifout;
|
last_ifout = ifout;
|
||||||
|
|
||||||
switch (plot_in.length) {
|
switch (plot_in.length) {
|
||||||
case 0:
|
case 0:
|
||||||
SVGDoc.getElementById("collect_initial").setAttributeNS(null, 'visibility', 'visible');
|
SVGDoc.getElementById("collect_initial").setAttributeNS(null, 'visibility', 'visible');
|
||||||
@@ -296,7 +296,7 @@ function plot_data(obj) {
|
|||||||
rmax *= 1.25;
|
rmax *= 1.25;
|
||||||
else
|
else
|
||||||
rmax *= 2;
|
rmax *= 2;
|
||||||
|
|
||||||
if (i == 8)
|
if (i == 8)
|
||||||
rmax *= 1.024;
|
rmax *= 1.024;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ EOD;
|
|||||||
if ( $country_iso===NULL ) {
|
if ( $country_iso===NULL ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($countries[$country_iso])){
|
if(isset($countries[$country_iso])){
|
||||||
$country = $countries[$country_iso];
|
$country = $countries[$country_iso];
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ EOD;
|
|||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
if ($row['num_rows'] == 0) {
|
if ($row['num_rows'] == 0) {
|
||||||
$sql = "insert into v_vars ";
|
$sql = "insert into v_vars ";
|
||||||
$sql .= "(";
|
$sql .= "(";
|
||||||
@@ -161,7 +161,7 @@ EOD;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($prep_statement, $sql);
|
unset($prep_statement, $sql);
|
||||||
|
|
||||||
// Set default Country code
|
// Set default Country code
|
||||||
$sql = "select count(*) as num_rows from v_vars ";
|
$sql = "select count(*) as num_rows from v_vars ";
|
||||||
$sql .= "where var_name = 'default_countrycode' ";
|
$sql .= "where var_name = 'default_countrycode' ";
|
||||||
@@ -197,7 +197,7 @@ EOD;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($prep_statement, $sql);
|
unset($prep_statement, $sql);
|
||||||
|
|
||||||
// Set default International Direct Dialing code
|
// Set default International Direct Dialing code
|
||||||
$sql = "select count(*) as num_rows from v_vars ";
|
$sql = "select count(*) as num_rows from v_vars ";
|
||||||
$sql .= "where var_name = 'default_exitcode' ";
|
$sql .= "where var_name = 'default_exitcode' ";
|
||||||
@@ -229,11 +229,11 @@ EOD;
|
|||||||
$sql .= ");";
|
$sql .= ");";
|
||||||
$db->exec(check_sql($sql));
|
$db->exec(check_sql($sql));
|
||||||
unset($sql, $row);
|
unset($sql, $row);
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($prep_statement, $sql);
|
unset($prep_statement, $sql);
|
||||||
|
|
||||||
unset($countries);
|
unset($countries);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user