showtips($str, '', true, $lang['basic_setting']); $checkinurl = BigAppConf::$mcapis["checkin"]; $apiurl = BigappEnv::getApiUrl(); $sp = strpos($checkinurl, "?") === false ? "?" : "&"; $checkinurl .= $sp . "api_url=" . urlencode($apiurl); $checkinurl .= "&verify_info="; $params = array("ak" => "", "sk" => "", "vertify" => 0, "ajaxurl" => rtrim($_G['siteurl'], '/') . '/plugin.php?id=bigapp:certify&ajax=1', "checkin" => $checkinurl); $aksk = BigappEnv::getAkSk(); if ($aksk !== false) { $params["ak"] = $aksk["ak"]; $params["sk"] = $aksk["sk"]; $appinfo = BigappEnv::getAppInfoFromBigstation(); if ($appinfo !== false && $appinfo["verified"] == 1) { $params["vertify"] = 1; } $params["checkin"] .= BigappEnv::getAkSkMd5(); $params["pack_and_config_url"] = $pack_and_config_url; //!< defined in libs/menu.inc.php } //////////////////////////////////// //$apifile = dirname(dirname(dirname(dirname(__FILE__))))."/api/mobile/"; //$params["api_file_dir"] = $apifile; //$params["api_file_libs"] = dirname(__FILE__)."/libs/iyz_index.php"; //$params["api_file_exists"] = is_file($apifile."iyz_index.php"); $apifile = "/api/mobile/"; $params["api_file_dir"] = $apifile; $params["api_file_libs"] = "/source/plugin/bigapp/libs/iyz_index.php"; $params["api_file_exists"] = true; //is_file($apifile."iyz_index.php"); //////////////////////////////////// $tplVars = array("plugin_path" => BigappEnv::getPluginPath(), "myapp" => BigAppConf::$mcapis["myapp"], "apiurl" => $apiurl);
<?php /** * @file getaksk.php * @Brief get plugin configs * @author youzu * @version 1.0.0 * @date 2015-07-21 */ if (!defined('IN_MOBILE_API')) { exit('Access Denied'); } require './source/class/class_core.php'; $discuz = C::app(); $discuz->init(); require_once dirname(__FILE__) . "/../../libs/env.inc.php"; $verbose = isset($_GET["verbose"]) && $_GET["verbose"] == 1 ? 1 : 0; $ret = array('error_code' => 0, 'error_msg' => 'SUCC', 'aksk' => BigappEnv::getAkSkMd5()); if ($verbose == 1) { $s = BigappEnv::getAkSk(); $ret["ak"] = $s["ak"]; $ret["sk"] = $s["sk"]; } echo BIGAPPJSON::encode($ret);