* fix for link zentao site.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
$config->url = new stdclass();
|
||||
$config->url->community = 'http://www.zentao.net';
|
||||
$config->url->ask = 'http://www.zentao.net/ask-browse.html';
|
||||
$config->url->document = 'http://www.zentao.net/help-book-zentaopmshelp.html';
|
||||
$config->url->feedback = 'http://www.zentao.net/forum-board-1074.html';
|
||||
$config->url->faq = 'http://www.zentao.net/ask-faq.html';
|
||||
$config->url->extension = 'http://www.zentao.net/extension-browse.html';
|
||||
$config->url->donation = 'http://www.zentao.net/help-donation.html';
|
||||
$config->url->service = 'http://www.cnezsoft.com/article-browse-1078.html';
|
||||
$config->url->community = 'https://www.zentao.net';
|
||||
$config->url->ask = 'https://www.zentao.net/ask-browse.html';
|
||||
$config->url->document = 'https://www.zentao.net/help-book-zentaopmshelp.html';
|
||||
$config->url->feedback = 'https://www.zentao.net/forum-board-1074.html';
|
||||
$config->url->faq = 'https://www.zentao.net/ask-faq.html';
|
||||
$config->url->extension = 'https://www.zentao.net/extension-browse.html';
|
||||
$config->url->donation = 'https://www.zentao.net/help-donation.html';
|
||||
$config->url->service = 'https://www.cnezsoft.com/article-browse-1078.html';
|
||||
|
||||
$config->admin->apiRoot = 'http://www.zentao.net';
|
||||
$config->admin->apiRoot = 'https://www.zentao.net';
|
||||
|
||||
$config->admin->log = new stdclass();
|
||||
$config->admin->log->saveDays = 30;
|
||||
|
||||
+2
-37
@@ -13,14 +13,6 @@
|
||||
<?php
|
||||
class adminModel extends model
|
||||
{
|
||||
/**
|
||||
* The api agent(use snoopy).
|
||||
*
|
||||
* @var object
|
||||
* @access public
|
||||
*/
|
||||
public $agent;
|
||||
|
||||
/**
|
||||
* The api root.
|
||||
*
|
||||
@@ -29,29 +21,6 @@ class adminModel extends model
|
||||
*/
|
||||
public $apiRoot;
|
||||
|
||||
/**
|
||||
* The construct function.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->setAgent();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the api agent.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function setAgent()
|
||||
{
|
||||
$this->agent = $this->app->loadClass('snoopy');
|
||||
}
|
||||
|
||||
/**
|
||||
* Post data form API
|
||||
*
|
||||
@@ -62,9 +31,7 @@ class adminModel extends model
|
||||
*/
|
||||
public function postAPI($url, $formvars = "")
|
||||
{
|
||||
$this->agent->cookies['lang'] = $this->cookie->lang;
|
||||
$this->agent->submit($url, $formvars);
|
||||
return $this->agent->results;
|
||||
return common::http($url, $formvars);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -143,9 +110,7 @@ class adminModel extends model
|
||||
$params[$apiConfig->sessionVar] = $apiConfig->sessionID;
|
||||
$params['k'] = $this->getSignature($params);
|
||||
|
||||
$this->agent->cookies['lang'] = $this->cookie->lang;
|
||||
$this->agent->fetch($apiURL . '?' . http_build_query($params));
|
||||
$result = $this->agent->results;
|
||||
$result = common::http($apiURL . '?' . http_build_query($params));
|
||||
$result = json_decode($result);
|
||||
return $result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user