Author |
Message |
phoenix-cms
Worker


Joined: Aug 05, 2005
Posts: 139
|
Posted:
Mon Oct 24, 2005 2:08 pm |
|
well patch 3.1 is not as good as i hoped it does have high load times,
i been going over 7.9 and decided not to use patch files but make my own patch files for it and will be part of next release of nuke,
cut the story short
best way i found was to free the memory after the db is queried and got the result
here an example
before:
$result = $db->sql_query("SELECT points FROM ".$user_prefix."_users WHERE user_id='$uid'");
list($points) = $db->sql_fetchrow($result);
$points = intval($points);
$db->sql_freeresult($result);
$result2 = $db->sql_query("SELECT mod_group FROM ".$prefix."_modules WHERE title='$name'");
after:
$row1 = $db->sql_query("SELECT points FROM ".$user_prefix."_users WHERE user_id='$uid'");
$result = $db->sql_query($row1);
while ($row1 = $db->sql_fetchrow($result)) {
$points = $row1['points'];
}
$db->sql_freeresult($result);
$result2 = $db->sql_query("SELECT mod_group FROM ".$prefix."_modules WHERE title='$name'");
see if that helps at all
replacing all list query types with this type.
also something else i found to speedup incluing files also better for security as well
// Absolute Directory Path
if(!defined('NUKE_BASE_DIR')) {
define('NUKE_BASE_DIR', dirname(__FILE__));
}
// Admin Directory Path
if(!defined('NUKE_ADMIN_DIR')) {
define('NUKE_ADMIN_DIR', NUKE_BASE_DIR.'/admin');
}
// Blocks Directory Path
if(!defined('NUKE_BLOCKS_DIR')) {
define('NUKE_BLOCKS_DIR', NUKE_BASE_DIR.'/blocks');
}
// Database Directory Path
if(!defined('NUKE_DATABASE_DIR')) {
define('NUKE_DATABASE_DIR', NUKE_BASE_DIR.'/db');
}
// Images Directory Path
if(!defined('NUKE_IMAGES_DIR')) {
define('NUKE_IMAGES_DIR', NUKE_BASE_DIR.'/images');
}
// Include Directory Path
if(!defined('NUKE_INCLUDE_DIR')) {
define('NUKE_INCLUDE_DIR', NUKE_BASE_DIR.'/includes');
}
// Language Directory Path
if(!defined('NUKE_INCLUDE_DIR')) {
define('NUKE_INCLUDE_DIR', NUKE_BASE_DIR.'/language');
}
// Modules Directory Path
if(!defined('NUKE_INCLUDE_DIR')) {
define('NUKE_INCLUDE_DIR', NUKE_BASE_DIR.'/modules');
}
// Themes Directory Path
if(!defined('NUKE_INCLUDE_DIR')) {
define('NUKE_INCLUDE_DIR', NUKE_BASE_DIR.'/themes');
}
that way you could even rename any of your folders if there are scripts or someone trying to hack it
make it harder for them
thanks
steve |
_________________ Evo 3.0 Developer & nukecops.com Admin
coming soon www.www.cmsrevolution.com |
|
|
 |
64bitguy
The Mouse Is Extension Of Arm

Joined: Mar 06, 2004
Posts: 1164
|
Posted:
Mon Oct 24, 2005 4:03 pm |
|
Code:i been going over 7.9 and decided not to use patch files but make my own patch files for it and will be part of next release of nuke
|
How exactly are you going to achieve that? I mean not to sound too snotty, but did you marry FB's sister or are you performing sexual favors or what other indication leads you to believe that FB woud integrate your suggested fixes over those submitted by everyone else in the community that he ignores?
Nefar, reply to their useless response and ask for specific pages that are generating these SQL queries. |
_________________ Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. |
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Mon Oct 24, 2005 4:45 pm |
|
phoenix-cms wrote: | well patch 3.1 is not as good as i hoped it does have high load times,
i been going over 7.9 and decided not to use patch files but make my own patch files for it and will be part of next release of nuke, |
True, oddly enough when Nuke sites were getting defaced left and right only a few cared to do something about it, it's like throwing a lifeguard to someone that had been drowning after someone else has already taken them out of the water  |
|
|
|
 |
phoenix-cms

|
Posted:
Mon Oct 24, 2005 5:01 pm |
|
Thats funny might be doing work for him only making some new things in 8.x
what people know of already is just some of the chages the big chages will be in 8.0 or 8.1
i looking by 8.3 to have a bigger and better approtch to nuke.
i going to try and fix that is broken. like the bad load times in 7.9.
and hopefully if chatserv still patching by then work out problems so less work over patch series.
as this is opensource guys
support the project! |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Mon Oct 24, 2005 5:10 pm |
|
well ok...
im putting 9.0 ,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9,10 beta in my metatags...
will that do? |
|
|
|
 |
