Pimp-Squad.eu Error
http://www.pimp-squad.eu is mijn site en ja het is met webspell en het is een downloaded demo. Maar log je eens in:
username: buddy
password: phphulp
En ga dan naar members aan de linkerkant. En klik vervolgens op contact voor Add Buddy. Ik krijg een error.
dit is de code die Webspell gebruikt maar bij mij doet die het niet.
Code (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
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
if(!$userID) echo 'You have to be logged in to view your profile!<br><br>
• <a href="index.php?site=register">register now</a><br>
• <a href="index.php?site=login">log in</a>';
else {
if($_GET['action']=="add") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("INSERT INTO ".PREFIX."buddys (userID, buddy, banned) values ('$userID', '".$_GET['id']."', '0') ");
header("Location: index.php?site=buddys");
}
elseif($_GET['action']=="ignore") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("UPDATE ".PREFIX."buddys SET banned='1' WHERE userID='$userID' AND buddy='".$_GET['id']."'");
header("Location: index.php?site=buddys");
}
elseif($_GET['action']=="readd") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("UPDATE ".PREFIX."buddys SET banned='0' WHERE userID='$userID' AND buddy='".$_GET['id']."'");
header("Location: index.php?site=buddys");
}
elseif($_GET['action']=="delete") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("DELETE FROM ".PREFIX."buddys WHERE userID='$userID' AND buddy='".$_GET['id']."'");
header("Location: index.php?site=buddys");
}
else {
eval ("\$title_buddys = \"".gettemplate("title_buddys")."\";");
echo $title_buddys;
echo'<table width="100%" cellpadding="0" cellspacing="0">
<tr><td width="49%" valign="top">';
eval ("\$buddys_head = \"".gettemplate("buddys_head")."\";");
echo $buddys_head;
$ergebnis=safe_query("SELECT * FROM ".PREFIX."buddys WHERE userID='$userID' AND banned='0'");
$anz=mysql_num_rows($ergebnis);
if($anz) {
$n=1;
while($ds=mysql_fetch_array($ergebnis)) {
if($n%2) {
$bg1=BG_1;
$bg2=BG_2;
}
else {
$bg1=BG_3;
$bg2=BG_4;
}
$flag = '[flag]'.getcountry($ds[buddy]).'[/flag]';
$country=flags($flag);
$nickname=getnickname($ds[buddy]);
if(isclanmember($ds[buddy])) $member=' <img src="images/icons/member.gif" width="6" height="11" alt="Clanmember">';
else $member='';
if(isonline($ds[buddy])=="offline") $statuspic='<img src="images/icons/offline.gif" width="7" height="7" alt="offline">';
else $statuspic='<img src="images/icons/online.gif" width="7" height="7" alt="online">';
eval ("\$buddys_content = \"".gettemplate("buddys_content")."\";");
echo $buddys_content;
$n++;
}
}
else echo'<tr><td colspan="4" bgcolor="'.BG_1.'">no users on your buddy-list.</td></tr>';
eval ("\$buddys_foot = \"".gettemplate("buddys_foot")."\";");
echo $buddys_foot;
echo'</td><td width="2%"> </td><td valign="top">';
eval ("\$ignore_head = \"".gettemplate("ignore_head")."\";");
echo $ignore_head;
$ergebnis=safe_query("SELECT * FROM ".PREFIX."buddys WHERE userID='$userID' AND banned='1'");
$anz=mysql_num_rows($ergebnis);
if($anz) {
$n=1;
while($ds=mysql_fetch_array($ergebnis)) {
if($n%2) {
$bg1=BG_1;
$bg2=BG_2;
}
else {
$bg1=BG_3;
$bg2=BG_4;
}
$flag = '[flag]'.getcountry($ds[buddy]).'[/flag]';
$country=flags($flag);
$nickname=getnickname($ds[buddy]);
if(isclanmember($ds[buddy])) $member=' <img src="images/icons/member.gif" width="6" height="11" alt="Clanmember">';
else $member='';
if(isonline($ds[buddy])=="offline") $statuspic='<img src="images/icons/offline.gif" width="7" height="7" alt="offline">';
else $statuspic='<img src="images/icons/online.gif" width="7" height="7" alt="online">';
eval ("\$ignore_content = \"".gettemplate("ignore_content")."\";");
echo $ignore_content;
$n++;
}
}
else echo'<tr><td colspan="4" bgcolor="'.BG_1.'">no users on your ignore-list.</td></tr>';
eval ("\$ignore_foot = \"".gettemplate("ignore_foot")."\";");
echo $ignore_foot;
echo'</td></tr></table><br>';
}
}
?>
• <a href="index.php?site=register">register now</a><br>
• <a href="index.php?site=login">log in</a>';
else {
if($_GET['action']=="add") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("INSERT INTO ".PREFIX."buddys (userID, buddy, banned) values ('$userID', '".$_GET['id']."', '0') ");
header("Location: index.php?site=buddys");
}
elseif($_GET['action']=="ignore") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("UPDATE ".PREFIX."buddys SET banned='1' WHERE userID='$userID' AND buddy='".$_GET['id']."'");
header("Location: index.php?site=buddys");
}
elseif($_GET['action']=="readd") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("UPDATE ".PREFIX."buddys SET banned='0' WHERE userID='$userID' AND buddy='".$_GET['id']."'");
header("Location: index.php?site=buddys");
}
elseif($_GET['action']=="delete") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
safe_query("DELETE FROM ".PREFIX."buddys WHERE userID='$userID' AND buddy='".$_GET['id']."'");
header("Location: index.php?site=buddys");
}
else {
eval ("\$title_buddys = \"".gettemplate("title_buddys")."\";");
echo $title_buddys;
echo'<table width="100%" cellpadding="0" cellspacing="0">
<tr><td width="49%" valign="top">';
eval ("\$buddys_head = \"".gettemplate("buddys_head")."\";");
echo $buddys_head;
$ergebnis=safe_query("SELECT * FROM ".PREFIX."buddys WHERE userID='$userID' AND banned='0'");
$anz=mysql_num_rows($ergebnis);
if($anz) {
$n=1;
while($ds=mysql_fetch_array($ergebnis)) {
if($n%2) {
$bg1=BG_1;
$bg2=BG_2;
}
else {
$bg1=BG_3;
$bg2=BG_4;
}
$flag = '[flag]'.getcountry($ds[buddy]).'[/flag]';
$country=flags($flag);
$nickname=getnickname($ds[buddy]);
if(isclanmember($ds[buddy])) $member=' <img src="images/icons/member.gif" width="6" height="11" alt="Clanmember">';
else $member='';
if(isonline($ds[buddy])=="offline") $statuspic='<img src="images/icons/offline.gif" width="7" height="7" alt="offline">';
else $statuspic='<img src="images/icons/online.gif" width="7" height="7" alt="online">';
eval ("\$buddys_content = \"".gettemplate("buddys_content")."\";");
echo $buddys_content;
$n++;
}
}
else echo'<tr><td colspan="4" bgcolor="'.BG_1.'">no users on your buddy-list.</td></tr>';
eval ("\$buddys_foot = \"".gettemplate("buddys_foot")."\";");
echo $buddys_foot;
echo'</td><td width="2%"> </td><td valign="top">';
eval ("\$ignore_head = \"".gettemplate("ignore_head")."\";");
echo $ignore_head;
$ergebnis=safe_query("SELECT * FROM ".PREFIX."buddys WHERE userID='$userID' AND banned='1'");
$anz=mysql_num_rows($ergebnis);
if($anz) {
$n=1;
while($ds=mysql_fetch_array($ergebnis)) {
if($n%2) {
$bg1=BG_1;
$bg2=BG_2;
}
else {
$bg1=BG_3;
$bg2=BG_4;
}
$flag = '[flag]'.getcountry($ds[buddy]).'[/flag]';
$country=flags($flag);
$nickname=getnickname($ds[buddy]);
if(isclanmember($ds[buddy])) $member=' <img src="images/icons/member.gif" width="6" height="11" alt="Clanmember">';
else $member='';
if(isonline($ds[buddy])=="offline") $statuspic='<img src="images/icons/offline.gif" width="7" height="7" alt="offline">';
else $statuspic='<img src="images/icons/online.gif" width="7" height="7" alt="online">';
eval ("\$ignore_content = \"".gettemplate("ignore_content")."\";");
echo $ignore_content;
$n++;
}
}
else echo'<tr><td colspan="4" bgcolor="'.BG_1.'">no users on your ignore-list.</td></tr>';
eval ("\$ignore_foot = \"".gettemplate("ignore_foot")."\";");
echo $ignore_foot;
echo'</td></tr></table><br>';
}
}
?>
Geef de error dan eens.. Die account werkt niet..
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
if(!$userID) echo 'You have to be logged in to view your profile!<br><br>
• <a href="index.php?site=register">register now</a><br>
• <a href="index.php?site=login">log in</a>';
else {
if($_GET['action']=="add") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
• <a href="index.php?site=register">register now</a><br>
• <a href="index.php?site=login">log in</a>';
else {
if($_GET['action']=="add") {
include("_mysql.php");
include("_settings.php");
include("_functions.php");
if(!$userID) die('Not logged in.');
Hij zegt
Register Now
Login