Skip to content
Permalink
Browse files

fix not loaded header / CSS, caused by missing echo before $GLOBALS['…

…egw']->framework->(header|footer)
  • Loading branch information
ralfbecker committed May 14, 2016
1 parent a83f4a2 commit 8a24f3e4490a0090f9e3850d3c9de1883ca3ff5a
@@ -2969,8 +2969,8 @@ function photo()
function migrate2ldap()
{
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Migration to LDAP');
$GLOBALS['egw']->framework->header();
parse_navbar();
echo $GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->navbar();

if (!$this->is_admin())
{
@@ -2981,7 +2981,7 @@ function migrate2ldap()
parent::migrate2ldap($_GET['type']);
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 @@ function admin_set_fileas()
{
Api\Translation::add_app('admin');
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Contact maintenance');
$GLOBALS['egw']->framework->header();
parse_navbar();
echo $GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->navbar();

// 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))
@@ -3008,7 +3008,7 @@ function admin_set_fileas()
$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";
}
$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}

/**
@@ -3019,8 +3019,8 @@ function admin_set_all_cleanup()
{
Api\Translation::add_app('admin');
$GLOBALS['egw_info']['flags']['app_header'] = lang('Addressbook').' - '.lang('Contact maintenance');
$GLOBALS['egw']->framework->header();
parse_navbar();
echo $GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->navbar();

// check if user has admin rights (Security)
if (!$this->is_admin())
@@ -3033,7 +3033,7 @@ function admin_set_all_cleanup()
$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";
}
$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}

/**
@@ -48,6 +48,6 @@ function index()
include EGW_SERVER_ROOT.'/setup/db_backup.php';

unset($tpl_root, $self);
$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}
}
@@ -436,7 +436,7 @@ public function valid ()
END:VEVENT
END:VCALENDAR
';
$GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->header();
//$ical_file = fopen('/tmp/KalenderFelicitasKubala.ics');
if (!is_resource($ical_file)) echo "<pre>$ical_file</pre>\n";
//$calendar_ical = new calendar_ical();
@@ -602,7 +602,7 @@ public function show_replacements()
Api\Translation::add_app('calendar');
$GLOBALS['egw_info']['flags']['app_header'] = lang('calendar').' - '.lang('Replacements for inserting events into documents');
$GLOBALS['egw_info']['flags']['nonavbar'] = true;
$GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->header();

echo "<table width='90%' align='center'>\n";
echo '<tr><td colspan="4"><h3>'.lang('Calendar fields:')."</h3></td></tr>";
@@ -722,6 +722,6 @@ public function show_replacements()

echo "</table>\n";

$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}
}
@@ -81,8 +81,8 @@
'common::email_address' => 'Api\\Accounts::email',
'common::next_id' => 'Api\\Accounts\\Ldap::next_id',
'common::last_id' => 'Api\\Accounts\\Ldap::last_id',
'common::egw_header' => "\$GLOBALS['egw']->framework->header",
'common::egw_footer' => "\$GLOBALS['egw']->framework->footer",
'common::egw_header' => "echo \$GLOBALS['egw']->framework->header",
'common::egw_footer' => "echo \$GLOBALS['egw']->framework->footer",
'common::show_date' => 'Api\\DateTime::server2user',
'common::get_tpl_dir' => 'Api\\Framework\\Template::get_dir',
'common::get_referer' => 'Api\\Header\\Referer::get',
@@ -229,7 +229,7 @@ public function show_replacements()
{
$GLOBALS['egw_info']['flags']['app_header'] = lang('filemanager').' - '.lang('Replacements for inserting entries into documents');
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
$GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->header();

echo "<table width='90%' align='center'>\n";
echo '<tr><td colspan="4"><h3>'.lang('Filemanager fields:')."</h3></td></tr>";
@@ -287,6 +287,6 @@ public function show_replacements()

echo "</table>\n";

$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}
}
@@ -106,4 +106,4 @@
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 @@
'nonavbar' => False,
'currentapp' => 'eGroupWare'
);
$GLOBALS['egw']->framework->header();
$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->footer();
}
else
{
@@ -196,6 +196,6 @@

if(!isset($GLOBALS['egw_info']['nofooter']))
{
$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}
}
@@ -172,7 +172,7 @@ public function show_replacements()
{
$GLOBALS['egw_info']['flags']['app_header'] = lang('infolog').' - '.lang('Replacements for inserting entries into documents');
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
$GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->header();

echo "<table width='90%' align='center'>\n";
echo '<tr><td colspan="4"><h3>'.lang('Infolog fields:')."</h3></td></tr>";
@@ -261,6 +261,6 @@ public function show_replacements()

echo "</table>\n";

$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}
}
@@ -53,8 +53,8 @@ function acllist()
Egw::redirect_link('/admin/index.php');
}

$GLOBALS['egw']->framework->header();
echo parse_navbar();
echo $GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->navbar();

if ($_POST['btnSave'])
{
@@ -121,12 +121,13 @@ function acllist()
}
}
$template->pfp('out','acl',True);
echo $GLOBALS['egw']->framework->footer();
}

function selectlist($right,$users_only=false)
{
static $accountList;
static $groupList;
static $accountList=null;
static $groupList=null;
switch($GLOBALS['egw_info']['user']['preferences']['common']['account_display'])
{
case 'firstname':
@@ -147,13 +148,13 @@ function selectlist($right,$users_only=false)
'type' => 'accounts',
'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;
}
else
{
$resultList = $accountList;
}
}
if (is_null($groupList) && $users_only==false)
{
$groupList = $GLOBALS['egw']->accounts->search(array(
@@ -162,9 +163,14 @@ function selectlist($right,$users_only=false)
));
uasort($groupList,array($this,"sortByLid"));
}
if (count($groupList)>0 && $users_only==false) foreach ($groupList as $k => $val) $resultList[$k] = $val;

foreach ($resultList as $num => $account)
if (count($groupList)>0 && $users_only==false)
{
foreach ($groupList as $k => $val)
{
$resultList[$k] = $val;
}
}
foreach ($resultList as $account)
{
$selectlist .= '<option value="' . $account['account_id'] . '"';
if($this->rights[$account['account_id']] & $right)
@@ -79,8 +79,8 @@
$setup_tpl->set_block('T_db_backup','setup_header');
$setup_tpl->set_var('setup_header','');
$GLOBALS['egw_info']['flags']['app_header'] = $stage_title;
$GLOBALS['egw']->framework->header();
parse_navbar();
echo $GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->navbar();
$run_in_egw = true;
}
// save backup housekeeping settings
@@ -304,7 +304,7 @@

if ($run_in_egw)
{
$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}
else
{
@@ -162,7 +162,7 @@ public function show_replacements()
{
$GLOBALS['egw_info']['flags']['app_header'] = lang('timesheet').' - '.lang('Replacements for inserting entries into documents');
$GLOBALS['egw_info']['flags']['nonavbar'] = false;
$GLOBALS['egw']->framework->header();
echo $GLOBALS['egw']->framework->header();

echo "<table width='90%' align='center'>\n";
echo '<tr><td colspan="4"><h3>'.lang('Timesheet fields:')."</h3></td></tr>";
@@ -226,6 +226,6 @@ public function show_replacements()

echo "</table>\n";

$GLOBALS['egw']->framework->footer();
echo $GLOBALS['egw']->framework->footer();
}
}

0 comments on commit 8a24f3e

Please sign in to comment.
You can’t perform that action at this time.