PDA

View Full Version : Dfiles.co.cc



Jack!
12-09-2009, 01:13 PM
First of all, please read before you slate about it being a free domain.

Dfiles will basically be a free resource site for anyone, but it wont be based around habbo, just a webmaster resource site.

i have been working on it for about a week now and it is coming along nicley

you can view it by clicking here (http://dfiles.co.cc/site)

I have added some content so far, but what content and downloads would you like to see, it is still in early development, so any content that you want can be added, im currently adding free forum software, is there anymore apart from:

Mybb
PHPbb
SMF
Yabb

They were all i could think of that were free.

i will hopefully also be adding content downloads for your home PC/Laptop

this will include things that will improve your home computing experience, so anything you want to go inthere just ask.

also for the people who make scripts, if you wanted i would add them onto the site?

Thanks for reading.



Lazy Link (http://dfiles.co.cc/site)

Dromenail
12-09-2009, 02:27 PM
Its a nice layout. Did you make it or is it a free one?

Calvin
12-09-2009, 02:39 PM
Looks good, only thing is, if its not a habbo site then change 'Layouts' to 'Templates', more suitable :P.

Good luck with it!

Jack!
12-09-2009, 02:42 PM
Looks good, only thing is, if its not a habbo site then change 'Layouts' to 'Templates', more suitable :P.

Good luck with it!

Will do,

Thanks!

Edit : Changed it

Jack!
12-09-2009, 02:53 PM
@Dromenail (http://www.habboxforum.com/member.php?u=43464)

it is free but i edited it

Dentafrice
12-09-2009, 03:02 PM
http://dfiles.co.cc/site/index.php?page=index

;)

Jack!
12-09-2009, 03:05 PM
Only you would do that. thanks :p

yeh i know about it, trying to stop people from doing it but i dont know how, do you know?

and can you remove it, because it will eventaully crash whoever browser opens it and it will overload the server

Dromenail
12-09-2009, 03:08 PM
if page = index dont include

Jack!
12-09-2009, 03:12 PM
how, im a bit new to php includes

Dromenail
12-09-2009, 03:13 PM
Post your page code.

Jack!
12-09-2009, 03:18 PM
<?php
if (!isset($page))
{
include("advert.html");
}
if(file_exists($_GET['page'].".php")){
include $_GET['page'].'.php';
}
if(file_exists($_GET['page'].".html")){
include $_GET['page'].'.html';
}
if(file_exists($_GET['page'].".txt")){
include $_GET['page'].'.txt';
}
elseif (isset($page) && !@include("$page"))
{
echo "Error Page not found!";
}
?>

You mean that yeh?

Dentafrice
12-09-2009, 03:29 PM
<?php

$page = $_GET["page"];

if($page == "") {
$page = "home";
}

$page = "{$page}.php";

if(!file_exists($page)) {
$page = "404.php";
}

include $page;

Blob
13-09-2009, 09:23 AM
Make sure your website has PHP5 installed.

<?php
// File include by Blob off of HabboxForum
$config = array("default" => "home.php", // Default Page (with trailing .php)
"directory" => "pages/", // Directory where files are held (with trailing slash)
"restricted" => array( "index" ), // Restricted pages
"404" => "404.php" // Error Page (with trailing .php)
);
$page = str_replace("/", "", ( ( ( in_array( $_GET["page"], $config["restricted"] ) ) !== false ) ? "home" : $_GET["page"] ) );
( file_exists( $config["directory"] . $page . ".php" ) !== false ) ? include( $config["directory"] . $page . ".php" ) : include( $config["directory"] . $config["404"] );
?>

Pages Directory
Replace "pages/" with the directory where the pages are contained from the index.php (so if your viewing the folder with index.php and theres a folder in there called hello with the pages in there, change it to "hello/")

404 Page
Replace "404.php" with your 404 page WITHIN the folder that you have said it your pages directory (make sure it has .php on the end) (it can be the same as your default page)

Default Page
Replace "home.php" with the default page you want to show when someone tries to access a restricted page or when no page is specified (make sure it has .php on the end)

Restricted Pages

"restricted" => array( "index" ), // Restricted pages
With the restricted pages, within the array( "index" ) put your extra restricted pages in that array, so if I don't want someone to access index.php and lol.php WITHIN the pages directory I would put:

"restricted" => array( "index", "lol" ), // Restricted pages
(Only putting index is only useful when your default directory is where index.php is, to stop an infinite loop).

Want to hide these adverts? Register an account for free!