
I have posted a (less lines of code) header.php and footer.php for preview for XOOPS 2.0.13.2
Header
Footer
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI .(?:gif|jpg|png|mov|wmv)$ no-gzip dont-vary
php_flag zlib.output_compression on
php_value zlib.output_compression_level 5
Herko Coomans wrote:
So if I'm reading this right, it's not so much a hacked XOOPS, but an optimised server and XOOPS install? Perhaps your XOOPS eXtreme would be more usefull as an optimisation guide then a codefork then?
Hekro
if (!defined("XOOPS_ROOT_PATH")) { die("Hacking Attempt Header"); }
include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
$xoopsOption['theme_use_smarty'] = 1;
require_once XOOPS_ROOT_PATH.'/class/template.php';
$xoopsTpl = new XoopsTpl();
$xoopsTpl->xoops_setCaching(2);
//if ($xoopsConfig['debug_mode'] == 3) { $xoopsTpl->xoops_setDebugging(true); }
$xoopsTpl->assign(array('xoops_theme' => $xoopsConfig['theme_set'], 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/', 'xoops_themecss'=> xoops_getcss($xoopsConfig['theme_set']), 'xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES), 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), 'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
$config_handler =& xoops_gethandler('config');
$criteria = new CriteriaCompo(new Criteria('conf_modid', 0));
$criteria->add(new Criteria('conf_catid', XOOPS_CONF_METAFOOTER));
$config =& $config_handler->getConfigs($criteria, true);
foreach (array_keys($config) as $i) {
$xoopsTpl->assign('xoops_'.$config[$i]->getVar('conf_name'), $config[$i]->getConfValueForOutput());
}
$xoopsTpl->assign('xoops_js', '//-->
5
You may notice that the News module front page isnt that fast though.
But then again, its using 15 queries.
6
Yeah, the source is kinda hard to view sometimes in IE due to Gzip Compression.
That site has the most hacks of all my XOOPS sites.
Why does it run so fast?
And its not because of the Celeron Server,
1. Uses PHP Accelerator (eAccelerator is better, but I was lazy)
2. Doesn't use XOOPS Blocks, those are somewhat slow, slightly better in 2.2.x
and lots of other minor things.
If you use a php caching program, such as APC, PHP Accelerator, or eAccelerator, that will speed up your scripts by about 20-40%. Before I had PHP Accelerator on there, it was at around 0.13 secs for the homepage.
Zend Optimizer really doesnt do much, especially for XOOPS.
So if you want speed, switch to 2.2.x (i seriously hope its stable, because I'm thinking about upgrading)!
I'll release a guide, hopefully soon since I've got a lot of school work.
7
I dont do PHP Programming, I know how to, but I don't
If you wanted to see a heavily hacked XOOPS 2.0.13.1 site, you can look at this XOOPS site I've made, here.
It also has the X-IPB Mod by Koudanshi.
All page gen times are in the source, at the very bottom.
Front page gen time is around 0.06 at best with 3 queries logged out and 5 logged in.
Something like this:
8
Because XOOPS 2.2.x is coming out this weekend, I will be creating a XOOPS eXtreme for that version after its confirmed to be stable.
9
Unfortunitly, the MotherBoard on my computer fried and I had to send it in for repair. Like 5 to 7 days before I get it back. The release is gonna get pushed back at least 2 weeks.
10
Nothing is completely secure, not even XOOPS. Buts its pretty close. It would be great to have a security professional look at 2.2.x before it is released.
But also, just remember that its not always XOOPS itself thats exploited, you have modules installed. I'm sure theres a exploit here and there in CBB, Newbb, or other modules.