Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old May 2nd, 2008, 11:44 PM
tophdingo tophdingo is offline
New Member
 
Join Date: May 2008
Posts: 3
Help Configuring cfg.php file

I am trying to edit the following cfg.php file. I understand the variables that need to be modified, but the end of the file talking about deleting the installer.php and sql.sql file is foreign to me. Those didn't come with the program---that I can find. What am I missing?

<?php


// Config vars - absolutely needed before anything really happens.
ini_set("include_path", ".:/home/yousites/pathto/");


///////////////////////////////////TEAMSTN
// License key
$cfg['licensekey'] = "****";

// The local path on your server of GameSiteScript, INCLUDING THE TRAILING SLASH.

$cfg['instdir'] = '/home/yousites/pathto/';
// The Internet URL of GameSiteScript, INCLUDING THE TRAILING SLASH.
// This should be something like http://www.1800myarcade.com/
$cfg['baseurl'] = 'http://www.yoursite.com/';
// Your MySQL database information information

$cfg['sqluser'] = 'mysqldatabaseusername';
$cfg['sqlpass'] = 'mysqldatabasepassword';
$cfg['sqldb'] = 'mysqldatabasename';
$cfg['sqlhost'] = 'localhost';
// The title of your homepage. The global site title can be changed in the admin area.
$cfg['pagetitle'] = 'http://www.yoursite.com';
///////////////////////////////////



function critcalerror($text) {
echo "<body style='background-color: #CCCCCC;'><div style='color: #FF0000; font-weight: bold; text-align: center; border: 1px solid #000000; background-color: #FFFFFF; margin: 8px; padding: 4px;'>".$text."</div></body>";
die();
}

function obcallback($buffer) {
return obcallbackreplace($buffer);
}

if (!isset($adminarea)) {
ob_start("obcallback");
}

include "mysql.php";
include "plugins/functions.php";

$db = new mysql;
$db->connect($cfg['sqlhost'], $cfg['sqluser'], $cfg['sqlpass'], $cfg['sqldb']);

// magic_quotes sucks big time

if (get_magic_quotes_gpc() == 1) {

$_REQUEST = array_map("stripslashes", $_REQUEST);
$_GET = array_map("stripslashes", $_GET);
$_POST = array_map("stripslashes", $_POST);
$_COOKIE = array_map("stripslashes", $_COOKIE);


}

set_magic_quotes_runtime(0);

if (isset($adminarea) && !isset($_GET["act"])) {
include $cfg['instdir']."license.php";
}

// No access to admin area until files are removed.
if ((is_readable($cfg['instdir']."installer.php") || is_readable($cfg['instdir']."sql.sql")) && (isset($adminarea)) && (basename($_SERVER["SCRIPT_FILENAME"])!="installer.php")) {
critcalerror("Please delete installer.php and sql.sql from your installation directory.");
}

?>

I purchased the program this goes with, but support won't help me without charging a hefty fee. I have followed their instructions and cannot get the site running.
Reply With Quote
  #2  
Old May 3rd, 2008, 01:04 AM
Buzz's Avatar
Buzz Buzz is offline
Cyber Tech Help Moderator
 
Join Date: Sep 2000
O/S: MacOS
Location: Oregon, USA
Posts: 3,327
The delete note means you need to physically remove those two files from your server. The line of code you see is merely a warning to you that they still exist, you don't need to edit that line of code, remove the files.
__________________
Scott
Moderator : Macintosh : Website & Graphics
Adobe Certified Expert: Illustrator
Royalty-Free Vector Stock Art
Reply With Quote
  #3  
Old May 3rd, 2008, 04:06 AM
tophdingo tophdingo is offline
New Member
 
Join Date: May 2008
Posts: 3
Help Finding Files

Is there a search function in cpanel to find them? I have not been able to locate them. I have looked in every folder on my site.
Reply With Quote
  #4  
Old May 3rd, 2008, 04:24 AM
tophdingo tophdingo is offline
New Member
 
Join Date: May 2008
Posts: 3
Site pathway in cfg.php

in the code above it says home/yoursites/pathto

If my domain is roger.com do I change it to home/roger/patho?
Reply With Quote
  #5  
Old May 3rd, 2008, 06:14 AM
Buzz's Avatar
Buzz Buzz is offline
Cyber Tech Help Moderator
 
Join Date: Sep 2000
O/S: MacOS
Location: Oregon, USA
Posts: 3,327
no. You need to know your exact server path to the application folder for whatever php script/application it is you are installing. The host should be able to tell you this.

As for removing the install.php and sql.sql files, you need to use an ftp client, the cpanel won't do it most likely.

Based on your questions, you may be much better off paying for installation.
__________________
Scott
Moderator : Macintosh : Website & Graphics
Adobe Certified Expert: Illustrator
Royalty-Free Vector Stock Art
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:43 AM.

[ RSS ]