Вход Регистрация
Файл: news.php
Строк: 152
<?php include('header.php');
$urlpage='Новости';
$sql=mysql_query("select*from ".$db_pref."sysvals");
$row=mysql_fetch_array($sql); 
$lang['news1']=str_replace("{sitename}",$row['name_title'],$lang['news1']);
?>
<div align="center">
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 class="s5_mod_h3"><span class="s5_h3_first">
<?=$lang['news1'];?>
</span></h3>
</div>
</div>
</div>
</div>
<?
$checknews 
mysql_query("SELECT * FROM ".$db_pref."news");
$news_exists mysql_num_rows($checknews);
if (
$news_exists<1)
{
?>
<p align="center" class="red"><?=$lang['news2'];?></p>
<?php
}else{
$sql=mysql_query("select*from ".$db_pref."news order by id desc");
while(
$row167=mysql_fetch_array($sql)) {
$id=$row167['id'];
$date=$row167['date'];
$titles=$row167['titles'];
$descriptions=$row167['descriptions'];
$sql_bb_code=mysql_query("select*from ".$db_pref."sysvals where bb_code='YES'");
$row_bb_code=mysql_fetch_array($sql_bb_code);
if(
$row_bb_code>'0'):
$tags_smilie = array(
"/:angry:/siU",
"/:blink:/siU",
"/:blush:/siU",
"/:canthearyou:/siU",
"/:confused:/siU",
"/:cool:/siU",
"/:crazyfun:/siU",
"/:crazy:/siU",
"/:cry:/siU",
"/:disappointed:/siU",
"/:dontcare:/siU",
"/:dontknow:/siU",
"/:flag:/siU",
"/:flirt:/siU",
"/:funny:/siU",
"/:glasses:/siU",
"/:happy:/siU",
"/:hobo:/siU",
"/:huh:/siU",
"/:idea:/siU",
"/:insane:/siU",
"/:jumping:/siU",
"/:lol:/siU",
"/:love:/siU",
"/:mad:/siU",
"/:music:/siU",
"/:mybb:/siU",
"/:neutral:/siU",
"/:no:/siU",
"/:nope:/siU",
"/:offtop:/siU",
"/:playful:/siU",
"/:question:/siU",
"/:rain:/siU",
"/:rofl:/siU",
"/:rolleyes:/siU",
"/:sad:/siU",
"/:sceptic:/siU",
"/:shine:/siU",
"/:shock:/siU",
"/:sick:/siU",
"/:smile:/siU",
"/:smoke:/siU",
"/:stupor:/siU",
"/:surprise:/siU",
"/:suspicious:/siU",
"/:tired:/siU",
"/:tomato:/siU",
"/:tongue:/siU",
"/:unsure:/siU",
"/:wacko:/siU",
"/:whistle:/siU",
"/:wink:/siU",
"/:writing:/siU",
"/:yep:/siU"
);
$html_smilie = array(
"<img src=images/smilies/angry.gif width=20 height=18 border=0>",
"<img src=images/smilies/blink.gif width=19 height=20 border=0>",
"<img src=images/smilies/blush.gif width=21 height=21 border=0>",
"<img src=images/smilies/canthearyou.gif width=35 height=18 border=0>",
"<img src=images/smilies/confused.gif width=20 height=18 border=0>",
"<img src=images/smilies/cool.gif width=62 height=21 border=0>",
"<img src=images/smilies/crazyfun.gif width=19 height=17 border=0>",
"<img src=images/smilies/crazy.gif width=21 height=17 border=0>",
"<img src=images/smilies/cry.gif width=21 height=18 border=0>",
"<img src=images/smilies/disappointed.gif width=19 height=16 border=0>",
"<img src=images/smilies/dontcare.gif width=19 height=17 border=0>",
"<img src=images/smilies/dontknow.gif width=31 height=20 border=0>",
"<img src=images/smilies/flag.gif width=27 height=28 border=0>",
"<img src=images/smilies/flirt.gif width=19 height=20 border=0>",
"<img src=images/smilies/funny.gif width=19 height=16 border=0>",
"<img src=images/smilies/glasses.gif width=21 height=17 border=0>",
"<img src=images/smilies/happy.gif width=19 height=17 border=0>",
"<img src=images/smilies/hobo.gif width=21 height=21 border=0>",
"<img src=images/smilies/huh.gif width=19 height=20 border=0>",
"<img src=images/smilies/idea.gif width=35 height=31 border=0>",
"<img src=images/smilies/insane.gif width=21 height=16 border=0>",
"<img src=images/smilies/jumping.gif width=46 height=33 border=0>",
"<img src=images/smilies/lol.gif width=19 height=17 border=0>",
"<img src=images/smilies/love.gif width=21 height=30 border=0>",
"<img src=images/smilies/mad.gif width=21 height=18 border=0>",
"<img src=images/smilies/music.gif width=30 height=21 border=0>",
"<img src=images/smilies/mybb.gif width=50 height=26 border=0>",
"<img src=images/smilies/neutral.gif width=19 height=17 border=0>",
"<img src=images/smilies/no.gif width=20 height=18 border=0>",
"<img src=images/smilies/nope.gif width=20 height=18 border=0>",
"<img src=images/smilies/offtop.gif width=50 height=40 border=0>",
"<img src=images/smilies/playful.gif width=19 height=20 border=0>",
"<img src=images/smilies/question.gif width=27 height=19 border=0>",
"<img src=images/smilies/rain.gif width=32 height=35 border=0>",
"<img src=images/smilies/rofl.gif width=30 height=20 border=0>",
"<img src=images/smilies/rolleyes.gif width=19 height=17 border=0>",
"<img src=images/smilies/sad.gif width=19 height=20 border=0>",
"<img src=images/smilies/sceptic.gif width=19 height=17 border=0>",
"<img src=images/smilies/shine.gif width=21 height=16 border=0>",
"<img src=images/smilies/shock.gif width=21 height=21 border=0>",
"<img src=images/smilies/sick.gif width=40 height=20 border=0>",
"<img src=images/smilies/smile.gif width=19 height=20 border=0>",
"<img src=images/smilies/smoke.gif width=21 height=21 border=0>",
"<img src=images/smilies/stupor.gif width=21 height=17 border=0>",
"<img src=images/smilies/surprise.gif width=28 height=25 border=0>",
"<img src=images/smilies/suspicious.gif width=19 height=19 border=0>",
"<img src=images/smilies/tired.gif width=43 height=20 border=0>",
"<img src=images/smilies/tomato.gif width=51 height=45 border=0>",
"<img src=images/smilies/tongue.gif width=20 height=18 border=0>",
"<img src=images/smilies/unsure.gif width=19 height=20 border=0>",
"<img src=images/smilies/wacko.gif width=20 height=18 border=0>",
"<img src=images/smilies/whistle.gif width=32 height=16 border=0>",
"<img src=images/smilies/wink.gif width=19 height=20 border=0>",
"<img src=images/smilies/writing.gif width=22 height=24 border=0>",
"<img src=images/smilies/yep.gif width=19 height=18 border=0>"
);
$descriptions=preg_replace($tags_smilie$html_smilie$descriptions);
$tags_text = array(
"/[font=(.*)](.*)[/font]/siU",
"/[size=(8|10|12|14|16|18|20)](.*)[/size]/siU",
"/[b](.*)[/b]/siU",
"/[i](.*)[/i]/siU",
"/[u](.*)[/u]/siU",
"/[s](.*)[/s]/siU",
"/[left](.*)[/left]/siU",
"/[center](.*)[/center]/siU",
"/[right](.*)[/right]/siU",
"/[url=(.*)](.*)[/url]/siU",
"/[email](.*)[/email]/siU",
"/[img](.*)[/img]/siU",
"/[quote](.*)[/quote]/siU",
"/[quote=(.*)](.*)[/quote]/siU",
"/[color=(.*)](.*)[/color]/siU"
);
$html_text = array(
"<span style='font-family:\1'>\2</span>",
"<span style='font-size:\1px'>\2</span>",
"<strong>\1</strong>",
"<i>\1</i>",
"<u>\1</u>",
"<s>\1</s>",
"<div align='left'>\1</div>",
"<div align='center'>\1</div>",
"<div align='right'>\1</div>",
"<a href='\1' target='_blank'>\2</a>",
"<a href='mailto:\1'>\1</a>",
"<table border='0' align='center' width='100%' cellpadding='4' cellspacing='0'><tr><td><span style='font-size: 11px'><b>Прикрепленное изображение:</b></span></td></tr><tr><td bgcolor='#000000' style='border: #C0C0C0 1px solid;'><a href="\1" target="_blank"><img src="\1"></a></td></tr></table>",
"<table border='0' align='center' width='100%' cellpadding='4' cellspacing='0'><tr><td><span style='font-size: 11px'><b>Цитата:</b></span></td></tr><tr><td bgcolor='#000000' style='border: #C0C0C0 1px solid;'>\1</td></tr></table>",
"<table border='0' align='center' width='100%' cellpadding='4' cellspacing='0'><tr><td><span style='font-size: 11px'><b>Писал(а):&nbsp;\1</b></span></td></tr><tr><td bgcolor='#000000' style='border: #C0C0C0 1px solid;'>\2</td></tr></table>",
"<font color='\1'>\2</font>"
);
$descriptions=preg_replace($tags_text$html_text$descriptions);
endif;
?>
<TABLE width=95% align=center cellPadding=0 cellSpacing=0><TBODY>
<TR><TD width='1%'><IMG src='images/1.png' width=14 height=14 border=0></TD><TD width='96%' background='images/5.png'></TD><TD width='1%'><IMG src='images/3.png' width=14 height=14 border=0></TD></TR>
<TR><TD background='images/4.png'></TD>
<TD background='images/10.png'>
<div align="left" ><b><a href="sendmail.php">Admin</a>&nbsp;<small><?=$date;?></small></b>
<div class="accent"><div class="accent-left"></div><div class="accent-right"></div></div></div>
<div align="left" class="tabletext"><b><u><?=$titles;?></u></b></div>
<div align="left" class="tabletext"><?=$descriptions;?></div>
</TD>
<TD background='images/6.png'>&nbsp;</TD>
</TR><TR><TD><IMG src='images/8.png' width=14 height=14 border=0></TD><TD background='images/2.png'></TD><TD><IMG src='images/9.png' width=14 height=14 border=0></TD></TR>
</TBODY></TABLE>
<br>
<?
}}
?>
<?php
include('footer.php'); ?>
Онлайн: 2
Реклама