"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { $maxnum=$row["maxnum"]; } $minnum=$maxnum-200; $sql='SELECT * FROM news WHERE num="'.$n.'"'; //echo mysql_errno().": ".mysql_error()."
"; $result=mysql_query($sql); $row=mysql_fetch_array($result); $title_zag = strip_tags($row["title"]); $shapka=file("../cgi-bin/shablon/top1"); $new_title = ''.$title_zag.' : Новости : ПРО ФУТБОЛ'; for ($i = 0; $i < sizeof($shapka); $i++) { $shapka[$i] = str_replace('-=ПРО ФУТБОЛ=-', $new_title, $shapka[$i]); echo $shapka[$i]; } $zagolovok=$row["title"]; $article1=$row["text"]; $article=$row["full_text"]; if(!$article){ $article=$article1; } $date_mess=$row["date_news"]; $sent_by=$row["sent_by"]; $source=$row["source"]; $link=$row["link"]; $num=$row["num"]; $country1=$row["country1"]; $country2=$row["country2"]; $turnir=$row["turnir"]; $author=$row["author"]; echo '

'; ?>
'; echo "
$zagolovok

"; if ($row["photo_path"]) { echo ' '.$row['; } echo " $article


"; if($author) echo $author.'

'; echo "
Дата: $date_mess Источник: $source
"; echo'

'; $beg=0; $sql='SELECT * FROM news WHERE num > '.$minnum.' AND num != '.$n.''; if($country1 != 'no'){ $sql_add=" AND (country1 = '".$country1."' OR country2 = '".$country1."'"; $beg=1; } if($country2 != 'no' AND $beg==0){ $sql_add=" AND (country1 = '".$country2."' OR country2 = '".$country2."'"; $beg=1; }elseif($country2 != 'no' AND $beg==1){ $sql_add=$sql_add." OR country1 = '".$country2."' OR country2 = '".$country2."'"; } if($turnir != 'no' AND $beg==0){ $sql_add=" AND (turnir = '".$turnir."'"; $beg=1; }elseif($turnir != 'no' AND $beg==1){ $sql_add=$sql_add." OR turnir = '".$turnir."'"; } $sql_add=$sql_add.') ORDER BY num DESC LIMIT 5'; $sql=$sql.$sql_add; //echo $sql; if($beg==1){ echo'
Новости в тему:
'; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { $num1=$row["num"]; $title1=$row["title"]; echo '
  • '.$title1.''; } } echo '

  • '; ///////////////////// ?> '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo '

    Интересные факты

    Загрузка ...


    '; echo '
    Новости партнеров
    '; $fraza_rss=file("/home/football/public_html/temp/fraza.html"); for ($i = 0; $i < sizeof($fraza_rss); $i++) { echo '
  • '.$fraza_rss[$i].'
    '; } $zavtra_rss=file("/home/football/public_html/temp/zavtra.html"); for ($i = 0; $i < sizeof($zavtra_rss); $i++) { echo '
  • '.$zavtra_rss[$i].'
    '; } echo '
  • '; ?>
    Комментарии:
    '; $sql="SELECT * FROM comments WHERE news_type = 1 AND news_id = '$n' ORDER BY id DESC"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { $user_name=$row["user_name"]; $message=$row["message"]; $date_mess=$row["date_mess"]; $country=$row["country"]; $message = str_replace("\n", "
    ", $message); echo "
    $user_name $country $date_mess
    $message
    "; } echo'

    Добавить свой комментарий



    Логин: Пароль: Запомнить:

    Регистрация
    Вы можете пользоваться своим логином, если Вы зарегистрированы в тотализаторе или викторине



    '; ?>
    '; echo '
    '; echo $banner_link2; echo '

    '; include("../cgi-bin/shablon/shablonm"); ////Poluchaem_current_date $timecorrect=file("/home/football/public_html/cgi-bin/time/timecorrect"); $today = mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y")); $today=$today+$timecorrect[0]*60*60; $datetime_today=date("Y-m-d H:i:s", $today); ////Poluchaem_current_date $sql="INSERT INTO _news_open (id, ip, date) VALUES ('$n', '$REMOTE_ADDR', '$datetime_today')"; $result_ins=mysql_query($sql); mysql_close(); ?>