changing credentias passing to designer index
This commit is contained in:
@@ -28,9 +28,13 @@ class Designer extends Controller
|
||||
$authCode = $this->getAuthorizationCode($client);
|
||||
|
||||
$this->setVar('prj_uid', $proUid);
|
||||
$this->setVar('client_id', $client['CLIENT_ID']);
|
||||
$this->setVar('secret', $client['CLIENT_SECRET']);
|
||||
$this->setVar('authorization_code', $authCode);
|
||||
|
||||
$credentials = array();
|
||||
$credentials['client_id'] = $client['CLIENT_ID'];
|
||||
$credentials['secret'] = $client['CLIENT_SECRET'];
|
||||
$credentials['authorization_code'] = $authCode;
|
||||
|
||||
$this->setVar('credentials', base64_encode(json_encode($credentials)));
|
||||
$this->setView('designer/index');
|
||||
$this->render();
|
||||
}
|
||||
|
||||
@@ -188,6 +188,14 @@ class Type
|
||||
return $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param integer $age {@type 1,2,,}
|
||||
*/
|
||||
function postInt($age='')
|
||||
{
|
||||
return '->'.$age;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Author
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
var prj_uid = "{$prj_uid}";
|
||||
var client_id = "{$client_id}";
|
||||
var secret = "{$secret}";
|
||||
var authorization_code = "{$authorization_code}";
|
||||
var credentials = "{$credentials}";
|
||||
</script>
|
||||
<script type="text/javascript" src="/lib/js/wz_jsgraphics.js"></script>
|
||||
<script type="text/javascript" src="/lib/js/jquery-1.10.2.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user