Punktemodul v1.0

Eingetragen von Rock@wulf am So, 10. Jan 2010 - 10:06


Fehler: Fatal error: Cannot redeclare getteams()

Lösung: in der Datei include/admin/awards.php

folgendes ändern:

function getTeams () { zu function getTeamsoption () {

und

'teams' => getTeams()); zu 'teams' => getTeamsoption());

##############################

Fehler:
Fatal error: Call to undefined function user_remove()

Lösung: in der Datei include/includes/func/user.php

folgendes einfügen:

Vor ?>

function user_remove($uid){
    $row = @db_fetch_object(db_query("SELECT recht,avatar FROM xic_user WHERE id = ".$uid));
    if ( $uid <> 1 AND ($_SESSION['authid'] == $uid OR $_SESSION['authid'] == 1 OR (is_coadmin() AND $_SESSION['authright'] < $row->recht))) {
        db_query("DELETE FROM xic_user WHERE id = ".$uid);
        db_query("DELETE FROM xic_userfields WHERE uid = ".$uid);
        db_query("DELETE FROM xic_groupusers WHERE uid = ".$uid);
        db_query("DELETE FROM xic_modulerights WHERE uid = ".$uid);
        db_query("DELETE FROM xic_pm WHERE eid = ".$uid);
        db_query("DELETE FROM xic_online WHERE uid = ".$uid);
        //Usergallery entfernen
        $sql = db_query("SELECT id,endung FROM xic_usergallery WHERE uid = ".$uid);
        while( $r = db_fetch_object($sql) ){
            @unlink("include/images/usergallery/img_$r->id.$r->endung");
            @unlink("include/images/usergallery/img_thumb_$r->id.$r->endung");
        }
        db_query("DELETE FROM xic_usergallery WHERE uid = ".$uid);
        //Avatar
        @unlink($row->avatar);
    }
}