<div class="auth_inf">
                        Suggested by <?php 
        echo render::giveAuthor($idea['auth_id']);
        ?>
 on <?php 
        echo date('jS \\o\\f F Y', strtotime($idea['sub_date']));
        ?>
 | 
                        <a href="<?php 
        echo HTTP_CORE_BASE;
        ?>
idea/id/<?php 
        echo $idea['id'];
        ?>
/title/<?php 
        echo render::makeTitle($idea['idea']);
        ?>
"><b>
                                <?php 
        echo render::giveComments($idea['comments']);
        ?>
</b></a>
                    </div>
                    <?php 
        if (!empty($idea['admin_comment'])) {
            ?>
                        <div class="admin_comment">
                            <div id="com_status_<?php 
            echo $idea['id'];
            ?>
" class="ad_<?php 
<?php

include '../../../core/main.class.php';
$main = new Main();
//check for loged in
$title = Security::secureString($_GET['title']);
$descr = Security::secureString($_GET['description']);
$auth_id = session::get_param('user_id');
$main->con()->db_query("INSERT INTO feedback_ideas (idea,description,sub_date,auth_id) VALUES('{$title}','{$descr}',NOW(),'{$auth_id}')");
//insert si in votes votu lu asta!
$id = mysql_insert_id();
$idea = mysql_fetch_array($main->con()->db_query("SELECT idea,id FROM feedback_ideas WHERE id='{$id}'"));
$url = HTTP_CORE_BASE . 'idea/id/' . $idea['id'] . '/' . render::makeTitle($idea['idea']);
echo '&url=' . $url;
<?php

if (!defined('CORE_DIR')) {
    die('No direct script access allowed');
}
$voted_ideas = array();
if (session::check()) {
    $videas_q = $main->con()->db_query("SELECT idea_id FROM feedback_votes WHERE voter_id='" . session::get_param('user_id') . "'");
    while ($i_videas = mysql_fetch_assoc($videas_q)) {
        $voted_ideas[] = $i_videas;
    }
}
$id = $pars['id'];
$idea = mysql_fetch_array($main->con()->db_query("SELECT * FROM feedback_ideas WHERE id='{$id}'"));
$title = $idea['idea'];
$idea_link = 'idea/id/' . $id . '/title/' . render::makeTitle($title);
if (!isset($pars['page'])) {
    $page = 1;
} else {
    $page = $pars['page'];
}
$order = ' ORDER BY date DESC';
$selu = "idea_id='{$id}'";
//SEARCH TIME
$sql = "SELECT * FROM feedback_comments WHERE " . $selu . "" . $order;
$p = new Paginator($sql, COMMENTS_PER_PAGE, $pars, $pagename);
$total_pages = $p->getTotalPages();
if ($page > 0) {
    $prev_page = $page - 1;
}
if ($total_pages > $page) {