Пак искам помощ

LampaTa

Registered
Здравейте.
Искам да ми обясните,как във сайта http://maxell-bg.com ,да направя очертания.Във смисъл,някакви черти ограждащи сайта или нещо такова.Защото сега е много разхвърлено.
+1,на този който ми помогне
 
Код:
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Ако го правош с таблици сложи едно border="1" ,а ако го правиш с div-ове задай в css-a border: 1px solid black .Успех :?:
 
Самият дизайн на сайта е в template.php Ето го и него
Код:
[size=7]<?php
$time_start = microtime(true);
include_once "session.php";
include_once "admin/config.php";
include_once "mysql.class.php";
$db = new mysql();
$config = getConfig();
$sessionId = session_id();
//echo $sessionId;
//echo session_is_registered('online');
//echo session_is_registered('user_id');

if(isset($_REQUEST["lyric_id"]))
{
	$sorgu = $_REQUEST["lyric_id"];
	if(ereg("OR ",$sorgu) || ereg("INSERT",$sorgu) || ereg("DELETE",$sorgu) || ereg("SELECT",$sorgu) || ereg("DROP",$sorgu) || ereg("TRUNCATE",$sorgu))
		die("TRYING TO HACK ME!!!");
}

$lyric_str="";
if(isset($_REQUEST["lyric_id"]) && ($_REQUEST["lyric_id"] != 0 ))
{
	$my_lyric_id = $_REQUEST["lyric_id"];
	$my_lyric_str = " `lyric_id` = ".$my_lyric_id;
	$my_mysql_array = $db->easy_get_row("SELECT * FROM `lyrics` WHERE $my_lyric_str AND `approved` = '1'");
	$my_lyric = $config['site_name'] . " : " . $my_mysql_array['lyric_artist'] . " - " . $my_mysql_array['lyric_title'];
	$my_youtube = $my_mysql_array['youtube'];
}
if(!isset($_REQUEST["lyric_id"]))
{
	$my_lyric = $config['site_name'];
}

