
Ich habs jetzt so gemacht wie es dort stand (den link den du gepostet hast) jedoch lässt sich die datei nicht aufrufen (mit dem Browser)
Code: Alles auswählen
<?php
/**
* @author: Highway of Life (http://phpbb.com)
* @version: $Id$
* $Date$
* @translated by Dr.Death
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : ((strpos(dirname($_SERVER['SCRIPT_NAME']), 'develop') !== false) ? './../' : './');
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$purge_cache = (isset($_REQUEST['purge'])) ? true : false;
$set_prosilver = (isset($_REQUEST['set_style'])) ? true : false;
$this_page = $phpbb_root_path . $user->page['page_name'];
$msg = array(
'<a href="' . append_sid($this_page, 'purge=true') . '">Klick hier um den Style Cache zu leeren</a>',
'<a href="' . append_sid($this_page, 'set_style=true') . '">Klick hier um Deinen Standard Style auf prosilver zu setzen</a>',
);
if ($purge_cache)
{
$sql = 'DELETE FROM ' . STYLES_TEMPLATE_DATA_TABLE . ' WHERE 1 = 1';
$db->sql_query($sql);
$cache->purge();
$msg[] = '<span style="color:green; font-weight:bold;">Template Daten erfolgreich geleert</span>';
}
if ($set_prosilver)
{
if (!$user->data['is_registered'])
{
if ($user->data['is_bot'])
{
// the user is a bot, send them back to home plate...
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
}
// the user is not logged in, give them a chance to login here...
include_once($phpbb_root_path . 'includes/functions_content.' . $phpEx);
login_box('', 'LOGIN');
}
$sql = 'SELECT style_id
FROM ' . STYLES_TABLE . '
WHERE style_name = \'prosilver\'';
$result = $db->sql_query($sql);
$style_id = $db->sql_fetchfield('style_id');
$db->sql_freeresult($result);
if (!$style_id)
{
if ($auth->acl_get('a_'))
{
$sql = 'UPDATE ' . SESSIONS_TABLE . ' SET session_admin = 1 WHERE session_user_id = ' . $user->data['user_id'];
$db->sql_query($sql);
$u_acp = append_sid("{$phpbb_root_path}adm/index.$phpEx", false, true, $user->session_id);
$msg[] = '<span style="color:red; font-weight:bold;">[ Warnung ] prosilver ist bei Deinem Forum nicht installiert</span>.<br />
<span style="color:green; font-weight:bold;">Ich habe Dir einen provisorischen Zugang zum ACP erstellt: <a href="' . $u_acp . '">Klick Hier</a> um zum ACP zu gelangen und prosilver zu installieren.</span> Benutze prosilver damit Du Dich wieder in das ACP einloggen kannst bis Dein Benutzerdefiniertes Style aktualisiert worden ist.';
}
else
{
$msg[] = '<span style="color:red; font-weight:bold;">[ WARNUNG ] Du hast keine Administratior Berechtigung und kannst Dich daher nicht am Admin Bereich anmelden';
}
}
else
{
$sql = 'UPDATE ' . USERS_TABLE . ' SET user_style = ' . $style_id . ' WHERE user_id = ' . $user->data['user_id'];
$db->sql_query($sql);
$msg[] = '<span style="color:green; font-weight:bold;">Dein Standard Style wurde erfolgreich auf prosilver eingestellt.</span>';
}
}
$msg_long_text = implode('<br /><br />', $msg) . '<br /><br /><span style="color:red; font-weight:bold;">Bitte entferne dieses Script (<em>' . $user->page['page_name'] . '</em>) wenn Du fertig bist.</span>';
trigger_error(false, E_USER_ERROR);
?>
Such dir demnächst einfach ein Theme aus, das für die Version 3.0.0 gedacht ist.Autor: akfgfan
Style Version: 1.0.0
phpBB Version: 3.0.RC3
Aufrufe: 35740
Downloads: 680
Sprachen: EN