Hallo,
vor einigen Wochen habe ich das Security System Premium über den Woltlab Plugin Store gekauft, leoder bekomme ich diesen Fehler jetzt angezeigt wenn ich auf die Systemeinstellungen klicke.
Code
Parse error: syntax error, unexpected $end in /www/htdocs/w00eace5/gdataforum/wcf/lib/acp/form/SecurityConfigForm.class.php on line 106
Der Fehler ist plötzlich aufgetretten, so das ich nicht reproduzieren kann was daran Schuld ist.
Hier der Inhalt der Datei:
PHP
<?php
require_once(WCF_DIR.'lib/acp/form/ACPForm.class.php');
//constants
if(!defined("SECURITY_ACTION")) define("SECURITY_ACTION",1);
/**
* @author Peter Fruehwirt
* @package de.wbb-security.premium
* @copyright www.wbb-security.de 2005-2008
*/
class SecurityConfigForm extends ACPForm {
public $templateName = 'securityConfig';
public $activeMenuItem = 'wcf.acp.menu.link.security.config.system';
public $neededPermissions = 'admin.security.canEditConfig';
protected $plugins = array();
protected $categories = array();
protected $input = array();
protected $writeCache = array();
/**
* @see Page::readData()
*/
public function readData() {
parent::readData();
//require_once(WCF_DIR."lib/system/security/plugins/system/SecurityConfigWriter.class.php");
//$s = new SecurityConfigWriter();
$this->readPlugins();
}
protected function readPlugins() {
foreach($this->getPlugins() as $plugin) {
unset($activePlugin,$config,$fields,$exceptions,$package);
require(WCF_DIR."lib/system/security/plugins/".$plugin."/config.inc.php");
$configString = array();
foreach($config as $key=>$value) {
$this->input[$key] = $value;
$configString[] = "'".$key."'";
}
if(!in_array($package['category'],$this->categories)) {
$this->categories[] = $package['category'];
}
$this->plugins[$package['category']][$plugin] = array("activePlugin"=>$activePlugin,"config"=>$config,"fields"=>$fields,"package"=>$package,"configString"=>implode(",",$configString));
$this->input[$plugin] = $activePlugin;
}
}
protected function getPlugins() {
$plugins = array();
foreach(scandir(WCF_DIR."lib/system/security/plugins/") as $plugin) {
if($plugin != "." AND $plugin != ".." AND file_exists(WCF_DIR."lib/system/security/plugins/".$plugin."/config.inc.php")) {
if(!file_exists(WCF_DIR."lib/system/security/plugins/".$plugin."/__config.lock")) {
$plugins[] = $plugin;
}
}
}
return $plugins;
}
/**
* @see Form::readFormParameters()
*/
public function readFormParameters() {
parent::readFormParameters();
$this->readPlugins();
foreach($this->input as $key=>$value) {
if(!intval($key)) {
$this->input[$key] = 0;
}
}
if(isset($_POST) AND count($_POST) > 0) {
foreach($_POST as $key=>$value) {
if(!intval($key)) {
$this->input[$key] = $value;
}
}
}
}
/**
* @see Form::validate()
*/
public function validate() {
parent::validate();
foreach($this->getPlugins() as $plugin) {
unset($activePlugin,$config,$fields,$exceptions,$package);
require(WCF_DIR."lib/system/security/plugins/".$plugin."/config.inc.php");
if(count($fields) > 0 AND $this->input[$plugin] == 1) {
foreach($fields as $key=>$options) {
if(!i
Alles anzeigen
MfG
Gregor