示例#1
0
function zip2web($zip, $web)
{
	$z2w = loadInstance('zip.moyo.z2w', 'ExZIP2Web');
	$r = $z2w->Create_ZIP2Web($zip, $web);
	if (!zip2web_successd($web, $r))
	{
		$r = zip2web_Retry($zip, $web);
		if (!zip2web_successd($web, $r))
		{
			$r = zip2web_Retry2($zip, $web);
			if (!zip2web_successd($web, $r))
			{
				$r = array();
			}
		}
	}
		$cFile = $web.'setting/constants.php';
	if (!is_file($cFile))
	{
		return zip2web_error('无法释放临时文件!请检查目录“/data/”以及其子目录的权限是否为“可读写”');
	}
	$cContent = file_get_contents($cFile);
	if (!stristr($cContent, 'SYS_VERSION'))
	{
		return zip2web_error('升级文件解压失败!请手动进行升级 - <a href="'.ihelper('tg.upgrade.zip.error').'" target="_blank">查看帮助</a>');
	}
	return $r;
}
示例#2
0
	function ModuleObject($config)
	{
		$this->MasterObject($config);
		include_once(LIB_PATH.'io.han.php');
self::$err_noData_help = <<<HELP
抱歉,当前无法连接到升级服务器!<br/>
--------------------------<br/>
<font id="update_server_test">正在重新检查...</font>
<br/>
--------------------------<br/>
如果有疑问,您可以联系在线客服QQ:<a href="#" onclick="javascript:window.open('http://bizapp.qq.com/webc.htm?new=0&sid=800058566&o=tttuangou.net&q=7', '_blank', 'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');return false;">800058566</a><br/>
(需要提供相应服务器权限)
<script type="text/javascript">jQuery(document).ready(function(){jQuery.get('index.php?mod=apiz&code=update&op=ServerTest'+jQuery.rnd.stamp(), function(data){jQuery('#update_server_test').html(data)})});</script>
HELP;
$helpLinker = ihelper('tg.upgrade.error.format');
self::$err_Format_help = <<<HELP
抱歉,当前升级人数太多,请稍候进行尝试!&nbsp;&nbsp;&nbsp;&nbsp;<a href="{$helpLinker}" target="_blank">查看帮助</a>
HELP;
		Load::moduleCode($this);$this->Execute();
	}
示例#3
0
	public function CreateLink() { return '<a href="'.ihelper('bdp.lic.no').'">错误:支付接口未授权</a>'; }
