Блин народ есть вопрос! Помогите интегрировать
» Спойлер (нажмите, чтобы прочесть) «
Код
session_start();
include('common.php');
$vars = parsed_vars();
$allforums = get_file($exbb['home_path'].'data/allforums.php');
if ( isset($vars['action']) && $exbb['reged']) {
mark_board();
exit;
}
$news_data = null;
if ($exbb['announcements']) {
$filetoopen = $exbb['home_path'].'data/news.php';
if (file_exists($filetoopen)) {
$news = get_file($filetoopen);
if (count($news) && is_array($news)) {
krsort($news);
reset($news);
$dateposted = key($news);
$titlenews = $news[$dateposted]['t'];
unset($news);
$dateposted += $exbb['usertime'] * 3600;
$dateposted = date("d.m.Y",$dateposted);
include('./templates/'.$exbb['default_style'].'news.tpl');
unset($titlenews,$dateposted);
}
}
} #end announs
if (isset($vars['c'])) {
$arr_tmp = array();
foreach ($allforums as $id=>$forum){
if ($vars['c'] == $forum['catid']) $arr_tmp[$id] = $forum;
}
$allforums = array();
$allforums = $arr_tmp;
unset($arr_tmp);
}
$l_v = $exbb['last_visit'];
$board_data = '';
$lastcategoryplace = -1;
foreach ($allforums as $id=>$forum) {
if ( !defined('IS_ADMIN') ) {
if ( !$inuser['private'][$id] && $forum['private'] ) continue;
}
$forumdescription = $forum['desc'];
$threads = $forum['topics'];
$posts = $forum['posts'];
$category = $forum['catname'];
$in_cat = $forum['catid'];
if ($exbb['reged']) {
if ($f_readed = (isset($_COOKIE['f'.$id])) ? $_COOKIE['f'.$id] : 0) {
$exbb['last_visit'] = $f_readed > $exbb['last_visit'] ? $f_readed : $exbb['last_visit'];
}
}
$lang_moder = $modoutput = '';
if (!empty($forum['moderator'])) moderator($id,$allforums);
$catrow = ($forum['catid'] != $lastcategoryplace) ? true : false;
$forumname = '<a href="forums.php?forum='.$id.'">'.$forum['name'].'</a>';
if (isset($forum['last_time']) && $exbb['reged']) {
if ($forum['last_time'] > $exbb['last_visit']) {
$folderpicture = (!empty($forum['icon'])) ? '<img src="./im/images/'.$forum['icon'].'" border="0">' : '<img src="./templates/'.$exbb['default_style'].'im/foldernew.gif" border="0">';
}
else { $folderpicture = (!empty($forum['icon'])) ? '<img src="./im/images/no_'.$forum['icon'].'" border="0"' : '<img src="./templates/'.$exbb['default_style'].'im/folder.gif" border="0">'; }
}
else {
$folderpicture = '<img src="./templates/'.$exbb['default_style'].'im/folder.gif" border="0">';
$loginmessage = $lang['Marked_posts'];
}
$forumlastpost = ( !empty($forum['last_time']) ) ? date("d.m.Y - H:i", $forum['last_time'] + $exbb['usertime']*3600) : $lang['NA'];
$lastposterfilename = $forum['last_poster'];
$lastpost = '';
if (isset($forum['last_post'])) {
$savet = $forum['last_post'];
if (strlen($savet)>36) {$savet = substr($savet,0,35).'...';}
$lastpost = '<img src="./templates/'.$exbb['default_style'].'im/lastpost.gif"> <a href="topic.php?forum='.$id.'&topic='.$forum['last_post_id'].'&v=l#'.$forum['last_key'].'" title="'.$forum['last_post'].'">'.$savet.'</a>';
}
# Скрываем ластпост в закрытых форумах
$private = '';
if (!$forum['private'] || defined('IS_ADMIN')) {
$private = '<br>'.$lastpost.'<br>'.$lang['Author'].' <a href="profile.php?action=show&member='.$forum['last_poster_id'].'">'.$forum['last_poster'].'</a>';
}
include ('./templates/'.$exbb['default_style'].'board_data.tpl');
$lastcategoryplace = $forum['catid'];
}
if ($exbb['wordcensor']) $board_data = bads_filter($board_data);
include ('./data/boardstats.php');
whosonline($lang['ExBB_main'],true);
$max_users = max_online();
$total_users = $guests + $members;
$online_last = sprintf($lang['online_data'],$exbb['membergone'],$total_users,$members,$guests);
$maximum = sprintf($lang['Max_users'],$max_users[1]).date("d.m.Y H:i",$max_users[0]+$exbb['usertime']*3600);
$basetimes = longdate(time() + $exbb['usertime'] * 3600);
$exbb['last_visit'] = $l_v;
$lastvisit = longdate($exbb['last_visit'] + $exbb['usertime'] * 3600);
$link = $newmail = null;
if ($inuser['new_pm']) include('./templates/'.$exbb['default_style'].'newmail.tpl');
$title_page = $exbb['boardname'];
include('./templates/'.$exbb['default_style'].'all_header.tpl');
include('./templates/'.$exbb['default_style'].'logos.tpl');
include('./templates/'.$exbb['default_style'].'board_body.tpl');
include('./templates/'.$exbb['default_style'].'footer.tpl');
include('page_tail.php');
?>
этот php в
» Спойлер (нажмите, чтобы прочесть) «
Код
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
td{font-family:Verdana;font-size:9px;color:#84593C}
.white{color:#ffffff}
.cap{font-weight:bold;color:#845A3E;font-size:9px;padding-left:35px;padding-top:5px;}
.menu{font-family:Sevenet 7 Cyr;font-size:8px;text-decoration:none;color:#000000}
</style>
</head>
<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0">
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
<td rowspan="10" width="50%" height="100%" background="images/bg1222.jpg" style="background-position:right top; background-repeat:repeat-y"></td>
<td rowspan="10" width="1" bgcolor="#000000"></td>
<td colspan="2">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=780 HEIGHT=292>
<PARAM NAME=movie VALUE="0162.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#ffffff>
<EMBED src="0162.swf" quality=high bgcolor=#ffffff WIDTH=780 HEIGHT=292 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</td>
<td rowspan="10" width="1" bgcolor="#000000"></td>
<td rowspan="10" width="50%" height="100%" background="images/bg1223.jpg" style="background-position:left top; background-repeat:repeat-y"></td>
</tr>
<tr>
<td valign="top" height="100%">
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
<td><img src="images/left01.gif"></td>
</tr>
<tr>
<form action="">
<td width="246" height="101" background="images/bglogin.gif" valign="top">
<div style="padding-left:26px;padding-top:23px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/login.gif"></td><td style="padding-left:5px;"><input type="text" style="width:100;height:20"></td>
</tr>
<tr>
<td><img src="images/password.gif"></td><td style="padding-left:5px;"><input type="text" style="width:100;height:20"></td>
</tr>
<tr>
<td></td><td><a href=""><img src="images/enter.gif" border="0" hspace="5" vspace="5"></a></td>
</tr>
</table>
</div>
</td>
</form>
</tr>
<tr>
<td><img src="images/cap01.gif"></td>
</tr>
<tr>
<td height="100%" width="206" background="images/bgleft.gif" valign="top" style="padding-bottom:10px;">
<div class="cap">New service</div>
<img src="images/pic01.jpg" hspace="35" vspace="5">
<div style="padding-left:35px;padding-right:50px;padding-top:5px;"><?php include "/4room/index.php";?>for options and object characteristics. When you click a color box... </div>
</td>
</tr>
<tr>
<td><img src="images/botleft.gif"></td>
</tr>
<tr>
<td height="20" bgcolor="#F1D798" valign="top" align="center" style="color:#000000;font-size:9px;padding-top:5px;">Copyright 2002-2003 All rights reserved</td>
</tr>
</table>
</td>
<td width="534" valign="top" height="100%">
<table cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
<td width="185" height="209" background="images/bgnews01.jpg" valign="top" style="padding-top:25px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/y.gif" hspace="7"></td><td class="white"><b>23 february 2003</b></td>
</tr>
<tr>
<td></td>
<td class="white"><b>New service</b></td>
</tr>
<tr>
<td></td>
<td class="white" style="padding-right:10px;">
Throughout the Fireworks workspace you will find color boxes that show the current
<img src="images/pic02.jpg" vspace="5">
characteristics. When you click a color box...
<a href=""><img src="images/morei.gif" border="0" vspace="5"></a>
</td>
</tr>
</table>
</td>
<td width="171" height="209" background="images/bgnews02.jpg" valign="top" style="padding-top:25px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/y2.gif" hspace="7"></td><td class="white"><b>23 february 2003</b></td>
</tr>
<tr>
<td></td>
<td class="white"><b>New service</b></td>
</tr>
<tr>
<td></td>
<td class="white" style="padding-right:10px;">
Throughout the Fireworks workspace you will find color boxes that show the current characteristics. When you click a color box...
<a href=""><img src="images/morei.gif" border="0" vspace="5"></a>
</td>
</tr>
</table>
</td>
<td width="178" height="209" background="images/bgnews03.jpg" valign="top" style="padding-top:25px;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="images/y2.gif" hspace="7"></td><td class="white"><b>23 february 2003</b></td>
</tr>
<tr>
<td></td>
<td class="white"><b>New service</b></td>
</tr>
<tr>
<td></td>
<td class="white" style="padding-right:10px;">
Throughout the Fireworks workspace you will find color boxes that show the current characteristics.Throughout the Fireworks workspace you will find color boxes that show the current characteristics. When you click a color box...
<br><a href=""><img src="images/morei.gif" border="0" vspace="5"></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" width="534"><img src="images/title.jpg"></td>
</tr>
<tr>
<td colspan="3" width="534" height="100%" bgcolor="#FEF0C9" valign="top" style="padding-bottom:10px;">
<div style="padding-left:25px;padding-right:20px;padding-top:5px;">show the current color choices for options and object characteristics. When you click a color box... Blending techniques give you another level of creative control. You can create unique effects by blending the colors in overlapping objects. Fireworks has several blending modes to help you achieve the look you want. Masking gives you creative control over layers and objects. You can apply masks and blending modes from the Layers panel. You can also create masks using options on the Select and Modify menus. You can use a vector object or a bitmap object to block out part of the underlying image. For example, if you want to block out part of a photograph so that it appears to have an elliptical frame around it, you can paste an elliptical shape as a mask on top of the photograph. All areas outside the ellipse disappear as if cropped, showing only the part of the picture inside the ellipse</div>
<div align="right" style="padding-right:20px;padding-top:5px;"><a href=""><img src="images/prev.gif" border="0"></a><a href=""><img src="images/next.gif" border="0"></a><a href=""><img src="images/print.gif" border="0"></a></div>
</td>
</tr>
<tr>
<td width="534" colspan="3" height="20" bgcolor="#F1D798" align="right" style="padding-right:15px;" class="menu"><a href="" class="menu">FAQ</a> | <a href="" class="menu">SITE MAP</a> | <a href="" class="menu">EXTRANET</a> | <a href="" class="menu">BROCHURE</a> | <a href="" class="menu">CONTACTS</a></td>
</tr>
</table>
</td>
</tr>
</table>
<center><a href="http://www.ayola.net/" target="_blank" title="Бесплатный хостинг"><img src="http://s.ayola.net/ah.gif" border="0"></a></center>
<script language="javascript" type="text/javascript">
document.write('<img src="http://jet3.ayola.net/cn.php?ch='+document.location.href +'" border="0" width="1" height="1" />');
</script>
</body>
</html>
Этот html. Уже все перепробывал путь к с крипту /4room/index.php
я думаю это из - за скрипта php в нем что то надо исправить чтобы интеграция прошла
Сообщение отредактировал Bma972 - 13.3.2009, 13:26