| 
      
       |  |  
       | 
  
  
   | 
     
      | 
 
  |  |  
  | Latest News | Latest Threads |  
  |  | 
    
     |  |  
     | 57.158 Posts & 4.945 Themen in 78 Foren |  |  |  
  |  |  
 
 
  
   | 
     
      |  | Forensuche |  |  Suchbegriff | Benutzerauswahl | Ergebnisse anzeigen |  
 
 
  |  |  
  | 
    
     |  | Fehler in der admin/notused.php 7 Beiträge in diesem Thema
 |  |  |  
 
  |  |  
  |  |  |  
 
  |  |  
  | 
    
     |  | 
       
        | 
          
           |  | 12.01.2008 - 16:42 Uhr |  |  
           |  |  |  
        | 
          
           | Hallo zusammen ich habe einen fehler in meiner admin/notused.php. 
 flogende fehlermeldung bekomme ich wenn ich im admincenter auf den link ungenutzte accounts gehe auf der hauptseite vom admincenter.
 
 Parse error: syntax error, unexpected $end in /home/sofixdbe/www.sofix-online.de/phpkit/admin/notused.php on line 63
 
 
    |          |                | 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
 
 |  | PHP-Quelltext        <?phpif (adminaccess('user')) {
 if ($_POST['action']!='') $ACTION=$_POST['action'];
 else $ACTION='view';
 
 if ($ACTION==$_POST['delete'] && is_array($_POST['del_unused'])) {
 unset($sqlcommand);
 unset($sqlcommand2);
 foreach($_POST['del_unused'] as $i) {
 if ($i>1) {
 if ($sqlcommand) $sqlcommand.=" OR user_id='".$i."'";
 /**************************************** IM_Client_Lock Anfang ****************************************/
 else {$sqlcommand="DELETE FROM ".$db_tab['user']." WHERE user_id='".intval($i)."'";
 if(!function_exists('array_delete_user')) {
 function array_delete_user($user,$editid) {
 foreach($user as $user_1){
 if($user_1<>$editid)
 $user_2[]=$user_1;}
 return $user_2;}
 }
 $id_search="-".$i."-";
 $del_user_go=$DB->query("SELECT `user_id`, `user_noim_id` FROM `".$db_tab['user']."` WHERE `user_noim_id` LIKE '%".intval($id_search)."%'");
 while ($del_user=$DB->fetch_array($del_user_go)) {
 $del_user['user_noim_id']=substr($del_user['user_noim_id'], 1, -1);
 $del_user['user_noim_id'] = explode("-", $del_user['user_noim_id']);
 $del_user['user_noim_id']=array_delete_user($del_user['user_noim_id'],$i);
 if ($del_user['user_noim_id'][0]=="0") unset($del_user['user_noim_id']);
 elseif (is_array($del_user['user_noim_id'])) $del_user['user_noim_id']="-".implode("-",$del_user['user_noim_id'])."-";
 $DB->query("UPDATE `".$db_tab['user']."` SET `user_noim_id`='".addslashes($del_user['user_noim_id'])."' WHERE `user_id`='".intval($del_user['user_id'])."'");
 /**************************************** IM_Client_Lock Ende   ****************************************/
 /**************************************** IM Anhang ****************************************/
 $del_att=$DB->query("SELECT * FROM `".$db_tab['im']."` WHERE im_to='".intval($id)."' AND `imatt_file`!=''");
 while($del_att_ok=$DB->fetch_array($del_att)) {
 $del_go=$DB->fetch_array($DB->query("SELECT `imatt_dir` FROM `".$sqlprefix."_imatt`"));
 @unlink("./../".$del_go['imatt_dir'].$del_att_ok['imatt_file']);
 }
 }
 /**************************************** IM Anhang ****************************************/
 if ($sqlcommand2) $sqlcommand2.=" OR userid='".$i."'";
 else $sqlcommand2="DELETE FROM ".$db_tab['userfields']." WHERE userid='".$i."'";
 }
 }
 if ($sqlcommand) $DB->query($sqlcommand);
 if ($sqlcommand2) $DB->query($sqlcommand2);
 header("location: admin.php?path=notused.phpsession_id()); exit();
 }
 unset($notused_row);
 
 $getnotused=$DB->query("SELECT user_id, user_name, user_nick, signin, user_email FROM ".$db_tab['user']." WHERE logtime=0 ORDER by signin ASC");
 while ($userinfo=$DB->fetch_array($getnotused)) {
 $row=rowcolor($row);
 $info_signin=formattime($userinfo['signin']);
 $info_notused_since=number_format((time()-$userinfo['signin'])/(3600*24),0,",",".");
 
 eval ("\$notused_row.= \"".templateinclude("notused_row")."\";");
 }
 
 if ($notused_row) eval ("\$notused_row.= \"".templateinclude("notused_option1")."\";");
 else eval ("\$notused_row.= \"".templateinclude("notused_option2")."\";");
 eval ("\$site_body.= \"".templateinclude("notused")."\";");
 }
 else {header ("location: admin.phpsession_id()); exit();}
 ?>
 |  |     |  |  
 kann mir einer sagen wo da der fehler sein soll?
 i finde nix.
 
 
 |  
           |  |  
           |  |  |  |  |  |  
 
  |  |  
  |  |  
 
  |  |  
  | 
    
     |  | 
       
        | 
          
           |  | 12.01.2008 - 16:49 Uhr |  |  
           |  |  |  
        | 
          
           | hier bitte die datei notused.php denke das du die willst webi 
 
 |  
           |  |  
           |  |  |  |  |  |  
 
  |  |  
  | 
    
     | 
       
        | 
          
           |  WEBI Unberechenbares Urgestein
 |  
           |  |  |  
        |  |  
        |  |  
        |  |  
        |  |  
        |  |  
        |  |  | 
       
        | 
          
           |  | 12.01.2008 - 17:09 Uhr |  |  
           |  |  |  
        | 
          
           |    |          |                | 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
 
 |  | PHP-Quelltext        <?phpif (adminaccess('user')) {
 if ($_POST['action']!='') $ACTION=$_POST['action'];
 else $ACTION='view';
 
 if ($ACTION==$_POST['delete'] && is_array($_POST['del_unused'])) {
 unset($sqlcommand);
 unset($sqlcommand2);
 
 foreach($_POST['del_unused'] as $i) {
 if ($i>1) {
 
 if ($sqlcommand) $sqlcommand.=" OR user_id='".$i."'";
 
 /**************************************** IM_Client_Lock Anfang ****************************************/
 else {
 $sqlcommand="DELETE FROM ".$db_tab['user']." WHERE user_id='".intval($i)."'";
 
 if(!function_exists('array_delete_user')) {
 function array_delete_user($user,$editid) {
 foreach($user as $user_1){
 if($user_1<>$editid)
 $user_2[]=$user_1;}
 return $user_2;}
 }
 $id_search="-".$USER['id']."-";
 $del_user_go=$DB->query("SELECT `user_id`, `user_noim_id` FROM `".$db_tab['user']."` WHERE `user_noim_id` LIKE '%".intval($id_search)."%'");
 while ($del_user=$DB->fetch_array($del_user_go)) {
 $del_user['user_noim_id']=substr($del_user['user_noim_id'], 1, -1);
 $del_user['user_noim_id'] = explode("-", $del_user['user_noim_id']);
 $del_user['user_noim_id']=array_delete_user($del_user['user_noim_id'],$USER['id']);
 if ($del_user['user_noim_id'][0]=="0") unset($del_user['user_noim_id']);
 elseif (is_array($del_user['user_noim_id'])) $del_user['user_noim_id']="-".implode("-",$del_user['user_noim_id'])."-";
 $DB->query("UPDATE `".$db_tab['user']."` SET `user_noim_id`='".addslashes($del_user['user_noim_id'])."' WHERE `user_id`='".intval($del_user['user_id'])."'");
 }
 /**************************************** IM_Client_Lock Ende   ****************************************/
 
 /**************************************** IM Anhang ****************************************/
 $del_att=$DB->query("SELECT * FROM `".$db_tab['im']."` WHERE im_to='".intval($id)."' AND `imatt_file`!=''");
 while($del_att_ok=$DB->fetch_array($del_att)) {
 $del_go=$DB->fetch_array($DB->query("SELECT `imatt_dir` FROM `".$sqlprefix."_imatt`"));
 @unlink("./../".$del_go['imatt_dir'].$del_att_ok['imatt_file']);
 }
 }
 /**************************************** IM Anhang ****************************************/
 
 if ($sqlcommand2) $sqlcommand2.=" OR userid='".$i."'";
 else $sqlcommand2="DELETE FROM ".$db_tab['userfields']." WHERE userid='".$i."'";
 }
 }
 
 if ($sqlcommand) $DB->query($sqlcommand);
 if ($sqlcommand2) $DB->query($sqlcommand2);
 header("location: admin.php?path=notused.php"); exit();
 }
 unset($notused_row);
 
 $getnotused=$DB->query("SELECT user_id, user_name, user_nick, signin, user_email FROM ".$db_tab['user']." WHERE logtime=0 ORDER by signin ASC");
 while ($userinfo=$DB->fetch_array($getnotused)) {
 $row=rowcolor($row);
 $info_signin=formattime($userinfo['signin']);
 $info_notused_since=number_format((time()-$userinfo['signin'])/(3600*24),0,",",".");
 
 eval ("\$notused_row.= \"".templateinclude("notused_row")."\";");
 }
 
 if ($notused_row) eval ("\$notused_row.= \"".templateinclude("notused_option1")."\";");
 else eval ("\$notused_row.= \"".templateinclude("notused_option2")."\";");
 eval ("\$site_body.= \"".templateinclude("notused")."\";");
 }
 else {header ("location: admin.php"); exit();}
 ?>
 |  |     |  |  
 
 |  
           |  |  
           |  |  |  |  |  |  
 
  |  |  
  | 
    
     |  | 
       
        | 
          
           |  | 12.01.2008 - 17:18 Uhr |  |  
           |  |  |  
        | 
          
           | supi vielen dank webi funzt wieder. 
 was für ein einbaufehler habe ich denne gemacht?
 
 
 |  
           |  |  
           |  |  |  |  |  |  
 
  |  |  
  | 
    
     | 
       
        | 
          
           |  WEBI Unberechenbares Urgestein
 |  
           |  |  |  
        |  |  
        |  |  
        |  |  
        |  |  
        |  |  
        |  |  |  |  |  
 
  |  |  
  | 
    
     |  | 
       
        | 
          
           |  | 12.01.2008 - 17:23 Uhr |  |  
           |  |  |  
        | 
          
           | aso na dann dank ich für den schnellen support. 
 
 |  
           |  |  
           |  |  |  |  |  |  
 
 
  | 
    
     |  | Ähnliche Themen |  
     |  |  |  |  
      | 
 |  |  |  
       |  |  |