ich hab eine neue Seite in phpBB erstellt. Session und so wird alles normal initialisiert.
Aber mit der gewohnten Methode
Code: Alles auswählen
$_SESSION["var1"] = $var1;
Code: Alles auswählen
$var1 = $_SESSION["var1"];
Code: Alles auswählen
$_SESSION["var1"] = $var1;
Code: Alles auswählen
$var1 = $_SESSION["var1"];
Code: Alles auswählen
<?php
session_start();
$_SESSION['username'] = 'lol';
echo $HTTP_SESSION_VARS['username'];
?>
Code: Alles auswählen
// standard hack prevent
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// standard session management
$userdata = session_pagestart($user_ip, PAGE_DATEI);
init_userprefs($userdata);
// set page title
$page_title = 'Titel';
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'datei' => 'datei.tpl'
)
);
include("funktionen.php");
$template->pparse('datei');
// standard page footer
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);