title; include($mainpart . 'data/header.php'); echo('

'. $lang[comments_to_article] .': '. $row->title .'

'); $id = $_GET['article']; $suffix = 'articles'; $for = 'article'; } elseif(isset($_GET['news'])) { $result=sql_query("SELECT id, title, item FROM ".$SQL_PREFIX."_news WHERE id = '" . $_GET['news'] . "';"); $row = sql_fetch_object($result); $title = $row->title; include($mainpart . 'data/header.php'); echo('

'. $lang[comments_to_news] .': '. $row->title .'

'); $id = $_GET['news']; $suffix = 'news'; $for = 'news'; } elseif(isset($_GET['info'])) { }*/ $id = $article->id; $suffix = 'articles'; $for = 'article'; echo(''. $lang[new_comment] .''); /* prehled komentaru */ /*echo(''); echo(''); $lang_isnt_comments = $lang[isnt_comments]; function exposeTree($tree) { global $level, $id,$SQL_PREFIX,$lang_isnt_comments,$date,$time,$suffix,$for; $level=$level+1; $space=''; for ($i=1;$i<$level;$i++) { $space.="   "; } $result=sql_query("SELECT id, reply, author, email, subject, time FROM ".$SQL_PREFIX."_comments_".$suffix." WHERE idw = '" . $id . "' and reply = '" . $tree . "';"); if ($result == 0) { echo('
Error MySQL ' . mysql_errno() . ': ' . mysql_error() . '
'); } elseif (sql_num_rows($result) == 0) { if($tree=='0') {echo('');} else { } } else { for ($i=0;$itime, 0, 10); $time = $comment->time; $month = substr($comment->time, 5, 2); DateFormat($date); TimeFormat($time); echo(''); if(strlen($comment->subject) < 30) { echo(''); } else { echo(''); } if(strlen($comment->author) < 20) { echo(''); } else { echo(''); } echo(''); echo(''); exposeTree($comment->id); } } $level=$level-1; } $level='0'; exposeTree(0); echo('
'. $lang[comment_subject] .''. $lang[comment_author] .''. $lang[comment_datetime] .'

'.$lang_isnt_comments.'

'. $space .''. $comment->subject .''. $space . substr($comment->subject, 0, 29) .'...'. $comment->author .''. substr($comment->author, 0, 19) .'...'. $date .' '. $time .'
');*/ /* vypis komentaru */ echo('
'); $lang_isnt_comments = $lang[isnt_comments]; $lang_reply_comment = $lang[reply_comment]; $cfg_server_url = $cfg['server_url']; function expose($tree) { global $level,$id,$SQL_PREFIX,$lang_isnt_comments,$lang_reply_comment,$day,$month,$date,$time,$suffix,$for,$cfg_server_url; $level=$level+1; $space=''; for ($i=1;$i<$level;$i++) { $space.='     '; } $result=sql_query("SELECT * FROM ".$SQL_PREFIX."_comments_".$suffix." WHERE idw = '" . $id . "' and reply = '" . $tree . "';"); if ($result == 0) { echo('
Error MYSQL ' . mysql_errno() . ': ' . mysql_error() . '
'); } elseif (sql_num_rows($result) == 0) { if($stromid=='0') { echo('
'.$lang_isnt_comments .'
'); } } else { for ($i=0;$itime, 0, 4); $month = substr($comment->time, 4, 2); $day = substr($comment->time, 6, 2); $date = $year.'-'.$month.'-'.$day; $hour = substr($comment->time, 8, 2); $min = substr($comment->time, 10, 2); $sec = substr($comment->time, 12, 2); $time = $hour.':'.$min.':'.$sec; $fulldate = $date.' '.$time; DateFormat($date); TimeFormat($time); $day = date('D', strtotime($fulldate)); NameDay($day); if(!empty($comment->ip)) { $host = gethostbyaddr($comment->ip); if($host == $comment->ip) { $ipExplode = explode('.',$comment->ip); $ip = $ipExplode[0].'.'.$ipExplode[1].'.'.$ipExplode[2].'.'.'x'; } else { $ip = $host; } } echo(''); echo(''); echo('
'); echo($space . ''); echo('
'); echo('
'. $day .', '. $date .' '. $time .'
'); echo('Titulek: ' . $comment->subject . '
'); echo('Autor: ' . $comment->author . ", "); if(!empty($comment->email)) { echo($comment->email . ', '); } echo($ip .'
'); echo('
'. $comment->text .'
'); echo('

'); expose($comment->id); } } $level=$level-1; } $level='0'; expose(0); /* Vlozeni noveho komentare */ echo(''); echo('
'); if(isset($_SESSION['nickname'])) { $user_name = $_SESSION['realname']; $user_email = $_SESSION['user_email']; } else { $user_name = $_COOKIE['f_comment_author']; $user_email = $_COOKIE['f_comment_email']; } echo('
'. $lang[comment_name] .':
'. $lang[comment_email] .':
'. $lang[comment_subject] .':

'); if($cfg['captcha'] == 1 && !isset($_SESSION['nickname'])) { echo('
Verification code: Visual CAPTCHA Insert this code here:

'); } if(!isset($_SESSION['nickname'])) { echo(' '. $lang[store_name_email]); } echo('
'); //include('data/footer.php'); ?>