Опубліковано 3 січня, 20169 р Адміністратор Перейти на FTP-Клиент.sources\components_public\downloads\submit.phpНайти://--------------------------------------------------------- // We need this for the topic posting, and subscription // notifications. Let's instantiate it here. //---------------------------------------------------------Добавить выше:if ( $open == 1 && $this->ipsclass->member['mgroup'] == 3 ) { $this->ipsclass->DB->do_update( 'members', array( 'mgroup' => XX, ), 'id='.( $this->ipsclass->member['id'] ) ); }Перейти:sources\components_public\downloads\moderate.phpНайти:$this->ipsclass->DB->build_query( array( 'select' => 'members_display_name, email, view_pop, email_pm', 'from' => 'members', 'where' => 'id='.intval($mid) ) ); $this->ipsclass->DB->exec_query(); $author = $this->ipsclass->DB->fetch_row(); $to_update = array( 'file_open' => 1, 'file_approver' => $this->ipsclass->member['id'], 'file_approvedon' => time(), 'file_new' => 0 ); $this->ipsclass->DB->do_update( "downloads_files", $to_update, "file_id=".$id );Заменить на:$this->ipsclass->DB->build_query( array( 'select' => 'members_display_name, email, view_pop, email_pm, mgroup', 'from' => 'members', 'where' => 'id='.intval($mid) ) ); $this->ipsclass->DB->exec_query(); $author = $this->ipsclass->DB->fetch_row(); $to_update = array( 'file_open' => 1, 'file_approver' => $this->ipsclass->member['id'], 'file_approvedon' => time(), 'file_new' => 0 ); if ( $author['mgroup'] == 3 ) { $this->ipsclass->DB->do_update( 'members', array( 'mgroup' => XX, ), 'id='.( $mid ) ); } $this->ipsclass->DB->do_update( "downloads_files", $to_update, "file_id=".$id );Помните, чтобы изменить ХХ на ID группы, которую вы хотите.
Для публікації повідомлень створіть обліковий запис або авторизуйтесь