Skip to content

Commit

Permalink
Fixed 03930: Double include for config.php
Browse files Browse the repository at this point in the history
Dev: includes changed to include_once and changed config.php to config-default.php, where needed followed by an include for common.php

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8093 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
mennodekker committed Dec 7, 2009
1 parent e7de733 commit b21679a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 3 additions & 1 deletion admin/export_structure_lsrc.php
Expand Up @@ -152,7 +152,9 @@
//header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
//header("Pragma: cache"); // HTTP/1.0

include("../config.php");
//include("../config.php");
include_once("../config-defaults.php");
include_once("../common.php");
include("remotecontrol/lsrc.config.php");

$lsrcString = $dumphead. $sdump. $gdump. $qdump. $adump. $cdump. $lsdump. $ldump. $qadump. $asdump. $slsdump. $quotadump. $quotamemdump."\n";
Expand Down
6 changes: 3 additions & 3 deletions admin/html.php
Expand Up @@ -1844,7 +1844,7 @@
."</label></li></ul>\n";

// XXX
include("../config.php");
//include("../config.php");

//echo $export4lsrc;
if($export4lsrc)
Expand Down Expand Up @@ -1886,7 +1886,7 @@
// ."</label>\n";

// XXX
include("../config.php");
//include("../config.php");

//echo $export4lsrc;
if($export4lsrc)
Expand Down Expand Up @@ -1939,7 +1939,7 @@
// ."</label>\n";

// XXX
include("../config.php");
//include("../config.php");

//echo $export4lsrc;
if($export4lsrc)
Expand Down
4 changes: 2 additions & 2 deletions admin/login_check_cas.php
Expand Up @@ -198,8 +198,8 @@ function verifyToken($token) {

function setUserRightsCas($user, $role="")
{
include("../config-defaults.php");
include("../config.php");
include_once("../config-defaults.php");
//include("../config.php"); //Not needed since config-defaults includes config.php

$_SESSION['user'] = $user;
$_SESSION['loginID'] = 1;
Expand Down
3 changes: 1 addition & 2 deletions admin/remotecontrol/lsrc.config.php
Expand Up @@ -19,8 +19,7 @@
// only include if this config is not used to save a survey.csv for the lsrc
if(!isset($export4lsrc))
{
include("../../config-defaults.php");
include("../../config.php");
include_once("../../config-defaults.php");
require_once(dirname(__FILE__).'/../../common.php');
}
### Error Handling
Expand Down

0 comments on commit b21679a

Please sign in to comment.