Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1856 | Rev 1862 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1856 Rev 1857
Línea 2204... Línea 2204...
2204
    {
2204
    {
2205
        $request = $this->getRequest();
2205
        $request = $this->getRequest();
Línea 2206... Línea 2206...
2206
        
2206
        
Línea 2207... Línea 2207...
2207
        if($request->isPost()) {
2207
        if($request->isPost()) {
2208
            
2208
            
-
 
2209
            $rawdata = file_get_contents("php://input");
Línea 2209... Línea 2210...
2209
           // $rawdata = file_get_contents("php://input");
2210
            error_log('$rawdata = ' . $rawdata );
Línea 2210... Línea 2211...
2210
           // error_log('$rawdata = ' . $rawdata );
2211
            error_log(print_r($_POST, true));
2211
            
2212
            
Línea 2212... Línea -...
2212
            $serviceDatetimeFormat = $this->config['leaderslinked.services.datetime'];
-
 
2213
            
-
 
2214
            $device_uuid = filter_var($this->params()->fromPost('device_uuid', ''), FILTER_SANITIZE_STRING);
2213
            $serviceDatetimeFormat = $this->config['leaderslinked.services.datetime'];
2215
            $max_records = filter_var($this->params()->fromPost('max_records', 0), FILTER_SANITIZE_NUMBER_INT);
-
 
Línea 2216... Línea 2214...
2216
            
2214
            
Línea 2217... Línea 2215...
2217
            header("Content-type: text/plain");
2215
            $device_uuid = filter_var($this->params()->fromPost('device_uuid', ''), FILTER_SANITIZE_STRING);
Línea 2285... Línea 2283...
2285
            for($i = 1; $i <= $max_records; $i++)
2283
            for($i = 1; $i <= $max_records; $i++)
2286
            {
2284
            {
2287
                $sync_id        = filter_var($this->params()->fromPost('record_sync_id' . $i, ''), FILTER_SANITIZE_NUMBER_INT);
2285
                $sync_id        = filter_var($this->params()->fromPost('record_sync_id' . $i, ''), FILTER_SANITIZE_NUMBER_INT);
2288
                $record_data    = $this->params()->fromPost('record_data' . $i, '');
2286
                $record_data    = $this->params()->fromPost('record_data' . $i, '');
Línea 2289... Línea -...
2289
                
-
 
2290
                echo "sync id :  $sync_id   \r\n";
-
 
-
 
2287
                
Línea 2291... Línea 2288...
2291
                print_r($record_data, true);
2288
 
2292
                
2289
                
2293
                if(empty($record_data) || empty($sync_id )) {
2290
                if(empty($record_data) || empty($sync_id )) {