Файл: system/modules/newuser.php
Строк: 24
<?php
if(!defined('MOZG'))
die('Hacking attempt!');
$tpl->load_template('reg2.tpl');
//################## Загружаем Страны ##################//
$sql_country = $db->super_query("SELECT SQL_CALC_FOUND_ROWS * FROM `".PREFIX."_country` ORDER by `name` ASC", true, "country", true);
$where_sql .= "WHERE user_email != ''";
$numRows = $db->super_query("SELECT COUNT(*) AS cnt FROM `".PREFIX."_users` {$where_sql}");
$tpl->set('{cnt}', $numRows['cnt']);
foreach($sql_country as $row_country)
$all_country .= '<option value="'.$row_country['id'].'">'.stripslashes($row_country['name']).'</option>';
$tpl->set('{country}', $all_country);
$tpl->compile('content');
?>