Jetzt kostenlos Anmelden!


Phreak

ist gerade angekommen

11

Donnerstag, 24. Juli 2008, 13:24

Hi, danke für die Hilfe. Leider passiert folgendes:

Parse error: parse error, unexpected $ in /srv/www/htdocs/tld59/html/hvopvpkit/pkinc/publicinc/navbox.vote.php on line 173

ich habe das so eingegeben:

Quellcode

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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php
# PHPKIT WCMS - Web Content Management System
# --------------------------------------------
# Copyright (c) 2002-2008 Gersöne & Schott GbR
#
# This file / the PHPKIT-software is no freeware!
# For further informations please vistit our website
# or contact us via email:
#
# Diese Datei / die PHPKIT-Software ist keine Freeware!
# Für weitere Information besuchen Sie bitte unsere 
# Website oder kontaktieren uns per E-Mail:
#
# Website : http://www.phpkit.de
# Mail	: info@phpkit.de
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATIONS
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN


if(!defined('pkFRONTEND') || pkFRONTEND!='public')
	die('Direct access to this location is not permitted.');


$votechache=array();
$vote_box_row=$rowimage='';


$svoteids=$SESSION->exists('svoteids') ? $SESSION->get('svoteids') : NULL;
$voteids=$ENV->_cookie('vote_id');


$getvote=$DB->query("SELECT 
	*
	FROM ".$db_tab['votetheme']."
	WHERE votetheme_status=1 AND 
		(votetheme_expire>'".pkTIME."' OR 
		 votetheme_expire=0) AND 
		votetheme_time<'".pkTIME."' AND ".
		sqlrights('votetheme_rights'));
while($voteinfo=$DB->fetch_array($getvote))
	$votechache[]=$voteinfo;

	

$rand=count($votechache);

if($rand<2)
	$voteinfo=$votechache[0];
else
	{
	mt_srand(pkTIME*123456789);
	$rand=rand(1,$rand);
	$rand--;
	
	$voteinfo=$votechache[$rand];
	}
	
if($voteids=="" && $svoteids)
	$voteids=$svoteids;

if($voteids=="" && pkGetUservalue('id')>0)
	{
	$voted_db=$DB->query("SELECT
			vote_rated_contid 
		FROM ".$db_tab['vote_rated']."
		WHERE vote_rated_cat='vote' AND 
			((vote_rated_userid='".pkGetUservalue('id')."' AND
			 vote_rated_userid!=0) OR 
			 vote_rated_ip='".$SQL->f($ENV->getvar('REMOTE_ADDR'))."')");
	while($voted_num=$DB->fetch_array($voted_db))
		{
		$voteids.=$voted_num['vote_rated_contid'].",";
		}
	
	if($voteids!="")
		$voteids=substr($voteids, 0, -1);
	}


if($voteids || $svoteids)
	{
	$ids=explode(",",$voteids);
	
	foreach($ids as $i)
		{
		if($i==$voteinfo['votetheme_id'])
			{
			$voteinfo['votetheme_title']=pkEntities($voteinfo['votetheme_title']);
			
			$votetotal=$DB->fetch_array($DB->query("SELECT
				SUM(vote_counter) 
				FROM ".$db_tab['vote']."
				WHERE vote_themeid='".$voteinfo['votetheme_id']."'"));

			$getvoteanswer=$DB->query("SELECT 
				*
				FROM ".$db_tab['vote']." 
				WHERE vote_themeid='".$voteinfo['votetheme_id']."'
				ORDER by vote_order ASC");
			while($voteanswerinfo=$DB->fetch_array($getvoteanswer))
				{
				$voteanswerinfo['vote_text']=pkEntities($voteanswerinfo['vote_text']);
				
				if($voteinfo['votetheme_hidderesult']==1)
					eval("\$vote_box_row.=\"".pkTpl("vote/vote_box_row_voted_hidden")."\";");
				else
					{
					$rowimage=rowcolor($rowimage);

					if($votetotal[0]>0) {
  $vote_percent=number_format((($voteanswerinfo['vote_counter']*100) / $votetotal[0]),0,",",".");
  $bar_width = round(($voteanswerinfo['vote_counter']*100) / $votetotal[0])/1.25;
  eval("\$vote_box_row.= \"".pkTpl("vote/vote_box_row_voted")."\";");
}else{
  $vote_percent=0;
  $bar_width = 0;
  eval("\$vote_box_row.= \"".pkTpl("vote/vote_box_row_voted")."\";");
}
				}
			
			if($voteinfo['votetheme_hidderesult']==1)
				eval("\$vote_hidden_msg= \"".pkTpl("vote/vote_box_hidden_msg")."\";");
			
			eval("\$vote_box_row.= \"".pkTpl("vote/vote_box_total_voted")."\";");
			}
		
		if($vote_box_row!='')
			break;
		}
	}


if($vote_box_row=='')
	{
	$inputtype=$voteinfo['votetheme_multianswer'] ? 'checkbox' : 'radio';
	$voteinfo['votetheme_title']=pkEntities($voteinfo['votetheme_title']);

	$getvoteanswer=$DB->query("SELECT
		*
		FROM ".$db_tab['vote']."
		WHERE vote_themeid='".$voteinfo['votetheme_id']."'
		ORDER by vote_order ASC");
	while($voteanswerinfo=$DB->fetch_array($getvoteanswer))
		{
		$voteanswerinfo['vote_text']=pkEntities($voteanswerinfo['vote_text']);		
		
		eval("\$vote_box_row.=\"".pkTpl("vote/vote_box_row")."\";");
		}

	eval("\$vote_box_submit=\"".pkTpl("vote/vote_box_submit")."\";");
	}

list($content_comment_count)=$DB->fetch_row($DB->query("SELECT 
	COUNT(*) 
	FROM ".$db_tab['comment']."
	WHERE comment_cat='vote' AND
		comment_subid='".$voteinfo['votetheme_id']."'"));


if($voteinfo['votetheme_hidderesult']!=1)
	eval("\$vote_result= \"".pkTpl("vote/vote_box_result")."\";");

if($voteinfo['votetheme_comment']==1)
	eval("\$vote_comment= \"".pkTpl("vote/vote_box_comment")."\";");


eval("\$vote=\"".pkTpl("vote/vote_".($voteinfo['votetheme_id'] ? 'box' : 'nobox'))."\";");
return array($vote);
?>
  • Zum Seitenanfang
  • Zum Seitenende