<?php

require_once '../lib/database.php';
require_once '../lib/memcache.php';
require_once '../lib/url_utils.php';
if ($_GET['response_type'] !== 'code') {
    throw new Exception('Only code response type supported');
}
assert_redirect_allowed($_GET['client_id'], $_GET['redirect_uri']);
$app_name = get_app_name($_GET['client_id']);
$cancel_uri = addParamsToURL($_GET['redirect_uri'], array('error' => 'access_denied', 'state' => $_GET['state']));
if ($_GET['display'] == 'none') {
    // This would normally issue a very limited access token that can
    // only call "import" and nothing else
    $_POST = $_GET;
    include_once 'authorize_success.php';
    die;
}
?>
Send all your data to <?php 
print $app_name;
?>
?

<form action="authorize_success" method="POST">
  <input type="submit" value="Yes">
  
  <input type="hidden" name="client_id" value="<?php 
print htmlentities($_GET['client_id']);
?>
">
Exemple #2
0
echo $s;
?>
_container');
                    window.setTimeout( function() { var c = current_content_slides[ 0 ]; c.restart( true ); c.resume(); }, <?php 
echo $fadein_on_load_delay < 1 ? 1 : $fadein_on_load_delay;
?>
 * 750 );
                </script>

                <div class="available_apps">
                    Available applets:
<?php 
$tab = '    ';
$ind7n = str_repeat($tab, 5);
foreach ($apps as $app) {
    $app_name = get_app_name($app);
    echo $ind7n . "<a href=\"?app={$app}\">{$app_name}</a>" . ($app != end($apps) ? ', ' : '') . "\n";
}
?>
                </div>
            </div>

            <script src="js/auto-page-reloader.js"></script>
<?php 
if ($heartbeat_enabled) {
    ?>
            <script src="js/heartbeat.js"></script>
<?php 
}
if ($debugging_enabled) {
    ?>
Exemple #3
0
<?php

/** 完美实现qq帐号登录ecshop插件
 * $Author: phplife qq:40499756 914091457 email:admin@topit.cn ydhcxh@126.com $
 * 版权所有 2010-2020 顶亿网,并保留所有权利。
 * 网站地址: http://www.topit.cn
 * 插件安装说明:http://ecshop.topit.cn/ecshop-plugin/ecshop_login_with_qq_account_v2.0-233.html
 * 插件会不断更新 新版下载发布地址:http://bbs.topit.cn/thread-829-1-1.html
 * 此插件您可以自由使用,但请保留此开发者的相关信息,
*/
define('IN_ECS', true);
require_once '../../includes/init.php';
define('API_PATH', rtrim(str_replace('\\', '/', dirname(__FILE__)), '/') . '/');
require_once API_PATH . 'api_func.php';
$api_name = get_app_name();
$api_tpl = 'api_tpl.lbi';
$api_url = rtrim($ecs->url(), '/');
$site_url = str_replace('/api/' . $api_name, '', $api_url);
/***
define("QQDEBUG", true);
if (defined("QQDEBUG") && QQDEBUG)
{
    @ini_set("error_reporting", E_ALL);
    @ini_set("display_errors", TRUE);
}
***/
$smarty->direct_output = true;
$smarty->force_compile = true;
$smarty->template_dir = ROOT_PATH . 'api/' . $api_name;
$act = isset($_REQUEST['act']) ? trim($_REQUEST['act']) : '';
if (!file_exists(ROOT_PATH . '/data/' . $api_name . '_config.php')) {