mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-25 13:22:16 +09:00
#17633688 허용 사이트 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5351 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
55fc9374d5
commit
125ef5eaa1
5 changed files with 26 additions and 1 deletions
|
|
@ -73,7 +73,19 @@
|
|||
}
|
||||
if($file_module_config->allow_outlink == 'N') {
|
||||
$referer = parse_url($_SERVER["HTTP_REFERER"]);
|
||||
if($referer['host'] != $_SERVER['HTTP_HOST']) return $this->stop('msg_not_permitted_download');
|
||||
if($referer['host'] != $_SERVER['HTTP_HOST']) {
|
||||
if($file_module_config->allow_outlink_site) {
|
||||
$allow_outlink_site_array = array();
|
||||
$allow_outlink_site_array = explode("\n", $file_module_config->allow_outlink_site);
|
||||
if(!is_array($allow_outlink_site_array)) $allow_outlink_site_array[0] = $file_module_config->allow_outlink_site;
|
||||
foreach($allow_outlink_site_array as $val) {
|
||||
$site = parse_url(trim($val));
|
||||
if($site['host'] == $referer['host']) $file_module_config->allow_outlink = 'Y';
|
||||
}
|
||||
if($file_module_config->allow_outlink != 'Y') return $this->stop('msg_not_permitted_download');
|
||||
}
|
||||
else return $this->stop('msg_not_permitted_download');
|
||||
}
|
||||
}
|
||||
|
||||
// trigger 호출 (before)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue