summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef1ecfd)
raw | patch | inline | side by side (parent: ef1ecfd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Nov 2006 12:25:32 +0000 (12:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Nov 2006 12:25:32 +0000 (12:25 +0000) |
Updated Error Msgs from faxreport plugin.
Removed setup loop.
Added missing is_mac function to functions inc.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5083 594d385d-05f5-0310-b6e9-bd551577e9d8
Removed setup loop.
Added missing is_mac function to functions inc.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5083 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/html/setup.php b/html/setup.php
index 787d709dfd5de0fa7832cda4f74e80aa401bdcc7..aec16d04da27f6ba50e3d8a87fd1b024d4e73e7d 100644 (file)
--- a/html/setup.php
+++ b/html/setup.php
if (!isset($_GET['js']) && !isset($_SESSION['js'])){
echo '<script language="JavaScript" type="text/javascript">';
- echo ' location = "index.php?js=true";';
+ echo ' location = "setup.php?js=true";';
echo '</script>';
$_SESSION['js']= FALSE;
diff --git a/include/functions.inc b/include/functions.inc
index 24738534a62faa36c128c4e3a901f8287c3febce..dcc5a73ac1951974d6ef4ad65d151ba8d5dc5840 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
return preg_match("/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/", $ip);
}
+
+function is_mac($mac)
+{
+ return preg_match("/^[a-f0-9][a-f0-9]:[a-f0-9][a-f0-9]:[a-f0-9][a-f0-9]:[a-f0-9][a-f0-9]:[a-f0-9][a-f0-9]:[a-f0-9][a-f0-9]$/i", $mac);
+}
+
+
/* Checks if the given ip address dosen't match
"is_ip" because there is also a sub net mask given */
function is_ip_with_subnetmask($ip)
diff --git a/plugins/admin/systems/class_divListSystem.inc b/plugins/admin/systems/class_divListSystem.inc
index e4c0e220df9e69966ada4449bf9420546aac11dd..5350eb7469ba5a8b810ac0ce70b8cf048a71990b 100644 (file)
$this->EnableSaveButton (false);
/* Dynamic action col, depending on snapshot icons */
- $action_col_size = 60;
+ $action_col_size = 70;
if($this->parent->snapshotEnabled()){
$action_col_size += 38;
}
diff --git a/plugins/gofax/faxreports/class_faxreport.inc b/plugins/gofax/faxreports/class_faxreport.inc
index 9d5de84cb23531aacb0f0a43e01b3560cc22f917..b9e4a9bb9d96d4f455a2772e808e5ee91233364e 100644 (file)
/* Some checks */
if(!isset($this->config->data['SERVERS']['FAX'])){
- print_red(_("Can't connect to fax database, no reports can be shown!"));
+ print_red(_("No fax extension defined in your sever configuration, no reports can be shown!"));
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}elseif(!is_callable("mysql_connect")){
print_red(_("There is no mysql extension available, please check your php setup."));
}
if (! mysql_query("SELECT * FROM faxlog;")){
- print_red(_("Can't select fax database for report generation!"));
+ print_red(_("Can't query fax table 'faxlog' for report generation!"));
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
}