淘宝主图制作工具-织梦发布图片到指定虚拟服务

2021-04-13 09:52| 发布者: | 查看: |

--------

淘宝主图制作工具

------- 织梦无忧,用心做好源代码!7年品牌,值得信任! 织梦无忧,个个精品,宁缺毋滥!每个月购买很多于3000元精品源代码完全免费共享,早启用,早享有!终生会员临时性大促,只需要128元!新会员启用,立即进到会员管理中心--购买会员--立即启用便可。

1、进到宝塔面板面板,右边,手机软件管理方法,找到PureFTPd,设定,配备改动,检索ForcePassiveIP,去掉它前面的#号,192.168.0.1改成你的外网地址IP,储存,重新启动PureFTPd或服务器

2、去系统软件--点一下服务器遍布/远程控制设定 开启并键入有关配备

//1、开启 / 找到
//转化成HTML

在它上面添加

$row1 = $dsql- GetOne("SELECT * FROM `dede_multiserv_config`");
$isftp = $row1['remoteuploads'];
$ftpurl = $row1['remoteupUrl'];
$ftpconfig = $row1[''];
$ftpconfig_arr = array();
$ftpconfig_txt = explode('|', $ftpconfig);
foreach($ftpconfig_txt as $str){
 $ftpconfig_arr[] = trim($str);
if($isftp == 1){ 
 $config = array(
 'hostname' = $ftpconfig_arr[1],
 'username' = $ftpconfig_arr[3],
 'password' = $ftpconfig_arr[4],
 'port' = $ftpconfig_arr[2],
 'debug' = 'TRUE'
 $ft凡科抠图 = new FTP(); 
 $ft凡科抠图- connect($config);
 $row2 = $dsql- GetOne("SELECT litpic FROM `dede_archives` WHERE id=$arcID");
 $imglist = $row2['litpic'];
 $row3 = $dsql- GetOne("SELECT body FROM `$addtable` WHERE aid=$arcID");
 preg_match_all("/ img([^ ]*)s*src=('|")([^'"]+)('|")/", $row3['body'], $matches);
 $arr=array_unique($matches[3]);
 foreach($arr as $key){ 
 $imglist .= ','.$key; 
 $imglistarr = array();
 $imglist_txt = explode(',', $imglist);
 foreach($imglist_txt as $str){
 $remotefile = str_replace(DEDEROOT, '', $str);
 $localfile = '..'.$remotefile;
 $remotefile2 = str_replace('uploads/', 'uploadfile/', $remotefile);
 $remotedir = preg_replace('/[^/]*.(jpg|gif|bmp|png)/', '', $remotefile2);
 $ft凡科抠图- rmkdir($remotedir);
 $ft凡科抠图- upload($localfile, $remotefile2);
 $dsql- ExecuteNoneQuery("UPDATE `dede_archives` SET `litpic`=REPLACE(`litpic`,'/uploads','$ftpurl/uploadfile') WHERE `litpic` LIKE '%/uploads%' AND `id` = $arcID");
 $dsql- ExecuteNoneQuery("UPDATE `$addtable` SET `body`=REPLACE(`body`,'/uploads','$ftpurl/uploadfile') WHERE `body` LIKE '%/uploads%' AND `aid` = $arcID");
 $ft凡科抠图- close();
}

2、开启 / 找到

//转化成HTML

在他的上面添加

$row1 = $dsql- GetOne("SELECT * FROM `dede_multiserv_config`");
$isftp = $row1['remoteuploads'];
$ftpurl = $row1['remoteupUrl'];
$ftpconfig = $row1[''];
$ftpconfig_arr = array();
$ftpconfig_txt = explode('|', $ftpconfig);
foreach($ftpconfig_txt as $str){
 $ftpconfig_arr[] = trim($str);
if($isftp == 1){
 $config = array(
 'hostname' = $ftpconfig_arr[1],
 'username' = $ftpconfig_arr[3],
 'password' = $ftpconfig_arr[4],
 'port' = $ftpconfig_arr[2],
 'debug' = 'TRUE'
 $ft凡科抠图 = new FTP(); 
 $ft凡科抠图- connect($config);
 $row2 = $dsql- GetOne("SELECT litpic FROM `dede_archives` WHERE id=$id");
 $imglist = $row2['litpic'];
 $row3 = $dsql- GetOne("SELECT body FROM `$addtable` WHERE aid=$id");
 preg_match_all("/ img([^ ]*)s*src=('|")([^'"]+)('|")/", $row3['body'], $matches);
 $arr=array_unique($matches[3]);
 foreach($arr as $key){ 
 $imglist .= ','.$key; 
 $imglistarr = array();
 $imglist_txt = explode(',', $imglist);
 foreach($imglist_txt as $str){
 if(preg_match('/uploads/', $str)){
 $remotefile = str_replace(DEDEROOT, '', $str);
 $localfile = '..'.$remotefile;
 $remotefile2 = str_replace('uploads/', 'uploadfile/', $remotefile);
 $remotedir = preg_replace('/[^/]*.(jpg|gif|bmp|png)/', '', $remotefile2);
 $ft凡科抠图- rmkdir($remotedir);
 $ft凡科抠图- upload($localfile, $remotefile2);
 $dsql- ExecuteNoneQuery("UPDATE `dede_archives` SET `litpic`=REPLACE(`litpic`,'/uploads','$ftpurl/uploadfile') WHERE `litpic` LIKE '%/uploads%' AND `id` = $id");
 $dsql- ExecuteNoneQuery("UPDATE `$addtable` SET `body`=REPLACE(`body`,'/uploads','$ftpurl/uploadfile') WHERE `body` LIKE '%/uploads%' AND `aid` = $id");
 $ft凡科抠图- close();
}

1、开启 / 找到

//转化成HTML

在它上面添加

$row1 = $dsql- GetOne("SELECT * FROM `dede_multiserv_config`");
$isftp = $row1['remoteuploads'];
$ftpurl = $row1['remoteupUrl'];
$ftpconfig = $row1[''];
$ftpconfig_arr = array();
$ftpconfig_txt = explode('|', $ftpconfig);
foreach($ftpconfig_txt as $str){
 $ftpconfig_arr[] = trim($str);
if($isftp == 1){
 $config = array(
 'hostname' = $ftpconfig_arr[1],
 'username' = $ftpconfig_arr[3],
 'password' = $ftpconfig_arr[4],
 'port' = $ftpconfig_arr[2],
 'debug' = 0
 $ft凡科抠图 = new FTP(); 
 $ft凡科抠图- connect($config);
 $row2 = $dsql- GetOne("SELECT litpic FROM `dede_archives` WHERE id=$arcID");
 $imglist = $row2['litpic'];
 $row3 = $dsql- GetOne("SELECT imgurls FROM `$addtable` WHERE aid=$arcID");
 $imgurls = $row3['imgurls'];
 if($imgurls != '')
 $dtp = new DedeTagParse();
 $dtp- LoadSource($imgurls);
 $images = array();
 if(is_array($dtp- CTags))
 foreach($dtp- CTags as $ctag)
 if($ctag- GetName() == 'img')
 $imglist .= ','.trim($ctag- GetInnerText());
 $dtp- Clear();
 $imglistarr = array();
 $imglist_txt = explode(',', $imglist);
 foreach($imglist_txt as $str){
 $remotefile = str_replace(DEDEROOT, '', $str);
 $localfile = '..'.$remotefile;
 $remotefile2 = str_replace('uploads/', 'uploadfile/', $remotefile);
 $remotedir = preg_replace('/[^/]*.(jpg|gif|bmp|png)/', '', $remotefile2);
 $ft凡科抠图- rmkdir($remotedir);
 $ft凡科抠图- upload($localfile, $remotefile2);
 $dsql- ExecuteNoneQuery("UPDATE `dede_archives` SET `litpic`=REPLACE(`litpic`,'/uploads','$ftpurl/uploadfile') WHERE `litpic` LIKE '%/uploads%' AND `id` = $arcID");
 $dsql- ExecuteNoneQuery("UPDATE `$addtable` SET `imgurls`=REPLACE(`imgurls`,'/uploads','$ftpurl/uploadfile') WHERE `imgurls` LIKE '%/uploads%' AND `aid` = $arcID");
 $ft凡科抠图- close();
}

 

2、开启 / 找到

//转化成HTML

在它上面添加

$row1 = $dsql- GetOne("SELECT * FROM `dede_multiserv_config`");
$isftp = $row1['remoteuploads'];
$ftpurl = $row1['remoteupUrl'];
$ftpconfig = $row1[''];
$ftpconfig_arr = array();
$ftpconfig_txt = explode('|', $ftpconfig);
foreach($ftpconfig_txt as $str){
 $ftpconfig_arr[] = trim($str);
if($isftp == 1){ 
 $config = array(
 'hostname' = $ftpconfig_arr[1],
 'username' = $ftpconfig_arr[3],
 'password' = $ftpconfig_arr[4],
 'port' = $ftpconfig_arr[2],
 'debug' = 0
 $ft凡科抠图 = new FTP(); 
 $ft凡科抠图- connect($config);
 $row2 = $dsql- GetOne("SELECT litpic FROM `dede_archives` WHERE id=$id");
 $imglist = $row2['litpic'];
 $row3 = $dsql- GetOne("SELECT imgurls FROM `$addtable` WHERE aid=$id");
 $imgurls = $row3['imgurls'];
 if($imgurls != '')
 $dtp = new DedeTagParse();
 $dtp- LoadSource($imgurls);
 $images = array();
 if(is_array($dtp- CTags))
 foreach($dtp- CTags as $ctag)
 if($ctag- GetName() == 'img')
 $imglist .= ','.trim($ctag- GetInnerText());
 $dtp- Clear();
 $imglistarr = array();
 $imglist_txt = explode(',', $imglist);
 foreach($imglist_txt as $str){
 if(preg_match('/uploads/', $str)){
 $remotefile = str_replace(DEDEROOT, '', $str);
 $localfile = '..'.$remotefile;
 $remotefile2 = str_replace('uploads/', 'uploadfile/', $remotefile);
 $remotedir = preg_replace('/[^/]*.(jpg|gif|bmp|png)/', '', $remotefile2);
 $ft凡科抠图- rmkdir($remotedir);
 $ft凡科抠图- upload($localfile, $remotefile2);
 $dsql- ExecuteNoneQuery("UPDATE `dede_archives` SET `litpic`=REPLACE(`litpic`,'/uploads','$ftpurl/uploadfile') WHERE `litpic` LIKE '%/uploads%' AND `id` = $id");
 $dsql- ExecuteNoneQuery("UPDATE `$addtable` SET `imgurls`=REPLACE(`imgurls`,'/uploads','$ftpurl/uploadfile') WHERE `imgurls` LIKE '%/uploads%' AND `aid` = $id");
 $ft凡科抠图- close();
}

 

---------

淘宝主图制作工具

------------
<
>

 
QQ在线咨询
售前咨询热线
18720358503
售后服务热线
18720358503
返回顶部