Jetzt kostenlos Anmelden!

Gabberhimmel Männlich

lernt alles kennen

Beiträge: 86

Geschlecht: Männlich

Wohnort: Ratingen

PHPKIT Version: 1.6.1

1

Samstag, 21. August 2010, 21:36

Problem mit User_Pic

Hallo,

da ich auf www.esa-clan.de leider keione antwort bekomme, hoffe ich das mir hier jemand weiter helfen kann.

habe das Addon User Pic Version1.1.1 für PHPKit 1.6.1 bei mir eingebaut und nun habe ich folgendes Problem:

Wenn ich im Adminbereich auf die Konfiguration "Einstellungen", dort auf "Alle" gehe und dort auf Speichen klicke, werde ich ausgeloggt.

Was ist hier schief gelaufen?

Gruss
Tommy

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Gabberhimmel« (21. August 2010, 22:03)

  • Zum Seitenanfang
  • Zum Seitenende

Superkater13439 Männlich

1.6.1 Groupie

Beiträge: 1 361

Geschlecht: Männlich

Wohnort: Berlin

PHPKIT Version: 1.6.1

2

Samstag, 21. August 2010, 22:15

Dann hast du wohl einen Fehler in der admin/config.php.

Vergleiche die originale Datei mit deiner bzw. kontrolliere den Einbau der Codestelle.

LG
Kater

Edit:

3 Tage ist auch nicht gerade viel Wartezeit, oder?
Und was hat bitte das PKSM mit dem Adminbereich zu tun? Ich verstehe dein Posting auf esa-clan.de nicht wirklich.
Das sind 2 paar Schuhe.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Superkater13439« (21. August 2010, 22:21)

  • Zum Seitenanfang
  • Zum Seitenende

Gabberhimmel Männlich

lernt alles kennen

Beiträge: 86

Geschlecht: Männlich

Wohnort: Ratingen

PHPKIT Version: 1.6.1

3

Samstag, 21. August 2010, 22:28

Sorry aber das mit dem SecurityModule hat sich schon erledigt, trotzdem danke.

Danke auch für die Antwort, ich wusste nicht genau, welche Datei ich mir ansehen muss.
  • Zum Seitenanfang
  • Zum Seitenende

Superkater13439 Männlich

1.6.1 Groupie

Beiträge: 1 361

Geschlecht: Männlich

Wohnort: Berlin

PHPKIT Version: 1.6.1

4

Samstag, 21. August 2010, 22:31

Also, da es vor dem Einbau funktionierte und danach nicht, kann es nur eine Datei im Adminbereich, die in der Anleitung steht, sein. ;)
  • Zum Seitenanfang
  • Zum Seitenende

Gabberhimmel Männlich

lernt alles kennen

Beiträge: 86

Geschlecht: Männlich

Wohnort: Ratingen

PHPKIT Version: 1.6.1

5

Samstag, 21. August 2010, 22:52

Hab die alte admin/config.php hochgeladen und dort kommt der Fehler nicht mehr.
Hab die Datei so bearbeitet, wie es in der Anleitung steht, aber der Fehler tritt wieder auf.
Hat jemand eine Idee woran es liegen könnte, bzw. was ich ändern muss?

In der Anleitung steht folgendes:

Zitat

Editiere BEI PHPKIT1.6.1 und 1.6.03 die admin/config.php
----------->
SUCHE:
eval ("\$config_do.= \"".templateinclude("config_offline")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}

FÜGE DARUNTER DAS EIN:
/**************************************** USER_PIC Anfang ****************************************/
include("user_pic/userpic_config.php");
/**************************************** USER_PIC Ende ****************************************/
Hier mal meine admin/config.php:

PHP-Quelltext

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
<?php
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=newprofil&PHPKITSID=".session_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()."&PHPKITSID=".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=basic&PHPKITSID=".session_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")."\";");
    }
   }
  }
/********************* Laberecke Anfang *********************/
  include("laberecke/laberecke_config.php");
/********************* Laberecke Ende ***********************/
 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."', notify_premie_i='".$notify_by_premie_im."',  notify_premie_m='".$notify_by_premie_mail."' 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']<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']."' 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")."\";");
    }
   }
  }

 if ($ACTION==$_POST['action']) {header("location: admin.php?do=".$_POST['do']."&PHPKITSID=".session_id()); exit();}
 elseif ($do!='') {
  if ($do!='all') eval ("\$config_do= \"".templateinclude("config_".$do."")."\";");
  eval ("\$site_body.= \"".templateinclude("config")."\";");
  }
 }
else {header ("location: admin.php?PHPKITSID=".session_id()); exit();}
?>

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Gabberhimmel« (21. August 2010, 23:07)

  • Zum Seitenanfang
  • Zum Seitenende

Stifli Männlich

kennen Einige hier

Beiträge: 335

Geschlecht: Männlich

Wohnort: -=]Kreuzberg[=-

PHPKIT Version: 1.6.5

6

Samstag, 21. August 2010, 23:12

der Code aus dem userpic ist in deiner config gar nicht eingetragen....

OffTopic
:) :( ;) :P 8) :D ;( :rolleyes: :huh: :S :love: X( 8| ?( :cursing: :| :thumbdown: :thumbsup: :thumbup: 8o :pinch: :sleeping: *btt*
  • Zum Seitenanfang
  • Zum Seitenende

Superkater13439 Männlich

1.6.1 Groupie

Beiträge: 1 361

Geschlecht: Männlich

Wohnort: Berlin

PHPKIT Version: 1.6.1

7

Samstag, 21. August 2010, 23:15

Dieser Codeteil:

PHP-Quelltext

1
2
3
/**************************************** USER_PIC Anfang ****************************************/
include("user_pic/userpic_config.php");
/**************************************** USER_PIC Ende ****************************************/ 

kommt in die Zeile 401

Natürlich müssen auch die Datei userpic_config.php und die templates hoch geladen werden.
Ich gehe davon aus, dass du die install.php auch erfolgreich ausgeführt hast.

LG
Kater
  • Zum Seitenanfang
  • Zum Seitenende

Gabberhimmel Männlich

lernt alles kennen

Beiträge: 86

Geschlecht: Männlich

Wohnort: Ratingen

PHPKIT Version: 1.6.1

8

Sonntag, 22. August 2010, 00:15

Hab alles gemacht, alle Dateien sind oben und die config.php ist auch wie beschrieben, bearbeitet worden, aber flieg immer noch raus.
  • Zum Seitenanfang
  • Zum Seitenende

Superkater13439 Männlich

1.6.1 Groupie

Beiträge: 1 361

Geschlecht: Männlich

Wohnort: Berlin

PHPKIT Version: 1.6.1

9

Sonntag, 22. August 2010, 00:35

Hmmm, generell denke ich, dass der Fehler bei dir liegt. Das AddOn ist garantiert schon zig mal erfolgreich eingebaut worden.
Gehe die Anleitung im Bereich Admin noch mal genau durch.

LG
Kater
  • Zum Seitenanfang
  • Zum Seitenende