You are not logged in.

Dear visitor, welcome to viecode.com. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

AMZ_CM

Beginner

(10)

  • "AMZ_CM" started this thread

Posts: 1

Reputation modifier: 1

  • Send private message

1

Monday, January 23rd 2012, 8:21pm

Security System Premium

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.

Source code

1
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:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?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


MfG
Gregor

Peter

Administrator

(1,496)

  • "Peter" is male

Posts: 14,378

Reputation modifier: 34

  • Send private message

2

Monday, January 23rd 2012, 11:11pm

Schalte dich bitte für den Supportbereich frei: https://www.viecode.com/support/pluginstore/activation.html

Versuche bitte eine Neuinstallation. Ich kann dir nicht sagen, warum die Datei beschädigt ist (die restlichen Codezeilen fehlen).

Similar threads

Support
Forum
Spotlight

Kunden, die unsere Produkte über den WoltLab Plugin-Store erworben haben, können sich nun über unsere Aktivierungsseite für die Supportbereiche freischalten.

Applications