UP Statistik
This commit is contained in:
@@ -99,14 +99,20 @@ class CurlsController extends AppController
|
||||
}
|
||||
|
||||
public function saveup() {
|
||||
if(isset($this->request->params['pass'][0])) {
|
||||
$env = $this->request->params['pass'][0];
|
||||
}
|
||||
else {
|
||||
$env = 'prod';
|
||||
}
|
||||
$curl = new AsdUs();
|
||||
//debug($curl->status);
|
||||
$ch = $curl->init_curl_params();
|
||||
$curl->login_school($ch);
|
||||
$curl->login_asd($ch);
|
||||
$curl->save_up_data($ch);
|
||||
$curl->login_asd($ch,$env);
|
||||
$curl->save_up_data($ch,$env);
|
||||
$this->set('html',$curl->html);
|
||||
$this->redirect(['action' => 'getjsonup']);
|
||||
$this->redirect(['action' => 'getjsonup/'.$env]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user