Open-Source Blog
I just finished developing the v1 of my open-source blogging platform i called bloggy. You can download it at http://bloggy.therenegade.info. Check it out/try to hack it at http://www.zomgz.info/bloggy/ and all comments/suggestion are welcome.
If anyone has problems with it just notify me anyway you can and i'll look into it.
It's all php/mysql and runs on either php4 or php5. It's very lightweight and easy to use.
I hope that people like it and I submitted it to http://www.opensourcecms.com and hopefully it should be up on there soon.
Thanks, atrcomb
atrcomb wrote: Check it out/try to hack it
Sorry, couldn't resist an open invitation…..
http://www.zomgz.info/bloggy/archives/viewblog.php?id=1 <- owned again!
http://bloggy.therenegade.info/ <- and again…
Peace ~system[elites0ft.com]
GPL License
As to cleaning up code, I knew full well plenty of people would tell me that when I released it, and even while I was coding I literally thought to myself, I should do it this way instead but didn't. I'll take care of cleaning up code in later releases, this release just fixed some really nescessary stuff.
Thanks for your continuing commentary though.
@system :O
mysql_real_escape_string() fails me :(
thanks for the heads up, you could've just told me though.
atrcomb wrote: @system :O
mysql_real_escape_string() fails me :(
thanks for the heads up, you could've just told me though.
Use: settype( $_GET['id'], "int" );
Peace, ~system[elites0ft.com]
atrcomb wrote: GPL License
As to cleaning up code, I knew full well plenty of people would tell me that when I released it, and even while I was coding I literally thought to myself, I should do it this way instead but didn't. I'll take care of cleaning up code in later releases, this release just fixed some really nescessary stuff.
Thanks for your continuing commentary though.
Ok, so we'll take the other route like system_meltdown's started :)
Don't like the look of this:
$visits = mysql_result(mysql_query("SELECT visits FROM site"), 0); $new = $visits + 1; $add = mysql_query("UPDATE site SET visits = $new");
And I've only just opened index.php
Not only that, but its fairly query intensive, every page load is many queries, some executed twice! (See one above and source of $site['visits'])
Also, you might want to rethink how func common works
Infact, you might want to completely rethink search.php
I wish people didn't use SQL all the time. Accessing your database server is a very expensive process (with regard to time, CPU and RAM). Things like memcached are much quicker, and a memcache extension exists for PHP to access the daemon. Of course on shared hosting it's very rare that something like this is offered, I've certainly never seen it.
Edit: I would try to help specifically with your code but as you're aren't too receptive to code edits I don't really even want to look at the code.
I know search.php sucks as it only finds exact matches and i didn't use fulltext or LIKE 'blah blah' I considered soundex and similar_text, but they were no help. Im not sure how i could improve function common very much though…
As to repeated queries, on search.php i know there are a few, but when i made the new loop for each word, it couldn't access the old queries…Other pages, the most I remember counting is 18, and I am sure that is not nearly what HBH goes through on every page load…
As to "poor reception to code edits." For the last time this is not true. I know optimizations can occur, but I am not refusing help. If I could speak to you all those posts they would be in the most calm voice. I hope you don't think that's what I'm doing anymore.
Version 1.1.1 is out with theme integration added.