\n";
diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php
index 1a3178ddcb..e1870452e0 100644
--- a/app/time_conditions/time_condition_edit.php
+++ b/app/time_conditions/time_condition_edit.php
@@ -49,7 +49,7 @@ require_once "resources/header.php";
$available_presets[] = json_decode($json, true);
}
unset($preset_region);
-
+
//set the action as an add or an update
if (isset($_REQUEST["id"])) {
$action = "update";
@@ -250,14 +250,14 @@ require_once "resources/header.php";
$is_preset = (in_array($group_id, $_REQUEST['preset'])) ? true : false;
//set group and order number
-
+
$dialplan_detail_group_user = check_str($_POST["group_$group_id"]);
if($dialplan_detail_group_user!='') {
$dialplan_detail_group = $dialplan_detail_group_user;
} else {
$dialplan_detail_group = $group_id;
- }
-
+ }
+
$dialplan_detail_order = 0;
foreach ($conditions as $cond_num => $cond_var) {
diff --git a/app/traffic_graph/svg_graph.php b/app/traffic_graph/svg_graph.php
index 1fc6a2836e..9188c9c7da 100644
--- a/app/traffic_graph/svg_graph.php
+++ b/app/traffic_graph/svg_graph.php
@@ -2,21 +2,21 @@
/*
graph.php
part of m0n0wall (http://m0n0.ch/wall)
-
+
Copyright (C) 2004-2006 T. Lechat , Manuel Kasper
and Jonathan Watt .
All rights reserved.
-
+
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
-
+
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
-
+
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
-
+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
@@ -197,7 +197,7 @@ function fetch_data() {
function plot_data(obj) {
// Show datetimelegend
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());
SVGDoc.getElementById('datetime').firstChild.data = datetime;
@@ -223,7 +223,7 @@ function plot_data(obj) {
last_ugmt = ugmt;
last_ifin = ifin;
last_ifout = ifout;
-
+
switch (plot_in.length) {
case 0:
SVGDoc.getElementById("collect_initial").setAttributeNS(null, 'visibility', 'visible');
@@ -296,7 +296,7 @@ function plot_data(obj) {
rmax *= 1.25;
else
rmax *= 2;
-
+
if (i == 8)
rmax *= 1.024;
}
diff --git a/app/vars/app_defaults.php b/app/vars/app_defaults.php
index 1a0c840845..6f5a12dd23 100644
--- a/app/vars/app_defaults.php
+++ b/app/vars/app_defaults.php
@@ -121,7 +121,7 @@ EOD;
if ( $country_iso===NULL ) {
return;
}
-
+
if(isset($countries[$country_iso])){
$country = $countries[$country_iso];
@@ -133,7 +133,7 @@ EOD;
if ($prep_statement) {
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
-
+
if ($row['num_rows'] == 0) {
$sql = "insert into v_vars ";
$sql .= "(";
@@ -161,7 +161,7 @@ EOD;
}
}
unset($prep_statement, $sql);
-
+
// Set default Country code
$sql = "select count(*) as num_rows from v_vars ";
$sql .= "where var_name = 'default_countrycode' ";
@@ -197,7 +197,7 @@ EOD;
}
}
unset($prep_statement, $sql);
-
+
// Set default International Direct Dialing code
$sql = "select count(*) as num_rows from v_vars ";
$sql .= "where var_name = 'default_exitcode' ";
@@ -229,11 +229,11 @@ EOD;
$sql .= ");";
$db->exec(check_sql($sql));
unset($sql, $row);
- $x++;
+ $x++;
}
}
unset($prep_statement, $sql);
-
+
unset($countries);
}
}