virt2/api/code/bonus_prog.php

28 lines
580 B
PHP
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);
}
?>