equal
deleted
inserted
replaced
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
12 */ |
12 */ |
13 |
13 |
14 class Namespace_API extends Namespace_Default |
14 class Namespace_API extends Namespace_Default |
15 { |
15 { |
16 function send() |
16 function send() |
17 { |
17 { |
18 global $output, $session; |
18 global $output, $session; |
19 $uri = scriptPath . '/' . $this->page_id; |
19 $uri = scriptPath . '/' . $this->page_id; |
20 if ( $output->naked ) |
20 if ( $output->naked ) |
21 { |
21 { |
22 $sep = ( strstr($uri, '?') ) ? '&' : '?'; |
22 $sep = ( strstr($uri, '?') ) ? '&' : '?'; |
23 $uri .= "{$sep}noheaders"; |
23 $uri .= "{$sep}noheaders"; |
24 } |
24 } |
25 if ( $session->sid_super ) |
25 if ( $session->sid_super ) |
26 { |
26 { |
27 $sep = ( strstr($uri, '?') ) ? '&' : '?'; |
27 $sep = ( strstr($uri, '?') ) ? '&' : '?'; |
28 $uri .= "{$sep}auth={$session->sid_super}"; |
28 $uri .= "{$sep}auth={$session->sid_super}"; |
29 } |
29 } |
30 redirect( $uri, '', '', 0 ); |
30 redirect( $uri, '', '', 0 ); |
31 } |
31 } |
32 } |
32 } |
33 |
33 |