@@ -542,7 +542,7 @@ class FreeList | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -538,7 +538,7 @@ class ListView | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -970,7 +970,7 @@ class ListView | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -578,7 +578,7 @@ class SearchView | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -447,7 +447,7 @@ class SgListView | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -810,7 +810,7 @@ class SgListView | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -349,7 +349,7 @@ class SpecView | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -345,7 +345,7 @@ class TagList | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -348,7 +348,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -180,7 +180,7 @@ function lib_arclistsg(&$ctag, &$refObj) | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -69,9 +69,15 @@ function ch_softlinks_all($fvalue, &$ctag, &$refObj, &$row) | |||||
//分析本地链接 | //分析本地链接 | ||||
if (!isset($firstLink) && $islocal == 1) $firstLink = $link; | if (!isset($firstLink) && $islocal == 1) $firstLink = $link; | ||||
if ($islocal == 1 && $row['islocal'] != 1) continue; | if ($islocal == 1 && $row['islocal'] != 1) continue; | ||||
<<<<<<< Updated upstream | |||||
//支持http,迅雷下载,ftp,flashget | //支持http,迅雷下载,ftp,flashget | ||||
if (!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link)) { | if (!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link)) { | ||||
$link = $link; | $link = $link; | ||||
======= | |||||
//支持http、迅雷下载、ftp、flashget | |||||
if (!preg_match("#^(http|https):\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link) && $GLOBALS['cfg_multi_site'] == 'Y') { | |||||
$link = $GLOBALS['cfg_mainsite'].$link; | |||||
>>>>>>> Stashed changes | |||||
} | } | ||||
$downloads = getDownloads($link); | $downloads = getDownloads($link); | ||||
$uhash = substr(md5($link), 0, 24); | $uhash = substr(md5($link), 0, 24); | ||||
@@ -123,7 +123,7 @@ function lib_likearticle(&$ctag, &$refObj) | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||
@@ -110,7 +110,7 @@ function lib_relation(&$ctag, &$refObj) | |||||
if ($row['litpic'] == '-' || $row['litpic'] == '') { | if ($row['litpic'] == '-' || $row['litpic'] == '') { | ||||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | ||||
} | } | ||||
if (!preg_match("/^(http|https):\/\//i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | if (!preg_match("#^(http|https):\/\/#i", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { | ||||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | ||||
} | } | ||||
$row['picname'] = $row['litpic']; | $row['picname'] = $row['litpic']; | ||||