forked from extern/egroupware
fix not loaded header / CSS, caused by missing echo before $GLOBALS['egw']->framework->(header|footer)
This commit is contained in:
parent
a83f4a2483
commit
8a24f3e449
@ -2969,8 +2969,8 @@ window.egw_LAB.wait(function() {
|
|||||||
function migrate2ldap()
|
function migrate2ldap()
|
||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Migration to LDAP');
|
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Migration to LDAP');
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
parse_navbar();
|
echo $GLOBALS['egw']->framework->navbar();
|
||||||
|
|
||||||
if (!$this->is_admin())
|
if (!$this->is_admin())
|
||||||
{
|
{
|
||||||
@ -2981,7 +2981,7 @@ window.egw_LAB.wait(function() {
|
|||||||
parent::migrate2ldap($_GET['type']);
|
parent::migrate2ldap($_GET['type']);
|
||||||
echo '<p style="margin-top: 20px;"><b>'.lang('Migration finished')."</b></p>\n";
|
echo '<p style="margin-top: 20px;"><b>'.lang('Migration finished')."</b></p>\n";
|
||||||
}
|
}
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2994,8 +2994,8 @@ window.egw_LAB.wait(function() {
|
|||||||
{
|
{
|
||||||
Api\Translation::add_app('admin');
|
Api\Translation::add_app('admin');
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Contact maintenance');
|
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Contact maintenance');
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
parse_navbar();
|
echo $GLOBALS['egw']->framework->navbar();
|
||||||
|
|
||||||
// check if user has admin rights AND if a valid fileas type is given (Security)
|
// check if user has admin rights AND if a valid fileas type is given (Security)
|
||||||
if (!$this->is_admin() || $_GET['type'] != '' && !in_array($_GET['type'],$this->fileas_types))
|
if (!$this->is_admin() || $_GET['type'] != '' && !in_array($_GET['type'],$this->fileas_types))
|
||||||
@ -3008,7 +3008,7 @@ window.egw_LAB.wait(function() {
|
|||||||
$updated = parent::set_all_fileas($_GET['type'],(boolean)$_GET['all'],$errors,true); // true = ignore Acl
|
$updated = parent::set_all_fileas($_GET['type'],(boolean)$_GET['all'],$errors,true); // true = ignore Acl
|
||||||
echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).',$updated,$errors)."</b></p>\n";
|
echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).',$updated,$errors)."</b></p>\n";
|
||||||
}
|
}
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3019,8 +3019,8 @@ window.egw_LAB.wait(function() {
|
|||||||
{
|
{
|
||||||
Api\Translation::add_app('admin');
|
Api\Translation::add_app('admin');
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Contact maintenance');
|
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Contact maintenance');
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
parse_navbar();
|
echo $GLOBALS['egw']->framework->navbar();
|
||||||
|
|
||||||
// check if user has admin rights (Security)
|
// check if user has admin rights (Security)
|
||||||
if (!$this->is_admin())
|
if (!$this->is_admin())
|
||||||
@ -3033,7 +3033,7 @@ window.egw_LAB.wait(function() {
|
|||||||
$updated = parent::set_all_cleanup($errors,true); // true = ignore Acl
|
$updated = parent::set_all_cleanup($errors,true); // true = ignore Acl
|
||||||
echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).',$updated,$errors)."</b></p>\n";
|
echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).',$updated,$errors)."</b></p>\n";
|
||||||
}
|
}
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -48,6 +48,6 @@ class admin_db_backup
|
|||||||
include EGW_SERVER_ROOT.'/setup/db_backup.php';
|
include EGW_SERVER_ROOT.'/setup/db_backup.php';
|
||||||
|
|
||||||
unset($tpl_root, $self);
|
unset($tpl_root, $self);
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -436,7 +436,7 @@ X-MS-OLK-CONFTYPE:0
|
|||||||
END:VEVENT
|
END:VEVENT
|
||||||
END:VCALENDAR
|
END:VCALENDAR
|
||||||
';
|
';
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
//$ical_file = fopen('/tmp/KalenderFelicitasKubala.ics');
|
//$ical_file = fopen('/tmp/KalenderFelicitasKubala.ics');
|
||||||
if (!is_resource($ical_file)) echo "<pre>$ical_file</pre>\n";
|
if (!is_resource($ical_file)) echo "<pre>$ical_file</pre>\n";
|
||||||
//$calendar_ical = new calendar_ical();
|
//$calendar_ical = new calendar_ical();
|
||||||
|
@ -602,7 +602,7 @@ class calendar_merge extends Api\Storage\Merge
|
|||||||
Api\Translation::add_app('calendar');
|
Api\Translation::add_app('calendar');
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('calendar').' - '.lang('Replacements for inserting events into documents');
|
$GLOBALS['egw_info']['flags']['app_header'] = lang('calendar').' - '.lang('Replacements for inserting events into documents');
|
||||||
$GLOBALS['egw_info']['flags']['nonavbar'] = true;
|
$GLOBALS['egw_info']['flags']['nonavbar'] = true;
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
|
|
||||||
echo "<table width='90%' align='center'>\n";
|
echo "<table width='90%' align='center'>\n";
|
||||||
echo '<tr><td colspan="4"><h3>'.lang('Calendar fields:')."</h3></td></tr>";
|
echo '<tr><td colspan="4"><h3>'.lang('Calendar fields:')."</h3></td></tr>";
|
||||||
@ -722,6 +722,6 @@ class calendar_merge extends Api\Storage\Merge
|
|||||||
|
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,8 +81,8 @@ foreach(array(
|
|||||||
'common::email_address' => 'Api\\Accounts::email',
|
'common::email_address' => 'Api\\Accounts::email',
|
||||||
'common::next_id' => 'Api\\Accounts\\Ldap::next_id',
|
'common::next_id' => 'Api\\Accounts\\Ldap::next_id',
|
||||||
'common::last_id' => 'Api\\Accounts\\Ldap::last_id',
|
'common::last_id' => 'Api\\Accounts\\Ldap::last_id',
|
||||||
'common::egw_header' => "\$GLOBALS['egw']->framework->header",
|
'common::egw_header' => "echo \$GLOBALS['egw']->framework->header",
|
||||||
'common::egw_footer' => "\$GLOBALS['egw']->framework->footer",
|
'common::egw_footer' => "echo \$GLOBALS['egw']->framework->footer",
|
||||||
'common::show_date' => 'Api\\DateTime::server2user',
|
'common::show_date' => 'Api\\DateTime::server2user',
|
||||||
'common::get_tpl_dir' => 'Api\\Framework\\Template::get_dir',
|
'common::get_tpl_dir' => 'Api\\Framework\\Template::get_dir',
|
||||||
'common::get_referer' => 'Api\\Header\\Referer::get',
|
'common::get_referer' => 'Api\\Header\\Referer::get',
|
||||||
|
@ -229,7 +229,7 @@ class filemanager_merge extends Api\Storage\Merge
|
|||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('filemanager').' - '.lang('Replacements for inserting entries into documents');
|
$GLOBALS['egw_info']['flags']['app_header'] = lang('filemanager').' - '.lang('Replacements for inserting entries into documents');
|
||||||
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
|
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
|
|
||||||
echo "<table width='90%' align='center'>\n";
|
echo "<table width='90%' align='center'>\n";
|
||||||
echo '<tr><td colspan="4"><h3>'.lang('Filemanager fields:')."</h3></td></tr>";
|
echo '<tr><td colspan="4"><h3>'.lang('Filemanager fields:')."</h3></td></tr>";
|
||||||
@ -287,6 +287,6 @@ class filemanager_merge extends Api\Storage\Merge
|
|||||||
|
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,4 +106,4 @@ if (isset($path) && !empty($path))
|
|||||||
echo "<p><b>bytes(file_get_contents(Vfs::PREFIX.'$path'))</b>=".array2string(bytes(file_get_contents(Vfs::PREFIX.$path)))."</p>\n";
|
echo "<p><b>bytes(file_get_contents(Vfs::PREFIX.'$path'))</b>=".array2string(bytes(file_get_contents(Vfs::PREFIX.$path)))."</p>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
|
@ -132,8 +132,8 @@ if($windowed && $_GET['cd'] == 'yes')
|
|||||||
'nonavbar' => False,
|
'nonavbar' => False,
|
||||||
'currentapp' => 'eGroupWare'
|
'currentapp' => 'eGroupWare'
|
||||||
);
|
);
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -196,6 +196,6 @@ else
|
|||||||
|
|
||||||
if(!isset($GLOBALS['egw_info']['nofooter']))
|
if(!isset($GLOBALS['egw_info']['nofooter']))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ class infolog_merge extends Api\Storage\Merge
|
|||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('infolog').' - '.lang('Replacements for inserting entries into documents');
|
$GLOBALS['egw_info']['flags']['app_header'] = lang('infolog').' - '.lang('Replacements for inserting entries into documents');
|
||||||
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
|
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
|
|
||||||
echo "<table width='90%' align='center'>\n";
|
echo "<table width='90%' align='center'>\n";
|
||||||
echo '<tr><td colspan="4"><h3>'.lang('Infolog fields:')."</h3></td></tr>";
|
echo '<tr><td colspan="4"><h3>'.lang('Infolog fields:')."</h3></td></tr>";
|
||||||
@ -261,6 +261,6 @@ class infolog_merge extends Api\Storage\Merge
|
|||||||
|
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,8 +53,8 @@ class ui_acl
|
|||||||
Egw::redirect_link('/admin/index.php');
|
Egw::redirect_link('/admin/index.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
echo parse_navbar();
|
echo $GLOBALS['egw']->framework->navbar();
|
||||||
|
|
||||||
if ($_POST['btnSave'])
|
if ($_POST['btnSave'])
|
||||||
{
|
{
|
||||||
@ -121,12 +121,13 @@ class ui_acl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$template->pfp('out','acl',True);
|
$template->pfp('out','acl',True);
|
||||||
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectlist($right,$users_only=false)
|
function selectlist($right,$users_only=false)
|
||||||
{
|
{
|
||||||
static $accountList;
|
static $accountList=null;
|
||||||
static $groupList;
|
static $groupList=null;
|
||||||
switch($GLOBALS['egw_info']['user']['preferences']['common']['account_display'])
|
switch($GLOBALS['egw_info']['user']['preferences']['common']['account_display'])
|
||||||
{
|
{
|
||||||
case 'firstname':
|
case 'firstname':
|
||||||
@ -147,13 +148,13 @@ class ui_acl
|
|||||||
'type' => 'accounts',
|
'type' => 'accounts',
|
||||||
'order' => $order,
|
'order' => $order,
|
||||||
));
|
));
|
||||||
uasort($accountList,array($this,($order=='n_given,n_family'?"sortByNGiven":($order=='n_family,n_given'?"sortByNLast":"sortByLid"))));
|
uasort($accountList,array($this,($order=='n_given,n_family'?"sortByNGiven":($order=='n_family,n_given'?"sortByNLast":"sortByLid"))));
|
||||||
$resultList = $accountList;
|
$resultList = $accountList;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$resultList = $accountList;
|
$resultList = $accountList;
|
||||||
}
|
}
|
||||||
if (is_null($groupList) && $users_only==false)
|
if (is_null($groupList) && $users_only==false)
|
||||||
{
|
{
|
||||||
$groupList = $GLOBALS['egw']->accounts->search(array(
|
$groupList = $GLOBALS['egw']->accounts->search(array(
|
||||||
@ -162,9 +163,14 @@ class ui_acl
|
|||||||
));
|
));
|
||||||
uasort($groupList,array($this,"sortByLid"));
|
uasort($groupList,array($this,"sortByLid"));
|
||||||
}
|
}
|
||||||
if (count($groupList)>0 && $users_only==false) foreach ($groupList as $k => $val) $resultList[$k] = $val;
|
if (count($groupList)>0 && $users_only==false)
|
||||||
|
{
|
||||||
foreach ($resultList as $num => $account)
|
foreach ($groupList as $k => $val)
|
||||||
|
{
|
||||||
|
$resultList[$k] = $val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach ($resultList as $account)
|
||||||
{
|
{
|
||||||
$selectlist .= '<option value="' . $account['account_id'] . '"';
|
$selectlist .= '<option value="' . $account['account_id'] . '"';
|
||||||
if($this->rights[$account['account_id']] & $right)
|
if($this->rights[$account['account_id']] & $right)
|
||||||
|
@ -79,8 +79,8 @@ else
|
|||||||
$setup_tpl->set_block('T_db_backup','setup_header');
|
$setup_tpl->set_block('T_db_backup','setup_header');
|
||||||
$setup_tpl->set_var('setup_header','');
|
$setup_tpl->set_var('setup_header','');
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = $stage_title;
|
$GLOBALS['egw_info']['flags']['app_header'] = $stage_title;
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
parse_navbar();
|
echo $GLOBALS['egw']->framework->navbar();
|
||||||
$run_in_egw = true;
|
$run_in_egw = true;
|
||||||
}
|
}
|
||||||
// save backup housekeeping settings
|
// save backup housekeeping settings
|
||||||
@ -304,7 +304,7 @@ $setup_tpl->pparse('out','T_db_backup');
|
|||||||
|
|
||||||
if ($run_in_egw)
|
if ($run_in_egw)
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -162,7 +162,7 @@ class timesheet_merge extends Api\Storage\Merge
|
|||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['flags']['app_header'] = lang('timesheet').' - '.lang('Replacements for inserting entries into documents');
|
$GLOBALS['egw_info']['flags']['app_header'] = lang('timesheet').' - '.lang('Replacements for inserting entries into documents');
|
||||||
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
|
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
|
||||||
$GLOBALS['egw']->framework->header();
|
echo $GLOBALS['egw']->framework->header();
|
||||||
|
|
||||||
echo "<table width='90%' align='center'>\n";
|
echo "<table width='90%' align='center'>\n";
|
||||||
echo '<tr><td colspan="4"><h3>'.lang('Timesheet fields:')."</h3></td></tr>";
|
echo '<tr><td colspan="4"><h3>'.lang('Timesheet fields:')."</h3></td></tr>";
|
||||||
@ -226,6 +226,6 @@ class timesheet_merge extends Api\Storage\Merge
|
|||||||
|
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
|
||||||
$GLOBALS['egw']->framework->footer();
|
echo $GLOBALS['egw']->framework->footer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user