[PHP & MySQL] Iwas ist jetzt vollkommen kaputt.

Rina-123
Also ich habe versucht, diesen bescheuerten Userchange-Hack einzubauen. Doch iwie ist das ganze Forum abgeschmiert. Ich habe versucht, wieder alles so zu machen, wie es war. Doch es geht immernoch nicht.

Parse error: syntax error, unexpected '}' in /usr/export/www/vhosts/funnetwork/hosting/rinamaus/wbblite/global.php on line 66

das steht da, wenn man meine HP aufrufen will.

Kann mir wer helfen? Ich bekomme gleich n Wutausbruch ._.
.Senseless
Hast du bisher irgendwas in der global.php wegen einem Hack geändert? Wenn nein, kannst du ja die Standard-global.php wieder hochladen..

Ich könnte sie anhängen, wenn du sie brauchst^^
Rina-123
Ja ich weiß nicht, ob es nur das ist, was kaputt is .... egal wie.. ich brauch Hilfe xD Wenn du mir helfen kannst, wäre das supi *-*
.Senseless
Lad mal die global.php hoch & schau obs was ändert^^
Rina-123
Also alles löschen und das einfach in global.php einfügen?
.Senseless
Einfach austauschen, also die alte überschreiben.
Rina-123
ok ich versuchs mal ._.
aber erstmal danke (:

ok.. hat nich geklappt ._.


<?php
@error_reporting(7);
$phpversion = phpversion();
$pagestarttime=microtime();
$query_count=0;
/** get function libary **/
require("./acp/lib/functions.php";);
if (version_compare($phpversion, '4.1.0') == -1) {
$_REQUEST=array();
$_COOKIE=array();
$_POST=array();
$_GET=array();
$_SERVER=array();
$_FILES=array();
get_vars_old();
}
// remove slashes in get post cookie data...
if (get_magic_quotes_gpc()) {
if(is_array($_REQUEST)) $_REQUEST=stripslashes_array($_REQUEST);
if(is_array($_POST)) $_POST=stripslashes_array($_POST);
if(is_array($_GET)) $_GET=stripslashes_array($_GET);
if(is_array($_COOKIE)) $_COOKIE=stripslashes_array($_COOKIE);
}
@set_magic_quotes_runtime(0);
/** connect db **/
require("./acp/lib/config.inc.php";);
require("./acp/lib/class_db_mysql.php";);

$db = new db($sqlhost,$sqluser,$sqlpassword,$sqldb,$phpversion);

/** get configuration **/
require("./acp/lib/options.inc.php";);

/** request ids **/
if(isset($_REQUEST['postid'])) $postid=$_REQUEST['postid'];
if(isset($_REQUEST['threadid'])) $threadid=$_REQUEST['threadid'];
if(isset($_REQUEST['pollid'])) $pollid=$_REQUEST['pollid'];
if(isset($_REQUEST['boardid'])) $boardid=$_REQUEST['boardid'];

/** verify ids **/
if(isset($postid)) {
$postid = intval($postid);
$post = $db->query_first("SELECT * FROM bb".$n."_posts WHERE postid = '$postid'";);
if(!$post['postid']) unset($postid);
else $threadid = $post['threadid'];
}
if(isset($threadid)) {
$threadid = intval($threadid);
$thread = $db->query_first("SELECT * FROM bb".$n."_threads WHERE threadid = '$threadid'";);
if(!$thread['threadid']) unset($threadid);
else $boardid = $thread['boardid'];
}
if(isset($pollid)) {
$pollid = intval($pollid);
$poll = $db->query_first("SELECT bb".$n."_polls.*, bb".$n."_threads.boardid FROM bb".$n."_polls LEFT JOIN bb".$n."_threads USING (threadid) WHERE bb".$n."_polls.pollid = '$pollid'";);
if(!$poll['pollid']) unset($pollid);
else {
$boardid = $poll['boardid'];
unset($threadid);
unset($thread);
}
}

/** start session **/
require("./acp/lib/session.php";);

if(isset($boardid)) {
$boardid = intval($boardid);
$board = $db->query_first("SELECT
b.*, p.*
FROM bb".$n."_boards b
LEFT JOIN bb".$n."_permissions p ON (p.boardid='$boardid' AND p.groupid='$wbbuserdata[groupid]')
WHERE b.boardid = '$boardid'";);

if(!$board['boardid']) unset($boardid);
else {
$modpermissions['userid']=0;
if($wbbuserdata['ismod']==1 && $wbbuserdata['issupermod']!=1) $modpermissions=$db->query_first("SELECT * FROM bb".$n."_moderators WHERE userid='$wbbuserdata[userid]' AND boardid='$boardid'";);
}
}

/** get style **/
$style=array();
if($session['styleid'] && (!isset($board) || !$board['enforcestyle'])) $style = $db->query_first("SELECT * FROM bb".$n."_styles WHERE styleid = '$session[styleid]'";);
if(!isset($style['styleid']) && $wbbuserdata['styleid'] && (!isset($board) || !$board['enforcestyle'])) $style = $db->query_first("SELECT * FROM bb".$n."_styles WHERE styleid = '".$wbbuserdata['styleid']."'";);
if(!isset($style['styleid']) && isset($board) && $board['styleid']!=0) $style = $db->query_first("SELECT * FROM bb".$n."_styles WHERE styleid = '".$board['styleid']."'";);
if(!isset($style['styleid'])) $style = $db->query_first("SELECT * FROM bb".$n."_styles WHERE default_style = 1";);

/** template class -> caching **/
require("./acp/lib/class_headers.php";);
require("./acp/lib/class_tpl_file.php";);
$tpl = new tpl(0,intval($style['subvariablepackid']));

/** templates & style **/
$phpinclude = str_replace("\\\"","\"",$tpl->get("phpinclude";));
if(trim($phpinclude)) eval($phpinclude);

$header_acp="";
eval ("\$headinclude = \"".$tpl->get("headinclude";)."\";";);
eval ("\$footer = \"".$tpl->get("footer";)."\";";);
if($wbbuserdata['userid']) {
eval ("\$usercp_or_register = \"".$tpl->get("header_usercp";)."\";";);
eval ("\$usercbar = \"".$tpl->get("usercbar";)."\";";);
if($wbbuserdata['canuseacp']==1) eval ("\$header_acp = \"".$tpl->get("header_acp";)."\";";);
}
else {
eval ("\$usercp_or_register = \"".$tpl->get("header_register";)."\";";);
eval ("\$usercbar = \"".$tpl->get("usercbar_guest";)."\";";);
}
eval ("\$header = \"".$tpl->get("header";)."\";";);


if(($wbbuserdata['canviewboard']==0 || $wbbuserdata['blocked']==1 || ($wbbuserdata['userid'] && $wbbuserdata['activation']!=1)) && $filename!="login.php" && $filename!="logout.php" && $filename!="register.php" && $filename!="forgotpw.php";) access_error();
verify_ip($REMOTE_ADDR);
if($offline==1 && $wbbuserdata['canviewoffboard']==0 && $filename!="login.php" && $filename!="logout.php" && $filename!="forgotpw.php";) {
$offlinemessage=nl2br($offlinemessage);
eval("\$tpl->output(\"".$tpl->get("offline";)."\";);";);
exit();
}

if($wbbuserdata['pmpopup']==2) {
if($filename!="pms.php" && (!isset($_POST) || count($_POST)==0) && $filename!="logout.php" && $filename!="markread.php" && $filename!="misc.php" && $filename!="modcp.php" && $filename!="polledit.php" && $filename!="register.php" && $filename!="search.php" && ($filename!="thread.php" || !isset($_REQUEST['goto'])) && $filename!="threadrating.php" && $filename!="usercp.php";) eval ("\$headinclude .= \"".$tpl->get("pmpopup_open";)."\";";);
}

if(isset($boardid)) {
if(!$board['boardpermission']) access_error();
if($board['password']) {
if(isset($_COOKIE['boardpasswords'])) $boardpasswords=decode_cookie($_COOKIE['boardpasswords']);
else $boardpasswords=array();

if(isset($_POST['boardpassword'])) {
if($_POST['boardpassword']==$board['password']) {
$boardpasswords[$boardid]=md5($board['password']);
if($wbbuserdata['usecookies']==1) encode_cookie("boardpasswords",time()+3600*24*365,false);
else encode_cookie("boardpasswords",0,false);
header("Location: board.php?boardid=$boardid&sid=$session[hash]";);
exit();
}
else eval("error(\"".$tpl->get("error_falsepassword";)."\";);";);
}
elseif(!isset($boardpasswords[$boardid]) || $boardpasswords[$boardid]!=md5($board['password'])) {
eval("\$tpl->output(\"".$tpl->get("board_password";)."\";);";);
exit();
}
}
}

if(isset($threadid) && $thread['visible']==0 && $wbbuserdata['canuseacp']==0 && $wbbuserdata['issupermod']==0 && ($wbbuserdata['ismod']==0 || !$modpermissions['userid'])) eval("error(\"".$tpl->get("error_falselink";)."\";);";);
if(isset($postid) && $post['visible']==0 && $wbbuserdata['canuseacp']==0 && $wbbuserdata['issupermod']==0 && ($wbbuserdata['ismod']==0 || !$modpermissions['userid'])) eval("error(\"".$tpl->get("error_falselink";)."\";);";);
?>

was daran is jetzt falsch?
.Senseless
Gehts nicht?
Öffne mal deine global.php mit dem Windows Editor (oder mit dem Programm, mit dem du sie eben auch geöffnet hast) und lösche alles raus..
Dann kopiere das rein:

php:
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:
<?php
@error_reporting(7);
$phpversion phpversion();
$pagestarttime=microtime();
$query_count=0;
/** get function libary **/
require("./acp/lib/functions.php");
if (version_compare($phpversion'4.1.0') == -1) {
 $_REQUEST=array();
 $_COOKIE=array();
 $_POST=array();
 $_GET=array();
 $_SERVER=array();
 $_FILES=array();
 get_vars_old();
}
// remove slashes in get post cookie data...
if (get_magic_quotes_gpc()) {
  if(is_array($_REQUEST)) $_REQUEST=stripslashes_array($_REQUEST);
  if(is_array($_POST)) $_POST=stripslashes_array($_POST);
  if(is_array($_GET)) $_GET=stripslashes_array($_GET);
  if(is_array($_COOKIE)) $_COOKIE=stripslashes_array($_COOKIE);
}
@set_magic_quotes_runtime(0);
/** connect db **/
require("./acp/lib/config.inc.php");
require("./acp/lib/class_db_mysql.php");

$db = new db($sqlhost,$sqluser,$sqlpassword,$sqldb,$phpversion);

/** get configuration **/
require("./acp/lib/options.inc.php");

/** request ids **/
if(isset($_REQUEST['postid'])) $postid=$_REQUEST['postid'];
if(isset($_REQUEST['threadid'])) $threadid=$_REQUEST['threadid'];
if(isset($_REQUEST['pollid'])) $pollid=$_REQUEST['pollid'];
if(isset($_REQUEST['boardid'])) $boardid=$_REQUEST['boardid'];

/** verify ids **/
if(isset($postid)) {
 $postid intval($postid);
 $post $db->query_first("SELECT * FROM bb".$n."_posts WHERE postid = '$postid'");
 if(!$post['postid']) unset($postid);
 else $threadid $post['threadid'];
}
if(isset($threadid)) {
 $threadid intval($threadid);
 $thread $db->query_first("SELECT * FROM bb".$n."_threads WHERE threadid = '$threadid'");
 if(!$thread['threadid']) unset($threadid);
 else $boardid $thread['boardid'];
}
if(isset($pollid)) {
 $pollid intval($pollid);
 $poll $db->query_first("SELECT bb".$n."_polls.*, bb".$n."_threads.boardid FROM bb".$n."_polls LEFT JOIN bb".$n."_threads USING (threadid) WHERE bb".$n."_polls.pollid = '$pollid'");
 if(!$poll['pollid']) unset($pollid);
 else {
  $boardid $poll['boardid'];
  unset($threadid);
  unset($thread);
 }
}

/** start session **/
require("./acp/lib/session.php");

if(isset($boardid)) {
 $boardid intval($boardid);
 $board $db->query_first("SELECT
  b.*, p.*
  FROM bb".$n."_boards b
  LEFT JOIN bb".$n."_permissions p ON (p.boardid='$boardid' AND p.groupid='$wbbuserdata[groupid]')
  WHERE b.boardid = '$boardid'");

 if(!$board['boardid']) unset($boardid);
 else {
  $modpermissions['userid']=0;
  if($wbbuserdata['ismod']==&& $wbbuserdata['issupermod']!=1$modpermissions=$db->query_first("SELECT * FROM bb".$n."_moderators WHERE userid='$wbbuserdata[userid]' AND boardid='$boardid'");
 }
}

/** get style **/
$style=array();
if($session['styleid'] && (!isset($board) || !$board['enforcestyle'])) $style $db->query_first("SELECT * FROM bb".$n."_styles WHERE styleid = '$session[styleid]'");
if(!isset($style['styleid']) && $wbbuserdata['styleid'] && (!isset($board) || !$board['enforcestyle'])) $style $db->query_first("SELECT * FROM bb".$n."_styles WHERE styleid = '".$wbbuserdata['styleid']."'");
if(!isset($style['styleid']) && isset($board) && $board['styleid']!=0$style $db->query_first("SELECT * FROM bb".$n."_styles WHERE styleid = '".$board['styleid']."'");
if(!isset($style['styleid'])) $style $db->query_first("SELECT * FROM bb".$n."_styles WHERE default_style = 1");

/** template class -> caching **/
require("./acp/lib/class_headers.php");
require("./acp/lib/class_tpl_file.php");
$tpl = new tpl(0,intval($style['subvariablepackid']));

/** templates & style **/
$phpinclude str_replace("\\"",""",$tpl->get("phpinclude"));
if(trim($phpinclude)) eval($phpinclude);

$header_acp="";
eval ("\$headinclude = "".$tpl->get("headinclude")."";");
eval ("\$footer = "".$tpl->get("footer")."";");
if($wbbuserdata['userid']) {
 eval ("\$usercp_or_register = "".$tpl->get("header_usercp")."";");
 eval ("\$usercbar = "".$tpl->get("usercbar")."";");
 if($wbbuserdata['canuseacp']==1) eval ("\$header_acp = "".$tpl->get("header_acp")."";");
}
else {
 eval ("\$usercp_or_register = "".$tpl->get("header_register")."";");
 eval ("\$usercbar = "".$tpl->get("usercbar_guest")."";");
}
eval ("\$header = "".$tpl->get("header")."";");


if(($wbbuserdata['canviewboard']==|| $wbbuserdata['blocked']==|| ($wbbuserdata['userid'] && $wbbuserdata['activation']!=1)) && $filename!="login.php" && $filename!="logout.php" && $filename!="register.php" && $filename!="forgotpw.php"access_error();
verify_ip($REMOTE_ADDR);
if($offline==&& $wbbuserdata['canviewoffboard']==&& $filename!="login.php" && $filename!="logout.php" && $filename!="forgotpw.php") {
 $offlinemessage=nl2br($offlinemessage);
 eval("\$tpl->output("".$tpl->get("offline")."");");
 exit();
}

if($wbbuserdata['pmpopup']==2) {
 if($filename!="pms.php" && (!isset($_POST) || count($_POST)==0) && $filename!="logout.php" && $filename!="markread.php" && $filename!="misc.php" && $filename!="modcp.php" && $filename!="polledit.php" && $filename!="register.php" && $filename!="search.php" && ($filename!="thread.php" || !isset($_REQUEST['goto'])) && $filename!="threadrating.php" && $filename!="usercp.php") eval ("\$headinclude .= "".$tpl->get("pmpopup_open")."";");
}

if(isset($boardid)) {
 if(!$board['boardpermission']) access_error();
 if($board['password']) {
  if(isset($_COOKIE['boardpasswords'])) $boardpasswords=decode_cookie($_COOKIE['boardpasswords']);
  else $boardpasswords=array();

  if(isset($_POST['boardpassword'])) {
   if($_POST['boardpassword']==$board['password']) {
    $boardpasswords[$boardid]=md5($board['password']);
    if($wbbuserdata['usecookies']==1encode_cookie("boardpasswords",time()+3600*24*365,false);
    else encode_cookie("boardpasswords",0,false);
    header("Location: board.php?boardid=$boardid&sid=$session[hash]");
    exit();
   }
   else eval("error("".$tpl->get("error_falsepassword")."");");
  }
  elseif(!isset($boardpasswords[$boardid]) || $boardpasswords[$boardid]!=md5($board['password'])) {
   eval("\$tpl->output("".$tpl->get("board_password")."");");
   exit();
  }
 }
}

if(isset($threadid) && $thread['visible']==&& $wbbuserdata['canuseacp']==&& $wbbuserdata['issupermod']==&& ($wbbuserdata['ismod']==|| !$modpermissions['userid'])) eval("error("".$tpl->get("error_falselink")."");");
if(isset($postid) && $post['visible']==&& $wbbuserdata['canuseacp']==&& $wbbuserdata['issupermod']==&& ($wbbuserdata['ismod']==|| !$modpermissions['userid'])) eval("error("".$tpl->get("error_falselink")."");");
?>


Und dann abspeichern & hochladen (ggf die alte global.php löschen, dann hochladen).
Rina-123
Sorry dass ich zu unfähig bin ... aber wo lade ichn das hoch? ._.

haaa es geht *_* daaaaanke <333

aaaaber ich hab nochn fehler gefunden.. ich komme nimmer ins ACP..

Warning: require(./acp/lib/functions.php) [function.require]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/rinamaus/wbblite/acp/global.php on line 7


._.
.Senseless
Lad mal diese Datei in den Ordner acp/lib/ hoch (;
Rina-123
danke <33 geht wieder alles smile
.Senseless
Bitteschön (:
Freut mich smile