phoenix-cms

|
Posted:
Mon Oct 24, 2005 5:16 pm |
|
i see now, now people know people gona start debating me
should of kept quite  |
|
|
|
 |
hitwalker

|
Posted:
Mon Oct 24, 2005 5:19 pm |
|
Im just kiddin,sure go on...but with your previous post you sure will get response...lol |
|
|
|
 |
phoenix-cms

|
Posted:
Mon Oct 24, 2005 5:23 pm |
|
well this post kinda going off topic here now  |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Oct 24, 2005 5:26 pm |
|
Wow, you mean FB is actually going to start releasing Beta code instead of alpha - thats great news! |
|
|
|
 |
hitwalker

|
Posted:
Mon Oct 24, 2005 5:33 pm |
|
no...hi guardian...
no the only thing he releases is a big fart ! |
|
|
|
 |
VinDSL
Life Cycles Becoming CPU Cycles

Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com
|
Posted:
Mon Oct 24, 2005 5:35 pm |
|
phoenix-cms wrote: | ...this is opensource guys... |
LoL, also referred to as 'open sores' by some. No reason to pour salt into it, yes?  |
_________________ .:: "The further in you go, the bigger it gets!" ::.
.:: Only registered users can see links on this board! Get registered or login! | Only registered users can see links on this board! Get registered or login! ::. |
|
 |
 |
phoenix-cms

|
Posted:
Mon Oct 24, 2005 5:41 pm |
|
ok in 8.x there are a number of things were looking into
1- admin
2 - replacing phpbb with an original nuke only forum (already started on bbcode class for this) define bbcode and define tinymce nice use for nuke
myself i would like to loose this tinymce editor who knows maybe he let me do it
3 - fixing bugs there will be few bugs in 8.0 as the new forum and trying reverse engineer phpbb tables for upgrading.
let hope this is clean as possible.
there is much more going on 8.x this is still wip and should be released around end dec /early jan
thanks
steve |
|
|
|
 |
phoenix-cms

|
Posted:
Mon Oct 24, 2005 5:42 pm |
|
well i can smell a debate on its way now  |
|
|
|
 |
64bitguy

|
Posted:
Mon Oct 24, 2005 6:19 pm |
|
I'm still trying to figure out who this "we" is.
I mean no offense, but I mean as far as an original forums solution goes, just who the heck is writing that? I mean phpBB has had thousands of hours of development time and you think that FB can integrate something like that when he admittedly spends 4-5 hours on each new release (which by the way shows). Again, no offense, but let's get out of fantasy land. I wouldn't trust a home grown forum as far as I can throw the hacker that would have his way with it on day 1.
As for fixing bugs... again.. no offense but have you been on another planet? I mean Patched has fixed bugs in every version I can think of, but yet in EVERY SINGLE case, the next version of Nuke had all of those errors plus I dunno... anywhere from 100 to 1000 new ones.
So again, I'm forced to ask again, who is this "We" that you are talking about and where has FB made these announcements about this new direction?
As for whoever the idiot is that (sorry... insane visionary) contemplating replacing phpBB with a different "original nuke only forums" solution.... maybe this is just the moronic move that we've all been waiting for (okay, some of us are not waiting) that will finally (once and for all) prove just how stupid anyone is that even contemplates sticking with PHP-Nuke and Mr. Burzi. I mean now that we've worked out all of the issues (and it only took a couple of years) you are claiming that a home-grown forums solution is the way to go?
I can sum up my feelings about that very quickly, "Thank you, but no". I mean FB can't even fix XSS vulnerabilities in baseline that have been there for 2 years and you think anyone is going to trust that he can write a forums solution? I mean no offense (again) but do you know how many MySQL 3 queries it will take FB to put that together? lol... Put the crackpipe down and step away. lol |
|
|
|
 |
CurtisH
Life Cycles Becoming CPU Cycles

Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI
|
Posted:
Mon Oct 24, 2005 6:35 pm |
|
hitwalker wrote: | no...hi guardian...
no the only thing he releases is a big fart ! |
I actually laughed out loud...seriously!
Been seeing some pretty darn big claims... will be interesting to see if the community is just getting more smoke blown up their arses or not.
As far as Chatserv's patches are concerned... I have to say I don't recall seeing anyone else bust their ass to provide a useable solution to the reoccuring errors that have become synonymous with the term "New PHP-Nuke release"....every single time there is a new release. Albeit there are quite a few of you (tips hat respectively) that have done your own share of the time consuming leg work to provide us Nuke users with a better, more secure CMS, but it is Chat and his crew that have gone out of their way consistantly in an attempt to stem the exploits (some that have been documented for ages) that seem to keep finding there way back into each consecutive release.
Pardon if I ran long there. I just get a little indignant when I see someone critique the work of Chat and crew... especially when I haven't even seen their better solution but only claims etc... No offense intended. Just being irritated a bit and not sure if I really have a reason to be.  |
_________________ Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe |
|
|
 |
