Please be aware that there is a thread called "Post your websites!" - consider whether your post fits better there instead.
Version 1
Please be aware that there is a thread called "Post your websites!" - consider whether your post fits better there instead.
Version 1
"Fake"? Not like the demo site is serious anyway
That reminds me, I should upload my new code to the demo site...
Holy shit, we filled up that thread already?
It's more like holy shit, we finally filled up that thread?
I mean, look at how fast the programming one goes
to bad i will never make anything worthy of the OP :saddowns:
also the honor of having the last post in V1 :patriot:
Well I just got finished making two sites for a guy. We're a pretty good team. He does the designs, send me a psd and I code it. He's a really popular guy, a musician, graphic designer and has a photography business with a friend so I'm once people see who made his site, It will jump start my freelance web design stuff.
screenshots or a url or something?
Edited:
The fonts will probably look different because he wanted to use Century Gothic but he doesn't really understand that if someone else doesn't have the font installed they won't see it.
for the blog you should host the background image on something other than imgkk since your stealing their bandwidth, also maybe make it smaller rather than the 1920px image
Edited:
http://www.qodo.co.uk/blog/re-introd...ace-css-rules/
Ugh, what would be the best way to create a login system?
Using cookies is too insecure and time consuming, and sessions are only temporary (as far as I know). :frown:
Just use sessions, they last long enough for most things... Otherwise use cookies like all sites.
Cookies are far easier. Store a authkey and their username (not their password though, even if hashed). So the password is only used on the login form, after that you check them against IP, and the authkey/username combo in their cookies. Prevents people stealing passwords via cookies (even if hashed, hashing only slows an attack), and prevents session stealing by checking the IP.
I've literally just coded all that for Mod Outlet, doesn't take long, ~30 minutes for full login/logout, coding slowly.
Wait so how exactly do authkeys work? Might change mintypublish and bugspray's auth systems to use that
Basically you have a DB table with an authkey, user ID, and possibly expiry or IP address.
On every request, you grab the incoming authkey and UID and look it up in the database. If a row is returned, it's valid. You might want to check that the expiry (if present) hasn't passed and that the IP in the DB is exactly or within a /24 block of the REMOTE_ADDR.
The authkey is just a random value generated on login. On .NET you could use Guid.NewGuid(), I dunno about PHP
How would I check for the IP :3:
$_server['remote_addr']
Took me about 30 minutes to get the cookie system and auth IDs set up. I'm a slow coder..
Now all thats left is getting the whole website to check to see if everything matches up correctly.
Edited:
Just got most of it working. :fuckyou:
Yeah the auth key simply means you don't store the users password hash in a cookie, because potentially it can be stolen/password broken.
It also has the advantage of the fact you can force-logout a user by removing their authkey in the database.
Currently in Mod Outlet I'm not checking on every page load, I'm only checking login where needed, because otherwise it's a waste of a database query/connection. So if you add your own logged in cookie, the site will tell you you're logged in. Of course, if you try to do something that actually requires login, it'll tell you to fuck off.
-snip-
Forget it.
Lol geocities edition made me laugh my arse off, glad I checked this thread.
Is it me or does my banner looks kind-of weird sitting below the Geocities edition stuff :raise:
yeah he's right. remove a2h's and it will be just right
:mmmsmug:
How come there is no "Geocities edition" in the title?
I said "Geocities edition" after the thread was made (I think) while talking with turby
Ah, I see. Oh well. At least the OP (not -er, just post) is good.
Also, posted my latest project in the last version of this thread, but nobody responded:
http://cf.cremboville.co.cc/index.php
Some advices what to do next would be nice (Active users doesn't work yet).
Actually, any comment would be nice...
OP looks great! Good job, turb_ and a2h.
How instead of showing what I am working on, I'm wondering what I should work on. :saddowns:
Working on a CMS using the CodeIgniter framework, nothing big though.
I'm sorry. :smith:
Implemented load balancing for AnyHub.
When a user requests a file from the normal URL (http://anyhub.net/file/***), it picks a random mirror and redirects the user to that file's URL on the mirror (http://mirX.anyhub.net/***/***)
If the mirror doesn't have that file, it starts downloading via FTP from the main server and simultaneously streams the file both to the user and onto the hard disk of the mirror.
When I add another mirror, it'll just be a simple tweak to let the mirrors download files they don't have off each other, speeding things up even more.
Here's a purdy network diagram of the current setup:
![]()
This is to the above posts where you were talking about cookie auth.
Don't query the database every time the page loads to check if the cookie is valid though. With lots of users it can potentially slow stuff down. When a user logs in, set cookies with username and hash key (maybe part of their password, some numbers, etc.) and a session key with their username (and if needed, their user id). Then when you are checking if the user exists, check session first, if there is no session keys then check cookies. Then if a cookie is set, check that against your database and then set the session username (and user id). It really speeds things up instead of querying the database each time a user loads a page.
My projects twice in the OP? That'd be the first time for a WAYWO thread! Thanks! :)
Edited:
As to my game, it's stood still for quite a while, but recently started again. Added some more graphics, a menu, and fixed plenty of bugs.
(The menu isn't always blurry like this. It blurs every 10th second through a little cycle that takes about a second)
New grass added (images instead of vector, due to resource use), and a texture on the green.
Car gets dark when it explodes, and has smoke emitting out of it.
![]()
Apparently cookies don't like different directories in your website.
Think I should try setrawcookie() :ohdear:
Post #34
You guys might be interested in my state-of-the-art login system:
<?php function isAdmin($name, $access, $cookies = true) { $acc['admin'] = 'test'; $nameC = isset($_COOKIE['name']) ? $_COOKIE['name'] : false; $accessC = isset($_COOKIE['access']) ? $_COOKIE['access'] : false; if ($cookies) { if (($nameC && $accessC) && md5($acc[$nameC]) == $accessC) return true; else return false; } else { if (($name && $access) && $acc[$name] == $access) return true; else return false; } } ?>
I haven't been really working on anything (besides something for garry) due to exams. Sorry.
Why is your MD5 function @'ed? Why would it fail, and even if it does, you should add some error handling instead of just ignoring it.
Better?
My friend asked me why his site wasn't working and if I could fix it up for him.
It was one big jpg and he was positioning divs over it, among CSS errors and other problems
So I fixed it up, and for once, something I made isn't terrible
cool gif, I was taking stuff from tf2 and tf2maps' websites while I was making it, so now I'm moving them to mine