本文整理汇总了PHP中install_plugins函数的典型用法代码示例。如果您正苦于以下问题:PHP install_plugins函数的具体用法?PHP install_plugins怎么用?PHP install_plugins使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了install_plugins函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: watermark_install
function watermark_install()
{
global $settingInfo;
//检查有无GD支持
$gdVersion = gd_version();
if ($gdVersion == "0") {
$ActionMessage = "你的服务器不支持GD,不能使用此插件!请联系你的服务器供应商!";
} else {
$arrPlugin['Name'] = "watermark";
//Plugin name
$arrPlugin['Desc'] = "水印";
//Plugin title
$arrPlugin['Type'] = "Func";
//Plugin type
$arrPlugin['Code'] = '';
//Plugin htmlcode
$arrPlugin['Path'] = "";
//Plugin Path
$arrPlugin['DefaultField'] = array("wm_position", "wm_image", "wm_text", "wm_font", "wm_color", "wm_transparence", "wm_width", "wm_height");
//Default Filed
$arrPlugin['DefaultValue'] = array("6", "plugins/watermark/watermark.png", $settingInfo['blogUrl'], "5", "#FF0000", "85", "200", "200");
//Default value
$ActionMessage = install_plugins($arrPlugin);
}
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:26,代码来源:watermark.php
示例2: nfo_install
function nfo_install()
{
global $settingInfo;
//检查有无GD支持
$gdVersion = gd_version();
if ($gdVersion == "0") {
$ActionMessage = "你的服务器不支持GD,不能使用此插件!请联系你的服务器供应商!";
} else {
$arrPlugin['Name'] = "nfo";
//Plugin name
$arrPlugin['Desc'] = "NFO to Image";
//Plugin title
$arrPlugin['Type'] = "Func";
//Plugin type
$arrPlugin['Code'] = '';
//Plugin htmlcode
$arrPlugin['Path'] = "";
//Plugin Path
$arrPlugin['DefaultField'] = array("bgcolor", "txtcolor", "imgtype");
//Default Filed
$arrPlugin['DefaultValue'] = array("#FFFFFF", "#000000", "png");
//Default value
$ActionMessage = install_plugins($arrPlugin);
}
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:26,代码来源:nfo.php
示例3: GTMusic_install
function GTMusic_install()
{
global $DMC, $DBPrefix;
$arrPlugin['Name'] = "GTMusic";
$arrPlugin['Desc'] = "GTMusic";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = '';
$arrPlugin['Path'] = "";
$arrPlugin['DefaultField'] = "";
$arrPlugin['DefaultValue'] = "";
//建表及插入默认数据
$dbcharset = 'utf8';
$curTime = time();
//建立MusicSetting设定表
if (!$DMC->query("SELECT id FROM " . $DBPrefix . "musicsetting", 'T')) {
$sql = "CREATE TABLE `{$DBPrefix}musicsetting` (`id` INT( 1 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,`BlogRoot` VARCHAR( 30 ) NOT NULL ,`view_player` TINYINT NOT NULL ,`set_autoplay` TINYINT NOT NULL ,`set_shuffle` TINYINT NOT NULL ,`set_loop` TINYINT NOT NULL ,`set_volume` INT NOT NULL ,`use_marquee` TINYINT NOT NULL ,`marquee_direction` TINYINT NOT NULL ,`marquee_scrolldelay` INT NOT NULL ) ENGINE = MYISAM {$default_charset};";
$DMC->query($sql);
$DMC->query("INSERT INTO `{$DBPrefix}musicsetting` ( `id` , `BlogRoot` , `view_player` , `set_autoplay` , `set_shuffle` , `set_loop` , `set_volume` , `use_marquee` , `marquee_direction` , `marquee_scrolldelay` ) VALUES (1 , '天上的骆驼', '0', '0', '1', '1', '99', '1', '0', '50')");
//建立MusicClass专辑表
$sql = "CREATE TABLE `{$DBPrefix}musicclass` (`ClassId` INT( 2 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,`ClassName` VARCHAR( 20 ) NOT NULL ,`Commend` TINYINT( 1 ) NOT NULL ,`ClickNum` INT( 4 ) NOT NULL ) ENGINE = MYISAM {$default_charset};";
$DMC->query($sql);
$DMC->query("INSERT INTO `{$DBPrefix}musicclass` ( `ClassId` , `ClassName` , `Commend` , `ClickNum` ) VALUES (1 , '流行音乐', '1', '0')");
//建立音乐表
$sql = "CREATE TABLE `{$DBPrefix}music` (`MusicId` INT( 3 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,`MusicName` VARCHAR( 50 ) NOT NULL ,`MusicSinger` VARCHAR( 20 ) NOT NULL ,`MusicUrl` VARCHAR( 250 ) NOT NULL ,`Commend` TINYINT( 1 ) NOT NULL ,`IsPlayList` TINYINT( 1 ) NOT NULL DEFAULT '1',`orderNo` TINYINT NOT NULL DEFAULT '0' ,`AppDate` VARCHAR( 20 ) NOT NULL ,`ClickNum` INT( 5 ) NOT NULL ,`DownNum` INT( 5 ) NOT NULL ,`ClassId` INT( 3 ) NOT NULL ) ENGINE = MYISAM {$default_charset};";
$DMC->query($sql);
$DMC->query("INSERT INTO `{$DBPrefix}music` ( `MusicId` , `MusicName` , `MusicSinger` , `MusicUrl` , `Commend` , `IsPlayList` , `AppDate` , `ClickNum` , `DownNum` , `ClassId` ) VALUES (1 , '隐形的翅膀', '张韶涵', 'http://www.ynye.com/upocx/upfiles/2006428161927656.mp3', '5', '1', '{$curTime}', '0', '0', '1'), (2 , '美丽的神话', '成龙', 'http://www.027chem.cn/company/music/sh.mp3', '5', '1', '{$curTime}', '0', '0', '1')");
}
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:30,代码来源:GTMusic.php
示例4: vote_install
function vote_install()
{
global $DMC, $DBPrefix;
$arrPlugin['Name'] = "vote";
$arrPlugin['Desc'] = "投票";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['DefaultField'] = array("voteWidth", "voteHeight", "voteTM");
$arrPlugin['DefaultValue'] = array("175", "250", "0");
//建表及插入默认数据
if ($DMC->getServerInfo() > '4.1') {
$default_charset = " DEFAULT CHARACTER SET utf8";
} else {
$default_charset = "";
}
if (!$DMC->query("SELECT id FROM " . $DBPrefix . "vote", 'T')) {
$sql = "CREATE TABLE `{$DBPrefix}vote` (`id` INT( 3 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,`voteco` VARCHAR( 200 ) NOT NULL ,`cs_1` VARCHAR( 50 ) NOT NULL ,`cs_2` VARCHAR( 50 ) NOT NULL ,`cs_3` VARCHAR( 50 ) NOT NULL ,`cs_4` VARCHAR( 50 ) NOT NULL ,`cs_5` VARCHAR( 50 ) NOT NULL ,`cs_1_num` INT( 5 ) NOT NULL DEFAULT '0',`cs_2_num` INT( 5 ) NOT NULL DEFAULT '0' ,`cs_3_num` INT( 5 ) NOT NULL DEFAULT '0' ,`cs_4_num` INT( 5 ) NOT NULL DEFAULT '0' ,`cs_5_num` INT( 5 ) NOT NULL DEFAULT '0' ,`oorc` VARCHAR( 5 ) NOT NULL ,`bg_color` VARCHAR( 10 ) NOT NULL,`word_color` VARCHAR( 10 ) NOT NULL,`word_size` VARCHAR( 2 ) NOT NULL,`vote_time` VARCHAR( 20 ) NOT NULL ,`votevi` INT( 5 ) NOT NULL DEFAULT '0' ,`sorm` VARCHAR( 5 ) NOT NULL ,INDEX ( `voteco` ) ) ENGINE = MYISAM {$default_charset};";
$DMC->query($sql);
}
$curTime = time();
$DMC->query("INSERT INTO {$DBPrefix}vote VALUES (1, '您认为F2Blog那些需要加强?', '功能', '皮肤', '插件', '速度', '服务', '10', '5', '8', '13', '2', 'True', 'EEEEEE', '333399', '11', '{$curTime}', '0', 'True')");
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:25,代码来源:vote.php
示例5: lightbox2_install
function lightbox2_install()
{
$arrPlugin['Name'] = "lightbox2";
$arrPlugin['Desc'] = "lightbox2";
$arrPlugin['Type'] = "Func";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:10,代码来源:lightbox2.php
示例6: FlvPlayer_install
function FlvPlayer_install()
{
$arrPlugin['Name'] = "FlvPlayer";
$arrPlugin['Desc'] = "Flv播放器";
$arrPlugin['Type'] = "Func";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:10,代码来源:FlvPlayer.php
示例7: CoverJF_install
function CoverJF_install()
{
$arrPlugin['Name'] = "CoverJF";
$arrPlugin['Desc'] = "繁体版";
$arrPlugin['Type'] = "Top";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:10,代码来源:CoverJF.php
示例8: imagebox_install
function imagebox_install()
{
$arrPlugin['Name'] = "imagebox";
$arrPlugin['Desc'] = "相册";
$arrPlugin['Type'] = "Top";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "plugins/imagebox/imagebox.big.php";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:10,代码来源:imagebox.php
示例9: onlinemusic_install
function onlinemusic_install()
{
$arrPlugin['Name'] = "onlinemusic";
$arrPlugin['Desc'] = "在线音乐";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:10,代码来源:onlinemusic.php
示例10: blogHint_install
function blogHint_install()
{
$arrPlugin['Name'] = "blogHint";
$arrPlugin['Desc'] = "博客小贴士";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['indexOnly'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:11,代码来源:blogHint.php
示例11: hotPosts_install
function hotPosts_install()
{
$arrPlugin['Name'] = "hotPosts";
$arrPlugin['Desc'] = "热点日志";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['indexOnly'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:11,代码来源:hotPosts.php
示例12: NetExtract_install
function NetExtract_install()
{
$arrPlugin['Name'] = "NetExtract";
$arrPlugin['Desc'] = "在日志下方增加一行发送到各网摘程序的链接";
$arrPlugin['Type'] = "Main";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['indexOnly'] = "5";
//$strModuleContentShow=array("0所有内容头部","1所有内容尾部","2首页内容头部","3首页内容尾部","4首页日志尾部","5读取日志尾部");
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:12,代码来源:NetExtract.php
示例13: AboutBlog2_install
function AboutBlog2_install()
{
$arrPlugin['Name'] = "AboutBlog2";
$arrPlugin['Desc'] = "Show your blog logo and title without box.";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['DefaultField'] = "";
$arrPlugin['DefaultValue'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:12,代码来源:AboutBlog2.php
示例14: BlogNews_install
function BlogNews_install()
{
$arrPlugin['Name'] = "BlogNews";
$arrPlugin['Desc'] = "跑馬燈";
$arrPlugin['Type'] = "Main";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['indexOnly'] = "0";
//$strModuleContentShow=array("0所有内容头部","1所有内容尾部","2首页内容头部","3首页内容尾部","4首页日志尾部","5读取日志尾部");
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:12,代码来源:BlogNews.php
示例15: weather_install
function weather_install()
{
$arrPlugin['Name'] = "weather";
$arrPlugin['Desc'] = "天气预报";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = <<<HTML
\t\t<IFRAME ID='ifm2' WIDTH='175' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.news.qq.com/inc/ss272.htm'></IFRAME>\t
HTML;
$arrPlugin['Path'] = "";
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:12,代码来源:weather.php
示例16: CallBoard_install
function CallBoard_install()
{
$arrPlugin['Name'] = "CallBoard";
$arrPlugin['Desc'] = "滚动的公告板";
$arrPlugin['Type'] = "Main";
$arrPlugin['Code'] = "<font color="#999999" style="font-weight:bold;">[<font color="#acc414">2006-12-15</font>]</font>欢迎选用F2Blog。<br />\r\n<font color="#999999" style="font-weight:bold;">[<font color="#acc414">2006-12-15</font>]</font><a href="http://forum.f2blog.com" target="_blank">有任何问题,请到F2Blog论坛中寻求支持!</a><br />\r\n<font color="#999999" style="font-weight:bold;">[<font color="#acc414">2006-12-15</font>]</font><a href="http://joesen.f2blog.com" target="_blank">给自己做个广告,有兴趣给我做个友情链接吧。</a>";
$arrPlugin['Path'] = "";
$arrPlugin['indexOnly'] = "2";
//$strModuleContentShow=array("0所有内容头部","1所有内容尾部","2首页内容头部","3首页内容尾部","4首页日志尾部","5读取日志尾部");
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:12,代码来源:CallBoard.php
示例17: Delicious_install
function Delicious_install()
{
global $Delicious_plugin_config;
$arrPlugin['Name'] = "Delicious";
$arrPlugin['Desc'] = "Delicious";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['DefaultField'] = array("user");
$arrPlugin['DefaultValue'] = array("zach14c");
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:13,代码来源:Delicious.php
示例18: GoogleAdSense_install
function GoogleAdSense_install()
{
global $GoogleAdSense_plugin_config;
$arrPlugin['Name'] = $GoogleAdSense_plugin_config["Name"];
$arrPlugin['Desc'] = "Google Ad";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['DefaultField'] = array("dummy");
$arrPlugin['DefaultValue'] = array("1");
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:13,代码来源:GoogleAdSense.php
示例19: ccVideo_install
function ccVideo_install()
{
$arrPlugin['Name'] = "ccVideo";
$arrPlugin['Desc'] = "CC视频";
$arrPlugin['Type'] = "Top";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "plugins/ccVideo/ccVideo.big.php";
$arrPlugin['DefaultField'] = array("ccuser", "ccorder", "ccstatus");
//Default Filed
$arrPlugin['DefaultValue'] = array("用户ID", "1", "0");
//Default value
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:14,代码来源:ccVideo.php
示例20: SiteFocus_install
function SiteFocus_install()
{
$arrPlugin['Name'] = "SiteFocus";
$arrPlugin['Desc'] = "博客焦点";
$arrPlugin['Type'] = "Side";
$arrPlugin['Code'] = "";
$arrPlugin['Path'] = "";
$arrPlugin['DefaultField'] = array("imgtext1", "imgurl1", "imglink1", "imgtext2", "imgurl2", "imglink2", "imgtext3", "imgurl3", "imglink3");
//Default Filed
$arrPlugin['DefaultValue'] = array("图片1", "plugins/SiteFocus/1.jpg", "http://www.f2blog.com", "图片2", "plugins/SiteFocus/2.jpg", "http://www.f2blog.com", "图片3", "plugins/SiteFocus/3.jpg", "http://www.f2blog.com");
//Default value
$ActionMessage = install_plugins($arrPlugin);
return $ActionMessage;
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:14,代码来源:SiteFocus.php
注:本文中的install_plugins函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论