示例#4
0
文件: home.php 项目: pf5512/phpstudy
<? if($statistic) { ?>
 
<? if(admin_priv('ordermanage')) { ?>
 <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder datacount"> <tr class="header"> <td colspan="6"> <div class="NavaL nkj">今日收益</div> </td> </tr> <tr> <td>今日订单:<b><a href="admin.php?mod=order&code=vlist&iscp_tv_area=order_main&iscp_tvfield_order_main=ordbt&iscp_tvbegin_order_main=<?=$dateYmd?>&iscp_tvfinish_order_main=<?=$dateYmd?>"><?=$statistic['today_orders']?></a></b></td> <td>今日付款订单:<b><a href="admin.php?mod=order&code=vlist&iscp_tv_area=order_main&iscp_tvfield_order_main=ordpt&ordproc=__PAY_YET__&iscp_tvbegin_order_main=<?=$dateYmd?>&iscp_tvfinish_order_main=<?=$dateYmd?>"><?=$statistic['today_pay_orders']?></a></b></td> <td>今日未付款订单:<b><a href="admin.php?mod=order&code=vlist&ordproc=WAIT_BUYER_PAY&iscp_tv_area=order_main&iscp_tvfield_order_main=ordbt&iscp_tvbegin_order_main=<?=$dateYmd?>&iscp_tvfinish_order_main=<?=$dateYmd?>"><?=$statistic['today_unpay_orders']?></a></b></td> <td>今日收益:<b><?=$statistic['today_income_orders']?></b> 
<? if(MEMBER_ID == 1) { ?>
 <a href="admin.php?mod=reports&code=view&service=payment"> (前期收益)</a> 
<? } ?>
 </td> <td></td> <td></td> </tr> </table> 
<? } ?>
 
<? if(MEMBER_ID == 1) { ?>
 <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder datacount"> <tr class="header"> <td colspan="6"> <div class="NavaL nkj">网站(全站)数据统计</div> </td> </tr> <tr> <td>用户数:<b><a href="<?=$statistic['system_members']['url']?>"><?=$statistic['system_members']['total']?></a></b></td> <td>商家数:<b><a href="<?=$statistic['tttuangou_seller']['url']?>"><?=$statistic['tttuangou_seller']['total']?></a></b></td> <td>城市数:<b><a href="<?=$statistic['tttuangou_city']['url']?>"><?=$statistic['tttuangou_city']['total']?></a></b></td> <td>订阅数:<b><a href="<?=$statistic['tttuangou_subscribe']['url']?>"><?=$statistic['tttuangou_subscribe']['total']?></a></b></td> <td>问答数:<b><a href="<?=$statistic['tttuangou_question']['url']?>"><?=$statistic['tttuangou_question']['total']?></a></b></td> <td>反馈信息:<b><a href="<?=$statistic['tttuangou_usermsg']['url']?>"><?=$statistic['tttuangou_usermsg']['total']?></a></b></td> </tr> <tr> <td>产品数:<b><a href="<?=$statistic['tttuangou_product']['url']?>"><?=$statistic['tttuangou_product']['total']?></a></b></td> <td>订单数:<b><a href="<?=$statistic['tttuangou_order']['url']?>"><?=$statistic['tttuangou_order']['total']?></a></b></td> <td><?=TUANGOU_STR?>券:<b><a href="<?=$statistic['tttuangou_ticket']['url']?>"><?=$statistic['tttuangou_ticket']['total']?></a></b></td> <td>等待发货:<b><a href="<?=$statistic['express_wait_count']['url']?>"><?=$statistic['express_wait_count']['total']?></a></b></td> <td>邮件队列:<b><a href="<?=$statistic['cron_length']['url']?>"><?=$statistic['cron_length']['total']?></a></b></td> <td>数据库:<b><a href="<?=$statistic['data_length']['url']?>"><?=$statistic['data_length']['total']?></a></b></td> </tr> </table> 
<? } ?>
 
<? } ?>
 <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder" id="recommend_tabler" style="display: none;"> <tr class="header"> <td colspan="12"> <div class="NavaL ndt">天天团购官方动态</div> </td> </tr> <tr> <td id="recommend">正在载入中...</td> </tr> </table> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="2"> <div class="NavaL ntj">相关系统推荐</div> </td> </tr> <tr> <td><A HREF="http://biniu.com" title="比牛,让业务牛逼起来" target=_blank>比牛:微信移动营销平台</A></td> <td><A HREF="<?=ihelper('jsg.tg.admin')?>" target=_blank title="创新的开源微博系统,兼有sns、轻博和bbs特点">记事狗:开源微博系统</A></td> </tr> </table> 
<? if($check_upgrade) { ?>
 <script language="JavaScript" type="text/javascript" src="admin.php?mod=upgrade&code=check&js=1"></script> 
<? } ?>
 <script type="text/javascript">
