Kloxo Protected directory dont work Print

  • 0

Here is the solution to this very annoying problem.


edit file

Code: 
/usr/local/lxlabs/kloxo/httpdocs/lib/domain/web/driver/dirprotect__apachelib.php

and delete everything in there and REPLACE with:


Code:

< ? php
class dirprotect__apache extends lxDriverClass {
function dbactionAdd()
{
$this->createDiruserfile();
}
function createDiruserfile()
{
global $gbl, $sgbl, $login, $ghtml;
$dir = "__path_httpd_root/{$this->main->getParentName()}/__dirprotect/";
$dir = "/home/httpd/{$this->main->getParentName()}/__dirprotect";
$dirfile = $dir . "/" . $this->main->getFileName();
if (!lxfile_exists($dir)) {
lxuser_mkdir($this->main->_var_username, $dir);
//lxfile_unix_chown($dir, $this->main->_var_username);
}
$fstr = null;
foreach($this->main->diruser_a as $v) {
$fstr .= $v->nname . ':' . crypt($v->param) . "\n";
}
lfile_put_contents($dirfile, $fstr );
lxfile_unix_chown($dirfile, $this->main->_var_username);
lxfile_generic_chmod($this->main->_var_username, $dirfile, "0755");
}
function dbactionUpdate($subaction)
{
$this->createDiruserfile();
}
}
?>


Was this answer helpful?

« Back