summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 556328a)
raw | patch | inline | side by side (parent: 556328a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 24 May 2005 07:51:54 +0000 (07:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 24 May 2005 07:51:54 +0000 (07:51 +0000) |
diff --git a/html/main.php b/html/main.php
index cdce202383b86132ef30f0cf83969dc3a710cdf4..50cee3fafa69798aa20f28a47815a60ee1f1b612 100644 (file)
--- a/html/main.php
+++ b/html/main.php
} else {
$smarty->assign ("plug", "");
}
-$mtmp= $smarty->fetch(get_template_path('headers.tpl'));
+$mtmp="<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
+
/* React on clicks */
if ($_SERVER["REQUEST_METHOD"] == "POST"){
/* Load plugin */
if (is_file("$plugin_dir/main.inc")){
require_once ("$plugin_dir/main.inc");
- print $plugin_dir;
+ print $plugin_dir."/main.inc";
} else {
print_red(sprintf(_("Can't find any plugin definitions for plugin '%s'!"), $plug));
echo $_SESSION['errors'];
diff --git a/include/functions.inc b/include/functions.inc
index 613af8c67938443d0d54784cb3f44f4f4636009b..b00d39a398a1e57ec05ca614a2b9840e9184bf80 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* If DEBUGLEVEL is set, we're in web mode, use textual output in
the other case... */
if (isset($_SESSION['DEBUGLEVEL'])){
- $_SESSION['errors'].= "<div align=center style=\"border-width:5px;".
+ $_SESSION['errors'].= "<div align=\"middle\" style=\"border-width:5px;".
"border-style:solid;border-color:red; background-color:black;".
- "margin-bottom:10px; padding:8px;\"><table><tr><td><img src=\"".
+ "margin-bottom:10px; padding:8px;\"><table><tr><td><img alt=\"\" src=\"".
get_template_path('images/warning.png')."\"></td>".
- "<td width=100% align=center><font color=#FFFFFF>".
+ "<td width=\"100%\" align=\"middle\"><font color=#FFFFFF>".
"<b style='font-size:16px;'>$string</b></font></td><td>".
- "<img src=\"".get_template_path('images/warning.png').
+ "<img alt=\"\"src=\"".get_template_path('images/warning.png').
"\"></td></tr></table></div>\n";
} else {
echo "Error: $string\n";
if ($start > 0 ) {
$output.=" <a href= \"main.php?plug=".validate($_GET['plug'])."&start=".
(($start-$range))."\">".
- "<img src=\"images/back.png\" border=0 align=\"center\"></a>";
+ "<img alt=\"\" src=\"images/back.png\" border=0 align=\"middle\"></a>";
}
/* Draw pages */
if($start < ($dcnt-$range)) {
$output.=" <a href= \"main.php?plug=".validate($_GET['plug'])."&start=".
(($start+($range)))."\">".
- "<img src=\"images/forward.png\" border=0 align=\"center\"></a>";
+ "<img alt=\"\" src=\"images/forward.png\" border=0 align=\"middle\"></a>";
}
return($output);
if ($_SESSION['js']==FALSE){
$error_collector= "<div>";
} else {
- $error_collector= "<table style='width:100%;background-color:#E0E0E0;border-bottom:1px solid black'><tr><td><img align=center src='".get_template_path('images/warning.png')."'> <font style='font-size:14px;font-weight:bold'>"._("Generating this page caused the PHP interpreter to raise some errors!")."</font></td><td align=right><button onClick='toggle(\"errorbox\")'>"._("Toggle information")."</button></td></tr></table><div id='errorbox' style='position:absolute; z-index:0; visibility: hidden'>";
+ $error_collector= "<table width=\"100%\" style='background-color:#E0E0E0;border-bottom:1px solid black'><tr><td><img alt=\"\" align=\"middle\" src='".get_template_path('images/warning.png')."'> <font style='font-size:14px;font-weight:bold'>"._("Generating this page caused the PHP interpreter to raise some errors!")."</font></td><td align=right><button onClick='toggle(\"errorbox\")'>"._("Toggle information")."</button></td></tr></table><div id='errorbox' style='position:absolute; z-index:0; visibility: hidden'>";
}
}
$trace= debug_backtrace();
/* Create error header */
- $error_collector.= "<table width=100% cellspacing=0 style='background-color:#402005;color:white;border:2px solid red'><tr><td colspan=3><h1 style='color:white'>"._("PHP error")." \"$errstr\"</h1></td></tr>";
+ $error_collector.= "<table width=\"100%\" cellspacing=0 style='background-color:#402005;color:white;border:2px solid red'><tr><td colspan=3><h1 style='color:white'>"._("PHP error")." \"$errstr\"</h1></td></tr>";
/* Generate trace history */
for ($index= 1; $index<count($trace); $index++){
$file= $ct['file'];
$line= $ct['line'];
$color= ($index&1)?'#404040':'606060';
- $error_collector.= "<tr style='background-color:$color'><td style='padding-left:20px' width=30%>"._("Trace")."[$index]: $loc</td>";
- $error_collector.= "<td>"._("File").": $file ("._('Line')." $line)</td><td width=10%>"._("Type").": $type</td></tr>";
+ $error_collector.= "<tr style='background-color:$color'><td style='padding-left:20px' width=\"30%\">"._("Trace")."[$index]: $loc</td>";
+ $error_collector.= "<td>"._("File").": $file ("._('Line')." $line)</td><td width=\"10%\">"._("Type").": $type</td></tr>";
$error_collector.= "<tr style='background-color:$color'><td colspan=3 style='padding-left:20px;'>"._("Arguments").": $args</td></tr>";
}
diff --git a/plugins/personal/generic/generic_certs.tpl b/plugins/personal/generic/generic_certs.tpl
index 8fadaa0f967f806a99880138a37912cba082bb00..8135061a77a7f7420d84a0f6f56b7e969a075726 100644 (file)
<!-- Headline container -->
<tr>
<td colspan=2>
- <h2><img align="center" src="images/certs.png"> {t}Certificates{/t}</h2>
+ <h2><img alt="" align="middle" src="images/certs.png"> {t}Certificates{/t}</h2>
</td>
</tr>
diff --git a/plugins/personal/generic/generic_picture.tpl b/plugins/personal/generic/generic_picture.tpl
index 54fce2e3df2e0479b1e3e9935d2447193d25f6b7..69d39799259a6c7bd994c3873637d2447fc96802 100644 (file)
<!-- Image container -->
<td>
- <img align="bottom" border="1" width="145" height="200" src="getpic.php?rand=$rand">
+ <img alt="" align="bottom" border="1" width="145" height="200" src="getpic.php?rand=$rand">
</td>
<!-- Name, ... -->
index 8e2cbc184109923e81303f7b4700141e6a15a46e..f3826f4d3ca59d89d8e51469e05297453573c272 100644 (file)
$display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
$display.= " ";
$display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
- $info= "<img align=\"middle\" src=\"".get_template_path('images/closedlock.png').
+ $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').
"\"> ".$ui->dn." ";
} else {
/* 'viewid' may be set by i.e. the phonelist plugin. This