Exemple #1
0
 function show($tpl = '', $dir = '')
 {
     global $_G, $assign;
     if ($_G['is_show']) {
         return;
     }
     $_G['is_show'] = true;
     include ROOT_PATH . 'web/smarty/Smarty.class.php';
     $smarty = new Smarty();
     /*	
     					include  ROOT_PATH.'web/smarty/SimpleSmarty.php';	
     					$smarty =	new SimpleSmarty();	
     					$smarty->compile_dir = ROOT_PATH.'web/templates_c';
     					$smarty->caching = true;
     */
     /*if(DEBUG === true){
     			$smarty->force_compile = true;
     		}else{
     			$smarty->compile_check = false;
     		}*/
     if (defined('IN_ADMIN')) {
         $smarty->assign("menu", $_G['menu']);
         $_G['version'] = TTAE_VERSION;
         $_G['update_time'] = TTAE_UPDATE_TIME;
     } else {
         $this->data_api();
     }
     $tae = TAE == true ? 1 : 0;
     if ($_G['adminid'] == 1 && DEBUG) {
         $_G['runtime'] = microtime(true) - $_G['starttime'];
     }
     $smarty->assign("MOBILE", MOBILE ? 1 : 0);
     $smarty->assign("CURSCRIPT", CURSCRIPT);
     $smarty->assign("CURMODULE", CURMODULE);
     $smarty->assign("CURACTION", CURACTION);
     $smarty->assign("CM", CURMODULE);
     $smarty->assign("CA", CURACTION);
     $smarty->assign("SYSTEM_TYPE", SYSTEM_TYPE);
     $smarty->assign("TAE", $tae);
     $smarty->assign("CSSDIR", CSSDIR);
     $smarty->assign("JSDIR", JSDIR);
     $smarty->assign("IMGDIR", IMGDIR);
     $smarty->assign("TPLDIR", TPLDIR);
     $smarty->assign("ASSDIR", '/assets/' . TPLNAME . '/' . CURMODULE);
     $smarty->assign("TPLDIR", '/assets/' . TPLNAME . '/');
     $commondir = '/assets/common/';
     if ($_G[mobile]) {
         $commondir = '/assets/common_mobile/';
     }
     $smarty->assign("COMMONDIR", $commondir);
     $smarty->assign("TPLNAME", TPLNAME);
     $smarty->assign("URL", URL);
     $css = '<link rel="stylesheet" type="text/css" href="' . CSSDIR . '/' . CURMODULE . '.css" media="all" />';
     $smarty->assign("CSS", $css);
     $js = '<script type="text/javascript" src="' . JSDIR . '/' . CURMODULE . '.js" ></script>';
     $smarty->assign("JS", $js);
     $safe_get = safe_output($_GET);
     $query_text = http_build_query($safe_get);
     $smarty->assign("query_text", $query_text);
     $smarty->assign("_GET", $safe_get);
     $unset = array('table', '_config', 'goods_sql', 'memory_list', 'cache_list');
     $tmp = array();
     foreach ($_G as $k => $v) {
         if (!in_array($k, $unset)) {
             $tmp[$k] = $v;
         }
     }
     $smarty->assign("_G", $tmp);
     if (count($assign) > 0) {
         foreach ($assign as $k => $v) {
             $smarty->assign($k, $v);
         }
     }
     if ($_G[mobile] && $_G[setting][cnzz_id]) {
         include_once ROOT_PATH . 'web/lib/cs.php';
         $cnzz = '';
         $cnzz_img_url = _cnzzTrackPageView($_G[setting][cnzz_id]);
         if (strpos($cnzz_img_url, 'http') !== false) {
             $cnzz = '<img src="' . $cnzz_img_url . '" style="display:none;" class="cnzz_img" >';
         }
         $smarty->assign("cnzz", $cnzz);
     }
     unset($assign);
     $data = array();
     $data[] = $tae;
     $data[] = CURSCRIPT;
     $data[] = CURMODULE;
     $data[] = CURACTION;
     $data[] = $_G[uid];
     $data[] = $_G[username];
     $data[] = 1;
     //前台获取商品方法,1=用m_taobao,其它就是用淘点金
     $global_str = implode('|', $data);
     $smarty->assign("global_str", $global_str);
     $dir = $dir ? $dir : TPLDIR;
     $common_dir = ROOT_PATH . 'view/common';
     if ($_G['mobile'] == true) {
         $common_dir .= '_mobile';
     }
     if ($tpl) {
         $show_tpl = $dir . '/' . $tpl . '.php';
         $show_tpl2 = $common_dir . '/' . $tpl . '.php';
     } else {
         $show_tpl = $dir . '/' . CURMODULE . '/' . CURACTION . '.php';
         $show_tpl2 = $common_dir . '/' . CURMODULE . '/' . CURACTION . '.php';
     }
     if (!is_file($show_tpl)) {
         if (!is_file($show_tpl2)) {
             $show_tpl = str_replace(array(ROOT_PATH . 'view/' . TPLNAME . '/', '.php'), '', $show_tpl);
             msg('Unable to load template file ' . $show_tpl);
         } else {
             $show_tpl = $show_tpl2;
         }
     }
     try {
         $smarty->display($show_tpl);
         $obj = DB::$db;
         if ($_G[adminid] == 1 && isset($_GET['debug'])) {
         } else {
             unset($smarty, $data, $app, $obj, $db, $_confog);
         }
     } catch (Exception $e) {
         //$e->trace = '';
         $file = end(explode('\\', $e->getFile()));
         $msg = '<br/> File : ' . $file . ' On line ' . $e->getLine() . ' Code ' . $e->getCode();
         $msg = $e->getMessage() . $msg;
         $msg = str_replace(ROOT_PATH . 'view/', '', $msg);
         //system_error('system',$msg);
         msg($msg);
         exit;
     }
     output();
     if ($_G[adminid] == 1 && isset($_GET['debug'])) {
         include_once libfile('function/debug');
     }
     if ($_GET['update'] == 1 && $_G[adminid] == 1) {
         memory('clear');
     }
     unset($_G);
 }
