帝国cms分类信息发布的内容生产图片格式建站知
导读:1建站知识帝国CMS模板网下面的帝国CMS教程栏目为您提供了帝国cms分类信息发布的内容生产图片格式网站建设教程seo网站优化软件。
放到e目录下修改第16行$r=$empire->fetch1("select dianhua,chuanzhen,dianziyouxiang from phome_ecms_zhaopin where id='$id'");$r=$empire->fetch1("select 你要图片化的字段名 from 你要调用的数据表名 where id='$id'");然后模板添加<img src="[!--news.url--]e/key/zhaopin.php?key=dianziyouxiang&id=[!--id--]" /></img><img src="[!--news.url--]e/key/zhaopin.php?key=你要图片化的字段名&id=[!--id--]" /></img>可以复制PHP文件改名来达到多个数据库的调用
<?php@require("../class/connect.php");if(!defined('InEmpireCMS')){exit();}include("../class/db_sql.php");include("../class/config.php");$link=db_connect();$empire=new mysqlquery();//取得号码function number($keys){global $empire,$dbtbpre;$id=$_GET[id];$r=$empire->fetch1("select dianhua,chuanzhen,dianziyouxiang from phome_ecms_zhaopin where id='$id'");$r[$keys]?$number=trim($r[$keys]):$number='No write..';return $number;}//显示号码为图片function ShowKey(){$keys=$_GET[key];
$number=number($keys);$strlen=strlen($number);$key=strtolower($number);
$imgW=$strlen*10;
$key=strtolower(number($keys));$set=setcookie("checkplkey",$key,0,"/","");//支持gd库if (function_exists("imagejpeg")) { header ("Content-type: image/jpeg"); $img=imagecreate($imgW,24);
$black=imagecolorallocate($img,51,51,51); $gray=imagecolorallocate($img,255,255,255); imagefill($img,0,0,$gray); imagestring($img,5,5,3,$key,$black); imagejpeg($img); imagedestroy($img);}elseif (function_exists("imagegif")) { header ("Content-type: image/gif"); $img=imagecreate(140,24);
$black=imagecolorallocate($img,51,51,51); $gray=imagecolorallocate($img,255,255,255); imagefill($img,0,0,$gray); imagestring($img,5,5,3,$key,$black); imagegif($img); imagedestr企业网站建设oy($img);}elseif (function_exists("imagepng")) {header ("Content-type: image/png"); $img=imagecreate($imgW,24);
网seo优化趋势$black=imagecolorallocate($img,51,51,51); $gray=imagecolorallocate($img,255,255,255); imagefill($img,0,0,$gray); imagestring($img,5,5,3,$key,$black); imagepng($img); imagedestroy($img);}elseif (function_exists("imagewbmp")) {header ("Content-type: image/vnd.wap.wbmp"); $img=imagecreate($imgW,24);
$black=imagecolorallocate($img,51,51,51); $gray=imagecolorallocate($img,255,255,255); imagefill($img,0,0,$gray); imagestring($img,5,5,3,$key,$black); imagewbmp($img); imagedestroy($img);}else {include("../class/functions.php");$set=setcookie网站seo优化诊断工具("checkplkey","ecms",0,"/","");echo ReadFiletext("../data/images/ecms.jpg");}}ShowKey();?>
相关网站建设教程seo网站优化软件。声明: 本文由我的SEOUC技术文章主页发布于:2023-05-22 ,文章帝国cms分类信息发布的内容生产图片格式建站知主要讲述帝国,分类信息,帝国cms分类信息发布的内容生产图网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_5158.html