if(isset($_REQUEST["youtube_id"])) {
  $user = "orcunyucel";
  $pattern = $my_youtube;
  $file = file_get_contents('http://www.youtube.com/profile?user='.$user);
  preg_match_all('!(watch\?v=[A-Za-z0-9]{11}).*?'.$pattern.'!', $file, $matches, PREG_PATTERN_ORDER);
  $titles = array_unique($matches[1]);

  foreach($titles as $title)
  {
    $page = file_get_contents('http://www.youtube.com/'.$title);
    preg_match('!<title>(.*?)</title>!', $page, $matches);

    $title_text = $matches[1];

    preg_match('!video_id=.*&t=[^\"&]*!', $page, $matches);
    $video = 'http://youtube.com/get_video?'.$matches[0];

    header("Location: $video");
  }
}
if (session_is_registered('user_id'))
{
//	echo "1";
    $db->query( "UPDATE users_online SET activity=now(), member='y' WHERE session_id='$sessionId'" );
}
else if (session_is_registered('online'))
{
//	echo "2";
    $db->query( "UPDATE users_online SET activity=now(), member='n' WHERE session_id='$sessionId'" );
}
else if (!isset($_SESSION['user_id']) && !session_is_registered('online'))
{
//	echo "3";
    $db->query("INSERT INTO users_online (session_id, activity) VALUES ('$sessionId', now())");
    session_register('online');
}


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.availWidth)?Math.floor(Math.random()*(screen.availWidth-w)):50;TopPosition=(screen.availHeight)?Math.floor(Math.random()*((screen.availHeight-h)-75)):50;}
if(pos=="center"){LeftPosition=(screen.availWidth)?(screen.availWidth-w)/2:50;TopPosition=(screen.availHeight)?(screen.availHeight-h)/2:50;}
if(pos=="default"){LeftPosition=50;TopPosition=50}
else if((pos!="center" && pos!="random" && pos!="default") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}}
function CloseNewWin(){if(win!=null && win.open)win.close()}
window.onfocus=CloseNewWin;
// -->
</script>
<title><?=$my_lyric?></title>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>
<link href="http://maxell-bg.com/style.css" type="text/css" rel="stylesheet">
<script src="http://maxell-bg.com/javascript.js" type="text/javascript"></script>
</head>
<body>
	<div id="headerNavigation">
	<div id="headerNavigationLeft">
		<a href="http://maxell-bg.com/faq.php">FAQ</a> | <a href="http://maxell-bg.com/searchform.php">Разширено търсене</a> | <a href="http://maxell-bg.com/contactus.php">Свържете се с нас</a>	</div>
    <?php
	if (isset($_SESSION["user_id"]) && isset($_SESSION["username"]))
	{
	echo '<div id="headerNavigationRight">';
	echo '<a href="http://maxell-bg.com/changepassword.php">Смени паролата</a>   <a href="http://maxell-bg.com/submitlyric.php">Добави текст</a>   ';
	$userId = $_SESSION["user_id"];
	$mysql_array = $db->easy_get_row("SELECT email_addr FROM members WHERE member_id='$userId'");
	$email_addr = $mysql_array['email_addr'];
	$subsbriber = checkIfSubscribed($email_addr);
		if ($subsbriber != "0")
		{
        	echo '<a href="http://maxell-bg.com/subscribe.php?subscribe=no&email_id='.$email_addr.'" >Unsubscribe</a>   ';
		}
		else
		{
        	echo '<a href="http://maxell-bg.com/subscribe.php?subscribe=yes&email_id='.$email_addr.'" >Подпис</a>   ';
		}
	echo '<a href="http://maxell-bg.com/logout.php">Излез</a></div>';
	}
	else
	{
?>
		<div id="headerNavigationRightForm">
		<form action="http://maxell-bg.com/login.php" id="login_form" onsubmit="return validate();">
		<a href="http://maxell-bg.com/signup.php">Регистрация</a>
		| <a href="http://maxell-bg.com/forgotpassword.php">Забравена парола?</a>
		<input type="text" name="username" id="username" value="" class="topinput" />
		<input type="password" name="userpassword" id="userpassword" value="" class="topinput" />
		<input type="submit" class="topsubmit" value="" />
		</form>
		</div>
<?
	}
?>
	</div>
	<div class="topdiv">
	<table cellpadding="0" cellspacing="0" style="width:100%; border:none;">
	<tr>
	<td style="width:31%;">
	<a href="http://maxell-bg.com/index.php"><img src="http://maxell-bg.com/images/main_logo.jpg" alt="Maxell-bg.com" style="margin-top: 30px;" /></a>
	</td>
	<td style="width:69%;">
<?
	$mysql_array = $db->easy_get_row( "SELECT * FROM ads WHERE ad_active='yes' and ad_position='2' ORDER BY RAND() LIMIT 0,1" );
	echo $mysql_array['ad_text'];
?> 
	</td>
	</tr>
	</table>
	</div>
	
	<div class="topdiv">
	<div id="topNavigation">
	<ul>
	<li><a href="http://maxell-bg.com/index.php"><img src="http://maxell-bg.com/images/home.jpg" alt="Начало" /></a><a href="http://maxell-bg.com/list.html"><img src="http://maxell-bg.com/images/lyrics.jpg" alt="Текстове" /></a><a href="http://maxell-bg.com/submitlyric.php"><img src="http://maxell-bg.com/images/submit.jpg" alt="Submit" /></a><a href="http://maxell-bg.com/requestlyric.php"><img src="http://maxell-bg.com/images/request.jpg" alt="Request"></a><a href="#"><img src="http://maxell-bg.com/images/forum.jpg" alt="Forum"></a></li>
	</ul>
	</div>
