My First Web2.0 Site

Soldato
Joined
31 Mar 2006
Posts
3,272
Location
Gravesend, Kent
My First 'Good' Site

Hey all,

After hassle with my server I have decided to start afresh with it's website :)

I have spent a few days on this and had help from a couple of (skilled!) OcUK members.

Just wondering what you think and whether or not you like it :)

http://217.172.47.212/mpfreereviews/wm-config/BlueDesignDynamic/

(the link is currently being hosted on my friends server)
 
Last edited:
blighter said:
what can i do to stop that? :)
Two options:
  1. Sanitate the page name in the URL before including it.
  2. Don't include content in the first place (better).

If you go for option 1, you just need to sanitate the page name in the URL before including it (i.e. making sure that it doesn't contain directory separators, illegal characters etc.) and put all your content in its own directory. Alternatively, have a white list for pages, and only include pages on that white list.

For option 2 (which I'd recommend as it's easier and more secure), just have a separate file for each page and move the code that would be in index.php to header and footer files, included on each page.

Nice design though :)
 
I'm assuming you used the code posted in the other thread? if so putting

Code:
if($page=="../index.php")
{
$page = "";
}

After this:

Code:
<?

include 'header.php';

$path = $_GET['path'];
 
$page = $_GET['p'];

Should stop it.

It will just clear the string so include the default page.

Probably better solutions though :p
 
Inquisitor said:
Two options:
  1. Sanitate the page name in the URL before including it.
  2. Don't include content in the first place (better).

If you go for option 1, you just need to sanitate the page name in the URL before including it (i.e. making sure that it doesn't contain directory separators, illegal characters etc.) and put all your content in its own directory. Alternatively, have a white list for pages, and only include pages on that white list.

For option 2 (which I'd recommend as it's easier and more secure), just have a separate file for each page and move the code that would be in index.php to header and footer files, included on each page.

Nice design though :)
ok cheers :) i will have to find a way of doing the first one because the whole idea of doing it like that was to make it easier to update, without using frames :)

edit : will try the above out next time i edit it :) thanks a lot :D
 
Last edited:
Actually, this would probably be better than what I posted before:

Code:
$cd = strpos($page, "../");
if ($cd === false) {
} else {
	$page = "";
}

As what I posted before would allow you to go down a couple of directories and then back up one and it would still have the problem, whereas that ^ should stop any change in directory.

I'm no expert by any means though so someone will probably offer a better solution.
 
Looks wise it looks like your average blog
Its not Web 2.0
I hate the term Web 2.0

But if you coded the php yourself then props, I havent got past outputting from MySQL yet :rolleyes:
 
Heh, yes, as above. It lacks any of the overused design elements in the current crop of popular websites. If it doesn't look like it would be suitable for the Early Learning Centre, it ain't a 'Web 2.0' design.

You need
  • big text, and lots of whitespace i.e. attention to detail on your typography
  • At least one 'beta' tag, preferably inside a 'bang'/price sticker/star-tag... with a drop-shadow.
  • Everything that has a corner must be rounded. If you can't make it rounded, then add at least 10 more lines of markup or a large javascript file so that you can.
  • You need a logo. The less time it takes you to make it, and the quicker someone else can copy it, the more successful your site will be.
  • Reflections and gradients. One out of two is good. But make something reflective, and use more gradients... like your life depends on it.
  • Must be at least one bold, lurid colour in the colour palette. Pink, turquoise, orange, green etc.
  • And so on...
http://www.webdesignfromscratch.com/current-style.cfm
 
For a website there's nothing too unique about it as it sort of follows the wordpress millions. The search bar in the header is out of place but I like the hues of blue. I think you could integrate the navigation a bit more, but all in all it's a fair example of a blog. :)
 
as already said it looks good but nothing more than the usual wordpress themes that are going around.

have a go at getting it validated as strict now shouldn't be too hard.
 
mrdbristol said:
(http://forums.overclockers.co.uk/showthread.php?t=17628530&highlight=mpfreereviews

5th one)

You used my suggestion from September, wheres my % ? :p

Good Luck with it.

Mark
wow, some people on here have some memory dont they :eek: we've only made $5.64 so you can have 20% if you reallly want ;)
i see what you mean by Web 2.0 now, i thought it was a site that was readable when you take away the theme etc (in FF, View --> Page Style --> No Style)
and what can i do to take away the wordpress idea?
 
Back
Top Bottom