[ABD] Slide
Verfasst: 10.01.2009 23:42
Code: Alles auswählen
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
Code: Alles auswählen
global $starttime;
// Output page creation time
if (defined('DEBUG'))
{
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
if (!empty($_REQUEST['explain']) && $auth->acl_get('a_') && defined('DEBUG_EXTRA') && method_exists($db, 'sql_report'))
{
$db->sql_report('display');
}
$debug_slide = sprintf('Time : %.3fs | ' . $db->sql_num_queries() . ' Queries '. (($user->load) ? ' | Load : ' . $user->load : ''), $totaltime);
}
if ($auth->acl_get('a_') && !empty($user->data['is_registered'])){
$l_acp_slide = $user->lang['ACP'];}
else{
$l_acp_slide = '';}
Code: Alles auswählen
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
Code: Alles auswählen
'DEBUG_SLIDE' => $debug_slide,
'L_ACP_SLIDE' => $l_acp_slide,
'U_ACP_SLIDE' => ($auth->acl_get('a_') && !empty($user->data['is_registered'])) ? append_sid("{$phpbb_root_path}adm/index.$phpEx", false, true, $user->session_id) : ' ',
Code: Alles auswählen
: ' ',
Code: Alles auswählen
template->_tpl_load_file(): File ./style/acp_slide_box.html does not exist or is empty
Code: Alles auswählen
Fatal error: Call to undefined method user::lang() in /usr/export/www/vhosts/funnetwork/hosting/redbusines/phpBB3/includes/template.php on line 549
Code: Alles auswählen
// Code by piero on phpbb.de - big thx ;)
function get_assigned_var($varname)
{
$varname = trim($varname, '{}');
// if it's a normal var
if(isset($this->_rootref[$varname]))
{
return $this->_rootref[$varname];
}
// if it's a language var
if(strpos($varname, 'L_') === 0)
{
global $user;
$varname = substr($varname, 2);
$content = $user->lang($varname);
if($varname != $content)
{
return $content;
}
}
// if not defined
return false;
}
// Code by piero on phpbb.de - big thx ;)
Code: Alles auswählen
, 'L_'