Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 127 Rev 128
Línea 121... Línea 121...
121
            } else {
121
            } else {
122
                $dtStart = null; 
122
                $dtStart = null; 
123
                $dtEnd = null;
123
                $dtEnd = null;
124
            }
124
            }
Línea -... Línea 125...
-
 
125
            
-
 
126
            
-
 
127
            header('Access-Control-Allow-Origin: *');
-
 
128
            header('Access-Control-Allow-Headers: *');
-
 
129
            header('Access-Control-Allow-Method: POST, GET, HEAD, OPTIONS');
-
 
130
            header('Access-Control-Max-Age: 86400');
-
 
131
            
-
 
132
            
125
            
133
            
126
            if(!$dtStart || !$dtEnd) {
134
            if(!$dtStart || !$dtEnd) {
127
              $t = time();
135
              $t = time();
128
              $year = intval(date('Y', $t), 10);
136
              $year = intval(date('Y', $t), 10);
129
              $month = intval(date('m', $t), 10);
137
              $month = intval(date('m', $t), 10);
Línea 142... Línea 150...
142
                $dtEnd->setTime(23, 59, 59);
150
                $dtEnd->setTime(23, 59, 59);
143
                $end  = $dtEnd->format('Y-m-d H:i:s');
151
                $end  = $dtEnd->format('Y-m-d H:i:s');
144
            }
152
            }
Línea -... Línea 153...
-
 
153
            
-
 
154
            
-
 
155
            echo 'start = ' . $start . ' end = ' . $end;
145
            
156
            
Línea 146... Línea 157...
146
            
157
            
Línea 179... Línea 190...
179
            $userMapper = UserMapper::getInstance($this->adapter);
190
            $userMapper = UserMapper::getInstance($this->adapter);
Línea 180... Línea -...
180
            
-
 
181
           
-
 
182
            
-
 
183
            
-
 
-
 
191
            
Línea 184... Línea 192...
184
            header('Access-Control-Allow-Origin: *');
192
           
185
            header('Access-Control-Allow-Headers: *');
193
            
Línea 186... Línea 194...
186
            header('Access-Control-Allow-Method: POST, GET, HEAD, OPTIONS');
194