$(document).ready(function()
{
$.get('admin.php?mod=index&code=recommend', function(data)
{
if (data != '')
{
$('#recommend_tabler').show();
$('#recommend').html(data);
}
});
$.get('admin.php?mod=index&code=upgrade_check', function(data){
示例#5
0
	  1113 =>
	  array (
		'title' => '支付宝申请',
		'link' => ihelper('tg.payment.alipay'),
		'shortcut' => false,
		'priv' => ''
	  ),
	  1114 =>
	  array (
		'title' => '网银直连接口',
		'link' => ihelper('tg.payment.wangyin'),
		'shortcut' => false,
		'priv' => ''
	  ),
	  1115 =>
	  array (
		'title' => '技术支持',
		'link' => 'hr',
		'shortcut' => false
	  ),
	  1116 =>
	  array (
		'title' => '支持论坛',
		'link' => ihelper('cenwor.forum'),
		'shortcut' => false,
		'priv' => ''
	  ),
	),
  ),
);
?>
示例#6
0
文件: login.php 项目: pf5512/phpstudy
border-color: #fff;
outline: 0;
outline: thin dotted \9;
}
.logo-icon .yan2 {
width: 6em;
}
.getpwd {
line-height: 25px;
padding-left: 5px;
}
.getpwd a {
color: #666
}
.bottom {
text-align: center;
margin: auto;
padding-top: 1em;
color: #888;
}
</style> <?=ui('loader')->js('@jquery')?> </head> <body> <div id="main"> <div id="wrap">&nbsp;</div> <div id="wrapc"> <div class="logo"> <div id="logo"><?=ini("settings.site_name")?></div> </div> <div class="login"> <form method="post"  name="login" action="<?=$action?>">
<input type="hidden" name="FORMHASH" value='<?=FORMHASH?>'/> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <th>管理员账号</th> <td><div class="logo-icon"> <div class="pw"></div> <input class="input pw2" id="username" name="username" value="<?=MEMBER_NAME?>" type="text" readonly/> </div></td> </tr> <tr> <th>管理员密码</th> <td><div class="logo-icon"> <div class="pwpd"></div> <input class="input pwpd2" type="password" name="password" /> </div></td> </tr> <tr> <th></th> <td><input name="submit" type="image" src="./templates/admin/images/login/login.gif" style="margin-left:1.5em;margin-top:.5em;width:80px;height:30px;" /> <span class="getpwd"><a onclick="if(document.getElementById('username').value.length > 0) {window.location.href='admin.php?mod=login&code=get_password&username='******'username').value;} else {alert('请输入用户名');}" href="#">找回密码</a></span></td> </tr> <tr> <td id="no_ie" colspan="2" style="text-align: center;padding-top: 20px;color: #C90101;display: none;"> 为了获得最佳的使用体验,强烈建议您使用其他浏览器进入后台!<br/> <br/> <a href="<?=ihelper('tg.cmd.browser')?>" target="_blank">点此查看</a></td> </tr> </table> </form> </div> </div> </div> <div class="bottom"> Powered by <a href="http://www.tttuangou.net" target="_blank" style="color:#999;"><b>天天团购</b></a> &nbsp;&copy; 2005 - 2014 <a href="http://cenwor.com" target="_blank" style="color:#999;"><b>Cenwor Inc.</b></a> </div> <script type="text/javascript">
/* <![CDATA[ */
$(document).ready(function(){
if ($.browser.msie)
{
$('#no_ie').show();
}
});
/* ]]> */
</script> </body> </html>
示例#7
0
<? include handler('template')->file('@admin/header'); ?>
 <script type="text/javascript">
