virt2/api/code/set_rekv.php_1595859054.old

21 lines
593 B
Plaintext
Executable File

<?php
//бля
if (file_exists(MYDIR . '/api/code/ajax/' . ID . '.php'))
include MYDIR . '/api/code/ajax/' . ID . '.php';
else{
$db -> 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);
}
?>