Rar! ϐs
t x m@0S 㥬 ਥ\index.php ܄C ՁC;L7 AME B_0@ !
// ()
$nameDB = "rsblog";//
$nameSERVER = "localhost";//
$nameUSER = "root";//
$passUSER = "";//
mysql_select_db($nameDB, mysql_connect($nameSERVER,$nameUSER,$passUSER));
$server_root = "http://rsblog.ru/";
// ()
$chpu = 1;// (1 - ; 0 - )
$whitelist = 1;//
//-
include("moduls/getchpu.php");
//-
//GET blog
if(isset($_GET['blog']))
{
$blog = $_GET['blog'];
if(!preg_match("/^[0-9]+$/",$blog))
{
header("location: index.php");
exit;
}
}
//GET blog
//GET contact
if(isset($_GET['contact']))
{
$contact = $_GET['contact'];
if(!preg_match("/^[1-2]?$/",$contact))
{
header("location: index.php");
exit;
}
}
//GET contact
//GET cat
if(isset($_GET['cat']))
{
$cat = $_GET['cat'];
if(!preg_match("/^[0-9]+$/",$cat))
{
header("location: index.php");
exit;
}
}
//GET cat
//
if(!isset($blog) AND !isset($contact) AND !isset($cat))//
{
include("moduls/news.php");
include("moduls/lockpost.php");//
$txt = lockpost().index_page($chpu);// ,
}
//
//
if($contact)//
{//
include("moduls/contact.php");//
if(!isset($error_contact))$error_contact = "";// ,
if(isset($_COOKIE['contMESS']))$contact = 2;// ,
//,
$txt = contact($contact,$error_contact,$chpu,$server_root);// ,
}
//
//
if(isset($cat))
{
include("moduls/cat.php");
$txt = index_cat($cat,$chpu);
}
//
//
include("moduls/menu.php");
$menu = menu($chpu);// ,
//
// C
if(isset($blog))
{
include("moduls/text.php");
$txtFUNCTION = blog($blog);// ,
$txt = $txtFUNCTION[0];// ,
}
// C
//
if(preg_match("/\[RSBLOGgal=[0-9]+\]/s",$txt))// -
{
include("moduls/galery.php");//
preg_match_all("/\[RSBLOGgal=([0-9]+)\]/s",$txt,$gal);// -
for($i=0;isset($gal[1][$i]);$i++)// . , !
{
$galery = galery($gal[1][$i]);// , html
$txt = preg_replace("/\[RSBLOGgal=[0-9]+\]/",$galery,$txt,1);// html
}
$viewphoto = viewphoto();
}
if(!$viewphoto)$viewphoto = "";
//
//
if(isset($blog) AND $txtFUNCTION[1] == 1)
{
include("moduls/comm.php");
if(!isset($_COOKIE['messW']))$messWLIST = "";
else $messWLIST = $_COOKIE['messW'];
if(!isset($error_comm))$error_comm = "";
$comm = comm($blog,$error_comm,$messWLIST,$chpu,$server_root);//
$txt .= $comm;
}
//
//
include("moduls/poll.php");//
if(!$_COOKIE[$q])$poll = poll(0);//
else $poll = poll(1);//
//
//
include("moduls/lastcomm.php");
$lastcomm = lastcomm($chpu);
//
$urlsite = $server_root;
include("templates/index.html");//
?>T0t x x )dT@0] 㥬 ਥ\moduls\lastcomm.php ܄C ՁC;L7 AME B_0@ e=
function lastcomm($chpu)
{
// 5
$result_index = mysql_query("SELECT author,id,blog,text FROM comm WHERE status != '1' ORDER BY id DESC LIMIT 5");
$myrow_index = mysql_fetch_array($result_index);
if($myrow_index != "")//
{
$sm_read = file("templates/lastcomm.html");//
$sm_read = implode("",$sm_read);//
preg_match("/\[_divmenu\](.*?)\[_divmenu\]/s",$sm_read,$a);// ,
do//
{
//
$result_blog = mysql_query("SELECT id,nameurl,title FROM blog WHERE id='".$myrow_index['blog']."'");
$myrow_blog = mysql_fetch_array($result_blog);
$edd_tamp = $a[1];//
// .
if($chpu == 0)$href = "".$myrow_blog['title']."";
else $href = "".$myrow_blog['title']."";
// ( ~30 )
$no_tags = strip_tags($myrow_index['text']);// html
$txtcomm = explode(" ",$no_tags);// ( )
for($i=0;$i<=30 AND isset($txtcomm[$i]);$i++)// 30
{
if($i == 0)$txtcomm_result = $txtcomm[$i];// ,
else $txtcomm_result .= " ".$txtcomm[$i];//
if($i == 30)$txtcomm_result .= "...";//
}
$edd_tamp = str_replace("[_text]",$txtcomm_result,$edd_tamp);//
$edd_tamp = str_replace("[_station]",$href,$edd_tamp);// ( )
$edd_tamp = str_replace("[_namber]",$myrow_index['id'],$edd_tamp);//id id. id="blog_comm_1"
$edd_tamp = str_replace("[_author]",$myrow_index['author'],$edd_tamp);//
$link .= $edd_tamp;//
}
while($myrow_index = mysql_fetch_array($result_index));
$lastcomm = preg_replace("/\[_divmenu\](.*?)\[_divmenu\]/s",$link,$sm_read);// html
}
return $lastcomm;// .
}
?>`it x Q Q rE
@0S 㥬 ਥ\style.css ܄C ՁC;L7 AME B_0@ J&body
{
background-image:url(img/bg.jpg);
background-position:left top;
margin:0px;
font-family:Trebuchet MS;
font-size:12px;
font-weight:100;
}
.left
{
background-image:url(img/left.png);
background-position:left;
background-repeat:repeat-y;
}
.right
{
background-image:url(img/right.png);
background-position:right;
background-repeat:repeat-y;
}
.center{background-color:#fff;padding-top:50px;}
.left_bottom
{
background-image:url(img/left_bottom.png);
background-position:left top;
background-repeat:no-repeat;
}
.right_bottom
{
background-image:url(img/right_bottom.png);
background-position:right top;
background-repeat:no-repeat;
}
.bottom
{
background-image:url(img/bottom.png);
background-position:top;
background-repeat:repeat-x;
}
.top_bg
{
height:80px;
position:absolute;
width:100%;
top:0px;
background-image:url(img/top_bg.png);
background-position:left top;
background-repeat:repeat-x;
z-index: 2;
}
.img_right_bottom
{
width:317px;
height:284px;
position:fixed;
right:0px;
bottom:0px;
background-image:url(img/img_bottom.png);
background-position:right bottom;
background-repeat:no-repeat;
z-index: 0;
}
.table
{
position:absolute;
top:0px;
left:50%;
margin-left:-390px;
padding-bottom:50px;
z-index: 1;
}
.logo
{
position:absolute;
left:50%;
top:5px;
margin-left:-370px;
}
.border{border-left:1px solid #E8E8E8;}
.menu_title
{
border-left:5px solid #D9D9D9;
border-bottom:1px solid #D9D9D9;
width:163px;
text-align:center;
margin-left:16px;
font-size:14px;
}
.menu_link
{
border-bottom:1px solid #D9D9D9;
width:162px;
margin-left:16px;
padding:3px;
}
.title_txt
{
height:32px;
background-image:url(img/fon_title.jpg);
background-position:top left;
background-repeat:no-repeat;
padding-top:5px;
padding-left:10px;
font-size:15px;
}
.txt
{
text-align:justify;
padding-left:0px;
padding-right:10px;
padding-bottom:5px;
}
.end
{
background-image:url(img/bottom.jpg);
background-position:bottom center;
background-repeat:no-repeat;
height:13px;
}
a:link {color:#63A7CC; text-decoration:none;}
a:visited {color:#63A7CC; text-decoration:none;}
a:hover {color:#63A7CC; text-decoration:none;}
a:active {color:#63A7CC; text-decoration:none;}
.comm
{
text-align:justify;
padding:5px;
margin-right:10px;
margin-top:10px;
border:1px solid #dcdcdc;
border-top-left-radius:5px;
border-top-right-radius:5px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
overflow:auto;
}
.input
{
width:500px;
font-family:Trebuchet MS;
font-size:12px;
margin-bottom:5px;
border:1px solid #dcdcdc;
padding:5px;
border-top-left-radius:5px;
border-top-right-radius:5px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
}
.sub
{
font-family:Trebuchet MS;
font-size:12px;
background-color:#fff;
border:1px solid #dcdcdc;
padding:2px;
border-top-left-radius:5px;
border-top-right-radius:5px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
}
.galeryIMG
{
border:1px solid #dcdcdc;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
border-top-left-radius:5px;
border-top-right-radius:5px;
box-shadow: 0 0 8px #969696;
cursor:pointer;
}
.bigIMG
{
border:1px solid #dcdcdc;
background-color:#fff;
position:absolute;
left:50%;
top:10px;
margin-left:-350px;
width:700px;
padding:5px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
border-top-left-radius:5px;
border-top-right-radius:5px;
z-index:1000;
}
.invisiblecomm
{
border:1px solid #dcdcdc;
width:300px;
position:absolute;
margin-left:-285px;
margin-top:-20px;
display:none;
padding:5px;
background-color:#fff;
text-align:left;
z-index:2;
}^Mt IhN@0] 㥬 ਥ\templates\comm.html ܄C ՁC;L7 AME B_0@ v[
[_author] ( [_date_b] ) :
[_text]
[_req]
[_req]
[_podcomm]wt \
\
Gy@0^ 㥬 ਥ\templates\index.html ܄C ՁC;L7 AME B_0@ pc
=$header_title?>
|
=$txt?>
|
=$menu?>
=$poll?>
=$lastcomm?>
|
|
|
|
|
|
=$viewphoto?>
jt " " w҅@0a 㥬 ਥ\templates\lastcomm.html ܄C ՁC;L7 AME B_0@ UC
[_divmenu]
[_text]
[_divmenu]
tu @0P 㥬 ਥ\moduls ܄C ՁC;L7 AME B_0@ Wtx @0S 㥬 ਥ\templates ܄C ՁC;L7 AME B_0@ Z9xtm @0H 㥬 ਥ ܄C ՁC;L7 AME B\0@ ^ ={ @