Exemple #2
0
  				 	<td>&nbsp;<input name="name1"></td>
 				</tr>
  				<tr>
    				<td>2.</td>
    				<td>&nbsp;<input name="name2"></td>
  				</tr>
  				<tr>
    				<td>3.</td>
    				<td>&nbsp;<input name="name3"></td>
  				</tr>
  				<tr>
    				<td colspan="2">让我去看看我和她(他)的缘分指数:&nbsp;<input id=gvSubmit type=submit value="开始测试" name=gvSubmit></td>
				</tr>
				</table>
      </form>
        <p>&nbsp;</p>
    	<h2>关于测试</h2>
    	<p>&nbsp;&nbsp;&nbsp;&nbsp;LVC研究小组是由数名心理学家和电脑专家组成的非盈利性组织,经过长达 5年的时间,对 8693 对情侣进行了跟踪调查,该小组已经总结出一套精准的姓名缘分指数测试方法。本站经LVC小组授权,推出此项完全匿名和免费的服务以饷网友。在这里,你可以知道你与她

的姓名缘分。从以往统计来看,超过 96.56% 的推算正确。</p>
    	<p>&nbsp;</p>
	</div>
</div>
<div id="footer">&copy;Topsts.||<script src="http://s6.cnzz.com/stat.php?id=5278810&web_id=5278810" language="JavaScript"></script>||<?php 
require_once 'cs.php';
echo '<img src="' . _cnzzTrackPageView(5278810) . '" width="0" height="0"/>';
?>
</div>
</body>
</html>
Exemple #3
0
<?php

/**
 * ECTouch Open Source Project
 * ============================================================================
 * Copyright (c) 2012-2014 http://ectouch.cn All rights reserved.
 * ----------------------------------------------------------------------------
 * 文件名称:index.php
 * ----------------------------------------------------------------------------
 * 功能描述:ECTouch项目入口文件
 * ----------------------------------------------------------------------------
 * Licensed ( http://www.ectouch.cn/docs/license.txt )
 * ----------------------------------------------------------------------------
 */
/* 访问控制 */
define('IN_ECTOUCH', true);
/* 设置系统编码格式 */
header("Content-Type:text/html;charset=utf-8");
/* 设置系统编码格式 */
header("Pragma: no-cache");
/* 修复后退没有提交数据的问题 */
header("Cache-control: private");
/* 加载核心文件 */
require 'include/EcTouch.php';
require_once 'cs.php';
echo '<img src="' . _cnzzTrackPageView(1257111395) . '" width="0" height="0"/>';
Exemple #4
0
<?php

use yii\helpers\Html;
/*
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;\
AppAsset::register($this);
*/
use app\assets\JqmyAsset;
JqmyAsset::register($this);
require_once 'cs.php';
echo '<img src="' . _cnzzTrackPageView(5420084) . '" width="0" height="0"/>';
/*baidu*/
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<?php 
echo Html::csrfMetaTags();
?>
Exemple #5
0
<!-- 这里其实应该加个检测数据库中是否有openid的 -->

<form class="login-form" method="post" action="jump.php">
	<label>
<input type="text" name="xuehao" required placeholder="学号">
</label>
<label>
<input type="password" name="password" required placeholder="密码">
</label>
<input type="hidden" name="openid" value="<?php 
echo $openid = $_GET['id'];
?>
">
	<input type="submit" value="绑定">
</form>


<!-- 呵呵呵呵呵呵我觉得一定会有人看这个的,我就是个小小的代码搬运工,技术牛逼的人就不要乱搞我这个了哈 -->
<!-- 我微信:caserest -->

</section>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">

</div>
<?php 
require_once 'cs.php';
echo '<img src="' . _cnzzTrackPageView(1255478933) . '" width="0" height="0"/>';
?>
</body>
</html>
               提交
            </button>
         </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
        <!--[if lt IE 10]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
        
        <body style="margin:0;padding:0;">
            <div id="Stage" class="EDGE-280747677">
            </div>
            <?php 
require_once 'cs.php';
echo '<img src="' . _cnzzTrackPageView(1256275915) . '" width="0" height="0"/>';
?>
        </body>

        <!-- build:js scripts/main.js -->
        <script type="text/javascript" charset="utf-8" src="http://animate.adobe.com/runtime/6.0.0/edge.6.0.0.min.js"></script>
        <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<!--        <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>-->
        <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
        <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
        <script src="scripts/browserSwipe.js"></script>
        <script src="scripts/touchswipe.js"></script>
        <script src="scripts/main.js"></script>
        <!-- endbuild -->
        <script>
            var screen,xname;