|
|
Latest News |
Latest Threads |
|
 |
55.511 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
Adminberreich lässt sich nicht mehr ändern. 20 Beiträge in diesem Thema |
|
|
 |
|
 |
14.06.2009 - 09:05 Uhr |
|
|
|
Hallo
Ich hab heut morgen gemerkt als ich im Adminbereich den Copyright von 2008 auf 2009 ändern wollte dass er das nicht abspeichert.
Sonst geht, scheint es, alles. Das heisst die Webseite funzt. Nur mit dem ändern im Adminbereich gibs Probleme.
Eingebaut wurde vor einiger Zeit der IM Begrenzer von KitCrafting. Da das ganze funktioniert hat, und ich im Adminbereicht nichts geändert hatte, hab ich Dösel natürlich das Backup gelöscht.

|
|
|
|
|
|
|
 |
|
 |
14.06.2009 - 10:07 Uhr |
|
|
|
Geht der Konfigurationsbereich komplett nicht, oder nur der Basis-Bereich?
|
|
|
|
|
|
|
 |
|
 |
14.06.2009 - 10:11 Uhr |
|
|
|
BB Code deaktivieren und aktivieren geht.
Mitgliederoptionen geht auch. Zb: Account löschen dürfen oder nicht .........
Serverzeit ändern dagegen geht nicht. AutoIM geht nicht.
|
|
|
|
|
|
|
 |
|
 |
