Jump to content

Where to find editconfig.php file

Guest stcharles_stl

Recommended Posts

Guest stcharles_stl

I was told in another post to download this file from CC Downloads section of this site. I have searched all CC v3 downloads and cant find it. Can someone please point me in the right direction here? Thanks.

Link to comment
Share on other sites

Guest stcharles_stl

Ok. Got everything back up and running.

I created a folder in my root directory and pasted this:




| CubeCart v3.0.3

| ========================================

| by Alistair Brookbanks

| CubeCart is a Trade Mark of Devellion Limited

| © 2005 Devellion Limited

| Devellion Limited,

| Westfield Lodge,

| Westland Green,

| Little Hadham,

| Nr Ware, HERTS.

| SG11 2AL


| http://www.devellion.com

| UK Private Limited Company No. 5323904

| ========================================

| Web: http://www.cubecart.com

| Date: Thursday, 25 August 2005

| Email: info (at) cubecart (dot) com

| License Type: CubeCart is NOT Open Source Software and Limitations Apply

| Licence Info: http://www.cubecart.com/site/faq/license.php


| editconf.php

| ========================================

| Config recovery tool




header("Location: editconf.php?c=config");






$db = new db();




//$config = fetchDbConfig($_GET['c']);

$msg = writeDbConf($_POST['data'],$_GET['c'], $config, $_GET['c']);


$config = fetchDbConfig($_GET['c']);


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>CubeCart - Config Recovery Tool</title>

<script language="JavaScript" type="text/JavaScript">


function MM_jumpMenu(targ,selObj,restore){ //v3.0


if (restore) selObj.selectedIndex=0;




<style type="text/css">


body,td,th {

font-family: Verdana, Arial, Helvetica, sans-serif;


.code {

font-family: "Courier New", Courier, mono;

color: #000000;


.redText {color: #FF0000}




<span class="redText"><?php if(isset($msg)) { echo $msg; } ?></span>

<h1>Config Recovery Tool</h1>

<p><strong>Devellion Ltd & CubeCart provide this script without any warranty of any kind and by proceeding you are doing so entirely at your own risk.</strong></p>

<p>This tool is designed to edit your config file if for some reason your store becomes corrupt due to incorrectly changing your settings.</p>

<p>Example: If you have switched on SSL mode and your store has become broken. Select "config" from the dropdown menu below and set


to 0. No test to see if your store has been fixed and if so delete this file from the server. </p>

<p class="redText"><strong>IMPORTANT:</strong> You must NOT leave this file on your server as it is a VERY high security risk!</p>

<p><a href="index.php" target="_blank">View Store Front</a> - (Opens in New Window)<br />

<a href="admin/" target="_blank">View Store Admin</a> - (Opens in New Window)</p>

<p>Select Config to edit:


$query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_config";

$results = $db->select($query);


<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">

<?php for ($i=0; $i<count($results); $i++){ ?>

<option value="?c=<?php echo $results[$i]['name']; ?>" <?php if($_GET['c']==$results[$i]['name']) { echo "selected="selected""; } ?>><?php echo $results[$i]['name']; ?></option>

<?php } ?>



<form name="form1" id="form1" method="post" action="editconf.php?c=<?php echo $_GET['c']; ?>">

<table border="1" cellspacing="0" cellpadding="2">


<td><strong>Variable name: </strong></td>

<td><strong>Current Value: </strong></td>

<td><strong>New Value: </strong></td>


<?php foreach($config as $key => $value) { ?>


<td class="code"><?php echo "$".$_GET['c']."['".$key."']"; ?></td>

<td class="code"><?php echo $value; ?></td>


<textarea name="data[<?php echo $key; ?>]" cols="30" rows="2"><?php echo $value; ?></textarea>



<?php } ?>


<td> </td>

<td> </td>

<td><input type="submit" name="Submit" value="Update Config" /></td>






I then entered "http://your domain.com/editconf.php" into the address bar of my browser.

You should then be directed to a Recovery Page in which you can change the SSL Value to "0" zero.

Try opening your Admin Panel.

Once all is working, delete the editconf.php file from your root directory.

Link to comment
Share on other sites

  • 1 year later...
This topic is now closed to further replies.
  • Create New...