Try out my CMS/Blogging Tool

This is a discussion on "Try out my CMS/Blogging Tool" within the Scripts and Online Services section. This forum, and the thread "Try out my CMS/Blogging Tool are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Scripts and Online Services

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 13th, 2008, 12:47
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Try out my CMS/Blogging Tool

Hey all, I'm sorry if this is not allowed, but I remember someone else posting a similar thread before, asking people to try out his CMS. As my first PHP project (alongside simonb) it was quite a challenge, I think it has taken about a week overall.

You can view the front end here:
cms.penguin-cms.com
And log in here:
cms.penguin-cms.com/backend

Username: bob
Password: test

I know that when you log in it displays that crappy screen, I have not got round to doing that bit yet


Once again, if this is breaking the rules on advertising, then please just say.

JAck
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 13th, 2008, 13:03
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Try out my CMS/Blogging Tool

No we allow this.
I've done it too.
I'll try it for you now, I'll let you know.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 13th, 2008, 13:06
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Try out my CMS/Blogging Tool

Ok cheers
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 13th, 2008, 13:14
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Try out my CMS/Blogging Tool

Feedback time!

1. Great work, I can tell you've put a lot of effort in.
2. You're CMS does not seem to vulnerable to SQL injection but I can make sure if you post your login script or send it to me.
3. It correctly filters PHP so no attacks can be made that way.
4. I was able to upload a PHP file (Bad!) but on trying to run (don't worry it was only to print "lolol") I got an internal server error. It would be better to only allow images etc. Not PHP files!
5. You can only edit one note, and editing it changes all notes to the same one.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 13th, 2008, 13:23
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,794
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Try out my CMS/Blogging Tool

I pretty much agree with Alex...
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 13th, 2008, 13:31
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Try out my CMS/Blogging Tool

Quote:
Originally Posted by alexgeek View Post
Feedback time!

1. Great work, I can tell you've put a lot of effort in.
2. You're CMS does not seem to vulnerable to SQL injection but I can make sure if you post your login script or send it to me.
3. It correctly filters PHP so no attacks can be made that way.
4. I was able to upload a PHP file (Bad!) but on trying to run (don't worry it was only to print "lolol") I got an internal server error. It would be better to only allow images etc. Not PHP files!
5. You can only edit one note, and editing it changes all notes to the same one.
1. Thanks
2. Good. I'll PM you the script later.
3.
4. I used a very basic script from a tutorial. I have no idea how to filter file types, if I post it can you have a look?
5. THe idea is that the notes is just literally a place for admin to write things, so they all edit one note really. It was just a quick idea I had. I'll change it so that each note is stored in a seperate row of the table.


Cheers
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jan 13th, 2008, 13:35
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Try out my CMS/Blogging Tool

The uploader is:
PHP: Select all

$path "http://www.webforumz.com/images/".$HTTP_POST_FILES['ufile']['name'];
if(
$ufile !=none)
{
if(
copy($HTTP_POST_FILES['ufile']['tmp_name'], $path))
{
echo 
"Successful<BR/>"
//$HTTP_POST_FILES['ufile']['name'] = file name
//$HTTP_POST_FILES['ufile']['size'] = file size
//$HTTP_POST_FILES['ufile']['type'] = type of file
echo "File Name :".$HTTP_POST_FILES['ufile']['name']."<BR/>"
echo 
"File Size :".$HTTP_POST_FILES['ufile']['size']."<BR/>"
echo 
"File Type :".$HTTP_POST_FILES['ufile']['type']."<BR/>"
echo 
"<img src=\"$path\" width=\"150\" height=\"150\">";
echo 
'<h5>File Location: images/' $HTTP_POST_FILES['ufile']['name'] . '</h5>';
}
else
{
echo 
"Error";
}

I want it to allow most things, but block any .php files.

Would it be something like:
PHP: Select all

if ($HTTP_POST_FILES['ufile']['type']=php) {
echo 
'<p>NO!</p>';
} else {
upload the file...

__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 13th, 2008, 13:38
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Try out my CMS/Blogging Tool

On looking at your login script I don't see any sql injection problems.
Will look at your uploader now.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 13th, 2008, 13:40
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Try out my CMS/Blogging Tool

Hmm that's an old way of doing.
I use PHP5's $_FILES super global so I'm not really sure.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jan 13th, 2008, 13:44
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Try out my CMS/Blogging Tool

I followed it in a tutorial. I'm looking for a better one on the web now.
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jan 13th, 2008, 13:57
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Try out my CMS/Blogging Tool

DID it

PHP: Select all

$path "images/".$HTTP_POST_FILES['ufile']['name'];
if(
$ufile !=none)
{
if ((
$HTTP_POST_FILES['ufile']['type']=="image/gif") || ($HTTP_POST_FILES['ufile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['ufile']['type']=="image/jpeg") || ($HTTP_POST_FILES['ufile']['type']=="image/png")) {
if(
copy($HTTP_POST_FILES['ufile']['tmp_name'], $path))
{
echo 
"Successful<BR/>"
//$HTTP_POST_FILES['ufile']['name'] = file name
//$HTTP_POST_FILES['ufile']['size'] = file size
//$HTTP_POST_FILES['ufile']['type'] = type of file
echo "File Name :".$HTTP_POST_FILES['ufile']['name']."<BR/>"
echo 
"File Size :".$HTTP_POST_FILES['ufile']['size']."<BR/>"
echo 
"File Type :".$HTTP_POST_FILES['ufile']['type']."<BR/>"
echo 
"<img src=\"$path\" width=\"150\" height=\"150\">";
echo 
'<h5>File Location: images/' $HTTP_POST_FILES['ufile']['name'] . '</h5>';
}
else
{
echo 
"Error";
}
} else {
echo 
"Incorrect File Type";
}

Now, how would I create one that did not allow PHP but allowed zip, pdf & doc?
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jan 13th, 2008, 15:19
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Try out my CMS/Blogging Tool

Quote:
Originally Posted by alexgeek View Post
Feedback time!

5. You can only edit one note, and editing it changes all notes to the same one.
Quote:
Originally Posted by jackfranklin View Post
5. THe idea is that the notes is just literally a place for admin to write things, so they all edit one note really. It was just a quick idea I had. I'll change it so that each note is stored in a seperate row of the table.

Changed. Each note now is in a seperate row of the database.
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Jan 13th, 2008, 15:22
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: Try out my CMS/Blogging Tool

Great. What are you plans for this project?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Jan 13th, 2008, 15:27
Jack Franklin's Avatar
Moderator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,405
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Re: Try out my CMS/Blogging Tool

Well I have set up an entire website and trying to get the word around that the official beta will be released today. I want people to test it, and then in 2-3 weeks, the first proper release V1.0 should be out. Then people can use it for their blogs.

At the moment the only tester is my brother :P

(If anyone wants to test it for me check out the website)

Jack
__________________
Jack Franklin - Webforumz Moderator
(x)HTML | CSS | PHP | MySQL | JQuery (Javascript)
Contact: My Blog | Twitter | Delicious
Want Lessons? PM me.
If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Jan 15th, 2008, 18:43
Jack Franklin's Avatar