Файл: modules/index/controllers/index.php
Строк: 13
<?defined('SYSPATH') or die('<b>403<br />Запрет доступа</b>');
class Index extends Controller
{
public function action_index()
{
$assoc = mysql_query("SELECT * FROM `sites` ORDER BY `time` DESC LIMIT 6");
while($site=mysql_fetch_assoc($assoc))
{
$res .= '<a href="'.URL.'analiz/'.$site['url'].'">'.$site['url'].'</a> [PR '.$site['google_pr'].' | Тиц '.$site['yandex_cy'].']<br/>';
}
if(empty($_SESSION['capcha'])){
$_SESSION['capcha'] = rand(0000,9999);
}else{
$_SESSION['capcha'] = $_SESSION['capcha'];
}
$this->view->display("Главная страница",$res,'index');
}
}