PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 2:08 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Mon Oct 24, 2005 4:03 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Mon Oct 24, 2005 4:45 pm Reply with quote Back to top

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 Wink
View user's profile Send private message Visit poster's website
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 5:01 pm Reply with quote Back to top

Thats funny Laughing 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!
View user's profile Send private message Send e-mail
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Mon Oct 24, 2005 5:10 pm Reply with quote Back to top

well ok... Smile
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?
View user's profile Send private message
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 5:16 pm Reply with quote Back to top

i see now, now people know people gona start debating me
should of kept quite Very Happy
View user's profile Send private message Send e-mail
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Mon Oct 24, 2005 5:19 pm Reply with quote Back to top

Im just kiddin,sure go on...but with your previous post you sure will get response...lol
View user's profile Send private message
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 5:23 pm Reply with quote Back to top

well this post kinda going off topic here now Laughing
View user's profile Send private message Send e-mail
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Mon Oct 24, 2005 5:26 pm Reply with quote Back to top

Wow, you mean FB is actually going to start releasing Beta code instead of alpha - thats great news!
View user's profile Send private message Send e-mail Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Mon Oct 24, 2005 5:33 pm Reply with quote Back to top

no...hi guardian...
no the only thing he releases is a big fart !
View user's profile Send private message
VinDSL
Life Cycles Becoming CPU Cycles


Joined: Jul 11, 2004
Posts: 617
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Mon Oct 24, 2005 5:35 pm Reply with quote Back to top

phoenix-cms wrote:
...this is opensource guys...

LoL, also referred to as 'open sores' by some. No reason to pour salt into it, yes? Cool
View user's profile Send private message Visit poster's website ICQ Number
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 5:41 pm Reply with quote Back to top

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 Smile

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
View user's profile Send private message Send e-mail
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 5:42 pm Reply with quote Back to top

well i can smell a debate on its way now boxing
View user's profile Send private message Send e-mail
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1156
Location: Sanbornton, NH USA

PostPosted: Mon Oct 24, 2005 6:19 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
CurtisH
Life Cycles Becoming CPU Cycles


Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Mon Oct 24, 2005 6:35 pm Reply with quote Back to top

hitwalker wrote:
no...hi guardian...
no the only thing he releases is a big fart !


I actually laughed out loud...seriously! Laughing

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. ROTFL

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. Laughing
View user's profile Send private message Visit poster's website Yahoo Messenger
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 6:49 pm Reply with quote Back to top

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 Laughing
View user's profile Send private message Send e-mail
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Mon Oct 24, 2005 7:04 pm Reply with quote Back to top

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.
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Oct 24, 2005 7:08 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
phoenix-cms
Worker
Worker


Joined: Aug 05, 2005
Posts: 139

PostPosted: Mon Oct 24, 2005 7:09 pm Reply with quote Back to top

well all you lot still use nuke?

yes there are bugs no software is perfect,

look at m$ windows
View user's profile Send private message Send e-mail
VinDSL
Life Cycles Becoming CPU Cycles


Joined: Jul 11, 2004
Posts: 617
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Mon Oct 24, 2005 7:10 pm Reply with quote Back to top

Heh! I'll have to say, phoenix-cms gets the 'Jaw Drop Award' of the day... Twisted Evil
View user's profile Send private message Visit poster's website ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Oct 24, 2005 7:10 pm Reply with quote Back to top

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 ROTFL
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Mon Oct 24, 2005 7:14 pm Reply with quote Back to top

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 Laughing


First observation, use a better translator. Second observation, welcome to Raven's mr. burzi.
View user's profile Send private message Send e-mail Visit poster's website
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 689
Location: http://tinyurl.com/5z8dmv

PostPosted: Mon Oct 24, 2005 7:14 pm Reply with quote Back to top

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 ?
View user's profile Send private message Visit poster's website
CurtisH
Life Cycles Becoming CPU Cycles


Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Mon Oct 24, 2005 7:17 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website Yahoo Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Mon Oct 24, 2005 7:29 pm Reply with quote Back to top

well i dont know if this is in anyway "new" but this article made me laugh ..
a must read...
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum