<form method="post"> Фильмов на страницу: <input type="number" min="1" max="100" name="set_news_number" value="{include file="engine/mods/news_number.php?echolist=1"}" /> </form>
<?PHP if(!defined('DATALIFEENGINE'))die("Hacking attempt!"); $aviable_news_numbers = isset($_POST['set_news_number']) ? intval($_POST['set_news_number']) : 10; $aviable_news_numbers = min(100,max(1,$aviable_news_numbers)); if($echolist) echo $aviable_news_numbers; elseif(isset($_POST['set_news_number'])) $config['news_number'] = $aviable_news_numbers; ?>
$parent_id = $cat_info[$id]['parentid'];
if( $rating AND $vote_num ) $rating = round( ($rating / $vote_num), 0 );
if( $rating AND $vote_num ) $rating = round( ($rating / $vote_num), 2 );
$rating = $rating * 20;
$rating = floor( $rating * 20 );