plugins/SpecialUserFuncs.php
changeset 1101 30d8bb88572d
parent 1081 745200a9cc2a
child 1109 c424a15a1656
equal deleted inserted replaced
1100:aead4e1ce5df 1101:30d8bb88572d
   403         {
   403         {
   404           $get_string = htmlspecialchars(enano_json_encode($get_fwd));
   404           $get_string = htmlspecialchars(enano_json_encode($get_fwd));
   405           echo '<input type="hidden" name="get_fwd" value="' . $get_string . '" />';
   405           echo '<input type="hidden" name="get_fwd" value="' . $get_string . '" />';
   406         }
   406         }
   407       }
   407       }
       
   408       else if ( isset($_POST['get_fwd']) )
       
   409       {
       
   410         echo '<input type="hidden" name="get_fwd" value="' . htmlspecialchars($_POST['get_fwd']) . '" />';
       
   411       }
   408       ?>
   412       ?>
   409     </form>
   413     </form>
   410     <?php
   414     <?php
   411       echo $session->aes_javascript('loginform', 'pass');
   415       echo $session->aes_javascript('loginform', 'pass');
   412     ?>
   416     ?>
   419   global $db, $session, $paths, $template, $plugins; // Common objects
   423   global $db, $session, $paths, $template, $plugins; // Common objects
   420   global $__login_status;
   424   global $__login_status;
   421   global $lang;
   425   global $lang;
   422   require_once( ENANO_ROOT . '/includes/math.php' );
   426   require_once( ENANO_ROOT . '/includes/math.php' );
   423   
   427   
       
   428   $paths->fullpage = $GLOBALS['title'];
   424   if ( $paths->getParam(0) === 'action.json' )
   429   if ( $paths->getParam(0) === 'action.json' )
   425   {
   430   {
   426     if ( !isset($_POST['r']) )
   431     if ( !isset($_POST['r']) )
   427       die('No request.');
   432       die('No request.');
   428     
   433