Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2013
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.76 KB | None | 0 0
  1. diff -urN _RAIDiator-x86-4.2.23.extracted/root/frontview/lib/np_handler.pl _RAIDiator-x86-4.2.24.extracted/root/frontview/lib/np_handler.pl
  2. --- _RAIDiator-x86-4.2.23.extracted/root/frontview/lib/np_handler.pl    2013-05-02 12:00:27.000000000 -0500
  3. +++ _RAIDiator-x86-4.2.24.extracted/root/frontview/lib/np_handler.pl    2013-07-01 20:42:22.000000000 -0500
  4. @@ -42,6 +42,8 @@
  5.  
  6.  
  7.    my $eval_string;
  8. +  my $ret_payload;
  9. +  my $ret_val;
  10.    for( $CURRENTPAGE )
  11.    {
  12.    
  13. @@ -50,7 +52,25 @@
  14.        if ( $operation eq "get" )
  15.        {
  16.          my $section = $in{SECTION};
  17. -        $eval_string = "\$fv->Security_get_state_xml($section)";
  18. +        if( $section ne "ALL" &&
  19. +            $section ne "ADDONS" &&
  20. +            $section ne "CHECK_FOR_NEWER_IMAGE" &&
  21. +            $section ne "CHECK_REGISTRATION_STATUS" &&
  22. +            $section ne "DIALOG_MODE" &&
  23. +            $section ne "LANGUAGE" &&
  24. +            $section ne "MODEL" &&
  25. +            $section ne "NETWORK" &&
  26. +            $section ne "PRINTER" &&
  27. +            $section ne "PROTOCOLS" &&
  28. +            $section ne "SECURITY" &&
  29. +            $section ne "SERVICES" &&
  30. +            $section ne "STATUS" &&
  31. +            $section ne "SYSTEM" &&
  32. +            $section ne "VOLUME" )
  33. +        {
  34. +          $section = "";
  35. +        }
  36. +        $ret_payload = $fv->Security_get_state_xml($section);
  37.        }
  38.      };
  39.  
  40. @@ -60,14 +80,14 @@
  41.        {
  42.          if( $outer_tab eq 'tab_password_recovery' )
  43.          {
  44. -          $eval_string = "\$fv->PasswordRecovery_show_password_recovery_xml()";
  45. +          $ret_payload = $fv->PasswordRecovery_show_password_recovery_xml();
  46.          }
  47.        }
  48.        elsif( $operation eq 'set' )
  49.        {
  50.          if( $outer_tab eq 'tab_password_recovery' )
  51.          {
  52. -          $eval_string = "\$fv->PasswordRecovery_process_form()";
  53. +          $ret_payload = $fv->PasswordRecovery_process_form();
  54.          }
  55.        }
  56.      };
  57. @@ -80,7 +100,7 @@
  58.        {
  59.          if( $outer_tab eq 'tab_myshares' )
  60.          {
  61. -          $eval_string = "\$fv->UserPage_show_xml(\"$user\", \"$addr\")";
  62. +          $ret_payload = $fv->UserPage_show_xml("$user", "$addr");
  63.          }
  64.        }
  65.        elsif( $operation eq 'set' )
  66. @@ -89,18 +109,12 @@
  67.          {
  68.            my $current_password = $in{current_password};
  69.            my $password = $in{password};
  70. -
  71. -          $eval_string = "\$fv->User_change_password_process_form(\'$user\', \'$current_password\', \'$password\')";
  72. +          $ret_payload = $fv->User_change_password_process_form("$user", "$current_password", "$password");
  73.          }
  74.        }
  75.      };
  76.    }
  77.  
  78. -  #$xml_main .= eval($eval_string);
  79. -  my $ret_payload = eval($eval_string);
  80. -  my $ret_val;
  81. -
  82. -
  83.    # Error handling - to process any errors from eval
  84.    if( $@ )
  85.    {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement