Merge branch 'g4s'
This commit is contained in:
681
bbs/zip.db
681
bbs/zip.db
File diff suppressed because it is too large
Load Diff
@ -1964,7 +1964,7 @@ function html_end()
|
|||||||
$buffer = ob_get_contents();
|
$buffer = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
preg_match('#<body>(.*)</body>#is', $buffer, $bodys);
|
preg_match('#<body>(.*)</body>#is', $buffer, $bodys);
|
||||||
preg_match_all('/(\r|\n)<link[^>]+>/i', $bodys[0], $links);
|
preg_match_all('/(\r|\n)?<link[^>]+>/i', $bodys[0], $links);
|
||||||
$stylesheet = '';
|
$stylesheet = '';
|
||||||
$links[0] = array_unique($links[0]);
|
$links[0] = array_unique($links[0]);
|
||||||
foreach ($links[0] as $key=>$link) {
|
foreach ($links[0] as $key=>$link) {
|
||||||
|
|||||||
@ -34,6 +34,9 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_
|
|||||||
else
|
else
|
||||||
$data_path = $p['path'];
|
$data_path = $p['path'];
|
||||||
|
|
||||||
|
if(!preg_match('/^\/'.G4_DATA_DIR.'/', $data_path))
|
||||||
|
continue;
|
||||||
|
|
||||||
$srcfile = G4_PATH.$data_path;
|
$srcfile = G4_PATH.$data_path;
|
||||||
|
|
||||||
if(preg_match("/\.({$config['cf_image_extension']})$/i", $srcfile) && is_file($srcfile)) {
|
if(preg_match("/\.({$config['cf_image_extension']})$/i", $srcfile) && is_file($srcfile)) {
|
||||||
@ -107,6 +110,9 @@ function get_view_thumbnail($contents)
|
|||||||
else
|
else
|
||||||
$data_path = $p['path'];
|
$data_path = $p['path'];
|
||||||
|
|
||||||
|
if(!preg_match('/^\/'.G4_DATA_DIR.'/', $data_path))
|
||||||
|
continue;
|
||||||
|
|
||||||
$srcfile = G4_PATH.$data_path;
|
$srcfile = G4_PATH.$data_path;
|
||||||
|
|
||||||
if(is_file($srcfile)) {
|
if(is_file($srcfile)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user