|
|
Latest News |
Latest Threads |
|
|
55.070 Posts & 4.945 Themen in 78 Foren |
|
|
|
|
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
|
|
Fehler bei PunkteSystem oder ProGate oder Smilieshop 10 Beiträge in diesem Thema |
|
|
|
|
|
|
|
|
02.09.2012 - 10:22 Uhr |
|
|
|
Hi,
extra für Webi, ein eigenes Thema.
Problem aus dem Beitrag http://www.hth-c.com/include.php?path=forum/showthread.php&threadid=4695&entries=0#post21709
Das Prob. besteht wenn ich kommentare z.b. erstelle oder Profilseiten aufrufe oder einloggen von Nicks.
Egal ob ich mit Smilie schreibe oder ohne Smilie schreibe kommt eine weise seite.
z.b. include.php?path=comment/comment.php&subid=953&comcat=cont
z.b. include.php?path=login/userinfo.php&id=1
Außer bei dort kann ich das profil aufrufen nur nicht einloggen include.php?path=login/userinfo.php&id=86671 weil sonst weiße seite.
Ich hab schon voll viel gesucht nur das ist alles 1.6.6 und ich wies net unter welchen suchbegriff. ich suchen soll (phpkit weiße seite) ? schon versucht.
Ich hab vorgestern phpkit Punktesystem und ProGate und Smilieshop installiert
PS; Lustig ist mit user 1 kann ich mich einloggen aber user 86671 nicht. Und ich hab mich an die anleitung gehalten
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von inspireDe - 02.09.2012 - 10:25 Uhr |
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 10:33 Uhr |
|
|
|
Zitat Original geschrieben von inspireDe
extra für Webi, ein eigenes Thema.
|
Des machste nicht für WEBI sondern für den Rest der Community. Ist ja auch verständlich oder? WEBI sowie k!r!ka haben bestimmt keine Lust jedes Problem 2-3 mal durchzukauen. Und ich habe keinen Bock, im falle dessen, immer auf andere Threads zu verweisen
weiter machen
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 10:50 Uhr |
|
|
|
comment/comment.php
Hier klicken zum aufklappen 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 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | | PHP-Quelltext <?php
unset($event);
if (isset($_REQUEST['comcat'])) $comcat=$_REQUEST['comcat'];
if (isset($_REQUEST['subid'])) $subid=$_REQUEST['subid'];
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';
if (adminaccess('comment')) {
$DB->query("DELETE FROM ".$db_tab['comment']." WHERE comment_id='".$_REQUEST['delcomment']."' LIMIT 1");
}
if ($ACTION==$_POST['save']) {
if ($config['comment_register']==1 && !$USER['id']>0) {header("location: include.php?event=1session_id()); exit();}
else {
$floodcontrol=time()-($config['comment_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_ip='".$thisUSER['ipaddr']."' && comment_userid='".$USER['id']."' && comment_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['comment_autor'])=='') $event=12;
elseif (strlen(trim($_POST['content']))>$config['comment_maxchars']) $event=46;
elseif ($infocount[0]>0) $event=45;
elseif (!checkusername($_POST['comment_autor'],1)) $event=42;
else {
// *** Punktesystem Pro *** Start ***
$psp_info = $DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['psp_config'].""));
$userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." WHERE user_id='".$USER['id']."'"));
if ($userinfo['psp_aktiv']==1) {
if ($psp_info['psp_aktiv']==1) {
if ($psp_info['psp_kommentare_aktiv']==1) {
$DB->query("UPDATE ".$db_tab['user']." SET psp_punkte=psp_punkte+'".$psp_info['psp_kommentare']."' WHERE user_id ='".$USER['id']."'");
$DB->query("UPDATE ".$db_tab['user']." SET psp_kommentare=psp_kommentare+1 WHERE user_id ='".$USER['id']."'");
}
}
}
// *** Punktesystem Pro *** Ende ***
$DB->query("INSERT INTO ".$db_tab['comment']." (comment_cat,comment_subid,comment_time,comment_autor,comment_ip,comment_text, comment_userid) VALUES ('".$_POST['comcat']."','".$_POST['subid']."','".time()."','".$_POST['comment_autor']."','".$thisUSER['ipaddr']."','".addslashes($_POST['content'])."','".$USER['id']."')");
$autor=$_POST['comment_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_comment'];
eval ("\$mail_text= \"".getTemplate("comment_mail_notify")."\";");
notifymail('comment',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'];
eval ("\$im_text= \"".getTemplate("comment_im_notify")."\";");
notifyim('comment',$im_title,$im_text);
if ($_POST['comcat']=='gb') {
$email=$DB->fetch_array($DB->query("SELECT gbook_notify,gbook_email,gbook_autor FROM ".$db_tab['gbook']." WHERE gbook_id='".$_POST['subid']."' LIMIT 1"));
if ($email['gbook_notify']==1) {
$comment_text=$_POST['content'];
eval ("\$email_title= \"".getTemplate("guestbook/email_title")."\";");
eval ("\$email_text= \"".getTemplate("guestbook/email_text")."\";");
mailsender($email['gbook_email'],$email_title,$email_text);
}
}
header("location: include.php?event=13&moveto=".urlencode($current_path)."session_id()); exit();
}
}
}
if ($comcat=="gb") {
$getinfo=$DB->query("SELECT * FROM ".$db_tab['gbook']." WHERE gbook_id='".$subid."'");
while ($gbookinfo=$DB->fetch_array($getinfo)) {
$row=rowcolor($row);
if ($gbookinfo['gbook_userid']>0 && $userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." WHERE user_id='".$gbookinfo['gbook_userid']."' LIMIT 1"))) {
eval ("\$gbook_autor= \"".getTemplate("member_showprofil_textlink")."\";");
if ($userinfo['expire']==0) eval ("\$info_os= \"".getTemplate("member_os_offline")."\";");
else eval ("\$info_os= \"".getTemplate("member_os_online")."\";");
if ($userinfo['user_emailshow']==1) eval ("\$gbook_email= \"".getTemplate("member_email_iconlink")."\";");
if ($userinfo['user_icqid']>0) eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
if (trim($userinfo['user_hpage'])!='') {
if (ereg("http://",$userinfo['user_hpage'])) $info_link=$userinfo['user_hpage'];
else $info_link='http://'.$userinfo['user_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
if ($USER['sigoption']==1 && $userinfo['user_sig']!='') {
$info_sig=$PARSE->parse($userinfo['user_sig'],0,$config['text_ubb'], $config['text_smilies'], $config['text_images'],1);
eval ("\$info_sig= \"".getTemplate("member_signatur")."\";");
}
}
else {
$userinfo['user_nick']=$gbookinfo['gbook_autor'];
$gbook_autor=$gbookinfo['gbook_autor'];
if ($gbookinfo['gbook_check']==1 && $gbookinfo['gbook_email']!='') {
$userinfo['user_email']=$gbookinfo['gbook_email'];
eval ("\$gbook_email= \"".getTemplate("member_email_iconlink")."\";");
}
if ($gbookinfo[gbook_hpage]!='') {
if (ereg('http://',$gbookinfo['gbook_hpage'])) $info_link=$gbookinfo['gbook_hpage'];
else $info_link='http://'.$gbookinfo['gbook_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
if ($gbookinfo['gbook_icqnr']>0) {
$userinfo['user_icqid']=$gbookinfo['gbook_icqnr'];
eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
}
eval ("\$info_os= \"".getTemplate("guest_os_icon")."\";");
}
$gbook_title=htmlentities($gbookinfo['gbook_title']);
$gbook_text=$PARSE->parse($gbookinfo['gbook_text'],0,$config['gbook_ubb'],$config['gbook_smilies'],$config['gbook_images'],1);
$gbook_time=formattime($gbookinfo['gbook_time']);
if ($USER['status']=='admin') {
if ($gbookinfo['gbook_ip']==0) eval ("\$gbook_ip= \"".getTemplate("guestbook/gbook_ipno_iconlink")."\";");
else eval ("\$gbook_ip= \"".getTemplate("guestbook/gbook_ip_iconlink")."\";");
eval ("\$gbook_admin= \"".getTemplate("guestbook/gbook_admin_iconlink")."\";");
}
if ($config['gbook_commenteod']==1) {
$ccounter=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['comment']." WHERE comment_cat='gb' and comment_subid='".$gbookinfo['gbook_id']."'"));
if ($ccounter[0]>1) $gbook_comment=$ccounter[0].' '.$lang['comments'];
elseif ($ccounter[0]==1) $gbook_comment='1 '.$lang['comment'];
else $gbook_comment=$lang['no_comments'];
eval ("\$gbook_comment= \"".getTemplate("guestbook/viewgb_comment_textlink")."\";");
}
eval ("\$gbook_row= \"".getTemplate("guestbook/viewgb_row")."\";");
unset($gbook_email); unset($gbook_hpage); unset($gbook_icq); unset($gbook_admin); unset($gbook_ip); unset($gbook_comment); unset($info_sig);
}
eval ("\$site_body.= \"".getTemplate("comment_gbook_body")."\";");
}
elseif ($comcat=="cont") {
$info=$DB->fetch_array($DB->query("SELECT content_option, content_status FROM ".$db_tab['content']." WHERE content_id='".$subid."' LIMIT 1"));
if ($info['content_status']!=1) {$event=23; include("admin/config/event.php");}
else {
if ($info['content_option']==1) {$contentid=$subid; include("content/articles.php");}
elseif ($info['content_option']==2) {$contentid=$subid; include("content/news.php");}
elseif ($info['content_option']==3) {$type=3; $contentid=$subid; include("content/overview.php");}
elseif ($info['content_option']==4) {
$contentid=$subid; include("content/download.php");
}
}
}
$comment_order="DESC";
if ($comcat=="user") {
$comment_title=$lang['sign'];
$comment_type=$lang['previous_entries'];
}
else {
$comment_title=$lang['write_comment'];
$comment_type=$lang['comments'];
if ($config['comment_order']=="ASC") $comment_order=$config['comment_order'];
}
unset($sqlcommand);
$getcomment=$DB->query("SELECT * FROM ".$db_tab['comment']." where comment_subid='".$subid."' and comment_cat='".$comcat."' ORDER BY comment_time ".$comment_order);
while ($comment=$DB->fetch_array($getcomment)) {
$comment_hash[$comment['comment_id']]=$comment;
if ($comment['comment_userid']!=0) {
if ($sqlcommand) $sqlcommand.=" OR user_id='".$comment['comment_userid']."'";
else $sqlcommand="SELECT user_id, user_nick FROM ".$db_tab['user']." WHERE user_id='".$comment['comment_userid']."'";
}
}
if ($sqlcommand) {
$getuserinfo=$DB->query($sqlcommand);
while ($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_hash[$userinfo['user_id']]=$userinfo;}
}
if (is_array($comment_hash)) {
unset($comment_row);
if ($comment_order=="DESC") $comment_counter=count($comment_hash);
else $comment_counter=1;
foreach ($comment_hash as $comment) {
$row=rowcolor($row);
if (adminaccess('comment')) {
if ($comcat=="user") {$comment_path="login/pguestbook.php";}
else {$comment_path="comment/comment.php&subid=$subid&comcat=$comcat";}
eval ("\$comment_option= \"".getTemplate("comment_delete_iconlink")."\";");
if ($comment[comment_ip]!="") {eval ("\$comment_option.= \"".getTemplate("comment_ip_iconlink","")."\";");}
else {eval ("\$comment_option.= \"".getTemplate("comment_ipno_iconlink","")."\";");}
}
if (($userinfo=$userinfo_hash[$comment['comment_userid']])!='') {
if (isonline($userinfo['user_id'])) eval ("\$comment_option.= \"".getTemplate("member_os_online")."\";");
else eval ("\$comment_option.= \"".getTemplate("member_os_offline")."\";");
eval ("\$info_nick= \"".getTemplate("member_showprofil_textlink","small")."\";");
}
else {
eval ("\$comment_option.= \"".getTemplate("guest_os_icon","")."\";");
$info_nick=htmlentities(stripslashes($comment['comment_autor']));
}
if ($comcat=='user') $comment_text=$PARSE->parse($comment['comment_text'],0,$config['text_ubb'],$config['text_smilies'],$config['text_images'],1);
else $comment_text=$PARSE->parse($comment['comment_text'], 0, $config['comment_bb'], $config['comment_smilies'],$config['comment_images'],1);
$comment_time=formattime($comment['comment_time']);
eval ("\$comment_row.= \"".getTemplate("comment_comments_row","")."\";");
if ($comment_order=="DESC") $comment_counter--;
else $comment_counter++;
unset($comment_option); unset($comment_text);
}
eval ("\$site_body.= \"".getTemplate("comment_comments_body")."\";");
}
if ($comcat=='user') {
$comment_title="Ins Gästebuch eintragen";
$comment_path="login/pguestbook.php&id=$subid";
if ($config['text_ubb']==1) {eval ("\$sign_format.= \"".getTemplate("format_text")."\";");}
if ($config['text_smilies']==1) {$smilies=new smilies(); $sign_format.=$smilies->getSmilies("1");}
if ($sign_format!="") eval ("\$sign_format= \"".getTemplate("format_table")."\";");
if ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin') eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorinfo")."\";");
else eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorform")."\";");
if (isset($event)) {
if ($event==46) $commentlength=strlen($_POST['content']);
$site_body.='<br />';
include("admin/config/event.php");
}
$comment_text=$_POST['content'];
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
else {
if ($config['comment_register']!=1 || ($config['comment_register']==1 && ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin'))) {
if ($config['comment_bb']==1) eval ("\$sign_format.= \"".getTemplate("format_text")."\";");
if ($config['comment_smilies']==1) {
$smilies=new smilies();
$sign_format.=$smilies->getSmilies(1);
}
$comment_path='comment/comment.php&subid='.$subid.'&comcat='.$comcat;
if ($sign_format!="") eval ("\$sign_format= \"".getTemplate("format_table")."\";");
if ($USER['status']=='user' || $USER['status']=='member'|| $USER['status']=='member' || $USER['status']=='admin') eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorinfo")."\";");
else eval ("\$comment_autorinfo= \"".getTemplate("comment_writeform_autorform")."\";");
if (isset($event)) {
if ($event==46) $commentlength=strlen($_POST['content']);
$site_body.='<br />';
include("admin/config/event.php");
}
$comment_text=$_POST['content'];
eval ("\$site_body.= \"".getTemplate("comment_writeform")."\";");
}
else eval ("\$site_body.= \"".getTemplate("comment_autorlogin")."\";");
}
?> | | |
login/userinfo.php
Hier klicken zum aufklappen 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 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | | PHP-Quelltext <?php
if (getrights($config['member_infoshow'])=="true") {
if (!$_REQUEST['id'] && $USER['id']!=0) $id=$USER['id'];
else $id=$_REQUEST['id'];
$userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." where user_id='".$id."' LIMIT 1"));
$info_nick=$userinfo['user_nick'];
if ($userinfo['user_bd_day']!=0 && $userinfo['user_bd_month']!=0 && $userinfo['user_bd_year']!=0) {
$info_birthday=$userinfo['user_bd_day'].". ";
$month=$lang['all_month'];
$month=$month[$userinfo['user_bd_month']];
$info_birthday.=$month[1]." ";
$info_birthday.=$userinfo['user_bd_year']." - ".$lang['age'].": ".getAge($userinfo[user_bd_day],$userinfo[user_bd_month],$userinfo[user_bd_year]);
// Start Sternzeichen Addon v.1.0 by MatrIXER & PimpyourKiT.de \\
$sz_tag = $userinfo['user_bd_day'].". ";
$sz_monat = $userinfo['user_bd_month'].". ";
$sz_jahr = $userinfo['user_bd_year'].". ";
function Sternzeichen($t,$m,$j) {
$sz_tag = date("d",mktime(0,0,0,$m,$t,$j));
$sz_monat = date("m",mktime(0,0,0,$m,$t,$j));
$sz_jahr = date("j",mktime(0,0,0,$m,$t,$j));
if ($sz_tag > 20 && $sz_monat == 3 || $sz_tag < 21 && $sz_monat == 4) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/widder.png\"> Widder <font class=\"small\">(21.3. - 20.4.)</font>"; }
if ($sz_tag > 20 && $sz_monat == 4 || $sz_tag < 21 && $sz_monat == 5) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/stier.png\"> Stier <font class=\"small\">(21.4. - 20.5.)</font>"; }
if ($sz_tag > 20 && $sz_monat == 5 || $sz_tag < 22 && $sz_monat == 6) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/zwillinge.png\"> Zwillinge <font class=\"small\">(21.5. - 21.6.)</font>"; }
if ($sz_tag > 21 && $sz_monat == 6 || $sz_tag < 23 && $sz_monat == 7) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/krebs.png\"> Krebs <font class=\"small\">(22.6. - 22.7.)</font>"; }
if ($sz_tag > 22 && $sz_monat == 7 || $sz_tag < 24 && $sz_monat == 8) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/loewe.png\"> Löwe <font class=\"small\">(23.7. - 23.8.)</font>"; }
if ($sz_tag > 23 && $sz_monat == 8 || $sz_tag < 24 && $sz_monat == 9) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/jungfrau.png\"> Jungfrau <font class=\"small\">(24.8. - 23.9.)</font>"; }
if ($sz_tag > 23 && $sz_monat == 9 || $sz_tag < 24 && $sz_monat == 10) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/waage.png\"> Waage <font class=\"small\">(24.9. - 23.10.)</font>"; }
if ($sz_tag > 23 && $sz_monat == 10 || $sz_tag < 23 && $sz_monat == 11) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/skorpion.png\"> Skorpion <font class=\"small\">(24.10. - 22.11.)</font>"; }
if ($sz_tag > 22 && $sz_monat == 11 || $sz_tag < 22 && $sz_monat == 12) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/schuetze.png\"> Schütze <font class=\"small\">(23.11. - 21.12.)</font>"; }
if ($sz_tag > 21 && $sz_monat == 12 || $sz_tag < 21 && $sz_monat == 1) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/steinbock.png\"> Steinbock <font class=\"small\">(22.12. - 20.1.)</font>"; }
if ($sz_tag > 20 && $sz_monat == 1 || $sz_tag < 20 && $sz_monat == 2) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/wassermann.png\"> Wassermann <font class=\"small\">(21.1. - 19.2.)</font>"; }
if ($sz_tag > 19 && $sz_monat == 2 || $sz_tag < 21 && $sz_monat == 3) { $zeichen = "<img width=\"20\" align=\"absmiddle\" src=\"images/sternzeichen/fische.png\"> Fische <font class=\"small\">(20.2. - 20.3.)</font>"; }
return $zeichen;
}
$sternzeichen = Sternzeichen($sz_tag,$sz_monat,$sz_jahr);
// Ende Sternzeichen Addon v.1.0 by MatrIXER & PimpyourKiT.de \\
}
else {$info_birthday=$lang['not_specified'];}
if ($userinfo['user_sex']=="w") $info_sex=$lang['female'];
elseif ($userinfo['user_sex']=="m") $info_sex=$lang['male'];
else $info_sex=$lang['not_specified'];
if ($userinfo[user_country]!="") {eval ("\$info_country= \"".getTemplate("member_country_text_".$userinfo[user_country]."")."\";");}
else {$info_country=$lang['not_specified'];}
$info_signin=formattime($userinfo['signin'],'','date');
if ($userinfo['logtime']>0) {$info_logtime=formattime($userinfo['logtime']);}
else {$userinfo_logtime=" - ";}
if ($userinfo[user_status]=="admin") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['admin_female'];} else {$info_userstatus=$lang['admin'];}}
elseif ($userinfo[user_status]=="mod") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['mod_female'];} else {$info_userstatus=$lang['mod'];}}
elseif ($userinfo[user_status]=="member") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['member_female'];} else {$info_userstatus=$lang['member'];}}
elseif ($userinfo[user_status]=="user") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['user_female'];} else {$info_userstatus=$lang['user'];}}
elseif ($userinfo[user_status]=="ban") {$info_userstatus=$lang['banned'];}
if ($userinfo['user_groupid']!=0) {
$group=$DB->fetch_array($DB->query("SELECT usergroup_name FROM ".$db_tab['usergroup']." WHERE usergroup_id='".$userinfo['user_groupid']."' LIMIT 1"));
if (trim($group[0])!='') $info_usergroup=$group[0];
else eval ("\$info_usergroup= \"".getTemplate("userinfo_nousergroup")."\";");
}
else eval ("\$info_usergroup= \"".getTemplate("userinfo_nousergroup")."\";");
if (isonline($userinfo['user_id'])) $info_os=$lang['online'];
else $info_os=$lang['offline'];
$allowUserFields
=
array(
'76',
'77',
'78',
'79',
'73',
'84',
'85',
'86',
'87',
'88',
'89',
'90',
'91',
'92',
'1',
);
$userfields=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['userfields']." WHERE userid='".$userinfo['user_id']."' LIMIT 1"));
$info_extended='';
$getprofilefields=$DB->query("SELECT * FROM ".$db_tab['profilefields']." ORDER by profilefields_order ASC");
while ($profilefields=$DB->fetch_array($getprofilefields)) {
$f="field_".$profilefields['profilefields_id'];
if (($fieldcontent=htmlentities($userfields[$f]))=='') $fieldcontent=$lang['not_specified'];
$fieldname=$profilefields['profilefields_name'];
$profileField_id=intval($profilefields['profilefields_id']);
eval ("\$info_profileField[$profileField_id]= \"".getTemplate('userinfo_ext')."\";");
if (in_array($profileField_id, $allowUserFields))
{
continue;
}
eval ("\$info_extended.= \"".getTemplate("userinfo_ext")."\";");
}
//* proMC */
/*
$fieldname='Zeit auf der Seite verbracht';
if( !array_key_exists('user_promc',$userinfo) ){
$userinfo['user_promc']=60 * 60 * 2.1;
}
$promc=array();
$promc['d']=floor($userinfo['user_promc']/86400);
$promc['h']=floor(($userinfo['user_promc']-$promc['d']*86400)/3600);
$promc['m']=floor(($userinfo['user_promc']-$promc['d']*86400-$promc['h']*3600)/60);
$promc['s']=floor(($userinfo['user_promc']-$promc['d']*86400-$promc['h']*3600-$promc['m']*60));
if( $promc['d'] == 0 ) unset($promc['d']);
if( $promc['h'] == 0 ) unset($promc['h']);
if( $promc['m'] == 0 ) unset($promc['m']);
if( $promc['s'] == 0 ) unset($promc['s']);
$fieldcontent='';
$proi=0;
foreach( $promc as $k => $v ){
if( $proi==0 ){
$proc='';
}else if( ($proi+1)==count($promc) ){
$proc=' und ';
}else{
$proc=', ';
}
if( $k=='d' ){
if( $v==1 ){
$fieldcontent.=$proc.$v.' Tag';
}else{
$fieldcontent.=$proc.$v.' Tage';
}
}else if( $k == 'h' ){
if( $v==1 ){
$fieldcontent.=$proc.$v.' Stunde';
}else{
$fieldcontent.=$proc.$v.' Stunden';
}
}else if( $k == 'm' ){
if( $v==1 ){
$fieldcontent.=$proc.$v.' Minute';
}else{
$fieldcontent.=$proc.$v.' Minuten';
}
}else if( $k == 's' ){
if( $v==1 ){
$fieldcontent.=$proc.$v.' Sekunde';
}else{
$fieldcontent.=$proc.$v.' Sekunden';
}
}
$proi++;
}
eval ("\$info_extended.= \"".getTemplate("userinfo_ext")."\";");
*/
$userinfo['user_promc']
=
array_key_exists('user_promc', $userinfo)
? $userinfo['user_promc']
: 0
;
$info_promc_timeToMinute=number_format($userinfo['user_promc'] / 60, '0', ',', '.');
eval ("\$info_promc_onlineTime= \"".getTemplate('userinfo_promc_online_time')."\";");
/* proMC */
if ($userinfo[user_emailshow]==1) {
if ($config[member_mailer]==1) {eval ("\$info_email= \"".getTemplate("member_email_textlink2")."\";");}
else {eval ("\$info_email= \"".getTemplate("member_email_textlink")."\";");}
}
else {$info_email=$lang['not_specified'];}
if ($userinfo[user_imoption]==1) {eval ("\$info_im= \"".getTemplate("member_sendim_textlink")."\";");}
else {$info_im=$lang['receiving_not_wanted'];}
if ($userinfo[user_icqid]!=0) {eval ("\$info_icq= \"".getTemplate("member_icq_iconlink_2")."\";");}
else {$info_icq=$lang['not_specified'];}
if ($userinfo[user_aimid]!="") {eval ("\$info_aim= \"".getTemplate("member_aim_textlink")."\";");}
else {$info_aim=$lang['not_specified'];}
if ($userinfo[user_yim]!="") {eval ("\$info_yim= \"".getTemplate("member_yim_textlink")."\";");}
else {$info_yim=$lang['not_specified'];}
if ($userinfo[user_hpage]!="") {
if (ereg("http://",$userinfo[user_hpage])) {$info_link=$userinfo[user_hpage];}
else {$info_link="http://".$userinfo[user_hpage];}
eval ("\$info_hpage= \"".getTemplate("member_hpage_textlink")."\";");
}
else {$info_hpage=$lang['not_specified'];}
eval ("\$info_buddie= \"".getTemplate("member_buddie_textlink")."\";");
if ($userinfo[user_qou]!="") {$info_qoute=$PARSE->parse($userinfo[user_qou], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_qoute=$lang['not_specified'];}
if ($userinfo[user_hobby]!="") {$info_hobby=$PARSE->parse($userinfo[user_hobby], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_hobby=$lang['not_specified'];}
if ($userinfo[user_sig]!="") {$info_sig=$PARSE->parse($userinfo[user_sig], 0, $config[text_ubb], $config[text_smilies], $config[text_images],1);}
else {$info_sig=$lang['not_specified'];}
if ($config[avatar_eod]!=0) {
if ($userinfo[user_avatar]!="" && @filecheck($config['avatar_path']."/".$userinfo[user_avatar])) {$avatar_dimension[3]=@getimagesize("images/avatar/$userinfo[user_avatar]"); eval ("\$avatar_show= \"".getTemplate("user_avatar_show","")."\";");}
else {$avatar_show=$lang['no_avatar_selected'];}
eval ("\$avatar_eod= \"".getTemplate("userinfo_avatar")."\";");
}
else {eval ("\$avatar_eod= \"".getTemplate("userinfo_avatar_off")."\";");}
if ($config[forum_eod]==1) {
$info_userposts=($userinfo[user_posts]+$userinfo[user_postdelay]);
if ($info_userposts<0) {$info_userposts=0;}
if ($info_userposts>0) {
$posts_per_day=number_format(($info_userposts/(ceil(($time_now-$userinfo['signin'])/86400))),1,",",".");
$threadcount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumthread']." WHERE forumthread_autorid='".$userinfo['user_id']."'"));
$info_threadcount=$threadcount[0];
$forumrank=$DB->fetch_array($DB->query("SELECT forumrank_title FROM ".$db_tab['forumrank']." WHERE forumrank_post<='".$info_userposts."' ORDER by forumrank_post DESC"));
$forumrank=$forumrank['forumrank_title'];
$lastpost=$DB->fetch_array($DB->query("SELECT ".$db_tab['forumpost'].".forumpost_threadid, ".$db_tab['forumpost'].".forumpost_id FROM ".$db_tab['forumpost']." LEFT JOIN ".$db_tab['forumthread']." ON ".$db_tab['forumthread'].".forumthread_id=".$db_tab['forumpost'].".forumpost_threadid LEFT JOIN ".$db_tab['forumcat']." ON ".$db_tab['forumcat'].".forumcat_id=".$db_tab['forumthread'].".forumthread_catid WHERE (".sqlrights("".$db_tab['forumcat'].".forumcat_rrights")." OR ".$db_tab['forumcat'].".forumcat_mods LIKE '%-".$user_id."-%' OR ".$db_tab['forumcat'].".forumcat_user LIKE '%-".$user_id."-%') AND ".$db_tab['forumpost'].".forumpost_autorid=".$userinfo['user_id']." ORDER BY ".$db_tab['forumpost'].".forumpost_time DESC LIMIT 1"));
if ($lastpost[0]!="") {
$forumthread=$DB->fetch_array($DB->query("SELECT forumthread_id, forumthread_title, forumthread_catid FROM ".$db_tab['forumthread']." WHERE forumthread_id='".$lastpost['forumpost_threadid']."'"));
$forumcat=$DB->fetch_array($DB->query("SELECT forumcat_id, forumcat_name FROM ".$db_tab['forumcat']." WHERE forumcat_id='".$forumthread['forumthread_catid']."'"));
eval ("\$forumpost_info= \"".getTemplate("userinfo_foruminfo_lastthread")."\";");
}
else {$forumpost_info='-';}
}
else {
$forumrank='-';
$forumpost_info='-';
$info_threadcount='-';
}
eval ("\$foruminfo= \"".getTemplate("userinfo_foruminfo")."\";");
}
else {unset($foruminfo);}
// --> Buddy Liste im Profil
$getbuddies=$DB->query("SELECT buddy_friendid FROM ".$db_tab['buddy']." WHERE buddy_userid='".$userinfo['user_id']."' ORDER BY buddy_userid");
unset($sqlcommand);
while ($buddy=$DB->fetch_array($getbuddies)) {
$buddy_cache[$buddy['buddy_friendid']]=$buddy;
if (!$sqlcommand) {$sqlcommand="SELECT user_imoption, user_nick, user_id, user_ghost FROM ".$db_tab['user']." WHERE user_id='".$buddy['buddy_friendid']."'";}
else {$sqlcommand.=" OR user_id='".$buddy['buddy_friendid']."'";}
}
if (is_array($buddy_cache)) {
$getuserinfo=$DB->query($sqlcommand);
while ($userinfo=$DB->fetch_array($getuserinfo)) {$user_cache[$userinfo['user_id']]=$userinfo;}
foreach($buddy_cache as $buddy) {
$userinfo=$user_cache[$buddy['buddy_friendid']];
$row=rowcolor($row);
if (isonline($userinfo['user_id'])) eval ("\$buddy_os= \"".getTemplate("member_os_online")."\";");
else eval ("\$buddy_os= \"".getTemplate("member_os_offline")."\";");
if ($userinfo['user_imoption']==1) eval ("\$buddy_im= \"".getTemplate("member_sendim_iconlink")."\";");
else eval ("\$buddy_im= \"".getTemplate("member_sendim_nolink")."\";");
eval ("\$buddy_nick= \"".getTemplate("member_showprofil_textlink")."\";");
eval ("\$buddy_list.= \"".getTemplate("userinfo_buddy_row")."\";");
}
if ($buddy_list!='') {eval ("\$show_buddys.= \"".getTemplate("userinfo_buddy")."\";");}
}
// --> Buddy Liste im Profil
if ($config[member_gbook]==1 && getrights("user")=="true") {eval ("\$info_user_gbook= \"".getTemplate("userinfo_gbook_linkbox")."\";");}
include ("login/inc.nav_user.php");
eval ("\$site_body.= \"".getTemplate("userinfo","")."\";");
}
else {$event=1; include("admin/config/event.php");}
?> | | |
include.php
Hier klicken zum aufklappen 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 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 | | PHP-Quelltext <?php
//---> Session ID aus den Links entfernen
$ini_get1 = ini_get("url_rewriter.tags");
$preg_replace = preg_replace("/^a=href,/","",preg_replace("/,a=href/","",$ini_get1));
ini_set("url_rewriter.tags",$preg_replace);
//---> Session ID aus den Links entfernen
##################################################################
# #
# #
# PHPKIT #
# -------------------------------------------- #
# Copyright (c) 2002-2003 Gersöne & Schott GbR #
# #
# #
# ############################################################## #
# #
# Diese Datei / die PHPKIT-Software ist keine Freeware! #
# Für weitere Information besuchen Sie bitte unsere Webseite #
# oder kontaktieren uns per E-Mail: #
# #
# This file / the PHPKIT-software is not freeware! #
# For further informations please vistit our website #
# or contact us via email: #
# #
# Website: http://www.phpkit.de #
# Email: info@phpkit.de #
# #
# ############################################################## #
# #
# File: /include.php #
# Author: Pierre Gersöne #
# Created: Version 1.6.1 - 2004-05-09 #
# Last Modified: Version 1.6.1 - 2004-13-09 #
# Description: not available for this file #
# #
# ############################################################## #
# #
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER #
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN #
# #
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS #
# FILE AND/OR TO REMOVE THIS INFORMATIONS #
# #
##################################################################
if(defined('pkDIRROOT'))
return false;
if(!defined('pkFRONTEND'))
{
define('pkFRONTEND','public');
define('pkREQUESTEDFILE',basename(__FILE__));
}
# start config
@error_reporting(7);
#error_reporting(E_ALL);
// set some constants
define('pkMICROTIME',microtime());
define('pkTIME',time());
define('pkTIMETODAY',mktime(0,0,0,date('m',pkTIME),date('d',pkTIME),date('Y',pkTIME)));
define('pkEXT','.php'); // standard file extension
// define serval needed directories-paths
define('pkDIRROOT',dirname(__FILE__).'/'); // root-directory for internal use (f.e. include)
define('pkDIRINC',pkDIRROOT.'inc/'); // base source directory
define('pkDIRADMIN',pkDIRINC.'admin/'); // source directory - admin scripts
define('pkDIRCLASS',pkDIRINC.'class/'); // source directory - classes
define('pkDIRFUNC',pkDIRINC.'func/'); // source directory - functions
define('pkDIRLANG',pkDIRINC.'lang/'); // source directory - language packs
define('pkDIRPUBLIC',pkDIRINC.'public/'); // source directory - public scripts
define('pkWWWROOT',pkFRONTEND=='public' ? './' : './../'); // web-root for use in links
define('pkWWWSELF',basename(__FILE__));
if(!@include_once(pkDIRROOT.'admin/config/inc.sql.php'))
{
header('Location: '.pkWWWROOT.'install'.pkEXT);
exit;
}
require_once(pkDIRROOT.'admin/config/inc.dbtabs.php');
require_once(pkDIRFUNC.'default'.pkEXT);
require_once(pkDIRROOT.'admin/lib/lib_access'.pkEXT);
require_once(pkDIRROOT.'admin/lib/lib_parse'.pkEXT);
require_once(pkDIRROOT.'admin/lib/lib_forum'.pkEXT);
if(str_replace(".","",phpversion())<410)
getpost410vars();
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);
}
@ini_set("session.use_cookies","1");
pkLoadClass($ENV,'env');
pkLoadClass($SQL,'sql');
pkLoadClass($SESSION,'session');
if(!$SQL->connect()) {
header('Location: '.pkWWWROOT.'info.php?error=1');
exit();
}
$DB=&$SQL;
if(!$config=$DB->fetch_assoc($DB->query("SELECT * FROM ".$db_tab['config']." WHERE profil_active=1 LIMIT 1")))
{
header('Location: '.pkWWWROOT.'info.php');
exit();
}
$lang=array();
$LANG=&$lang;
pkLoadLang();
$PARSE=new PARSE();
$FORUM=new FORUM();
//Konfigurationswerte zur Erprobung noch nicht über Adminbereich einstellbar
$config['cookie_path']='/';
$config['cookie_domain']='';
$config['cookie_secure']=0;
$config['smilie_dir']='images/smilies';
$config['image_archive']='content/images';
$config['time_offset']=0; // ausgleich kleinerer Serverzeitabweichung in Sekunden
$config['move_logout']="path=start.php"; // Weiterleitung nach dem Logout
$config['move_login']="path=start.php"; // Weiterleitung nach dem Login falls keine Rückleitung vorhanden
$config['im_max']='50';
$config['forum_threadtitle_cut']=25;
$config['forum_threadautor_cut']=10;
$config['username_cut']=18;
$config['sidelinkfull_pages']=3;
//---Community
$config['nb_community_box']=2; //1=classic, 2=login-form
//---Forenticker
$config['nb_newthreads_scut']=0; //stringcut
$config['nb_newthreads_break']=5; //anzahl
//---Neue Forenthemen
$config['nb_curthreads_scut']=0; //stringcut
$config['nb_curthreads_break']=5; //anzahl
//---Zufallsartikel
$config['nb_randarticle_cur']=150; //Text kürzen
//---Zufallsartikel
$config['nb_newarticle_cur']=150; //Text kürzen
$config['template_dir']='templates';
$config['imagedir']='images';
//####################################################
unset($ADMINACCESS);
$event=NULL;
$USER=array();
$thisUSER=array();
$thisUSER['ipaddr']=getenv('REMOTE_ADDR');
$thisUSER['browser']=getenv('HTTP_USER_AGENT');
$thisUSER['referer']=getenv('HTTP_REFERER');
$session_expire=1800;
$time_guest=3600*24*30;
$time_now=pkTIME;
$guest_expire=$cookie_expire=pkTIME+$time_guest;
$expire=pkTIME+$session_expire;
$record_expire=pkTIME-(3600*$config['referer_delete']*7);
$present_time=formattime('','','extend');
$current_url=preg_replace('/[&|?]'.session_name().'=[^&]*/',"",preg_replace('/[&|?]nid=[^&]*/',"",getenv('REQUEST_URI')));
$current_path=preg_replace('/[&|?]'.session_name().'=[^&]*/',"",preg_replace('/[&|?]nid=[^&]*/',"",getenv('QUERY_STRING')));
if(!ipcheck($thisUSER['ipaddr']))
{
header('Location: '.pkWWWROOT.'info.php?error=3');
exit;
}
session_name("PHPKITSID");
$dounset=false;
$DB->query("DELETE FROM ".$db_tab['session']." WHERE session_expire<'".pkTIME."'");
if(isset($_REQUEST['PHPKITSID']))
$session=$DB->fetch_array($DB->query("SELECT session_id, session_userid FROM ".$db_tab['session']." WHERE session_id='".$_REQUEST['PHPKITSID']."' LIMIT 1"));
else
$session=array('session_id'=>0);
if(strlen($session['session_id'])=='32')
{
session_id($session['session_id']);
session_start();
session_getvars();
if($USER['status']=='ban')
{
header('Location: '.pkWWWROOT.'info.php?error=3');
exit();
}
if($_REQUEST['firstlog']==1 || $_REQUEST['relog']==1)
$dounset=true;
elseif($USER['sip']==$thisUSER['ipaddr'])
{
if(($USER['status']=='admin' || $USER['status']=='mod' || $USER['status']=='member' || $USER['status']=='user') && $session['session_userid']>0)
{
$userinfo=$DB->fetch_array($DB->query("SELECT user_status FROM ".$db_tab['user']." WHERE user_name='".$USER['name']."' AND user_pw='".$USER['pass']."' AND user_id='".$session['session_userid']."' LIMIT 1"));
if($userinfo['user_status']==$USER['status'])
$DB->query("UPDATE ".$db_tab['user']." SET logtime='".pkTIME."' WHERE user_name='".$USER['name']."' AND user_pw='".$USER['pass']."' AND user_id=".$session['session_userid']);
else
$dounset=true;
}
elseif($USER['status']=='guest')
{
if($USER['sip']!=$thisUSER['ipaddr'])
$dounset=true;
}
else
$dounset=true;
}
else
$dounset=true;
if($dounset || $_REQUEST['logout']==1 || $_REQUEST['login']==1)
{
if(session_is_registered("USER"))
{
session_unregister("USER");
session_unset();
@session_destroy();
}
$USER=array();
phpkitcookie("PHPKITSID");
phpkitcookie("user_id");
phpkitcookie("user_name");
phpkitcookie("user_pw");
$DB->query("DELETE FROM ".$db_tab['session']." WHERE session_id='".$session['session_id']."' LIMIT 1");
}
else {
$DB->query("UPDATE ".$db_tab['session']." SET session_expire='".$expire."', session_url='".$current_url."' WHERE session_id='".$session['session_id']."'");
$PHPKITSID=$_REQUEST['PHPKITSID']=session_id();
}
}
if(!session_is_registered("USER") || isset($_REQUEST['login']) || isset($_REQUEST['logout']) || isset($_REQUEST['firstlog']) || isset($_REQUEST['relog']) || $dounset)
{
$error=0;
if($_REQUEST['relog']==1)
{
if($userinfo=$DB->fetch_array($DB->query("SELECT user_pw FROM ".$db_tab['user']." WHERE user_name='".urldecode($_REQUEST['user'])."' AND uid='".$_REQUEST['uid']."' LIMIT 1")))
$_REQUEST['login']=1;
else
$error=3;
}
if(isset($_REQUEST['login']) || isset($_REQUEST['firstlog']))
{
if(trim($_REQUEST['user'])!='')
{
if(isset($_GET['firstlog']) || isset($_GET['relog']))
$username=urldecode($_GET['user']);
else
$username=$_REQUEST['user'];
if(isset($_GET['relog']))
$userpass=$userinfo['user_pw'];
elseif(trim($_REQUEST['userpw'])!='')
$userpass=md5($_REQUEST['userpw']);
else
$error=2;
}
else
$error=1;
if($error)
{
header('Location: include.php?path=login/login.php&error='.$error.'session_id());
exit();
}
}
else
{
if(isset($_COOKIE['user_id']))
$userid=intval($_COOKIE['user_id']);
else
$userid=0;
if(isset($_COOKIE['user_name']))
$username=$_COOKIE['user_name'];
else
$username=NULL;
if(isset($_COOKIE['user_pw']))
$userpass=$_COOKIE['user_pw'];
else
$userpass=NULL;
if($userid && $username && $userpass)
$_REQUEST['login_setcookie']=1;
}
$userinfo=array();
if($userid>0 || isset($_REQUEST['login']) || isset($_REQUEST['firstlog']))
{
$userinfo=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['user']." WHERE user_name='".$username."' AND user_pw='".$userpass."' LIMIT 1"));
if($userinfo['user_name']!=$username || $userinfo['user_pw']!=$userpass)
{
if(isset($_REQUEST['login']) || isset($_REQUEST['firstlog']))
{
header('Location: '.pkWWWROOT.'include.php?path=login/login.php&error=3session_id());
exit;
}
unset($userinfo);
}
elseif($userinfo['user_activate']!=1 && $userinfo['user_status']!='admin' && $_REQUEST['event']!=30)
{
header ('Location: '.pkWWWROOT.'include.php?event=27');
exit;
}
}
if(empty($userinfo) || isset($_REQUEST['logout']))
{
srand((double)microtime()*1000000);
$guest_uid=md5(uniqid(rand()));
$userinfo=array();
$userinfo['user_status']='guest';
$userinfo['user_id']='0';
$userinfo['user_name']=$lang['guest_status'];
$userinfo['user_nick']=$lang['guest_status'];
$userinfo['user_pw']=$guest_uid;
$userinfo['user_groupid']=0;
$userinfo['user_email']='';
$userinfo['user_sex']='';
$userinfo['user_hpage']='';
$userinfo['user_icqid']='';
$userinfo['user_design']=0;
$userinfo['user_imoption']=0;
}
srand((double)microtime()*1000000);
$sid=md5(uniqid(rand()));
if(session_is_registered("USER"))
{
session_unregister("USER");
session_unset();
@session_destroy();
}
if($config['user_ghost']!=1)
$userinfo['user_ghost']=0;
session_id($sid);
session_start();
session_register("USER");
$HTTP_SESSION_VARS['USER']['sip']=$_SESSION['USER']['sip']=$USER['sip']=$thisUSER['ipaddr'];
$HTTP_SESSION_VARS['USER']['sbrowser']=$_SESSION['USER']['sbrowser']=$USER['sbrowser']=$thisUSER['browser'];
$HTTP_SESSION_VARS['USER']['status']=$_SESSION['USER']['status']=$USER['status']=$userinfo['user_status'];
$HTTP_SESSION_VARS['USER']['id']=$_SESSION['USER']['id']=$USER['id']=$userinfo['user_id'];
$HTTP_SESSION_VARS['USER']['name']=$_SESSION['USER']['name']=$USER['name']=$userinfo['user_name'];
$HTTP_SESSION_VARS['USER']['nick']=$_SESSION['USER']['nick']=$USER['nick']=$userinfo['user_nick'];
$HTTP_SESSION_VARS['USER']['pass']=$_SESSION['USER']['pass']=$USER['pass']=$userinfo['user_pw'];
$HTTP_SESSION_VARS['USER']['group']=$_SESSION['USER']['group']=$USER['group']=$userinfo['user_groupid'];
$HTTP_SESSION_VARS['USER']['email']=$_SESSION['USER']['email']=$USER['email']=$userinfo['user_email'];
$HTTP_SESSION_VARS['USER']['sex']=$_SESSION['USER']['sex']=$USER['sex']=$userinfo['user_sex'];
$HTTP_SESSION_VARS['USER']['hpage']=$_SESSION['USER']['hpage']=$USER['hpage']=$userinfo['user_hpage'];
$HTTP_SESSION_VARS['USER']['icqid']=$_SESSION['USER']['icqid']=$USER['icqid']=$userinfo['user_icqid'];
$HTTP_SESSION_VARS['USER']['design']=$_SESSION['USER']['design']=$USER['design']=$userinfo['user_design'];
$HTTP_SESSION_VARS['USER']['sigoption']=$_SESSION['USER']['sigoption']=$USER['sigoption']=$userinfo['user_sigoption'];
$HTTP_SESSION_VARS['USER']['lastlog']=$_SESSION['USER']['lastlog']=$USER['lastlog']=$userinfo['lastlog'];
$HTTP_SESSION_VARS['USER']['imoption']=$_SESSION['USER']['imoption']=$USER['imoption']=$userinfo['user_imoption'];
if($userinfo['sid']!='')
$HTTP_SESSION_VARS['USER']['logtime']=$_SESSION['USER']['logtime']=$USER['logtime']=$userinfo['logtime'];
else
$HTTP_SESSION_VARS['USER']['logtime']=$_SESSION['USER']['logtime']=$USER['logtime']=pkTIME;
phpkitcookie('user_id');
phpkitcookie('user_name');
phpkitcookie('user_pw');
phpkitcookie('PHPKITSID');
if($_REQUEST['login_setcookie']==1 || $_REQUEST['firstlog']==1 || $_REQUEST['relog']==1 || $USER['id']=='0')
{
phpkitcookie('user_id',$userinfo['user_id'],$cookie_expire);
phpkitcookie('user_name',$userinfo['user_name'],$cookie_expire);
phpkitcookie('user_pw',$userinfo['user_pw'],$cookie_expire);
phpkitcookie('PHPKITSID',session_id(),$cookie_expire);
}
$DB->query("INSERT INTO ".$db_tab['session']." (session_id,session_expire,session_userid,session_ip,session_browser,session_url,session_ghost) VALUES ('".session_id()."','".$expire."','".$USER['id']."','".$USER['sip']."','".$USER['sbrowser']."','".$current_url."','".$userinfo['user_ghost']."')");
$DB->query("DELETE FROM ".$db_tab['session']." WHERE session_userid='".$USER['id']."' AND session_ip='".$USER['sip']."' AND session_browser='".$USER['sbrowser']."' AND session_id!='".session_id()."'");
// Welcome IM - (c)2006
// Idee & Umsetzung 1.6.1: Onkel Hotte
// Umsetzung & Erweiterung 1.6.03/1: headless
if(isset($_REQUEST['login']) && $_REQUEST['remove_page']!='disabled' || $_REQUEST['firstlog']==1) {
$getwelcomeuser=$DB->fetch_array($DB->query("SELECT user_id, logtime FROM ".$db_tab['user']." WHERE user_id='".$USER['id']."' AND logtime='0'"));
$DB->query("UPDATE ".$db_tab['user']." SET lastlog='".pkTIME."' WHERE user_id='".$USER['id']."'");
if($getwelcomeuser['logtime']=='0') {
$getiminfo=$DB->fetch_array($DB->query("SELECT welcome_imaction, welcome_imtext, welcome_imtitle FROM ".$db_tab['config']." WHERE profil_active='1'"));
if($getiminfo['welcome_imaction']=='1') {
$DB->query("INSERT INTO ".$db_tab['im']." (im_to, im_autor, im_title, im_text, im_time) VALUES ('".$USER['id']."', '0', '".$getiminfo['welcome_imtitle']."', '".$getiminfo['welcome_imtext']."', '".time()."')");
$DB->query("UPDATE ".$db_tab['im']." SET im_delautor='1' WHERE im_autor='0'");
}
}
/*** / END ***/
if($_REQUEST['remove_page']=='')
$remove_page="include.php";
else
$remove_page=$_REQUEST['remove_page'];
header('Location: '.pkWWWROOT.$remove_page.'?event=2&moveto='.urlencode($_REQUEST['remove_path']).'session_id());
exit;
}
elseif($_REQUEST['event']==30)
{
header('Location: '.pkWWWROOT.'include.php?event=30session_id());
exit;
}
elseif(isset($_REQUEST['logout']))
{
if($_REQUEST['remove_path']=='')
$remove_path=$config['move_logout'];
else
$remove_path=$_REQUEST['remove_path'];
header('Location: '.pkWWWROOT.'include.php?event=3&moveto='.urlencode($remove_path).'session_id());
exit;
}
elseif($_REQUEST['relog']==1 || $_REQUEST['firstlog']==1)
{
header('Location: '.pkWWWROOT.'include.php?path=login/profile.php&event=32session_id());
exit;
}
else
$PHPKITSID=$_REQUEST['PHPKITSID']=session_id();
}
unset($session);
if(pkFRONTEND!='public')
return;
if(!$config['user_design']==1 || !$style=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['style']." WHERE style_id='".$USER['design']." AND style_user=1' LIMIT 1")))
{
$style=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['style']." WHERE style_id='".$config['site_style']."' LIMIT 1"));
}
if(@is_dir($style['style_images'].'/images'))
$config['imagedir']=$style['style_images'].'/images';
if(($config['site_eod']!=1 || ($config['forum_eod']!=1 && $config['forum_standalone']==1)) && $USER['status']!="admin")
{
if($config['forum_eod']!=1 && $config['forum_standalone']==1)
{
header('Location: '.pkWWWROOT.'info.php?error=4');
}
else
{
header('Location: '.pkWWWROOT.'info.php?error=2');
}
exit;
}
$gettemplates=$DB->query("SELECT template_name, template_value FROM ".$db_tab['templates']." WHERE template_packid='".$style['style_template']."'");
while($templates=$DB->fetch_array($gettemplates))
{
$template_cache[$templates['template_name']]=str_replace("\"","\\\"",$templates['template_value']);
}
if($style['style_template']!= -1 && $style['style_template']!= 0)
{
$templatedir=$DB->fetch_array($DB->query("SELECT templatepack_dir FROM ".$db_tab['templatepack']." WHERE templatepack_id=".$style['style_template'].""));
if(@is_dir($templatedir['templatepack_dir']) && $templatedir['templatepack_dir']!='')
$config['template_dir']=$templatedir['templatepack_dir'];
}
if(pkREQUESTEDFILE!=basename(__FILE__))
return;
# end config
$site=$site_body=$navigation_top=$navigation_left=$navigation_right=$navigation_bottom=$site_refresh=$path=$file=$src='';
$DB->sqlerrorreport(1);
pkLoadFunc('public');
if(isset($_REQUEST['event']) && !isset($event))
$event=$_REQUEST['event'];
if($event)
include("admin/config/event.php");
if(isset($_REQUEST['path']) && !empty($_REQUEST['path']))
$path=$_REQUEST['path'];
elseif(isset($_REQUEST['file']) && !empty($_REQUEST['file']))
$file=$_REQUEST['file'];
elseif(isset($_REQUEST['src']) && !empty($_REQUEST['src']))
$src=$_REQUEST['src'];
else
$path='start';
if($path=='include.php' || $path=='blank.php' || $path=='popup.php')
{
unset($path);
pkEvent('page_not_found');
}
else {
$getblacklist=$DB->query("SELECT blacklist_url, blacklist_userstatus FROM ".$db_tab['blacklist']);
while($blacklist=$DB->fetch_array($getblacklist)) {
if(eregi($blacklist['blacklist_url'],$current_url) && $blacklist['blacklist_url']!='')
{
if(getrights($blacklist['blacklist_userstatus'])!="true")
{
$event=1;
break;
}
}
}
if($event==1)
pkEvent('access_refused');
else
{
ob_start();
/*try to include via the new source directory (since version 1.6.1)*/
switch($path) #exceptions till all links to this file are changed
{
case 'login/edtprofil.php' :
$path='usereditprofile';
break;
case 'login/extoption.php' :
$path='userextoptions';
break;
case 'forum/index.php' :
case 'forum/main.php' :
$path='forumsdisplay';
break;
}
if(!empty($path))
$path_filename=pkDIRPUBLIC.(substr($path,-4)=='.php' ? substr(basename($path),0,-4) : $path).pkEXT;
if(filecheck($path_filename))
{
include($path_filename);
}
elseif(filecheck($path) && strstr(strtolower($path),'.php') && !strstr(strtolower($path),'http://') && !strstr(strtolower($path),'https://') && !strstr(strtolower($path),'ftp://') && !strstr($path,"../"))
{
include($path);
}
elseif(!strstr(strtolower($file),'http://') && filecheck($file) && !strstr($file,"../") && file_extension($file)!='php')
{
$site_body.=implode('',file($file));
}
elseif(!empty($src))
{
$src=pkEntities($src);
eval("\$site_body.=\"".getTemplate("site_iframe")."\";");
}
else
pkEvent('page_not_found');
$site_body.=ob_get_contents();
ob_end_clean();
}
}
pkPublicCalendarUpdate();
$logo_size=@getimagesize($config['site_logo']);
$logo_size=$logo_size[3];
$logo_path=$config['site_logo'];
if($config['site_adview']==1) {
pkLoadClass($admanage,'admanage');
$adview=$admanage->get();
}
if($config['tc_status']==0)
{
$DB->query("DELETE FROM ".$db_tab['navigationcat']." WHERE navigationcat_box='navbox.tagcloud.php'");
}
elseif($config['tc_status']==1 && $config['tc_mode']==0)
{
$DB->query("DELETE FROM ".$db_tab['navigationcat']." WHERE navigationcat_box='navbox.tagcloud.php'");
$sfp = explode("\n", $config['site_frontpage']);
$sfp = is_array($sfp) ? $sfp : array();
if(!in_array("misc/cloud.php", $sfp))
{
$sfp[]="misc/cloud.php";
$ret=implode('\n',$sfp);
$DB->query("UPDATE ".$db_tab['config']." SET site_frontpage='".$ret."'");
}
}
elseif($config['tc_status']==1 && $config['tc_mode']==1)
{
$sfp = explode("\n", $config['site_frontpage']);
$sfp = is_array($sfp) ? $sfp : array();
if(in_array("misc/cloud.php", $sfp))
{
$k = array_search('misc/cloud.php', $sfp);
unset($sfp[$k]);
$ret = implode('\n',$sfp);
$DB->query("UPDATE ".$db_tab['config']." SET site_frontpage='".$ret."'");
}
list($nb)=$DB->fetch_row($DB->query("SELECT navigationcat_id FROM ".$db_tab['navigationcat']." WHERE navigationcat_box='navbox.tagcloud.php'"));
if(!$nb)
{
$q_nb = array("(navigationcat_order,navigationcat_align,navigationcat_title,navigationcat_box,navigationcat_status,navigationcat_rights,navigationcat_template,navigationcat_option,navigationcat_open,navigationcat_showtitle,navigationcat_link) VALUES ('1','0','Tagcloud','navbox.tagcloud.php','1','guest','','1','1','1','')");
foreach($q_nb as $nb_query)
{
$DB->query("REPLACE INTO ".$db_tab['navigationcat']." ".$nb_query." ");
}
}
}
elseif($config['tc_status']==1 && $config['tc_mode']==2)
{
list($nb)=$DB->fetch_row($DB->query("SELECT navigationcat_id FROM ".$db_tab['navigationcat']." WHERE navigationcat_box='navbox.tagcloud.php'"));
if(!$nb)
{
$q_nb = array("(navigationcat_order,navigationcat_align,navigationcat_title,navigationcat_box,navigationcat_status,navigationcat_rights,navigationcat_template,navigationcat_option,navigationcat_open,navigationcat_showtitle,navigationcat_link) VALUES ('1','0','Tagcloud','navbox.tagcloud.php','1','guest','','1','1','1','')");
foreach($q_nb as $nb_query)
{
$DB->query("REPLACE INTO ".$db_tab['navigationcat']." ".$nb_query." ");
}
}
$sfp = explode("\n", $config['site_frontpage']);
$sfp = is_array($sfp) ? $sfp : array();
if(!in_array("misc/cloud.php", $sfp))
{
$sfp[]="misc/cloud.php";
$ret=implode('\n',$sfp);
$DB->query("UPDATE ".$db_tab['config']." SET site_frontpage='".$ret."'");
}
}
// Ultralight IM Center
include ("login/quick_im.php");
// Ultralight IM Center
include("navigation/navigation.php");
include("style.php");
# BOT / USER Online - Start
$botid = 4218;
$botpath[] = "/";
$botpath[] = "/forum.php";
$botpath[] = "/games.php";
$botpath[] = "/gbook.php";
$botpath[] = "/user.php&id=1";
$botpath[] = "/user.php&id=2";
$botpath[] = "/user.php&id=26";
mt_srand((double)microtime()*1000000);
$randombp = mt_rand('0',count($botpath)-1);
$botpath_random = $botpath[$randombp];
$botsession = $DB->fetch_array($DB->query("SELECT user_name FROM ".$db_tab['user']." WHERE user_id='".$botid."' LIMIT 1"));
if($botsession['user_name'] != "") {
$botsession = $DB->fetch_array($DB->query("SELECT session_ip FROM ".$db_tab['session']." WHERE session_userid='".$botid."' LIMIT 1"));
if($botsession['session_ip'] == "") {
$DB->query("INSERT INTO ".$db_tab['session']." (session_id,session_expire,session_userid,session_ip,session_browser,session_url,session_ghost) VALUES ('".$botid."','".$expire."','".$botid."','GoTraFee Bot','Browser','".$botpath_random ."','0')");
}
}
# BOT / USER Online - Ende
eval("\$site_kopf= \"".getTemplate("site_kopf")."\";");
eval("\$site_metatags= \"".getTemplate("site_metatags")."\";");
$time_stop=pkParsertime();
if(adminaccess('adminarea'))
eval("\$sitefuss_adminlogin= \"".getTemplate("site_fuss_adminlogin")."\";");
else
$sitefuss_adminlogin='';
if(empty($config['site_copy']))
$config['site_copy']=pkEntities($config['site_name']).' © '.date('Y');
eval("\$site_fuss= \"".getTemplate("site_fuss")."\";");
eval("\$site_content= \"".getTemplate("site_body")."\";");
eval("echo \$site= \"".getTemplate("site")."\";");
/* proMC */
require_once('promc.php');
/* proMC */
pkPublicRefererLog();
?> | | |
|
|
|
|
|
|
|
|
WEBI Unberechenbares Urgestein |
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 10:51 Uhr |
|
|
|
Mir ist nicht bekannt in wie fern der Smilieshop oder aber das ProGate mit den beiden von dir publizierten Links zusammenhängt, allerdings wird in beiden Datein, der userinfo.php als auch comment.php das PSP (Punktesystem Pro) implementiert sein, also wird sich der Fehler wohl durch die Implementierung dessen eingeschlichen haben. Testweise die Änderungen an besagten Datein rückgängig machen, sollte es anschliessend funktionieren, die Codepassagen posten, welche zu den obrig genannten Fehlern führen.
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 11:29 Uhr |
|
|
|
Hi,
hab alles entfernt von jeden Hack.... nichts funktioniert ;/
Jetzt geht sogar die ganze Seite nimmer. Nurnoch Weiß
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 13:40 Uhr |
|
|
|
Was mir jetzt nur aufgefallen ist, ist das du in den letzten beiden Datein keinerlei änderungen für das PSP vorgenommen hast. Soweit mir noch bekannt. sollten da auch noch div. änderungen vorgenommen werden.
Mache mal in zukunft Backups der Datein, die du bearbeitest.
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 15:10 Uhr |
|
|
|
Ich habe ja ein BackUp jetzt draufgespielt bis auf die Datenbank.
Punktesystem Funktioniert, bis auf eine Rätzelhafte anzeige im Profil bei der Statisik die sind nämlich Toppelt angezeigt.
Und ich habe jetzt erstmal den Smilieshop Installiert nur ist mir da ein Fehler aufgefallen.
Ich habe Smilies eingebettet für 15 Punkte und wenn ich den code z.b. :smilie1: verwende und ihn mir dann kaufe und es im Kommentar wiederrum Versuche wird er angezeigt. Jetzt hab ich mal versucht den Smilie mit einen anderen Account einfach den Code im Kommentar zu schreiben und das ohne ihn zu kaufen, nur der Smilie wird angezeigt. Eig. sollte der Smilie ja dann nur für die die den gekauft haben Funktionieren bzw. der Smilie Code. Nur warum dann für den Account der ihn nicht gekauft hat auch? O.o
Ich hab alles so eingebaut wie die es wollten in der Anleitung.
|
|
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 19:56 Uhr |
|
|
|
Zitat Original geschrieben von k!r!ka
Der weiße Bildschirm ist also vergangenheit? . |
Nuja ich hab das Pro Gate nicht eingebunden. Bisher. Daher denk ich das mal.
Zitat Original geschrieben von k!r!ka
Aber davon mal abgesehen ist das Addon nutzlos. Solange Bilder-Codes eh aktiv sind, bringt das Ding doch gar nichts, da jeder kaufbare Smilie über den IMG-Code eingefügt werden könnte.. |
Ich weis, nuja aber ist ne kleine spielerrei
Ich muss die datei hochladen, weil sonst hier euer KIT-NO Späm alarm schlägt...
|
|
|
|
|
|
|
|
|
|
02.09.2012 - 20:12 Uhr |
|
|
|
Zitat Original geschrieben von inspireDe
Zitat Original geschrieben von k!r!ka
Der weiße Bildschirm ist also vergangenheit? . |
Nuja ich hab das Pro Gate nicht eingebunden. Bisher. Daher denk ich das mal.
Zitat Original geschrieben von k!r!ka
Aber davon mal abgesehen ist das Addon nutzlos. Solange Bilder-Codes eh aktiv sind, bringt das Ding doch gar nichts, da jeder kaufbare Smilie über den IMG-Code eingefügt werden könnte.. |
Ich weis, nuja aber ist ne kleine spielerrei
Ich muss die datei hochladen, weil sonst hier euer KIT-NO Späm alarm schlägt... |
EDIT: Selbst wenn ich die fehlenden codes einfüge, und dann es im kommentarfeld ausprobiere mit einen neuen smilie code naja funktioniert es net
|
|
|
|
|
|
|
|
Ähnliche Themen |
|
|
|
|
|
|
|
|