function $$(ID)
{
return document.getElementById(ID);
}
</script> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td>使用提示</td> </tr> <tr bgcolor="#F4F8FC"> <td class="altbg1" style="font-size:14px;"> <div>1、请参考<a target="_blank" href="<?=ihelper('tg.help.uc')?>"><b style="color:red;">记事狗系统整合Ucenter的帮助</b></a></div> <div>2、操作前,请先备份好天天团购及Ucenter的数据库,以防数据丢失</div> <div>3、如果开启了本功能请,请正确的进行配置,否则会导致用户不能正常的注册、登录天天团购</div> <div style="color:red;">如进行了错误设置无法登陆,请通过ftp修改/setting/ucenter.php文件,将'enable' 变量设置为 '0'</div> </td> </tr> </table> <br> <form action="admin.php?mod=ucenter&code=do_setting" method="POST"  name="ucenterConfigForm">
<input type="hidden" name="FORMHASH" value='<?=FORMHASH?>'/> <input type="hidden" name="ucenter[user_merge]" value="<?=$ucenter['user_merge']?>" /> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="2">Ucenter整合</td> </tr> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%">
开启Ucenter?
</td> <td class="altbg2">
<?=$uc_enable_radio?>
</td> </tr> <tr bgcolor="#F8F8F8"> <td class="altbg1" width="30%"> <b>应用的 UCenter 配置信息:</b><br>
方法1、【推荐】直接从UCenter后台复制配置信息字符串填到右侧框,提交即可<br>
留空时不更新原先设置的信息<br>
方法2、<a href="#void" onclick="$$('#ucenter_config_diy').style.display='';return false;">点击此处手动设置</a> </td> <td class="altbg2"> <textarea name="uc_config_string" style="width:300px;height:80px;"></textarea> </td> </tr> </table> <table id="#ucenter_config_diy" style="display:none;"> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%">
连接方式
</td> <td class="altbg2"> <input type="radio" id="uc_connect_mysql" name="ucenter[uc_connect]" value="mysql" <?=$uc_connect_mysql_checked?> class=radio onclick="if($$('uc_connect_fsock').checked==true){$$('#ucenter_db_setting_body').style.display='none';}else{$$('#ucenter_db_setting_body').style.display='';}" /><label for="uc_connect_mysql">mysql</label>&nbsp;<input type="radio" id="uc_connect_fsock" name="ucenter[uc_connect]" value="fsock" <?=$uc_connect_fsock_checked?> class=radio onclick="if($$('uc_connect_fsock').checked==true){$$('#ucenter_db_setting_body').style.display='none';}else{$$('#ucenter_db_setting_body').style.display='block';}" /><label for="uc_connect_fsock">fsockopen 连接</label>&nbsp;
</td> </tr> <tbody id="#ucenter_db_setting_body" style="display:<?=$_style_display?>;"> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%">
Ucenter数据库地址
</td> <td class="altbg2"> <input name="ucenter[uc_db_host]" value="<?=$ucenter['uc_db_host']?>" /> </td> </tr> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%">
Ucenter数据库用户
</td> <td class="altbg2"> <input name="ucenter[uc_db_user]" value="<?=$ucenter['uc_db_user']?>" /> </td> </tr> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%">
Ucenter数据库密码
</td> <td class="altbg2"> <input type="password" name="ucenter[uc_db_password]" value="请输入Ucenter的数据库密码" /> </td> </tr> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%">
Ucenter数据库名称
</td> <td class="altbg2"> <input name="ucenter[uc_db_name]" value="<?=$ucenter['uc_db_name']?>" /> </td> </tr> <tr bgcolor="#F4F8FC" style="display:none;"> <td class="altbg1" width="30%">
Ucenter数据库字符集
</td> <td class="altbg2"> <input name="ucenter[uc_db_charset]" value="<?=$ucenter['uc_db_charset']?>" /> </td> </tr> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%">
Ucenter数据库表前辍
</td> <td class="altbg2"> <input name="ucenter[uc_db_table_prefix]" value="<?=$ucenter['uc_db_table_prefix']?>" /> </td> </tr> </tbody> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%"> <b>Ucenter通信密钥</b> </td> <td class="altbg2"> <input name="ucenter[uc_key]" value="<?=$ucenter['uc_key']?>" /> </td> </tr> <tr bgcolor="#F4F8FC"> <td class="altbg1" width="30%"> <b>Ucenter地址</b> </td> <td class="altbg2"> <input name="ucenter[uc_api]" value="<?=$ucenter['uc_api']?>" /> </td> </tr> <tr bgcolor="#F4F8FC" style="display:none;"> <td class="altbg1" width="30%">
Ucenter字符集
示例#8
0
        'intro' => '通知通道,禁发营销信息,67字/条,免签名<br/><a href="'.ihelper('tg.shop.sms.qxt').'" target="_blank"><font color="red">点此在线购买</font></a>',
      ),
      'wnd' =>
      array (
        'name' => 'WN106通道',
        'intro' => '订单通知通道,禁发营销信息,70字单条,长短信67字条,须签名(签名联系客服QQ800058566设置)<br/><a href="'.ihelper('tg.shop.sms.qxt').'" target="_blank"><font color="red">点此在线购买</font></a>',
      ),
      'zt' =>
      array (
        'name' => 'ZT106通道',
        'intro' => '<font color="red">【推荐】</font>即可点对点下发,又支持通知群发,需做免审核备案<br>禁发抽奖、营销类信息,包括签名在内单条70个字,长短信每条67字(签名接口设置页自行设置,推荐用站点名称)<br/><a href="'.ihelper('tg.shop.sms.qxt').'" target="_blank"><font color="red">点此在线购买</font></a>',
      ),
	  'ums' =>
      array (
        'name' => 'ZJ165通道',
        'intro' => '<font color="red">【备用】</font>目前暂不支持开通',
      ),
	  'tyx' =>
      array (
        'name' => 'TP106通道(新)',
        'intro' => '<font color="red">【推荐】</font>特服号码更短、下发速度更快(通常仅几秒),不支持群发<br>禁发营销、抽奖类短信,包括签名在内单条70个字,长短信每条67字(签名接口设置页自行设置,推荐用站点名称)<br/><a href="'.ihelper('tg.shop.sms.qxt').'" target="_blank"><font color="red">点此在线购买</font></a>',
      ),
    ),
    'autoERSend' => true,
  ),
  'push' =>
  array (
    'mthread' => false,
  ),
);
?>