PDA

View Full Version : Ultra Basic News System



redtom
25-09-2007, 09:36 PM
A few of you may know that I''ve ben trying to learn php for a while and within the last month I've actualy started to get the hang of it anyway I got board after my night out and so I thought I would make this only took a few minutes, If you want I'll zip it and let you download it, and as I've got nothing better to do I'll be happy to add other features if you want, but only tonight.

Anyway;

Login (http://newspal.fovq.com/login.php)
View News (http://newspal.fovq.com/)

Accounts;

Admin;


demo
demo

Normal Account;


demo_2
demo

EDIT: To let every one know this is not the best I can do, I can make much better system I just didn't know what to make and I cba making anything big tonight.

chrisgocrazyH
26-09-2007, 08:50 AM
is it open source so i could edit and like make BG and Shizen ??


and could u make it so its a lil more style in the login?


and can i download

adamFTW
26-09-2007, 11:13 AM
Whats the download link?

It seems opensource so I want to take a jabb at jazzing it up.

chrisgocrazyH
26-09-2007, 11:54 AM
send link plz to me in PM =D

Eccentric
26-09-2007, 01:56 PM
:) Looks good although i should imagine a few security issues because your learning dw im not picking on you :)
Well done tom<3

Florx
26-09-2007, 06:56 PM
Is it coded in oop?

and well done for learning that much in a month!!!

Invent
26-09-2007, 07:07 PM
Is it coded in oop?

i lol'd

Mr Macro
28-09-2007, 08:43 AM
Is it coded in oop?

and well done for learning that much in a month!!!

*** ? oop ?

Florx
28-09-2007, 03:03 PM
Object orientated programming isnt it?

redtom
28-09-2007, 03:06 PM
Object orientated programming isnt it?

Yeah that it, but I didn't do it in that lol

Anyway I'll zip it and upload that some where for you guy in a bit.

Agnostic Bear
29-09-2007, 06:05 AM
i lol'd

Just cause you can't do it doesn't mean you have to laugh at others mr. chuckles.

redtom
29-09-2007, 09:00 AM
http://www.newspal.fovq.com/newspal.zip

http://www.newspal.fovq.com/newspal.tar

Both the same just diffrent compression types.

Frog!
29-09-2007, 10:39 AM
http://www.newspal.fovq.com/newspal.zip

http://www.newspal.fovq.com/newspal.tar

Both the same just diffrent compression types.
I just downloaded it and put it on my localhost, you need to put the SQL file or make an install for it, since then I won't have to try and figure it out.

redtom
29-09-2007, 11:56 AM
Sorry, here it is:

Create a database then run this;


CREATE TABLE `news` (
`by` text NOT NULL,
`title` text NOT NULL,
`body` text NOT NULL,
`id` int(11) NOT NULL auto_increment,
PRIMARY KEY (`id`)
)


And this;


CREATE TABLE `users` (
`username` text NOT NULL,
`password` text NOT NULL,
`level` varchar(11) NOT NULL default '1',
`id` int(11) NOT NULL auto_increment,
PRIMARY KEY (`id`)
);
INSERT INTO `users` VALUES ('admin', '4cb9c8a8048fd02294477fcb1a41191a', '2', 1);


That will create the tables and create this account;

Username: admin
Password: changeme

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