phoenix-cms

|
Posted:
Mon Oct 24, 2005 6:49 pm |
|
ok cut the email short but this whats going to be done
Quote: | I mentioned that a native forum module should be practicaly a reverse engeneering of phpBB talking about features.
A new forums module should not use objects nor classes. Why? because oop on PHP consumes lot or system resources and bring a script that will be hard and tedious to maintain, that is the first requirement... anything can be done using the plain method of functions. The only OOP that I want to leave on the system is the database calls adopted by PHP-Nuke thanks to phpBB, you know those $db->sql_query("select * from....."), etc... so the current abstraction layer is used. |
Quote: | About the forums... I need to stop depending of phpBB. I can't easily follow updates and fixes made by me and then rewrite all the work with the forums specific changes, that day by day are lot. This must be stopped. It's also better to have my own bugs than having to deal with others bugs. |
Quote: | Deadline... well, this is a considerable work, not so difficult but long... this is something you should try to say me. Will be great to have at least Forums and Private Messages ready when version 8.0 comes out. I don't have an estimate yet, but can be in about 3 to 4 months |
so i hope you take this more series now...
and why moad this is opensource where the community support the project and also donate to the project.
well i can see everyone gona moan yet again
like all my other posts  |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Mon Oct 24, 2005 7:04 pm |
|
Not to be rude or anything but I seriously doubt anything mr. burzi produces will be worth pissing on much less as great as he claims it will be. Tooooooo many open sores here. |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Oct 24, 2005 7:08 pm |
|
You have gone from WE to I. Are we (the community) to understand that not only are you a partner with FB but you are actually in control and also programming all this yourself? If so, I have, oh, so many questions! But, first and foremost, please tell us what your qualifications are. How long have you been programming PHP and MySQL? How long have you been programming phpNuke? What is your background and occupation?
Quote: | I don't have an estimate yet, but can be in about 3 to 4 months |
A contradictory statement for sure. |
Last edited by Raven on Mon Oct 24, 2005 7:09 pm; edited 1 time in total |
|
|
 |
phoenix-cms

|
Posted:
Mon Oct 24, 2005 7:09 pm |
|
well all you lot still use nuke?
yes there are bugs no software is perfect,
look at m$ windows |
|
|
|
 |
VinDSL

|
Posted:
Mon Oct 24, 2005 7:10 pm |
|
Heh! I'll have to say, phoenix-cms gets the 'Jaw Drop Award' of the day...  |
|
|
|
 |
Raven

|
Posted:
Mon Oct 24, 2005 7:10 pm |
|
phoenix-cms wrote: | well all you lot still use nuke?
yes there are bugs no software is perfect,
look at m$ windows |
A strawman argument for sure  |
|
|
|
 |
BobMarion

|
Posted:
Mon Oct 24, 2005 7:14 pm |
|
phoenix-cms wrote: | so i hope you take this more series now...
and why moad this is opensource where the community support the project and also donate to the project.
well i can see everyone gona moan yet again
like all my other posts |
First observation, use a better translator. Second observation, welcome to Raven's mr. burzi. |
|
|
|
 |
djmaze
Subject Matter Expert

Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv
|
Posted:
Mon Oct 24, 2005 7:14 pm |
|
FB is no hacker as he said it himself in a interview somewhere.
He also repeatedly announced that he gathered a team of people to work for him but we never saw anything from that.
So what will make you so darn special and why do you think your changes will be integrated ? |
|
|
|
 |
CurtisH

|
Posted:
Mon Oct 24, 2005 7:17 pm |
|
Bob wrote: | First observation, use a better translator. Second observation, welcome to Raven's mr. burzi. |
*LOL* Indeed!
Well we could look at things this way: At least with the new releases we will all have something to either laugh or cry over.
Yes phoenix... many of us do still use Nuke. We just fix it before actually using it.
djmaze wrote: | So what will make you so darn special and why do you think your changes will be integrated ? |
Well if phoenix is as awesome as we are being led to believe, the operative word would be stolen or ignored, not integrated. |
|
|
|
 |
hitwalker

|
Posted:
Mon Oct 24, 2005 7:29 pm |
|
|
|
 |
|