[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] setup/lang.php, 1.46.2.8
From: |
nomail |
Subject: |
[Phpgroupware-cvs] setup/lang.php, 1.46.2.8 |
Date: |
Sat, 6 Nov 2004 17:13:46 +0100 |
Update of /setup
Modified Files:
Branch: Version-0_9_16-branch
lang.php
date: 2004/11/06 16:13:46; author: powerstat; state: Exp; lines: +13 -13
Log Message:
replaced <br> with <br /> and <hr> with <hr /> for better w3c compatibility
=====================================================================
Index: setup/lang.php
diff -u setup/lang.php:1.46.2.7 setup/lang.php:1.46.2.8
--- setup/lang.php:1.46.2.7 Mon Nov 24 21:57:23 2003
+++ setup/lang.php Sat Nov 6 16:13:46 2004
@@ -68,28 +68,28 @@
{
// dont delete the custom main- & loginscreen
messages every time
$GLOBALS['phpgw_setup']->db->query("DELETE FROM
phpgw_lang where app_name != 'mainscreen' AND app_name !=
'loginscreen'",__LINE__,__FILE__);
- //echo '<br>Test: dumpold';
+ //echo '<br />Test: dumpold';
$GLOBALS['phpgw_info']['server']['lang_ctimes']
= array();
}
foreach($lang_selected as $lang)
{
- //echo '<br>Working on: ' . $lang;
+ //echo '<br />Working on: ' . $lang;
$addlang = False;
if ($upgrademethod == 'addonlynew')
{
- //echo "<br>Test: addonlynew - select
count(*) from phpgw_lang where lang='".$lang."'";
+ //echo "<br />Test: addonlynew - select
count(*) from phpgw_lang where lang='".$lang."'";
$GLOBALS['phpgw_setup']->db->query("SELECT COUNT(*) FROM phpgw_lang WHERE
lang='".$lang."'",__LINE__,__FILE__);
$GLOBALS['phpgw_setup']->db->next_record();
if ($GLOBALS['phpgw_setup']->db->f(0)
== 0)
{
- //echo '<br>Test: addonlynew -
True';
+ //echo '<br />Test: addonlynew
- True';
$addlang = True;
}
}
if (($addlang && $upgrademethod ==
'addonlynew') || ($upgrademethod != 'addonlynew'))
{
- //echo '<br>Test: loop above file()';
+ //echo '<br />Test: loop above file()';
$setup_info =
$GLOBALS['phpgw_setup']->detection->get_versions();
$setup_info =
$GLOBALS['phpgw_setup']->detection->get_db_versions($setup_info);
$raw = array();
@@ -97,10 +97,10 @@
while (list($key,$app) =
each($setup_info))
{
$appfile = PHPGW_SERVER_ROOT .
SEP . @$app['name'] . SEP . 'setup' . SEP . 'phpgw_' . strtolower($lang) .
'.lang';
- //echo '<br>Checking in: ' .
$app['name'];
+ //echo '<br />Checking in: ' .
$app['name'];
if($GLOBALS['phpgw_setup']->app_registered(@$app['name']) &&
file_exists($appfile))
{
- //echo '<br>Including:
' . $appfile;
+ //echo '<br
/>Including: ' . $appfile;
$lines = file($appfile);
foreach($lines as $line)
{
@@ -119,16 +119,16 @@
foreach($ids as $message_id =>
$content)
{
$addit = False;
- //echo '<br>APPNAME:' .
$app_name . ' PHRASE:' . $message_id;
+ //echo '<br />APPNAME:'
. $app_name . ' PHRASE:' . $message_id;
if ($upgrademethod ==
'addmissing')
{
- //echo
'<br>Test: addmissing';
+ //echo '<br
/>Test: addmissing';
$GLOBALS['phpgw_setup']->db->query("SELECT COUNT(*) FROM phpgw_lang WHERE
message_id='$message_id' and lang='$lang' and (app_name='$app_name' or
app_name='common')",__LINE__,__FILE__);
$GLOBALS['phpgw_setup']->db->next_record();
if
($GLOBALS['phpgw_setup']->db->f(0) == 0)
{
- //echo
'<br>Test: addmissing - True - Total: ' . $GLOBALS['phpgw_setup']->db->f(0);
+ //echo
'<br />Test: addmissing - True - Total: ' . $GLOBALS['phpgw_setup']->db->f(0);
$addit
= True;
}
}
@@ -137,11 +137,11 @@
{
if($message_id
&& $content)
{
- //echo
"<br>adding - insert into phpgw_lang values
('$message_id','$app_name','$lang','$content')";
+ //echo
"<br />adding - insert into phpgw_lang values
('$message_id','$app_name','$lang','$content')";
$result
= $GLOBALS['phpgw_setup']->db->query("INSERT INTO phpgw_lang
(message_id,app_name,lang,content)
VALUES('$message_id','$app_name','$lang','$content')",__LINE__,__FILE__);
if
(intval($result) <= 0)
{
-
echo "<br>Error inserting record: phpgw_lang values
('$message_id','$app_name','$lang','$content')";
+
echo "<br />Error inserting record: phpgw_lang values
('$message_id','$app_name','$lang','$content')";
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] setup/lang.php, 1.46.2.8,
nomail <=