14.06.2009 - 12:02 Uhr |
|
|
|
Von der 42 bis 125
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 | | PHP-Quelltext if ($do=='basic' or $do=='all') {
if ($ACTION==$_POST['save']) {
$site_name=addslashes($_POST['site_name']);
$site_title=addslashes($_POST['site_title']);
$parse_url=explode("/",addslashes($_POST['site_url'])); unset($site_url); if (is_array($parse_url)) {foreach ($parse_url as $u) {$u=trim($u); if (!eregi("http",$u) && $u!="") {if ($site_url=="") {$site_url="http://".$u;} else {$site_url.="/".$u;}}}} unset($parse_url);
$site_urls=addslashes($_POST['site_urls']);
$site_copy=addslashes($_POST['site_copy']);
if (!emailcheck($_POST['site_email'],0)) {unset($_POST['site_email']);}
else {$site_email=addslashes($_POST['site_email']);}
$site_width=$_POST['site_width'];
$time_gmtzone=$_POST['time_gmtzone'];
$DB->query("UPDATE ".$db_tab['config']." SET site_name='".$site_name."', site_title='".$site_title."', site_url='".$site_url."', site_urls='".$site_urls."', site_email='".$site_email."', site_copy='".$site_copy."', site_width='".$site_width."', time_gmtzone='".$time_gmtzone."', version_check='".$_POST['version_check']."', site_logo='".$_POST['site_logo']."', site_adview='".$_POST['site_adview']."', site_style='".$_POST['site_style']."', templatename='".$_POST['templatename']."' WHERE profil_id='".$config['profil_id']."´");
}
else {
unset($i);
$getconfiginfo=$DB->query("SELECT profil_id, profil_name, profil_active FROM ".$db_tab['config']." ORDER by profil_name ASC");
while ($configinfo=$DB->fetch_array($getconfiginfo)) {
if ($config['profil_id']==$configinfo['profil_id']) {$option_selected=' selected';}
eval ("\$profil_option.= \"".templateinclude("config_profil_option")."\";");
unset($option_selected);
unset($option_selected2);
$i++;
}
$getstyles=$DB->query("SELECT style_id, style_name FROM ".$db_tab['style']." ORDER by style_name ASC");
while ($styles=$DB->fetch_array($getstyles)) {
$site_style_list.='<option value="'.$styles['style_id'].'"';
if ($styles['style_id']==$config['site_style']) $site_style_list.=' selected';
$site_style_list.='>'.$styles['style_name'].'</option>';
}
if ($i>1) {eval ("\$profil_delete= \"".templateinclude("config_profil_delete")."\";");}
eval ("\$site_body.= \"".templateinclude("config_profil")."\";");
$site_name=htmlentities(stripslashes($config['site_name']));
$site_title=htmlentities(stripslashes($config['site_title']));
$site_url=htmlentities(stripslashes($config['site_url']));
$site_urls=htmlentities(stripslashes($config['site_urls']));
$site_copy=htmlentities(stripslashes($config['site_copy']));
if ($config['site_width']=='770') $width770=' selected';
elseif ($config['site_width']=='980') $width980=' selected';
else $width100=' selected';
if ($config['site_adview']=='1') $adview1=' selected';
else $adview0=' selected';
if ($config['time_gmtzone']<0) {$v=eregi_replace("-|\.","",$config['time_gmtzone']); $tz="m".$v;}
elseif ($config['time_gmtzone']>0) {$v=eregi_replace("\+|\.","",$config['time_gmtzone']); $tz="p".$v;}
else $tz=0;
$var="info_".$tz;
$$var="selected";
if ($config['templatename']==1) $templatename1='selected';
else $templatename0='selected';
if ($config['version_check']==1) $vcheck1='checked';
else $vcheck0='checked';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_basic")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="mailer" or $do=="all") {
if ($ACTION==$_POST['save']) {
$smtp_server=addslashes($_POST['smtp_server']);
$site_mail_txt=addslashes($_POST['site_mail_txt']);
$site_mail_htm=addslashes($_POST['site_mail_htm']);
$DB->query("UPDATE ".$db_tab['config']." SET smtp_server='".$smtp_server."',site_mail_txt='".$site_mail_txt."',site_mail_htm='".$site_mail_htm."' WHERE profil_id='".$config['profil_id']."'");
}
else {
$smtp_server=stripslashes($config['smtp_server']);
$site_mail_txt=stripslashes($config['site_mail_txt']);
$site_mail_htm=stripslashes($config['site_mail_htm']);
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_mailer")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
} | |  |
|
|
|
|
|
|
|
 |
|
 |
14.06.2009 - 19:07 Uhr |
|
|
|
Oh Mann............ Danke.
Meine Brille scheint wohl nicht mehr zu reichen.
Könnte das mit dem AutoIM das gleiche sein, nur an anderer Stelle?

|
|
|
|
|
|
|
 |
|
 |
14.06.2009 - 20:49 Uhr |
|
|
|
Möglich wäre es. Könnte aber auch sein, das, wie oben gesagt, ein Komma fehlt, eine SQL-Anweisung fehlerhaft ist, in der SQL-Anweisung Spalten angesprochen werden, die nicht (mehr) existieren etc.
Wenn du nicht weiter kommst, kannst ja den Bereich hier mal posten.
|
|
|
|
|
|
|
 |
|
 |
15.06.2009 - 19:38 Uhr |
|
|
|
Ich schick mal die ganze config.php weil ich nicht weiss wo es steht:
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 | | PHP-Quelltext
<?php
// Kit-NoSpam v1.0 fuer PHPKit 1.6.1
// Idee: Onkel Hotte
// www.kit-security.de (c)2006
// Version v1.0 - 27.07.2006
if (adminaccess('config')) {
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';
if ($_REQUEST['do']!='' && $_REQUEST['do']!='all') {
$do=$_REQUEST['do'];
unset($toplink);
}
else {
$do='all';
eval ("\$toplink= \"".templateinclude("config_all_toplink")."\";");
eval ("\$site_body.= \"".templateinclude("config_all_links")."\";");
}
if ($do=='profil' or $do=='newprofil') {
if ($ACTION==$_POST['create']) {header("location: admin.php?do=newprofilsession_id()); exit();}
elseif ($ACTION==$_POST['save']) {
$DB->query("INSERT INTO ".$db_tab['config']." (profil_name) VALUES ('".$_POST['profil_name']."')");
header("location: admin.php?do=profil&profilid=".$DB->insert_id()."session_id()); exit();
}
if ($ACTION==$_POST['delete']) {
$DB->query("DELETE FROM ".$db_tab['config']." WHERE profil_id='".$_POST['profilid']."'");
$profilid=$DB->fetch_array($DB->query("SELECT profil_id FROM ".$db_tab['config']." LIMIT 1"));
$profilid=$profilid['profil_id'];
}
if (isset($_REQUEST['profilid']) or isset($profilid)) {
if (!isset($profilid)) {$profilid=$_REQUEST['profilid'];}
$DB->query("UPDATE ".$db_tab['config']." SET profil_active=0 WHERE profil_id!='".$profilid."'");
$DB->query("UPDATE ".$db_tab['config']." SET profil_active=1 WHERE profil_id='".$profilid."'");
header("location: admin.php?do=basicsession_id()); exit();
}
}
if ($do=='basic' or $do=='all') {
if ($ACTION==$_POST['save']) {
$site_name=addslashes($_POST['site_name']);
$site_title=addslashes($_POST['site_title']);
$parse_url=explode("/",addslashes($_POST['site_url'])); unset($site_url); if (is_array($parse_url)) {foreach ($parse_url as $u) {$u=trim($u); if (!eregi("http",$u) && $u!="") {if ($site_url=="") {$site_url="http://".$u;} else {$site_url.="/".$u;}}}} unset($parse_url);
$site_urls=addslashes($_POST['site_urls']);
$site_copy=addslashes($_POST['site_copy']);
if (!emailcheck($_POST['site_email'],0)) {unset($_POST['site_email']);}
else {$site_email=addslashes($_POST['site_email']);}
$site_width=$_POST['site_width'];
$time_gmtzone=$_POST['time_gmtzone'];
$DB->query("UPDATE ".$db_tab['config']." SET site_name='".$site_name."', site_title='".$site_title."', site_url='".$site_url."', site_urls='".$site_urls."', site_email='".$site_email."', site_copy='".$site_copy."', site_width='".$site_width."', time_gmtzone='".$time_gmtzone."', version_check='".$_POST['version_check']."', site_logo='".$_POST['site_logo']."', site_adview='".$_POST['site_adview']."', site_style='".$_POST['site_style']."', templatename='".$_POST['templatename']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
unset($i);
$getconfiginfo=$DB->query("SELECT profil_id, profil_name, profil_active FROM ".$db_tab['config']." ORDER by profil_name ASC");
while ($configinfo=$DB->fetch_array($getconfiginfo)) {
if ($config['profil_id']==$configinfo['profil_id']) {$option_selected=' selected';}
eval ("\$profil_option.= \"".templateinclude("config_profil_option")."\";");
unset($option_selected);
unset($option_selected2);
$i++;
}
$getstyles=$DB->query("SELECT style_id, style_name FROM ".$db_tab['style']." ORDER by style_name ASC");
while ($styles=$DB->fetch_array($getstyles)) {
$site_style_list.='<option value="'.$styles['style_id'].'"';
if ($styles['style_id']==$config['site_style']) $site_style_list.=' selected';
$site_style_list.='>'.$styles['style_name'].'</option>';
}
if ($i>1) {eval ("\$profil_delete= \"".templateinclude("config_profil_delete")."\";");}
eval ("\$site_body.= \"".templateinclude("config_profil")."\";");
$site_name=htmlentities(stripslashes($config['site_name']));
$site_title=htmlentities(stripslashes($config['site_title']));
$site_url=htmlentities(stripslashes($config['site_url']));
$site_urls=htmlentities(stripslashes($config['site_urls']));
$site_copy=htmlentities(stripslashes($config['site_copy']));
if ($config['site_width']=='770') $width770=' selected';
elseif ($config['site_width']=='980') $width980=' selected';
else $width100=' selected';
if ($config['site_adview']=='1') $adview1=' selected';
else $adview0=' selected';
if ($config['time_gmtzone']<0) {$v=eregi_replace("-|\.","",$config['time_gmtzone']); $tz="m".$v;}
elseif ($config['time_gmtzone']>0) {$v=eregi_replace("\+|\.","",$config['time_gmtzone']); $tz="p".$v;}
else $tz=0;
$var="info_".$tz;
$$var="selected";
if ($config['templatename']==1) $templatename1='selected';
else $templatename0='selected';
if ($config['version_check']==1) $vcheck1='checked';
else $vcheck0='checked';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_basic")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="mailer" or $do=="all") {
if ($ACTION==$_POST['save']) {
$smtp_server=addslashes($_POST['smtp_server']);
$site_mail_txt=addslashes($_POST['site_mail_txt']);
$site_mail_htm=addslashes($_POST['site_mail_htm']);
$DB->query("UPDATE ".$db_tab['config']." SET smtp_server='".$smtp_server."',site_mail_txt='".$site_mail_txt."',site_mail_htm='".$site_mail_htm."' WHERE profil_id='".$config['profil_id']."'");
}
else {
$smtp_server=stripslashes($config['smtp_server']);
$site_mail_txt=stripslashes($config['site_mail_txt']);
$site_mail_htm=stripslashes($config['site_mail_htm']);
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_mailer")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="frontpage" or $do=="all") {
if ($ACTION==$_POST['save']) {
$site_array=explode("\n",addslashes($_POST['site_frontpage'])); unset($site_frontpage); if (is_array($site_array)) {foreach($site_array as $p) {$p=trim($p); if ($p!='') {$site_frontpage.=$p."\n";}}}
$welcome_eod=$_POST['welcome_eod'];
$welcome_title=addslashes($_POST['welcome_title']);
$welcome_text=addslashes($_POST['welcome_text']);
$DB->query("UPDATE ".$db_tab['config']." SET site_frontpage='".$site_frontpage."', welcome_eod='".$welcome_eod."', welcome_title='".$welcome_title."', welcome_text='".$welcome_text."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['welcome_eod']==1) {$welcome_eod1=" selected";}
else {$welcome_eod0=" selected";}
$welcome_title=htmlentities(stripslashes($config['welcome_title']));
$welcome_text=htmlentities(stripslashes($config['welcome_text']));
$site_frontpage=htmlentities(stripslashes($config['site_frontpage']));
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_frontpage")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="censor" or $do=="all") {
if ($ACTION==$_POST['save']) {
$censor_username=$_POST['censor_username'];
$censor_email=$_POST['censor_email'];
$censor_ip=$_POST['censor_ip'];
$censor_badword=$_POST['censor_badword'];
$DB->query("UPDATE ".$db_tab['config']." SET censor_username='".$censor_username."', censor_email='".$censor_email."', censor_ip='".$censor_ip."', censor_badword='".$censor_badword."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_censor")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="notify" or $do=="all") {
if ($ACTION==$_POST['save']) {
$narray=explode("\n",$_POST['notify_by_register_mail']); unset($notify_by_register_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_register_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_comment_mail']); unset($notify_by_comment_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_comment_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_gbook_mail']); unset($notify_by_gbook_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_gbook_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_forum_mail']); unset($notify_by_forum_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_forum_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_submit_mail']); unset($notify_by_submit_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_submit_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_register_im']); unset($notify_by_register_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_register_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_comment_im']); unset($notify_by_comment_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_comment_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_gbook_im']); unset($notify_by_gbook_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_gbook_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_forum_im']); unset($notify_by_forum_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_forum_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_submit_im']); unset($notify_by_submit_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_submit_im.=$p."\n";}}}
// *** Punktesystem Pro *** Start ***
$narray=explode("\n",$_POST['notify_by_premie_im']); unset($notify_by_premie_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_premie_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_premie_mail']); unset($notify_by_premie_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_premie_mail.=$p."\n";}}}
// *** Punktesystem Pro *** Ende ***
$DB->query("UPDATE ".$db_tab['config']." SET notify_register_m='".$notify_by_register_mail."', notify_comment_m='".$notify_by_comment_mail."', notify_gbook_m='".$notify_by_gbook_mail."', notify_forum_m='".$notify_by_forum_mail."', notify_submit_m='".$notify_by_submit_mail."', notify_register_i='".$notify_by_register_im."', notify_comment_i='".$notify_by_comment_im."', notify_gbook_i='".$notify_by_gbook_im."', notify_forum_i='".$notify_by_forum_im."', notify_submit_i='".$notify_by_submit_im."' WHERE profil_id='".$config['profil_id']."'");
}
else {
unset($sqlcommand); $second_cache=array();
$id_cache=explode("\n",$config['notify_register_i']."\n".$config['notify_comment_i']."\n".$config['notify_gbook_i']."\n".$config['notify_forum_i']."\n".$config['notify_submit_i']);
if (is_array($id_cache)) {
foreach ($id_cache as $id) {
$id=trim($id);
if ($second_cache[$id]=='') {
$second_cache[$id]=$id;
if ($id!='' && $sqlcommand=='') {$sqlcommand="SELECT user_id, user_nick FROM ".$db_tab['user']." WHERE user_id='".$id."'";}
elseif ($id!='') {$sqlcommand.=" OR user_id='".$id."'";}
}
}
if ($sqlcommand!='') {
$getuserinfo=$DB->query($sqlcommand." ORDER by user_id ASC");
while($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_cache[$userinfo[user_id]]=$userinfo;}
}
}
if (is_array($userinfo_cache)) {
if ($config['notify_register_i']!='') {$info=explode("\n",$config['notify_register_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_register_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_comment_i']!='') {$info=explode("\n",$config['notify_comment_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_comment_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_gbook_i']!='') {$info=explode("\n",$config['notify_gbook_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_gbook_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_forum_i']!='') {$info=explode("\n",$config['notify_forum_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_forum_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_submit_i']!='') { $info=explode("\n",$config['notify_submit_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_submit_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
// *** Punktesystem Pro *** Start ***
if ($config['notify_premie_i']!='') { $info=explode("\n",$config['notify_premie_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_premie_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
// *** Punktesystem Pro *** Ende ***
}
$notify_by_register_mail=$config['notify_register_m'];
$notify_by_register_im=$config['notify_register_i'];
$notify_by_comment_mail=$config['notify_comment_m'];
$notify_by_comment_im=$config['notify_comment_i'];
$notify_by_gbook_mail=$config['notify_gbook_m'];
$notify_by_gbook_im=$config['notify_gbook_i'];
$notify_by_forum_mail=$config['notify_forum_m'];
$notify_by_forum_im=$config['notify_forum_i'];
$notify_by_submit_mail=$config['notify_submit_m'];
$notify_by_submit_im=$config['notify_submit_i'];
// *** Punktesystem Pro *** Start ***
$notify_by_premie_mail=$config['notify_premie_m'];
$notify_by_premie_im=$config['notify_premie_i'];
// *** Punktesystem Pro *** Ende ***
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_notify")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="register" or $do=="all") {
if ($ACTION==$_POST['save']) {
$DB->query("UPDATE ".$db_tab['config']." SET user_registry='".$_POST['user_registry']."', user_activate='".$_POST['user_activate']."', user_disclaimer='".$_POST['user_disclaimer']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['user_registry']==1) {$info_registry1=" selected";}
elseif ($config['user_registry']==2) {$info_registry2=" selected";}
else {$info_registry0=" selected";}
if ($config['user_activate']==1) {$info_activate1=" selected";}
else {$info_activate0=" selected";}
if ($config['user_disclaimer']==1) {$info_disclaimer1=" selected";}
else {$info_disclaimer0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_register")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="member" or $do=="all") {
if ($ACTION==$_POST['save']) {
if ($_POST['user_namemin']<1 or $_POST['user_namemin']>$_POST['user_namemax']) {$_POST['user_namemin']=1;}
if ($_POST['user_namemax']>50 or $_POST['user_namemax']<$_POST['user_namemin']) {$_POST['user_namemax']=50;}
$DB->query("UPDATE ".$db_tab['config']." SET text_ubb='".$_POST['text_ubb']."', text_smilies='".$_POST['text_smilies']."', text_images='".$_POST['text_images']."', member_infoshow='".$_POST['member_infoshow']."', member_epp='".$_POST['member_epp']."', member_gbook='".$_POST['member_gbook']."', member_mailer='".$_POST['member_mailer']."', user_namemin='".$_POST['user_namemin']."', user_namemax='".$_POST['user_namemax']."', user_delete='".$_POST['user_delete']."', user_ghost='".$_POST['user_ghost']."', user_design='".$_POST['user_design']."', im_limit_status='".$_POST['im_limit_status']."', im_limit_bevor='".$_POST['im_limit_bevor']."', im_limit_block='".$_POST['im_limit_block']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['member_infoshow']=="admin") {$member_showinfo1=" selected";}
elseif ($config['member_infoshow']=="mod") {$member_showinfo2=" selected";}
elseif ($config['member_infoshow']=="member") {$member_showinfo3=" selected";}
elseif ($config['member_infoshow']=="user") {$member_showinfo4=" selected";}
else {$member_showinfo0=" selected";}
if ($config['user_delete']==1) {$info_delete1=" selected";}
elseif ($config['user_delete']==2) {$info_delete2=" selected";}
else {$info_delete0=" selected";}
//----IM-Limit--start--//
if ($config['im_limit_status']==1) {$im_limit_status1=" selected";}
elseif ($config['im_limit_status']==0) {$im_limit_status0=" selected";}
eval ("\$config_im_limit= \"".templateinclude("config_im_limit")."\";");
//----IM-Limit--ende --//
if ($config[text_ubb]==1) {$info_ubb1=" checked";}
else {$info_ubb0=" checked";}
if ($config[text_smilies]==1) {$info_smilies1=" checked";}
else {$info_smilies0=" checked";}
if ($config[text_images]==1) {$info_images1=" checked";}
else {$info_images0=" checked";}
if ($config['member_gbook']==1) {$info_gbook1=" checked";}
else {$info_gbook0=" checked";}
if ($config['member_mailer']==1) $info_mailer1=" checked";
else $info_mailer0=" checked";
if ($config['user_ghost']==1) $info_ghost1=" checked";
else $info_ghost0=" checked";
if ($config['user_design']==1) $info_design1=" checked";
else $info_design0=" checked";
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_member")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="avatar" or $do=="all") {
if ($ACTION==$_POST['action']) {
$avatarpath=explode("/",$_POST['avatar_path']);
unset($_POST['avatar_path']);
if (is_array($avatarpath)) {
foreach($avatarpath as $p) {
$p=trim($p);
if ($p!="") {
if ($_POST['avatar_path']=="") $_POST['avatar_path']=$p;
else $_POST['avatar_path'].="/".$p;
}
}
}
$DB->query("UPDATE ".$db_tab['config']." SET avatar_size='".$_POST['avatar_size']."', avatar_height='".$_POST['avatar_height']."', avatar_width='".$_POST['avatar_width']."', avatar_eod='".$_POST['avatar_eod']."', avatar_path='".$_POST['avatar_path']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config[avatar_eod]==1) {$info_avatar_eod1=" selected";}
elseif ($config[avatar_eod]==2) {$info_avatar_eod2=" selected";}
else {$info_avatar_eod0=" selected";}
if (!@is_writeable('../'.$config['avatar_path']) || !@is_dir('../'.$config['avatar_path'])) eval ("\$path_error= \"".templateinclude("config_avatar_patherror")."\";");
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_avatar")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="blacklist" or $do=="all") {
if (is_array($_POST['delete']) && $_POST['action']==$lang['remove']) {
unset($sqlcommand);
foreach($_POST['delete'] as $id) {
if ($sqlcommand=="") {$sqlcommand="DELETE FROM ".$db_tab['blacklist']." WHERE blacklist_id='".$id."'";}
else {$sqlcommand.=" OR blacklist_id='".$id."'";}
}
$DB->query($sqlcommand);
}
elseif ($ACTION==$_POST['save'] && $_POST['blacklist_url']!="" && ($_POST['blacklist_userstatus']=="user" or $_POST['blacklist_userstatus']=="member" or $_POST['blacklist_userstatus']=="mod" or $_POST['blacklist_userstatus']=="admin")) {
$DB->query("INSERT INTO ".$db_tab['blacklist']." (blacklist_url, blacklist_userstatus) VALUES ('".$_POST['blacklist_url']."', '".$_POST['blacklist_userstatus']."')");
}
else {
$getlist=$DB->query("SELECT blacklist_url, blacklist_userstatus, blacklist_id FROM ".$db_tab['blacklist']." ORDER by blacklist_userstatus ASC");
while($list=$DB->fetch_array($getlist)) {
$row=rowcolor($row);
if ($list['blacklist_userstatus']=="user") {$status=$lang['user'];}
elseif ($list['blacklist_userstatus']=="member") {$status=$lang['member'];}
elseif ($list['blacklist_userstatus']=="mod") {$status=$lang['mod'];}
elseif ($list['blacklist_userstatus']=="admin") {$status=$lang['admin'];}
eval ("\$blacklist_sites_row.= \"".templateinclude("config_blacklist_sites_row")."\";");
}
if ($blacklist_sites_row!="") {eval ("\$blacklist_sites= \"".templateinclude("config_blacklist_sites")."\";");}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_blacklist")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="referer" or $do=="all") {
if ($ACTION==$_POST['save']) {$DB->query("UPDATE ".$db_tab['config']." SET referer_filter='".$_POST['referer_filter']."', referer_eod='".$_POST['referer_eod']."', referer_delete='".$_POST['referer_delete']."' WHERE profil_id='".$config['profil_id']."'");}
else {
if ($config['referer_eod']==1) {$referer_eod1=" selected";}
else {$referer_eod0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_referer")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="offline" or $do=="all") {
if ($ACTION==$_POST['save']) {
$site_message=addslashes($_POST['site_message']);
$DB->query("UPDATE ".$db_tab['config']." SET site_eod='".$_POST['site_eod']."', site_message='".$site_message."' WHERE profil_id='".$config['profil_id']."'");
}
else {
$site_message=htmlentities(stripslashes($config['site_message']));
if ($config['site_eod']==1) $info_eod1=" selected";
else $info_eod0=" selected";
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_offline")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
/********************* Laberecke Anfang *********************/
include("laberecke/laberecke_config.php");
/********************* Laberecke Ende ***********************/
if ($do=="comment" or $do=="all") {
if ($ACTION==$_POST['save']) {
$DB->query("UPDATE ".$db_tab['config']." SET comment_order='".$_POST['comment_order']."', comment_bb='".$_POST['comment_bbcode']."', comment_smilies='".$_POST['comment_smilies']."', comment_images='".$_POST['comment_images']."', comment_register='".$_POST['comment_register']."', comment_floodctrl='".$_POST['comment_floodctrl']."', comment_maxchars='".$_POST['comment_maxchars']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['comment_order']=="ASC") {$info_orderA=" selected";}
else {$info_orderD=" selected";}
if ($config['comment_bb']==1) {$info_bbcode1=" selected";}
else {$info_bbcode0=" selected";}
if ($config['comment_smilies']==1) {$info_smilies1=" selected";}
else {$info_smilies0=" selected";}
if ($config['comment_images']==1) {$info_images1=" selected";}
else {$info_images0=" selected";}
if ($config['comment_register']==1) {$info_register1=" selected";}
else {$info_register0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_comment")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="guestbook" or $do=="all") {
if ($ACTION==$_POST['save']) {
$gbook_welcome=addslashes($_POST['gbook_welcome']);
$DB->query("UPDATE ".$db_tab['config']." SET gbook_eod='".$_POST['gbook_eod']."', gbook_welcome='".$gbook_welcome."', gbook_commenteod='".$_POST['gbook_commenteod']."', gbook_epp='".$_POST['gbook_epp']."', gbook_smilies='".$_POST['gbook_smilies']."', gbook_images='".$_POST['gbook_images']."', gbook_ubb='".$_POST['gbook_ubb']."', gbook_floodctrl='".$_POST['gbook_floodctrl']."', gbook_maxchars='".$_POST['gbook_maxchars']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['gbook_eod']==1) {$gb_eod1=" selected";}
else {$gb_eod0=" selected";}
if ($config['gbook_commenteod']==1) {$gb_ceod1=" selected";}
else {$gb_ceod0=" selected";}
if ($config['gbook_ubb']==1) {$gb_ubb1=" selected";}
else {$gb_ubb0=" selected";}
if ($config['gbook_smilies']==1) {$gb_smilies1=" selected";}
else {$gb_smilies0=" selected";}
if ($config['gbook_images']==1) {$gb_images1=" selected";}
else {$gb_images0=" selected";}
$gbook_welcome=htmlentities(stripslashes($config['gbook_welcome']));
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_guestbook")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="content" or $do=="all") {
if ($ACTION==$_POST['save']) $DB->query("UPDATE ".$db_tab['config']." SET content_epp1='".$_POST['content_epp1']."', content_epp2='".$_POST['content_epp2']."', content_epp3='".$_POST['content_epp3']."', content_epp4='".$_POST['content_epp4']."', content_length1='".$_POST['content_length1']."', content_length2='".$_POST['content_length2']."', content_length3='".$_POST['content_length3']."', content_length4='".$_POST['content_length4']."', content_submit1='".$_POST['content_submit1']."', content_submit2='".$_POST['content_submit2']."', content_submit3='".$_POST['content_submit3']."', content_submit4='".$_POST['content_submit4']."', content_downloadpath='".$_POST['content_downloadpath']."', content_downloadstatus='".$_POST['content_dlstatus']."', content_style1='".$_POST['content_style1']."',content_style2='".$_POST['content_style2']."',content_style3='".$_POST['content_style3']."',content_style4='".$_POST['content_style4']."' WHERE profil_id='".$config['profil_id']."'");
else {
if ($config['content_submit1']=="guest") $submit1_4=" selected";
elseif ($config['content_submit1']=="user") $submit1_1=" selected";
elseif ($config['content_submit1']=="member") $submit1_2=" selected";
elseif ($config['content_submit1']=="mod") $submit1_3=" selected";
elseif ($config['content_submit1']=="none") $submit1_0=" selected";
if ($config['content_submit2']=="guest") $submit2_4=" selected";
elseif ($config['content_submit2']=="user") $submit2_1=" selected";
elseif ($config['content_submit2']=="member") $submit2_2=" selected";
elseif ($config['content_submit2']=="mod") $submit2_3=" selected";
elseif ($config['content_submit2']=="none") $submit2_0=" selected";
if ($config['content_submit3']=="guest") $submit3_4=" selected";
elseif ($config['content_submit3']=="user") $submit3_1=" selected";
elseif ($config['content_submit3']=="member") $submit3_2=" selected";
elseif ($config['content_submit3']=="mod") $submit3_3=" selected";
elseif ($config['content_submit3']=="none") $submit3_0=" selected";
if ($config['content_submit4']=="guest") $submit4_4=" selected";
elseif ($config['content_submit4']=="user") $submit4_1=" selected";
elseif ($config['content_submit4']=="member") $submit4_2=" selected";
elseif ($config['content_submit4']=="mod") $submit4_3=" selected";
elseif ($config['content_submit4']=="none") $submit4_0=" selected";
if ($config['content_downloadstatus']=="guest") $dlstatus4_0=" selected";
elseif ($config['content_downloadstatus']=="user") $dlstatus4_1=" selected";
elseif ($config['content_downloadstatus']=="member") $dlstatus4_2=" selected";
elseif ($config['content_downloadstatus']=="mod") $dlstatus4_3=" selected";
elseif ($config['content_downloadstatus']=="admin") $dlstatus4_4=" selected";
elseif ($config['content_downloadstatus']=="none") $dlstatus4_5=" selected";
$var='style1_'.$config['content_style1']; $$var='selected';
$var='style2_'.$config['content_style2']; $$var='selected';
$var='style3_'.$config['content_style3']; $$var='selected';
$var='style4_'.$config['content_style4']; $$var='selected';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_content")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
/* Forum Statistik by HTH-C.com */
include("forum/stats.php");
/* Forum Statistik by HTH-C.com */
if ($do=="forum" or $do=="all") {
if ($ACTION==$_POST['save']) $DB->query("UPDATE ".$db_tab['config']." SET forum_eod='".$_POST['forum_eod']."', forum_standalone='".$_POST['forum_standalone']."',forum_ubb='".$_POST['forum_ubb']."',forum_smilies='".$_POST['forum_smilies']."',forum_start='".$_POST['forum_start']."',forum_button='".$_POST['forum_button']."',forum_searcheod='".$_POST['forum_searcheod']."',forum_showmod='".$_POST['forum_showmod']."',forum_maxfav='".$_POST['forum_maxfav']."',forum_viewreply='".$_POST['forum_viewreply']."',forum_showrank='".$_POST['forum_showrank']."',forum_postorder='".$_POST['forum_postorder']."',forum_structur='".$_POST['forum_structur']."',forum_doublepost='".$_POST['forum_doublepost']."',forum_images='".$_POST['forum_images']."',forum_attach_dir='".$_POST['forum_attach_dir']."',forum_attach_size='".$_POST['forum_attach_size']."',forum_attach_ext='".$_POST['forum_attach_ext']."' WHERE profil_id='".$config['profil_id']."'");
else {
if ($config['forum_eod']==1) $option_eod1='selected';
else $option_eod0='selected';
if ($config['forum_ubb']==1) $option_ubb1='selected';
else $option_ubb0='selected';
if ($config['forum_smilies']==1) $option_smilies1='selected';
else $option_smilies0='selected';
if ($config['forum_images']==1) $option_images1='selected';
else $option_images0='selected';
if ($config['forum_searcheod']==1) $option_searcheod1='selected';
else $option_searcheod0='selected';
if ($config['forum_showmod']==1) $option_showmod1='selected';
else $option_showmod0='selected';
if ($config['forum_showrank']==1) $option_showrank1='selected';
else $option_showrank0='selected';
if ($config['forum_standalone']==1) $option_standalone1='selected';
elseif ($config['forum_standalone']==2) $option_standalone2='selected';
elseif ($config['forum_standalone']==3) $option_standalone3='selected';
else $option_standalone0='selected';
if ($config['forum_postorder']=="ASC") $option_postorder0='selected';
else $option_postorder1='selected';
if ($config['forum_structur']==1) $option_structur1='selected';
else $option_structur0='selected';
if ($config['forum_doublepost']==1) $option_doublepost1='selected';
else $option_doublepost0='selected';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_forum")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
/**************************************** Event Anfang ****************************************/
if ($do=="event" or $do=="all") {
$countall = $DB->fetch_array($DB->query("select count(termin_ID) from `".$db_tab['termine']."` WHERE `termin_aktiv`='1'"));
$countall = $countall[0];
if($countall>0) {$eintrag_aktivieren=''; $ausgabe_aktivieren='<br><span style="color:#d70007;">Bitte erst alle Termine aktivieren</span>';} else $eintrag_aktivieren=", frei='".$_POST['e_frei']."'";
if ($ACTION==$_POST['save']) {
$DB->query("UPDATE ".$db_tab['config']." SET status_e='".$_POST['e_e']."', status_b='".$_POST['e_b']."', status_l='".$_POST['e_l']."', status_s='".$_POST['e_s']."', status_z='".$_POST['e_z']."', anz='".$_POST['e_anz']."', termin_max='".$_POST['termin_max']."' $eintrag_aktivieren");
}
else {
if ($config['status_e']=="guest") $termin_status_e_0=" selected";
elseif ($config['status_e']=="user") $termin_status_e_1=" selected";
elseif ($config['status_e']=="member") $termin_status_e_2=" selected";
elseif ($config['status_e']=="mod") $termin_status_e_3=" selected";
elseif ($config['status_e']=="admin") $termin_status_e_4=" selected";
if ($config['status_b']=="user") $termin_status_b_1=" selected";
elseif ($config['status_b']=="member") $termin_status_b_2=" selected";
elseif ($config['status_b']=="mod") $termin_status_b_3=" selected";
elseif ($config['status_b']=="admin") $termin_status_b_4=" selected";
if ($config['status_l']=="user") $termin_status_l_1=" selected";
elseif ($config['status_l']=="member") $termin_status_l_2=" selected";
elseif ($config['status_l']=="mod") $termin_status_l_3=" selected";
elseif ($config['status_l']=="admin") $termin_status_l_4=" selected";
if ($config['status_s']=="guest") $termin_status_s_0=" selected";
elseif ($config['status_s']=="user") $termin_status_s_1=" selected";
elseif ($config['status_s']=="member") $termin_status_s_2=" selected";
elseif ($config['status_s']=="mod") $termin_status_s_3=" selected";
elseif ($config['status_s']=="admin") $termin_status_s_4=" selected";
if ($config['status_z']=="user") $termin_status_z_1=" selected";
elseif ($config['status_z']=="member") $termin_status_z_2=" selected";
elseif ($config['status_z']=="mod") $termin_status_z_3=" selected";
elseif ($config['status_z']=="admin") $termin_status_z_4=" selected";
if ($config['anz']==0) $e_anz0=" selected";
else $e_anz1=" selected";
if ($config['frei']==0) $e_frei0=" selected";
else $e_frei1=" selected";
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_event")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
/**************************************** Event Ende ****************************************/
// Kit-NoSpam v1.0 fuer PHPKit 1.6.1
// Idee: Onkel Hotte
// www.kit-security.de (c)2006
// Version v1.0 - 27.07.2006
if ($do=="captcha" or $do=="all") {
if ($ACTION==$_POST['action']) {
if ($_POST['captcha_cryptkey']<1) {$_POST['captcha_cryptkey']=1;}
$DB->query("UPDATE ".$db_tab['config']." SET captcha_cryptkey ='".$_POST['captcha_cryptkey']."' WHERE profil_id='".$config['profil_id']."'");
} else {
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_captcha")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
/**** EOS ****/
if ($ACTION==$_POST['save']) {header("location: admin.php?do=".$_POST['do']."session_id()); exit();}
elseif ($do!='') {
if ($do!='all') eval ("\$config_do= \"".templateinclude("config_".$do."")."\";");
eval ("\$site_body.= \"".templateinclude("config")."\";");
}
}
else {header ("location: admin.phpsession_id()); exit();}
?>
| |  |

|
|
|
|
|
|
|
 |
|
 |
15.06.2009 - 21:20 Uhr |
|
|
|
Hmm, ich weiss jetzt auch nicht genau, was mit AutoIM gemeint ist, kann mir aber denken, das damit die Benachrichtung gemeint ist, für das Punkte-System.
In diesen Fall fehlt der Speicherungs-Prozess komplett in der Speicherung. In Zeile 178 bis 183 steht ja folgendes:
Hier klicken zum aufklappen | PHP-Quelltext // *** Punktesystem Pro *** Start ***
$narray=explode("\n",$_POST['notify_by_premie_im']); unset($notify_by_premie_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_premie_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_premie_mail']); unset($notify_by_premie_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_premie_mail.=$p."\n";}}}
// *** Punktesystem Pro *** Ende *** | |
Direkt darunter steht das, Zeile 185:
Hier klicken zum aufklappen | PHP-Quelltext $DB->query("UPDATE ".$db_tab['config']." SET notify_register_m='".$notify_by_register_mail."', notify_comment_m='".$notify_by_comment_mail."', notify_gbook_m='".$notify_by_gbook_mail."', notify_forum_m='".$notify_by_forum_mail."', notify_submit_m='".$notify_by_submit_mail."', notify_register_i='".$notify_by_register_im."', notify_comment_i='".$notify_by_comment_im."', notify_gbook_i='".$notify_by_gbook_im."', notify_forum_i='".$notify_by_forum_im."', notify_submit_i='".$notify_by_submit_im."' WHERE profil_id='".$config['profil_id']."'"); | |
Und genau hier ist das Problem. Der Speicherungsbefehl ist zwar da, aber die 2 Spalten für IM und eMail fehlen darin. Deswegen einfach so ändern:
Hier klicken zum aufklappen | PHP-Quelltext $DB->query("UPDATE ".$db_tab['config']." SET notify_register_m='".$notify_by_register_mail."', notify_comment_m='".$notify_by_comment_mail."', notify_gbook_m='".$notify_by_gbook_mail."', notify_forum_m='".$notify_by_forum_mail."', notify_submit_m='".$notify_by_submit_mail."', notify_register_i='".$notify_by_register_im."', notify_comment_i='".$notify_by_comment_im."', notify_gbook_i='".$notify_by_gbook_im."', notify_forum_i='".$notify_by_forum_im."', notify_submit_i='".$notify_by_submit_im."', notify_premie_m='".$notify_by_premie_mail."', notify_premie_i='".$notify_by_premie_im."' WHERE profil_id='".$config['profil_id']."'"); | |
Wenn du dir den Code anguckst, wirst du feststellen, das ganz am Ende, vor dem WHERE 2 neue Einträge sind. Und zwar diese:
|
|
|
|
|
|
|
 |
|
 |
16.06.2009 - 14:44 Uhr |
|
|
|
Hmm Das kenn ich nicht mal. Habs aber zur Sicherheit mal geändert.
Es war ein Auto Willkommens IM von 2005..... Hmm funzte nie richtig. Aber ich hab nun eine Version 3.0 von Heady auf meinem PC gefunden. Hab das nun mal zum Testen eingebaut.
Grossen Dank aus Luxemburg.
Nueschtmanescht
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Nueschtmanescht - 16.06.2009 - 14:45 Uhr |
|
|
|
|
|
|
|
 |
|
 |
16.06.2009 - 22:21 Uhr |
|
|
|
Funktioniert es denn jetzt auch? Nach den Inhalt der Datei hab ich bezüglich AutoIM nämlich nichts der gleichen gefunden 
|
|
|
|
|
|
|
 |
|
 |
19.06.2009 - 15:27 Uhr |
|
|
|
Hallo
Sorry für die verspätete Antwort. Aber leider muss man ja noch arbeiten und .........
Jup es geht. Hab die nochmals neu installiert und beim testen gings jetzt einwandfrei.
Aber da wir schon bei der config sind..... äh............ Ich ...äh.........betreibe noch eine Clanseite und da hatte ich auch vor etlicher Zeit etwas eingebaut was nie richtig funzte.
Die HP ist: http://ccl.ngz-server.de
1. Dort hab ich mal vor langer Zeit etwas eingebaut um im Profil folgende Angaben zu machen:
CPU, Ram; Mainboard, Grafikkarte, Maus, u.s.w. Nur wurde das nie angezeigt. Das heisst ich konnte die Felder ausfüllen aber es wurde nie im Profil angezeigt. Immer nur leere Felder.
2. Beim Ingamenick wird im Profil der Name nicht angenommen welcher ich eintragen will. Also nicht gespeichert.
Hier mal die Config..........
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 | | PHP-Quelltext <?php
// Kit-NoSpam v1.0 fuer PHPKit 1.6.1
// Idee: Onkel Hotte
// www.kit-security.de (c)2006
// Version v1.0 - 27.07.2006
if (adminaccess('config')) {
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';
if ($_REQUEST['do']!='' && $_REQUEST['do']!='all') {
$do=$_REQUEST['do'];
unset($toplink);
}
else {
$do='all';
eval ("\$toplink= \"".templateinclude("config_all_toplink")."\";");
eval ("\$site_body.= \"".templateinclude("config_all_links")."\";");
}
if ($do=='profil' or $do=='newprofil') {
if ($ACTION==$_POST['create']) {header("location: admin.php?do=newprofilsession_id()); exit();}
elseif ($ACTION==$_POST['save']) {
$DB->query("INSERT INTO ".$db_tab['config']." (profil_name) VALUES ('".$_POST['profil_name']."')");
header("location: admin.php?do=profil&profilid=".$DB->insert_id()."session_id()); exit();
}
if ($ACTION==$_POST['delete']) {
$DB->query("DELETE FROM ".$db_tab['config']." WHERE profil_id='".$_POST['profilid']."'");
$profilid=$DB->fetch_array($DB->query("SELECT profil_id FROM ".$db_tab['config']." LIMIT 1"));
$profilid=$profilid['profil_id'];
}
if (isset($_REQUEST['profilid']) or isset($profilid)) {
if (!isset($profilid)) {$profilid=$_REQUEST['profilid'];}
$DB->query("UPDATE ".$db_tab['config']." SET profil_active=0 WHERE profil_id!='".$profilid."'");
$DB->query("UPDATE ".$db_tab['config']." SET profil_active=1 WHERE profil_id='".$profilid."'");
header("location: admin.php?do=basicsession_id()); exit();
}
}
if ($do=='basic' or $do=='all') {
if ($ACTION==$_POST['save']) {
$site_name=addslashes($_POST['site_name']);
$site_title=addslashes($_POST['site_title']);
$parse_url=explode("/",addslashes($_POST['site_url'])); unset($site_url); if (is_array($parse_url)) {foreach ($parse_url as $u) {$u=trim($u); if (!eregi("http",$u) && $u!="") {if ($site_url=="") {$site_url="http://".$u;} else {$site_url.="/".$u;}}}} unset($parse_url);
$site_urls=addslashes($_POST['site_urls']);
$site_copy=addslashes($_POST['site_copy']);
if (!emailcheck($_POST['site_email'],0)) {unset($_POST['site_email']);}
else {$site_email=addslashes($_POST['site_email']);}
$site_width=$_POST['site_width'];
$time_gmtzone=$_POST['time_gmtzone'];
$DB->query("UPDATE ".$db_tab['config']." SET site_name='".$site_name."', site_title='".$site_title."', site_url='".$site_url."', site_urls='".$site_urls."', site_email='".$site_email."', site_copy='".$site_copy."', site_width='".$site_width."', time_gmtzone='".$time_gmtzone."', version_check='".$_POST['version_check']."', site_logo='".$_POST['site_logo']."', site_adview='".$_POST['site_adview']."', site_style='".$_POST['site_style']."', templatename='".$_POST['templatename']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
unset($i);
$getconfiginfo=$DB->query("SELECT profil_id, profil_name, profil_active FROM ".$db_tab['config']." ORDER by profil_name ASC");
while ($configinfo=$DB->fetch_array($getconfiginfo)) {
if ($config['profil_id']==$configinfo['profil_id']) {$option_selected=' selected';}
eval ("\$profil_option.= \"".templateinclude("config_profil_option")."\";");
unset($option_selected);
unset($option_selected2);
$i++;
}
$getstyles=$DB->query("SELECT style_id, style_name FROM ".$db_tab['style']." ORDER by style_name ASC");
while ($styles=$DB->fetch_array($getstyles)) {
$site_style_list.='<option value="'.$styles['style_id'].'"';
if ($styles['style_id']==$config['site_style']) $site_style_list.=' selected';
$site_style_list.='>'.$styles['style_name'].'</option>';
}
if ($i>1) {eval ("\$profil_delete= \"".templateinclude("config_profil_delete")."\";");}
eval ("\$site_body.= \"".templateinclude("config_profil")."\";");
$site_name=htmlentities(stripslashes($config['site_name']));
$site_title=htmlentities(stripslashes($config['site_title']));
$site_url=htmlentities(stripslashes($config['site_url']));
$site_urls=htmlentities(stripslashes($config['site_urls']));
$site_copy=htmlentities(stripslashes($config['site_copy']));
if ($config['site_width']=='770') $width770=' selected';
elseif ($config['site_width']=='980') $width980=' selected';
else $width100=' selected';
if ($config['site_adview']=='1') $adview1=' selected';
else $adview0=' selected';
if ($config['time_gmtzone']<0) {$v=eregi_replace("-|\.","",$config['time_gmtzone']); $tz="m".$v;}
elseif ($config['time_gmtzone']>0) {$v=eregi_replace("\+|\.","",$config['time_gmtzone']); $tz="p".$v;}
else $tz=0;
$var="info_".$tz;
$$var="selected";
if ($config['templatename']==1) $templatename1='selected';
else $templatename0='selected';
if ($config['version_check']==1) $vcheck1='checked';
else $vcheck0='checked';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_basic")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="mailer" or $do=="all") {
if ($ACTION==$_POST['save']) {
$smtp_server=addslashes($_POST['smtp_server']);
$site_mail_txt=addslashes($_POST['site_mail_txt']);
$site_mail_htm=addslashes($_POST['site_mail_htm']);
$DB->query("UPDATE ".$db_tab['config']." SET smtp_server='".$smtp_server."',site_mail_txt='".$site_mail_txt."',site_mail_htm='".$site_mail_htm."' WHERE profil_id='".$config['profil_id']."'");
}
else {
$smtp_server=stripslashes($config['smtp_server']);
$site_mail_txt=stripslashes($config['site_mail_txt']);
$site_mail_htm=stripslashes($config['site_mail_htm']);
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_mailer")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="frontpage" or $do=="all") {
if ($ACTION==$_POST['save']) {
$site_array=explode("\n",addslashes($_POST['site_frontpage'])); unset($site_frontpage); if (is_array($site_array)) {foreach($site_array as $p) {$p=trim($p); if ($p!='') {$site_frontpage.=$p."\n";}}}
$welcome_eod=$_POST['welcome_eod'];
$welcome_title=addslashes($_POST['welcome_title']);
$welcome_text=addslashes($_POST['welcome_text']);
$DB->query("UPDATE ".$db_tab['config']." SET site_frontpage='".$site_frontpage."', welcome_eod='".$welcome_eod."', welcome_title='".$welcome_title."', welcome_text='".$welcome_text."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['welcome_eod']==1) {$welcome_eod1=" selected";}
else {$welcome_eod0=" selected";}
$welcome_title=htmlentities(stripslashes($config['welcome_title']));
$welcome_text=htmlentities(stripslashes($config['welcome_text']));
$site_frontpage=htmlentities(stripslashes($config['site_frontpage']));
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_frontpage")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="censor" or $do=="all") {
if ($ACTION==$_POST['save']) {
$censor_username=$_POST['censor_username'];
$censor_email=$_POST['censor_email'];
$censor_ip=$_POST['censor_ip'];
$censor_badword=$_POST['censor_badword'];
$DB->query("UPDATE ".$db_tab['config']." SET censor_username='".$censor_username."', censor_email='".$censor_email."', censor_ip='".$censor_ip."', censor_badword='".$censor_badword."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_censor")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="notify" or $do=="all") {
if ($ACTION==$_POST['save']) {
$narray=explode("\n",$_POST['notify_by_register_mail']); unset($notify_by_register_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_register_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_comment_mail']); unset($notify_by_comment_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_comment_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_gbook_mail']); unset($notify_by_gbook_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_gbook_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_forum_mail']); unset($notify_by_forum_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_forum_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_submit_mail']); unset($notify_by_submit_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_submit_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_register_im']); unset($notify_by_register_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_register_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_comment_im']); unset($notify_by_comment_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_comment_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_gbook_im']); unset($notify_by_gbook_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_gbook_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_forum_im']); unset($notify_by_forum_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_forum_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_submit_im']); unset($notify_by_submit_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_submit_im.=$p."\n";}}}
$DB->query("UPDATE ".$db_tab['config']." SET notify_register_m='".$notify_by_register_mail."', notify_comment_m='".$notify_by_comment_mail."', notify_gbook_m='".$notify_by_gbook_mail."', notify_forum_m='".$notify_by_forum_mail."', notify_submit_m='".$notify_by_submit_mail."', notify_register_i='".$notify_by_register_im."', notify_comment_i='".$notify_by_comment_im."', notify_gbook_i='".$notify_by_gbook_im."', notify_forum_i='".$notify_by_forum_im."', notify_submit_i='".$notify_by_submit_im."' WHERE profil_id='".$config['profil_id']."'");
}
else {
unset($sqlcommand); $second_cache=array();
$id_cache=explode("\n",$config['notify_register_i']."\n".$config['notify_comment_i']."\n".$config['notify_gbook_i']."\n".$config['notify_forum_i']."\n".$config['notify_submit_i']);
if (is_array($id_cache)) {
foreach ($id_cache as $id) {
$id=trim($id);
if ($second_cache[$id]=='') {
$second_cache[$id]=$id;
if ($id!='' && $sqlcommand=='') {$sqlcommand="SELECT user_id, user_nick FROM ".$db_tab['user']." WHERE user_id='".$id."'";}
elseif ($id!='') {$sqlcommand.=" OR user_id='".$id."'";}
}
}
if ($sqlcommand!='') {
$getuserinfo=$DB->query($sqlcommand." ORDER by user_id ASC");
while($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_cache[$userinfo[user_id]]=$userinfo;}
}
}
if (is_array($userinfo_cache)) {
if ($config['notify_register_i']!='') {$info=explode("\n",$config['notify_register_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_register_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_comment_i']!='') {$info=explode("\n",$config['notify_comment_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_comment_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_gbook_i']!='') {$info=explode("\n",$config['notify_gbook_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_gbook_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_forum_i']!='') {$info=explode("\n",$config['notify_forum_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_forum_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_submit_i']!='') { $info=explode("\n",$config['notify_submit_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_submit_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
}
$notify_by_register_mail=$config['notify_register_m'];
$notify_by_register_im=$config['notify_register_i'];
$notify_by_comment_mail=$config['notify_comment_m'];
$notify_by_comment_im=$config['notify_comment_i'];
$notify_by_gbook_mail=$config['notify_gbook_m'];
$notify_by_gbook_im=$config['notify_gbook_i'];
$notify_by_forum_mail=$config['notify_forum_m'];
$notify_by_forum_im=$config['notify_forum_i'];
$notify_by_submit_mail=$config['notify_submit_m'];
$notify_by_submit_im=$config['notify_submit_i'];
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_notify")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="register" or $do=="all") {
if ($ACTION==$_POST['save']) {
$DB->query("UPDATE ".$db_tab['config']." SET user_registry='".$_POST['user_registry']."', user_activate='".$_POST['user_activate']."', user_disclaimer='".$_POST['user_disclaimer']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['user_registry']==1) {$info_registry1=" selected";}
elseif ($config['user_registry']==2) {$info_registry2=" selected";}
else {$info_registry0=" selected";}
if ($config['user_activate']==1) {$info_activate1=" selected";}
else {$info_activate0=" selected";}
if ($config['user_disclaimer']==1) {$info_disclaimer1=" selected";}
else {$info_disclaimer0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_register")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="member" or $do=="all") {
if ($ACTION==$_POST['save']) {
if ($_POST['user_namemin']<1 or $_POST['user_namemin']>$_POST['user_namemax']) {$_POST['user_namemin']=1;}
if ($_POST['user_namemax']>50 or $_POST['user_namemax']<$_POST['user_namemin']) {$_POST['user_namemax']=50;}
$DB->query("UPDATE ".$db_tab['config']." SET text_ubb='".$_POST['text_ubb']."', text_smilies='".$_POST['text_smilies']."', text_images='".$_POST['text_images']."', member_infoshow='".$_POST['member_infoshow']."', member_epp='".$_POST['member_epp']."', member_gbook='".$_POST['member_gbook']."', member_mailer='".$_POST['member_mailer']."', user_namemin='".$_POST['user_namemin']."', user_namemax='".$_POST['user_namemax']."', user_delete='".$_POST['user_delete']."', user_ghost='".$_POST['user_ghost']."', user_design='".$_POST['user_design']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['member_infoshow']=="admin") {$member_showinfo1=" selected";}
elseif ($config['member_infoshow']=="mod") {$member_showinfo2=" selected";}
elseif ($config['member_infoshow']=="member") {$member_showinfo3=" selected";}
elseif ($config['member_infoshow']=="user") {$member_showinfo4=" selected";}
else {$member_showinfo0=" selected";}
if ($config['user_delete']==1) {$info_delete1=" selected";}
elseif ($config['user_delete']==2) {$info_delete2=" selected";}
else {$info_delete0=" selected";}
if ($config[text_ubb]==1) {$info_ubb1=" checked";}
else {$info_ubb0=" checked";}
if ($config[text_smilies]==1) {$info_smilies1=" checked";}
else {$info_smilies0=" checked";}
if ($config[text_images]==1) {$info_images1=" checked";}
else {$info_images0=" checked";}
if ($config['member_gbook']==1) {$info_gbook1=" checked";}
else {$info_gbook0=" checked";}
if ($config['member_mailer']==1) $info_mailer1=" checked";
else $info_mailer0=" checked";
if ($config['user_ghost']==1) $info_ghost1=" checked";
else $info_ghost0=" checked";
if ($config['user_design']==1) $info_design1=" checked";
else $info_design0=" checked";
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_member")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="avatar" or $do=="all") {
if ($ACTION==$_POST['action']) {
$avatarpath=explode("/",$_POST['avatar_path']);
unset($_POST['avatar_path']);
if (is_array($avatarpath)) {
foreach($avatarpath as $p) {
$p=trim($p);
if ($p!="") {
if ($_POST['avatar_path']=="") $_POST['avatar_path']=$p;
else $_POST['avatar_path'].="/".$p;
}
}
}
$DB->query("UPDATE ".$db_tab['config']." SET avatar_size='".$_POST['avatar_size']."', avatar_height='".$_POST['avatar_height']."', avatar_width='".$_POST['avatar_width']."', avatar_eod='".$_POST['avatar_eod']."', avatar_path='".$_POST['avatar_path']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config[avatar_eod]==1) {$info_avatar_eod1=" selected";}
elseif ($config[avatar_eod]==2) {$info_avatar_eod2=" selected";}
else {$info_avatar_eod0=" selected";}
if (!@is_writeable('../'.$config['avatar_path']) || !@is_dir('../'.$config['avatar_path'])) eval ("\$path_error= \"".templateinclude("config_avatar_patherror")."\";");
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_avatar")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="blacklist" or $do=="all") {
if (is_array($_POST['delete']) && $_POST['action']==$lang['remove']) {
unset($sqlcommand);
foreach($_POST['delete'] as $id) {
if ($sqlcommand=="") {$sqlcommand="DELETE FROM ".$db_tab['blacklist']." WHERE blacklist_id='".$id."'";}
else {$sqlcommand.=" OR blacklist_id='".$id."'";}
}
$DB->query($sqlcommand);
}
elseif ($ACTION==$_POST['save'] && $_POST['blacklist_url']!="" && ($_POST['blacklist_userstatus']=="user" or $_POST['blacklist_userstatus']=="member" or $_POST['blacklist_userstatus']=="mod" or $_POST['blacklist_userstatus']=="admin")) {
$DB->query("INSERT INTO ".$db_tab['blacklist']." (blacklist_url, blacklist_userstatus) VALUES ('".$_POST['blacklist_url']."', '".$_POST['blacklist_userstatus']."')");
}
else {
$getlist=$DB->query("SELECT blacklist_url, blacklist_userstatus, blacklist_id FROM ".$db_tab['blacklist']." ORDER by blacklist_userstatus ASC");
while($list=$DB->fetch_array($getlist)) {
$row=rowcolor($row);
if ($list['blacklist_userstatus']=="user") {$status=$lang['user'];}
elseif ($list['blacklist_userstatus']=="member") {$status=$lang['member'];}
elseif ($list['blacklist_userstatus']=="mod") {$status=$lang['mod'];}
elseif ($list['blacklist_userstatus']=="admin") {$status=$lang['admin'];}
eval ("\$blacklist_sites_row.= \"".templateinclude("config_blacklist_sites_row")."\";");
}
if ($blacklist_sites_row!="") {eval ("\$blacklist_sites= \"".templateinclude("config_blacklist_sites")."\";");}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_blacklist")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="referer" or $do=="all") {
if ($ACTION==$_POST['save']) {$DB->query("UPDATE ".$db_tab['config']." SET referer_filter='".$_POST['referer_filter']."', referer_eod='".$_POST['referer_eod']."', referer_delete='".$_POST['referer_delete']."' WHERE profil_id='".$config['profil_id']."'");}
else {
if ($config['referer_eod']==1) {$referer_eod1=" selected";}
else {$referer_eod0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_referer")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="offline" or $do=="all") {
if ($ACTION==$_POST['save']) {
$site_message=addslashes($_POST['site_message']);
$DB->query("UPDATE ".$db_tab['config']." SET site_eod='".$_POST['site_eod']."', site_message='".$site_message."' WHERE profil_id='".$config['profil_id']."'");
}
else {
$site_message=htmlentities(stripslashes($config['site_message']));
if ($config['site_eod']==1) $info_eod1=" selected";
else $info_eod0=" selected";
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_offline")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="comment" or $do=="all") {
if ($ACTION==$_POST['save']) {
$DB->query("UPDATE ".$db_tab['config']." SET comment_order='".$_POST['comment_order']."', comment_bb='".$_POST['comment_bbcode']."', comment_smilies='".$_POST['comment_smilies']."', comment_images='".$_POST['comment_images']."', comment_register='".$_POST['comment_register']."', comment_floodctrl='".$_POST['comment_floodctrl']."', comment_maxchars='".$_POST['comment_maxchars']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['comment_order']=="ASC") {$info_orderA=" selected";}
else {$info_orderD=" selected";}
if ($config['comment_bb']==1) {$info_bbcode1=" selected";}
else {$info_bbcode0=" selected";}
if ($config['comment_smilies']==1) {$info_smilies1=" selected";}
else {$info_smilies0=" selected";}
if ($config['comment_images']==1) {$info_images1=" selected";}
else {$info_images0=" selected";}
if ($config['comment_register']==1) {$info_register1=" selected";}
else {$info_register0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_comment")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="guestbook" or $do=="all") {
if ($ACTION==$_POST['save']) {
$gbook_welcome=addslashes($_POST['gbook_welcome']);
$DB->query("UPDATE ".$db_tab['config']." SET gbook_eod='".$_POST['gbook_eod']."', gbook_welcome='".$gbook_welcome."', gbook_commenteod='".$_POST['gbook_commenteod']."', gbook_epp='".$_POST['gbook_epp']."', gbook_smilies='".$_POST['gbook_smilies']."', gbook_images='".$_POST['gbook_images']."', gbook_ubb='".$_POST['gbook_ubb']."', gbook_floodctrl='".$_POST['gbook_floodctrl']."', gbook_maxchars='".$_POST['gbook_maxchars']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['gbook_eod']==1) {$gb_eod1=" selected";}
else {$gb_eod0=" selected";}
if ($config['gbook_commenteod']==1) {$gb_ceod1=" selected";}
else {$gb_ceod0=" selected";}
if ($config['gbook_ubb']==1) {$gb_ubb1=" selected";}
else {$gb_ubb0=" selected";}
if ($config['gbook_smilies']==1) {$gb_smilies1=" selected";}
else {$gb_smilies0=" selected";}
if ($config['gbook_images']==1) {$gb_images1=" selected";}
else {$gb_images0=" selected";}
$gbook_welcome=htmlentities(stripslashes($config['gbook_welcome']));
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_guestbook")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="content" or $do=="all") {
if ($ACTION==$_POST['save']) $DB->query("UPDATE ".$db_tab['config']." SET content_epp1='".$_POST['content_epp1']."', content_epp2='".$_POST['content_epp2']."', content_epp3='".$_POST['content_epp3']."', content_epp4='".$_POST['content_epp4']."', content_length1='".$_POST['content_length1']."', content_length2='".$_POST['content_length2']."', content_length3='".$_POST['content_length3']."', content_length4='".$_POST['content_length4']."', content_submit1='".$_POST['content_submit1']."', content_submit2='".$_POST['content_submit2']."', content_submit3='".$_POST['content_submit3']."', content_submit4='".$_POST['content_submit4']."', content_downloadpath='".$_POST['content_downloadpath']."', content_downloadstatus='".$_POST['content_dlstatus']."', content_style1='".$_POST['content_style1']."',content_style2='".$_POST['content_style2']."',content_style3='".$_POST['content_style3']."',content_style4='".$_POST['content_style4']."' WHERE profil_id='".$config['profil_id']."'");
else {
if ($config['content_submit1']=="guest") $submit1_4=" selected";
elseif ($config['content_submit1']=="user") $submit1_1=" selected";
elseif ($config['content_submit1']=="member") $submit1_2=" selected";
elseif ($config['content_submit1']=="mod") $submit1_3=" selected";
elseif ($config['content_submit1']=="none") $submit1_0=" selected";
if ($config['content_submit2']=="guest") $submit2_4=" selected";
elseif ($config['content_submit2']=="user") $submit2_1=" selected";
elseif ($config['content_submit2']=="member") $submit2_2=" selected";
elseif ($config['content_submit2']=="mod") $submit2_3=" selected";
elseif ($config['content_submit2']=="none") $submit2_0=" selected";
if ($config['content_submit3']=="guest") $submit3_4=" selected";
elseif ($config['content_submit3']=="user") $submit3_1=" selected";
elseif ($config['content_submit3']=="member") $submit3_2=" selected";
elseif ($config['content_submit3']=="mod") $submit3_3=" selected";
elseif ($config['content_submit3']=="none") $submit3_0=" selected";
if ($config['content_submit4']=="guest") $submit4_4=" selected";
elseif ($config['content_submit4']=="user") $submit4_1=" selected";
elseif ($config['content_submit4']=="member") $submit4_2=" selected";
elseif ($config['content_submit4']=="mod") $submit4_3=" selected";
elseif ($config['content_submit4']=="none") $submit4_0=" selected";
if ($config['content_downloadstatus']=="guest") $dlstatus4_0=" selected";
elseif ($config['content_downloadstatus']=="user") $dlstatus4_1=" selected";
elseif ($config['content_downloadstatus']=="member") $dlstatus4_2=" selected";
elseif ($config['content_downloadstatus']=="mod") $dlstatus4_3=" selected";
elseif ($config['content_downloadstatus']=="admin") $dlstatus4_4=" selected";
elseif ($config['content_downloadstatus']=="none") $dlstatus4_5=" selected";
$var='style1_'.$config['content_style1']; $$var='selected';
$var='style2_'.$config['content_style2']; $$var='selected';
$var='style3_'.$config['content_style3']; $$var='selected';
$var='style4_'.$config['content_style4']; $$var='selected';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_content")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="forum" or $do=="all") {
if ($ACTION==$_POST['save']) $DB->query("UPDATE ".$db_tab['config']." SET forum_eod='".$_POST['forum_eod']."', forum_standalone='".$_POST['forum_standalone']."',forum_ubb='".$_POST['forum_ubb']."',forum_smilies='".$_POST['forum_smilies']."',forum_start='".$_POST['forum_start']."',forum_button='".$_POST['forum_button']."',forum_searcheod='".$_POST['forum_searcheod']."',forum_showmod='".$_POST['forum_showmod']."',forum_maxfav='".$_POST['forum_maxfav']."',forum_viewreply='".$_POST['forum_viewreply']."',forum_showrank='".$_POST['forum_showrank']."',forum_postorder='".$_POST['forum_postorder']."',forum_structur='".$_POST['forum_structur']."',forum_doublepost='".$_POST['forum_doublepost']."',forum_images='".$_POST['forum_images']."',forum_attach_dir='".$_POST['forum_attach_dir']."',forum_attach_size='".$_POST['forum_attach_size']."',forum_attach_ext='".$_POST['forum_attach_ext']."',forum_threadvote_rights='".addslashes($_POST['forum_vote_threads'])."' WHERE profil_id='".$config['profil_id']."'");else {
if ($config['forum_eod']==1) $option_eod1='selected';
else $option_eod0='selected';
if ($config['forum_ubb']==1) $option_ubb1='selected';
else $option_ubb0='selected';
if ($config['forum_smilies']==1) $option_smilies1='selected';
else $option_smilies0='selected';
if ($config['forum_images']==1) $option_images1='selected';
else $option_images0='selected';
if ($config['forum_searcheod']==1) $option_searcheod1='selected';
else $option_searcheod0='selected';
if ($config['forum_showmod']==1) $option_showmod1='selected';
else $option_showmod0='selected';
if ($config['forum_showrank']==1) $option_showrank1='selected';
else $option_showrank0='selected';
if ($config['forum_standalone']==1) $option_standalone1='selected';
elseif ($config['forum_standalone']==2) $option_standalone2='selected';
elseif ($config['forum_standalone']==3) $option_standalone3='selected';
else $option_standalone0='selected';
if ($config['forum_postorder']=="ASC") $option_postorder0='selected';
else $option_postorder1='selected';
if ($config['forum_structur']==1) $option_structur1='selected';
else $option_structur0='selected';
if ($config['forum_doublepost']==1) $option_doublepost1='selected';
else $option_doublepost0='selected';
#### Start - Thread-Bewertung by www.kit-spiele.de ####
if($config['forum_threadvote_rights'] == 'guest') {
$guest_vote_selected = ' selected';
}elseif($config['forum_threadvote_rights'] == 'user') {
$user_vote_selected = ' selected';
}elseif($config['forum_threadvote_rights'] == 'member') {
$member_vote_selected = ' selected';
}elseif($config['forum_threadvote_rights'] == 'mod') {
$mod_vote_selected = ' selected';
}else{
$admin_vote_selected = ' selected';
}
#### Start - Thread-Bewertung by www.kit-spiele.de ####
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_forum")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
// Kit-NoSpam v1.0 fuer PHPKit 1.6.1
// Idee: Onkel Hotte
// www.kit-security.de (c)2006
// Version v1.0 - 27.07.2006
if ($do=="captcha" or $do=="all") {
if ($ACTION==$_POST['action']) {
if ($_POST['captcha_cryptkey']<1) {$_POST['captcha_cryptkey']=1;}
$DB->query("UPDATE ".$db_tab['config']." SET captcha_cryptkey ='".$_POST['captcha_cryptkey']."' WHERE profil_id='".$config['profil_id']."'");
} else {
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_captcha")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
/**** EOS ****/
if ($ACTION==$_POST['save']) {header("location: admin.php?do=".$_POST['do']."session_id()); exit();}
elseif ($do!='') {
if ($do!='all') eval ("\$config_do= \"".templateinclude("config_".$do."")."\";");
eval ("\$site_body.= \"".templateinclude("config")."\";");
}
}
else {header ("location: admin.phpsession_id()); exit();}
?>
| |  |
|
|
|
|
|
|
|
 |
|
 |
19.06.2009 - 17:05 Uhr |
|
|
|
Also in diesen Fall ist der Konfigurationsbereich egal 
1.)
Hier gibt es 2 Möglichkeiten, warum es nicht geht. Der erste wäre, das im Template templates/userinfo.htm die Änderungen fehlen. Und das 2. wäre, wenn in der PHP-Datei login/userinfo.php das gewisse fehlt. Vielleicht hilft dir das ja weiter. Ich könnt mir denken, das der 1. Fall eintreten wird, da sowas ja meistens der Fall ist ôo Und ggf. nochmal im ausgewählten Style gucken, ob das oben genannte Template benutzt wird. Vielleicht fehlen dort ja die Änderungen.
2.)
Hmm .. Existiert in der Datenbank die nötige(n) Spalte(n)? Und ansonsten gilt wie beim 1. Fall, das eine Datei fehlerhaft ist. Da man was eintragen kann, wird nur die PHP-Datei inc/public/usereditprofile.php fehlerhaft sein. Und wenn nicht das, dann gilt der Datenbank-Fall.
Wenn du nicht weiter weist, einfach den Inhalt hier mal posten ôO
|
|
|
|
|
|
|
 |
|
 |
21.06.2009 - 10:41 Uhr |
|
|
|
Also wenn man sich eine Zeit nicht damit beschäftigt hat
Hier mal die Dateien:
Die usereditprofil.htm:
Die usereditprofile.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 | | PHP-Quelltext
<?php
##################################################################
# #
# #
# 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: /inc/public/usereditprofile.php #
# Author: Pierre Gersöne #
# Created: Version 1.6.1 - 2004-05-09 #
# Last Modified: Version 1.6.1 - 2006-02-13 #
# 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 #
# #
##################################################################
$S=&$SQL;
pkLoadFunc('user');
$info=array('user_id'=>0);
$bd_option_year=$uderror=$editprofile_userfield=
$user_email_option_1=$user_email_option_0=$event=
$user_sex_option_1=$user_sex_option_2=$user_sex_option_0=NULL;
if(pkGetUservalue('id')) {
$info=$S->fetch_assoc($S->query("SELECT
user_id,
user_name,
user_pw,
user_profillock,
user_status,
user_nick,
user_pw,
user_email,
user_sex,
user_hpage,
user_aimid,
user_yim,
user_icqid,
user_IngameNick,
user_cpu,
user_graka,
user_xfire,
user_sound,
user_ram,
user_main,
user_maus,
user_tast,
user_moni,
user_inet,
user_pad,
user_emailshow,
user_country,
user_bd_day,
user_bd_month,
user_bd_year,
signin,
user_qou,
user_sig,
user_hobby
FROM ".pkSQLTAB_USER."
WHERE user_name='".$SQL->f(pkGetUservalue('name'))."' AND
user_pw='".$SQL->f(pkGetUservalue('pass'))."' AND
user_id='".$SQL->f(pkGetUservalue('id'))."'
LIMIT 1"));
}
if(!pkGetUservalue('id') || $info['user_id']!=pkGetUservalue('id'))
return pkEvent('access_refused');
if($info['user_profillock']==1)
return pkEvent('eventtitle_profile_update_disabled');
$ACTION=isset($_POST['action']) ? $_POST['action'] : false;
if(isset($_POST['save']) && $ACTION==$_POST['save']) {
$_POST['ud_nick']=trim($_POST['ud_nick']);
$_POST['ud_email']=trim($_POST['ud_email']);
if($_POST['ud_newpw1']!=$_POST['ud_newpw2'])
$uderror='passwords_unequal';
elseif($_POST['ud_newpw1']==$_POST['ud_newpw2'] && $_POST['ud_newpw1']!='')
$ud_userpw=md5($_POST['ud_newpw1']);
elseif($ud_newpw1=="" && $ud_newpw2=="")
$ud_userpw=$USER['pass'];
if($_POST['ud_email']=='')
$uderror='email_empty';
elseif(!emailcheck($_POST['ud_email']))
$uderror='email_invalid';
else
$ud_email=$_POST['ud_email'];
if($_POST['ud_nick']=='')
$uderror='profileupdate_nickname_empty';
elseif(!checkusername($_POST['ud_nick']))
$uderror='nickname_invalid';
else {
$getnick=$S->fetch_array($S->query("SELECT
COUNT(user_name) as count
FROM ".pkSQLTAB_USER."
WHERE user_nick='".$S->f($_POST['ud_nick'])."'
AND user_name!='".$S->f($USER['name'])."'
LIMIT 1"));
if($getnick['count']>0)
$uderror='profileupdate_nickname_in_use';
}
if($uderror)
pkHeaderLocation('editprofile','','uderror='.$uderror);
$vars=array(
'ud_nick'=>'ud_nick',
'ud_hpage'=>'ud_hpage',
'ud_aimid'=>'ud_aimid',
'ud_yim'=>'ud_yim',
'ud_icqid'=>'ud_icqid',
'ud_IngameNick'=>'ud_IngameNick',
'ud_cpu'=>'ud_cpu',
'ud_graka'=>'ud_graka',
'ud_xfire'=>'ud_xfire',
'ud_ram'=>'ud_ram',
'ud_main'=>'ud_main',
'ud_tast'=>'ud_tast',
'ud_maus'=>'ud_maus',
'ud_moni'=>'ud_moni',
'ud_sound'=>'ud_sound',
'ud_inet'=>'ud_inet',
'ud_pad'=>'ud_pad',
'ud_usersig'=>'ud_usersig',
'ud_userqou'=>'ud_userqou',
'ud_userhobby'=>'ud_userhobby',
'ud_sex'=>'ud_sex',
'ud_emailshow'=>'ud_emailshow',
'ud_country'=>'ud_country',
'user_bd_day'=>'user_bd_day',
'user_bd_month'=>'user_bd_month',
'user_bd_year'=>'user_bd_year'
);
foreach($vars as $k=>$v)
$$k=$ENV->_post($v);
$ud_hpage=pkUrlCheck($ud_hpage) ? $ud_hpage : '';
if($user_bd_year > (date('Y',pkTIME)-5) || $user_bd_year<=1900 || !checkdate($user_bd_month,$user_bd_day,$user_bd_year))
$user_bd_day=$user_bd_month=$user_bd_year=0;
$S->query("UPDATE ".pkSQLTAB_USER." SET
uid='".pkRand()."',
user_pw='".$S->F($ud_userpw)."',
user_email='".$S->F($ud_email)."',
user_emailshow='".$S->F($ud_emailshow)."',
user_nick='".$S->F($ud_nick)."',
user_sex='".$S->F($ud_sex)."',
user_country='".$S->F($ud_country)."',
user_hpage='".$S->F($ud_hpage)."',
user_aimid='".$S->F($ud_aimid)."',
user_yim='".$S->F($ud_yim)."',
user_icqid='".$S->F($ud_icqid)."',
user_IngameNick='".$S->F($ud_IngameNick)."',
user_xfire='".$S->F($ud_xfire)."',
user_cpu='".$S->F($ud_cpu)."',
user_graka='".$S->F($ud_graka)."',
user_ram='".$S->F($ud_ram)."',
user_main='".$S->F($ud_main)."',
user_sound='".$S->F($ud_sound)."',
user_maus='".$S->F($ud_maus)."',
user_tast='".$S->F($ud_tast)."',
user_moni='".$S->F($ud_moni)."',
user_inet='".$S->F($ud_inet)."',
user_pad='".$S->F($ud_pad)."',
user_sig='".$S->F($ud_usersig)."',
user_qou='".$S->F($ud_userqou)."',
user_hobby='".$S->F($ud_userhobby)."',
user_bd_day='".$S->F($user_bd_day)."',
user_bd_month='".$S->F($user_bd_month)."',
user_bd_year='".$S->F($user_bd_year)."'
WHERE user_id='".$USER['id']."'"
);
$info=$S->fetch_array($S->query("SELECT
*
FROM ".pkSQLTAB_USER."
WHERE user_id='".$USER['id']."'"));
if(isset($_POST['profilefields']) && is_array($_POST['profilefields'])) {
$query=NULL;
$userfield_counter=$S->fetch_array($S->query("SELECT
COUNT(userid) as counter
FROM ".$db_tab['userfields']."
WHERE userid='".$USER['id']."' LIMIT 1"));
if($userfield_counter['counter']<1)
$S->query("INSERT INTO ".pkSQLTAB_USER_FIELDS." (userid) VALUES ('".$USER['id']."')");
foreach($_POST['profilefields'] as $id=>$value)
$query.=(empty($query) ? '' : ',')."field_".intval($id)."='".$S->f($value)."'";
if($query)
$S->query("UPDATE ".pkSQLTAB_USER_FIELDS."
SET ".$query."
WHERE userid='".$USER['id']."'");
}
session_register("USER");
$array=array(
'nick'=>'nick',
'pass'=>'pw',
'email'=>'email',
'sex'=>'sex',
'hpage'=>'hpage',
'icqid'=>'icqid',
'IngameNick'=>'IngameNick',
'cpu'=>'cpu',
'graka'=>'graka',
'xfire'=>'xfire',
'ram'=>'ram',
'main'=>'main',
'maus'=>'maus',
'tast'=>'tast',
'moni'=>'moni',
'sound'=>'sound',
'inet'=>'inet',
'pad'=>'pad',
'status'=>'status'
);
foreach($array as $k=>$v)
$USER[$k]=$info['user_'.$v];
$SESSION->save('USER',$USER);
pkHeaderLocation('usereditprofile','','event=profileupdate');
}
pkLoadLang('profile');
$userfields=$S->fetch_assoc($S->query("SELECT *
FROM ".pkSQLTAB_USER_FIELDS."
WHERE userid='".$USER['id']."' LIMIT 1"));
$result=$S->query("SELECT
profilefields_id,
profilefields_description,
profilefields_name,
profilefields_maxlength
FROM ".pkSQLTAB_USER_PROFILEFIELDS."
ORDER by profilefields_order ASC");
while(list($fieldid,$fielddescription,$fieldname,$fieldlength)=$S->fetch_row($result)) {
$value=pkEntities($userfields['field_'.$fieldid]);
$name='profilefields['.$fieldid.']';
eval("\$editprofile_userfield.= \"".pkTpl("usereditprofile_userfield")."\";");
}
switch($info['user_sex']) {
case 'w' :
$user_sex_option_1='selected="selected"';
break;
case 'm' :
$user_sex_option_2='selected="selected"';
break;
default :
$user_sex_option_0='selected="selected"';
}
foreach(range(1,31) as $d)
$bd_option_day.='<option value="'.$d.'"'.($info['user_bd_day']==$d ? ' selected="selected"' : '').'>'.$d.'</option>';
foreach(range(1,12) as $m)
$bd_option_month.='<option value="'.$m.'"'.($info['user_bd_month']==$m ? ' selected="selected"' : '').'>'.pkGetSpecialLang('month',$m).'</option>';
foreach(range(date('Y')-5,1900) as $y)
$bd_option_year.='<option '.($info['user_bd_year']==$y ? ' selected="selected"' : '').'>'.$y.'</option>';
$action_target=pkLink('usereditprofile');
$user_name=pkEntities($info['user_name']);
$user_nick=pkEntities($info['user_nick']);
$user_xfire=pkEntities($info['user_xfire']);
$user_cpu=pkEntities($info['user_cpu']);
$user_graka=pkEntities($info['user_graka']);
$user_ram=pkEntities($info['user_ram']);
$user_main=pkEntities($info['user_main']);
$user_maus=pkEntities($info['user_maus']);
$user_tast=pkEntities($info['user_tast']);
$user_moni=pkEntities($info['user_moni']);
$user_sound=pkEntities($info['user_sound']);
$user_inet=pkEntities($info['user_inet']);
$user_pad=pkEntities($info['user_pad']);
$user_email=pkEntities($info['user_email']);
$user_aimid=pkEntities($info['user_aimid']);
$user_yim=pkEntities($info['user_yim']);
$user_IngameNick=pkEntities($info['user_IngameNick']);
$user_sig=pkEntities($info['user_sig']);
$user_qou=pkEntities($info['user_qou']);
$user_hobby=pkEntities($info['user_hobby']);
$user_hpage=pkEntities($info['user_hpage']);
$user_status=pkUserStatus($info['user_status']);
$user_signin=formattime($info['signin']);
$user_country=pkUserCountryOptionlist($info['user_country']);
$user_icqid=intval($info['user_icqid'])>0 ? intval($info['user_icqid']) : NULL;
$user_IngameNick=intval($info['user_IngameNick'])>0 ? intval($info['user_IngameNick']) : NULL;
$info['user_emailshow']==1 ? $user_email_option_1=' checked="checked"' : $user_email_option_0=' checked="checked"';
$user_navigation=pkUsernavigation();
$L_save=pkGetLang('save');
$L_reset=pkGetLang('reset');
foreach(array(
'edit_profile',
'username',
'username_description',
'userstatus',
'userstatus_description',
'member_since',
'required_specifications',
'nickname',
'nickname_description',
'password',
'password_description',
'confirm_password',
'confirm_password_description',
'email',
'email_description',
'optional_specifications',
'show_email',
'show_email_description',
'sex',
'sex_description',
'sex_not_specified',
'sex_male',
'sex_female',
'dateofbirth',
'dateofbirth_description',
'dateofbirth_day',
'dateofbirth_month',
'dateofbirth_year',
'origin',
'origin_description',
'origin_ger',
'origin_aut',
'origin_ch',
'origin_nl',
'origin_oth',
'origin_def',
'homepage',
'homepage_description',
'aim_screenname',
'aim_screenname_description',
'yim',
'yim_description',
'icq',
'icq_description',
'IngameNick',
'IngameNick_description',
'xfire',
'xfire_description',
'cpu',
'cpu_description',
'graka',
'graka_description',
'ram',
'ram_description',
'main',
'main_description',
'tast',
'tast_description',
'maus',
'maus_description',
'moni',
'moni_description',
'sound',
'sound_description',
'inet',
'inet_description',
'pad',
'pad_description',
'signature',
'signature_description',
'quotation',
'quotation_description',
'hobbies',
'hobbies_description'
) as $l) {
$v='L_editprofile_'.$l;
$$v=pkGetLang($l);
}
eval("\$site_body.= \"".pkTpl("usereditprofile")."\";");
unset($S);
?>
| |  |
Die login/userinfo
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 | | PHP-Quelltext
<?php
if (getrights($config['member_infoshow'])=="true") {
if (!$_REQUEST['id'] && $USER['id']!=0) $id=$USER['id'];
else $id=intval($_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]);
}
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'];
$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'];
eval ("\$info_extended.= \"".getTemplate("userinfo_ext")."\";");
}
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'];}
/* Ingame Nick*/
if ($userinfo[user_IngameNick]!="") {eval ("\$info_IngameNick= \"".getTemplate("member_IngameNick_textlink")."\";");}
else {$info_IngameNick=$lang['not_specified'];}
/* Ingame Nick*/
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);}
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");}
?>
| |  |
Erstell dir noch ein Account mit Adminrechten zum nachsehn was ich meine.
Schick es dir per IM.
Geht nicht. Du hast IM ausgeschaltet. lol
Hide-Hack (Mindeststatus : Moderator) | Mindestens Moderatorenstatus nötig! |
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Nueschtmanescht - 21.06.2009 - 10:48 Uhr |
|
|
|
|
|
|
|
 |
|
|
 |
Ähnliche Themen |
|
|
|
|
|
|
|
|