Although the warning abuse you, you don't have to mind it.
I've tested well and I found that the warning is not important.
Dave_L wrote:function xoops_refcheck($docheck=1)
{
[color=ff0000]return true; // disable HTTP_REFERER check[/color]
$ref = xoops_getenv('HTTP_REFERER');
if ($docheck == 0) {
...
}
function xoops_refcheck($docheck=1)
{
$ref = xoops_getenv('HTTP_REFERER');
if ($docheck == 0) {
return true;
}
if ($ref == '') {
[d]return false;[/d]
[color=ff0000]return true;[/color]
}
if (strpos($ref, XOOPS_URL) !== 0 ) {
return false;
}
return true;
}
MacKnIss wrote:
This is the error it gives:
XOOPS_URL is not included in your REFERER
if (!$fp = fopen($this->_hl->getVar('headline_rssurl'), 'r')) {
$this->_setErrors('Could not open file: '.$this->_hl->getVar('headline_rssurl'));
return false;
}
$data = '';
while (!feof ($fp)) {
$data .= fgets($fp, 4096);
}
fclose ($fp);
// start of snoopy hack
$error_level_stored = error_reporting() ;
error_reporting( $error_level_stored & ~ E_NOTICE ) ;
// includes Snoopy class for remote file access
require_once(XOOPS_ROOT_PATH."/class/snoopy.php");
$snoopy = new Snoopy;
//TIMEOUT 5 second
$snoopy->read_timeout = 5; // timeout on read operations, in seconds
//URL fetch
if( ! $snoopy->fetch( $this->_hl->getVar( 'headline_rssurl' ) ) || ! $snoopy->results ) {
if (!empty($snoopy->error)) {
$this->_setErrors('Could not open file: '.$this->_hl->getVar('headline_rssurl')."snoopy status=".$snoopy->error);
return false;
} else {
$this->_setErrors('Could not open file: '.$this->_hl->getVar('headline_rssurl'));
return false;
}
}
$data = $snoopy->results ;
error_reporting( $error_level_stored ) ;
// end of snoopy hack
php_flag allow_url_fopen Off
Booga wrote:
4 quick questions to get this straight in my head......
1. I can install 2 of the same modules on the same site??
2. rename the module folder??
3. would this also work for mydownloads??
4. I am interested as this would allow me to set different permissions per module.....yes??
Thanks for your time,
Booga.
4. I am interested as this would allow me to set different permissions per module.....yes??