Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-13-2005, 04:27 PM
NaughtyPerry is offline NaughtyPerry
Banned

Join Date: Sep 2004
Posts: 1,665

in progress

what uthink sofar?

http://ae-hq.com/o2x/index.php?id=home

c&c pls
Reply With Quote
  #2  
Old 04-13-2005, 05:22 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
Nice but nave and logo don't go the best.
__________________
Reply With Quote
  #3  
Old 04-13-2005, 07:09 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

i like it.
Reply With Quote
  #4  
Old 04-13-2005, 07:19 PM
GeeFuss is offline GeeFuss
GeeFuss's Avatar
Cardiac

Join Date: Aug 2004
Posts: 3,862

Awesome...nice work...simple but still cool
__________________
Reply With Quote
  #5  
Old 04-14-2005, 12:53 PM
Stu is offline Stu
Resident Member

Join Date: Aug 2003
Posts: 3,319

Quote:
Originally posted by atholon
Nice but nave and logo don't go the best.
Banner mate, togther now, banner ...
I like it all mate, still missing something, but i'm not sure what
Reply With Quote
  #6  
Old 04-14-2005, 03:24 PM
§£a§h is offline §£a§h
Registered User

Join Date: Apr 2005
Posts: 32

Are you leaving OAP scopes or will this clan do a diff version of DF?
__________________
Reply With Quote
  #7  
Old 04-14-2005, 03:55 PM
NaughtyPerry is offline NaughtyPerry
Banned

Join Date: Sep 2004
Posts: 1,665

thinking of leaving... why?
Reply With Quote
  #8  
Old 04-14-2005, 04:07 PM
Dr. Bullet is offline Dr. Bullet

Join Date: Feb 2004
Posts: 2,655

Send a message via ICQ to Dr. Bullet
Quote:
Originally posted by Tecoma2
Banner mate, togther now, banner ...
I like it all mate, still missing something, but i'm not sure what
Borders...it needs borders...and not just little 1 px around all the images. Go to the NHQ home page, and P has thick grey borders to set everything apart. Just like sigs, borders can make or break a site
__________________
Reply With Quote
  #9  
Old 04-14-2005, 04:09 PM
prey is offline prey
Registered User

Join Date: Mar 2004
Posts: 119

Send a message via ICQ to prey
i like that it's simple. but it looks like 10 000 other sites. a bit unoriginal.

also learn a bit about security.

make sure u validate what pages can and cant be included.

it's good that u put include($pagename.'.php');

w/o the .php any file could be included on your server. or maybe they still can. i just cant figure out how to make it ignore .php =D

you didnt validate for ../
so if u have some important file say

/home/a114588/o2x/file.php

technically people cannot access file.php cause it's outside of public_html file

but with your setup it is possible

http://ae-hq.com/o2x/index.php?id=../file

try creating file.php outside public_html see if it includes it

also i dont know if this is harmful to the server

http://ae-hq.com/o2x/index.php?id=/h...html/o2x/index

but that'll include index file for a long time =D.

do something like
PHP Code:
if (preg_match('/index/i',$id))
{
    include(
'home.php');

make sure u validate what pages can and cant be included.

goodluck with the site man.
__________________
http://addf.net
http://som.addf.net
http://snmservers.com
http://snmfuturedomination.com
-------------------------------------
but there it's a different movie
she stares into the screen
and fantasies enter her
harder than all those who will get to know her

Last edited by prey; 04-14-2005 at 04:20 PM.
Reply With Quote
  #10  
Old 04-15-2005, 01:58 AM
NaughtyPerry is offline NaughtyPerry
Banned

Join Date: Sep 2004
Posts: 1,665

:s you lost me at the top of your post...... step by step please
Reply With Quote
  #11  
Old 04-15-2005, 05:52 AM
prey is offline prey
Registered User

Join Date: Mar 2004
Posts: 119

Send a message via ICQ to prey
k,

how do you include the pages?

like home, members etc.

u check the $_GET['id'] variable right?

well that variable comes from the URL. and anybody can modify it.

if they modify it in right wrong way it's potentially a security risk because they can access and cause things you didnt mean for them to.

so you have to validate that variable, perform different checks so you're sure that no matter what the user enters for index.php?id=<insert stuff here>

it wont cause anything you didnt expect.

right now there's a bunch of things that can happen that you didnt expect.

for example
index.php?id=../yourfile

will include a file that is located in the parent folder of the folder where index.php is located.

where if index.php is in public_html then your file will be in /home/a135s9/8x2

only things in public_html can be accessed by connecting to the webserver.

but with your set up they can access any file that ends with .php anywhere

so that's a potential security risk =D

i am not good in explaining things and i am not an expert. but still try to fix that.
gl
__________________
http://addf.net
http://som.addf.net
http://snmservers.com
http://snmfuturedomination.com
-------------------------------------
but there it's a different movie
she stares into the screen
and fantasies enter her
harder than all those who will get to know her
Reply With Quote
  #12  
Old 04-15-2005, 12:25 PM
NaughtyPerry is offline NaughtyPerry
Banned

Join Date: Sep 2004
Posts: 1,665

erm i just put <?php include("$id.php") ?> whereever i use it...
Reply With Quote
  #13  
Old 04-15-2005, 12:55 PM
Stu is offline Stu
Resident Member

Join Date: Aug 2003
Posts: 3,319

Thats not the most stable way to do it ... here is, I know it off by heart :
PHP Code:
<?php 
 
if(isset($id) { // if the page is set in url
         
include("$id".php"); // Include the value of $id
 
} else { // If nothing set, include default page
         
include("news.php"); }; 
?>
Simple
Reply With Quote
  #14  
Old 04-15-2005, 01:52 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
Ohh I like that way

I don't like passing variable values in the top of the address bar...
__________________
Reply With Quote
  #15  
Old 04-15-2005, 02:31 PM
prey is offline prey
Registered User

Join Date: Mar 2004
Posts: 119

Send a message via ICQ to prey
that still lets you enter ../../ and such


here's one way to do it
PHP Code:
$page_name '';
$page_ext '.php';
$valid_pages = Array(
'home',
'members',
'contact'
);

$default_page 0;

if (isset(
$_GET['id']) && trim($_GET['id']) != '' && in_array($_GET['id'],$valid_pages))
{
    
$page_name addslashes(htmlentities(trim($_GET['id'])));

    include(
$page_name.$page_ext);
}else{
    include(
$valid_pages["$default_page"].$page_ext);

__________________
http://addf.net
http://som.addf.net
http://snmservers.com
http://snmfuturedomination.com
-------------------------------------
but there it's a different movie
she stares into the screen
and fantasies enter her
harder than all those who will get to know her

Last edited by prey; 04-15-2005 at 02:37 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phUploader progress bar? KidCactus phphq.Net Forums 7 08-04-2012 11:19 AM
work in progress sig Skin Sigs and Graphics 4 03-10-2009 06:02 PM
C3D Progress Terry Sigs and Graphics 16 07-10-2005 04:20 PM
Work in progress.... tzer Sigs and Graphics 26 12-06-2004 06:05 PM


All times are GMT -5. The time now is 01:52 PM.




Powered by vBulletin®