News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1186202643:v:use_geshi-1:v:type-php

Started by SleePy, Aug 04, 2007, 04:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SleePy

         // Handle a redirect...
         elseif ($action['type'] == 'redirect' && !empty($action['redirect_url']))
         {
            $context['redirect_url'] = $action['redirect_url'];
            $context['redirect_text'] = file_get_contents($boarddir . '/Packages/temp/' . $context['base_path'] . $action['filename']);
            $context['redirect_timeout'] = $action['redirect_timeout'];

            // Parse out a couple of common urls.
            $urls = array(
               '$boardurl' => $boardurl,
               '$scripturl' => $scripturl,
               '$session_id' => $context['session_id'],
            );
         
            $context['redirect_url'] = strtr($context['redirect_url'], $urls);
         }
No siggy! :D