<?php
	if(isset($_REQUEST["msg"]) && $_REQUEST['msg'] != "")
	{
		echo '<div id="msg">'.$_REQUEST['msg']."</div>";
	}
	echo '<div id="abc"><ul>';
		for ($i = 65; $i <= 90; $i++)
		{
			$x = chr($i);
			echo "<li onmouseover=\"this.style.backgroundColor='#C7F241';\" onmouseout=\"this.style.backgroundColor='#1e1e1e';\"><a href=\"http://maxell-bg.com/search/".$x.".html\">".$x."</a></li>";
		}
?>
	</ul>
	</div>
	</div>
	
	<div id="container">
	<table border="0" cellpadding="0" cellspacing="0">
	  
	<tr>
	<td width="120" height="600" valign="top" style="width:120px;">
      <?php
	$mysql_array = $db->easy_get_row( "SELECT * FROM ads WHERE ad_active='yes' and ad_position='1' ORDER BY RAND() LIMIT 0,1" );
	echo $mysql_array['ad_text'];
?>	</td>
	<td rowspan="2" valign="top">
		<div id="containerLeft">
		<? main(); ?>
		</div>	</td>
	
	<td rowspan="2" valign="top">
		<div id="containerRight">
		  <div>
<?php
		if (!empty($youtube))
		{
?>
				<img src="http://maxell-bg.com/images/video.jpg" alt="Video" style="margin: 0px;" />
				<div style="clear:both; width: 290px; height: 235px; border: 2px solid #92b527;">
					<div class="youtube_resizer" style="text-align:center;">
<?php
					$ids = explode('|', file_get_contents('frontpage.cache'));
					foreach($ids as $id)
					{
					$rows[] = $db->easy_get_row('SELECT * FROM `lyrics` WHERE `lyric_id` = '.$id);
					}
					$youtube = str_replace(' width="290" height="235"', ' width="290" height="235"', $youtube);
					echo $youtube;
?>
				</div>
			</div>
			<img src="http://maxell-bg.com/images/bottom.jpg" alt="" />
<?php 

		if($youtube == "No video avaible" || $youtube == "Embedding Disabled")
		{
		}
		else
		{
		$my_youtube_url = (strip_tags($my_youtube, '<embed>'));
		$unneeded = array('<embed src="','" type="application/x-shockwave-flash" wmode="transparent" width="290" height="235"></embed>');
		$onlyconsonants = str_replace($unneeded, "", $my_youtube_url);
		$my_youtube_url_array = explode("/", $onlyconsonants);
		require_once("youtube.php");
		error_reporting(0);
		ini_set("max_execution_time",0);
		$my_youtube_link = "http://www.youtube.com/watch.php?v=" . $my_youtube_url_array['4'];

		if($my_cek = download_youtube($my_youtube_link)){
			$my_link = $my_cek;
?>
		<div align="center"><a href="<?php echo $my_link; ?>"><img src="http://maxell-bg.com/images/download.jpg"></a>  <a href="http://maxell-bg.com/convert.php"><img src="http://maxell-bg.com/images/convert.gif"></a><br><br></div>
<?php
		}

		} 


		}
?>
		 </div>
		    <div>
			<img src="http://maxell-bg.com/images/search.jpg" alt="Търси" />
			<div style="padding:10px 0px 0px 0px; margin:0px; text-align:center;">
			<form id="" method="post" action="http://maxell-bg.com/searchresult.php">
			<input type="text" name="keyword" id="keyword" class="topinput" style="width: 120px;">
			<select name="for" class="form_select">
			<option value="2">Артист</option>
			<option value="1">Име на песента</option>
			</select>
			<input type="submit" name="Submit" class="form_button" value="Търси" />
			</form>
			</div>
			<img src="http://maxell-bg.com/images/bottom.jpg" alt="" />		</div>
		<div>
