phpBMS

Show
Ignore:
Timestamp:
01/07/10 11:16:05 (2 years ago)
Author:
brieb
Message:
  • Added more rights look ups to certain pages
  • Fixed several path disclosure errors
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/adminsettings_ajax.php

    r649 r727  
    9797 
    9898}//end class 
    99 /*--[Processing]-------------------------------------------------------------*/ 
    100 /*---------------------------------------------------------------------------*/ 
    101 if(!isset($_GET["m"])) 
    102     exit; 
    103 require_once("../../include/session.php"); 
    10499 
    105 $checkUpdate = new checkUpdate($db); 
    106 $response = array(); 
    107 if($checkUpdate->needUpdateCheck($_GET["m"])){ 
    108     $response = $checkUpdate->checkForUpdate(); 
    109 }else{ 
    110     $response["checked"] = false; 
    111     $response = json_encode($response); 
    112 }//end if 
    113100 
    114 echo $response; 
     101/** 
     102 * Processing ================================================================== 
     103 */ 
     104if(!isset($noOutput)){ 
     105 
     106    require_once("../../include/session.php"); 
     107 
     108    $db->errorFormat = "json"; 
     109 
     110    if(!isset($_GET["m"])) 
     111        $error = new appError(200, "invalid passed paramaters", "", true, true, "json"); 
     112 
     113    if(!$_SESSION["userinfo"]["admin"]) 
     114        $error = new appError(970, "no rights to function", "", true, true, "json"); 
     115 
     116    $checkUpdate = new checkUpdate($db); 
     117    $response = array(); 
     118 
     119    if($checkUpdate->needUpdateCheck($_GET["m"])) 
     120        $response = $checkUpdate->checkForUpdate(); 
     121    else{ 
     122        $response["checked"] = false; 
     123        $response = json_encode($response); 
     124    }//end if 
     125 
     126    echo $response; 
     127 
     128}//endif 
    115129?> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.