<?
		if(empty($youtube))
		{
?>
			<img src="http://maxell-bg.com/images/videos.jpg" alt="Videos" style="margin: 0px;" />
			<div style="clear: both; width: 290px; height: 235px; border: 2px solid #92b527">
				<div class="youtube_resizer style=text-align:center;">
<?
/*				$ids = explode('|', file_get_contents('frontpage.cache'));
				foreach($ids as $id)
				{
				$abc = $db->easy_get_row('SELECT * FROM `lyrics` WHERE `lyric_id` = '.$id);
					if($abc['youtube'] != "" && (!isset($ytv)))
					{
						$ytv = $abc['youtube'];
					}
				$rows[] = $abc;
				}
 */
				$abc = $db->easy_get_row('SELECT youtube FROM `lyrics` WHERE `approved` = 1 AND youtube != "" ORDER BY `lyric_id` DESC LIMIT 0,1');
				$ytv = $abc['youtube'];
				$bodytag = str_replace(' width="290" height="235"', ' width="290" height="235"', $ytv);
				echo $bodytag;
?>
				</div>

			</div>
			<img src="http://maxell-bg.com/images/bottom.jpg" alt="" />
<?
		}
?>
		</div>
		<div>
			<img src="http://maxell-bg.com/images/lat_lyrics.jpg" alt="Lyrics" />
			<table style="width:296px; border:none;" cellpadding="0" cellspacing="0">
			<tbody class="lyrics">

<?
			$rows = $db->easy_get_rows( "select lyric_id, lyric_artist, lyric_title from lyrics WHERE approved='1' order by lyric_id desc LIMIT 10" );
			foreach($rows as $mysql_array)
			{
?>
			<tr> 
			<td style="background-color:#010101;">
			<a href="http://maxell-bg.com/<?php echo preg_replace('/([^a-zA-Z0-9]+)/', '-', $mysql_array["lyric_artist"])."/".$mysql_array["lyric_id"]."-".preg_replace('/([^a-zA-Z0-9]+)/', '-', $mysql_array["lyric_title"]).".html"?>"><strong><?=$mysql_array["lyric_artist"]?></strong> - <?=$mysql_array["lyric_title"]?></a></td>
			</tr>
<?
			}
?>
			</tbody>
			</table>
			<img src="http://maxell-bg.com/images/bottom.jpg" alt="" />		</div>
		<div>
			<img src="http://maxell-bg.com/images/lat_members.jpg" alt="Members" />
<?
			$array = $db->easy_get_rows( "select member_id, user_name from members order by member_id desc LIMIT 5" );
			$num_rows = $db->num_rows();
			if($num_rows >= 1)
			{
				foreach($array as $mysql_array)
				{
?>
				<table style="width:296px; border:none;" cellpadding="0px" cellspacing="0px" class="members">
				<tr>
				<td style="background-color:#010101;"><?=$mysql_array["user_name"]?></td>
				</tr>
				</table>
<?
				}
			}
			else
			{
				echo 'No members in database.';
			}
?>
			<img src="http://maxell-bg.com/images/bottom.jpg" alt="" />		</div>
	</div>	</td>
	<td width="120" valign="top" style="width:120px;">
      <?
	$mysql_array = $db->easy_get_row( "SELECT * FROM ads WHERE ad_active='yes' and ad_position='3' ORDER BY RAND() LIMIT 0,1" );
	echo $mysql_array['ad_text'];
?>	</td>
	</tr>

	</table>
	</div>
	<div style="background-color: #8ca63b; border-top: 1px solid #c6f241; border-bottom: 1px solid #c6f241;">
		<div id="footerNavigation">
		<table style="width:745px; text-align:center; border:none; background:#8ca63b;" cellpadding="0px" cellspacing="0px">
		<tr>
		<td style="width:149px; padding-top: 10px; text-align:center;">
			<table style="width:140px; border:none;" cellpadding="0px" cellspacing="0px">
			<tbody class="bottomtab">
			<tr>
			<th>Навигация</th>
			</tr>
			<tr>
			<td class="bottom_navigation"><a href="http://maxell-bg.com/index.php">Начало</a></td>
			</tr>
			<tr>
			<td class="bottom_navigation"><a href="http://maxell-bg.com/list.html">Текстове</a></td>
			</tr>
			<tr>
			<td class="bottom_navigation"><a href="http://maxell-bg.com/submitlyric.php">Добави текст</a></td>
			</tr>
			<tr>
			<td class="bottom_navigation"><a href="http://maxell-bg.com/requestlyric.php">Поискай текст</a></td>
			</tr>
			<tr>
			<td class="bottom_navigation"><a href="">Начало</a></td>
			</tr>
			</tbody>
			</table>
		</td>
		<td style="width:149px; padding-top:10px; text-align:center; vertical-align:top;">
			<table style="width:140px; border:none;" cellpadding="0px" cellspacing="0px">
<?php
$db->query("SELECT SQL_CALC_FOUND_ROWS `approved` FROM `lyrics` WHERE `approved` = 1 LIMIT 0,1");
$approved = $db->easy_get_row('SELECT FOUND_ROWS();');
$lyrics_count = $approved[0];

$db->query("SELECT SQL_CALC_FOUND_ROWS `approved` FROM `lyrics` WHERE `approved` = 0 LIMIT 0,1");
$approved = $db->easy_get_row('SELECT FOUND_ROWS();');
$lyrics_count_unapproved = $approved[0];


$db->query("SELECT SQL_CALC_FOUND_ROWS `member_id` FROM `members` LIMIT 0,1");
$abcde = $db->easy_get_row('SELECT FOUND_ROWS();');
$members_count = $abcde[0];
?>
			<tbody class="bottomtab">
			<tr>
			<th>Статистика</th>
			</tr>
			<tr>
			<td><?="Общо текстове: ".$lyrics_count."<br />"?></td>
			</tr>
			<tr>
			<td><?="Неодобрени текстове: ".$lyrics_count_unapproved; ?></td>
			</tr>
			<tr>
			<td style="border:none;"><?php echo "Общо потребители: $members_count<br />"; ?></td>
			</tr>
			</tbody>
			</table>
		</td>
		<td style="width:149px; padding-top: 10px; text-align:center; vertical-align:top;">
			<table style="width:140px; border:none;" cellpadding="0px" cellspacing="0px">
<?php
$limit_time = time() - 300;
//echo $limit_time;
$db->query( "SELECT member FROM users_online WHERE UNIX_TIMESTAMP(activity) >= $limit_time AND member='n'" );
$visits = $db->num_rows();

$db->query( "SELECT member FROM users_online WHERE UNIX_TIMESTAMP(activity) >= $limit_time AND member='y'" );
$members = $db->num_rows();
?>
			<tbody class="bottomtab">
			<tr>
			<th>Потребители онлайн</th>
			</tr>
			<tr>
			<td>Гости онлайн: <?=$visits?><br/></td>
			</tr>
			<tr>
			<td style="border:none;">Онлайн в момента: <?=$members?><br/></td>
			</tr>
			</tbody>
			</table>
		</td>
		<td> </td>
		</tr>
		<tr>
		<td colspan="5"></td>
		</tr>
		</table>
		</div>
	</div>
	<div style="background-color: #303a12; height: 25px;">
		<div class="topdiv">
			<div class="topleft" style="color:#707f42;">
			Изработен от: Maxell-bg.com team, 2008© |  | RSS			</div>
			<div class="topright" style="margin-top:5px; color:#707f42;">
			Страницата генерирана за <?$time_end = microtime(); $time = $time_end - $time_start; echo $time;?>
		    seconds  </div>
		</div>
	</div>
</body>
</html>
[/size]
 
Кода е много дълъг,затова ти си го преправи сам.Натискаш Ctrl + F и търсиш border и после сменяш 0 с 1.Същото направи и в style.css.. :wink:
 

Back
Горе