Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../crafty
File: config.php
<?php
[0] Fix | Delete
//===========================================================================
[1] Fix | Delete
//* -- ~~ Sales Syntax Live Help ~~ -- *
[2] Fix | Delete
//===========================================================================
[3] Fix | Delete
// URL: http://www.salessyntax.com/ EMAIL: salessyntax@gmail.com
[4] Fix | Delete
// Copyright (C) 2003-2016 Eric Gerdes (http://www.salessyntax.com )
[5] Fix | Delete
// ----------------------------------------------------------------------------
[6] Fix | Delete
// Please check http://www.salessyntax.com/ or REGISTER your program for updates
[7] Fix | Delete
// --------------------------------------------------------------------------
[8] Fix | Delete
// NOTICE: Do NOT remove the copyright and/or license information any files.
[9] Fix | Delete
// doing so will automatically terminate your rights to use program.
[10] Fix | Delete
// If you change the program you MUST clause your changes and note
[11] Fix | Delete
// that the original program is Sales Syntax Live help or you will
[12] Fix | Delete
// also be terminating your rights to use program and any segment
[13] Fix | Delete
// of it.
[14] Fix | Delete
// --------------------------------------------------------------------------
[15] Fix | Delete
// LICENSE:
[16] Fix | Delete
// This program is free software; you can redistribute it and/or
[17] Fix | Delete
// modify it under the terms of the GNU General Public License
[18] Fix | Delete
// as published by the Free Software Foundation;
[19] Fix | Delete
// This program is distributed in the hope that it will be useful,
[20] Fix | Delete
// but WITHOUT ANY WARRANTY; without even the implied warranty of
[21] Fix | Delete
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[22] Fix | Delete
// GNU General Public License for more details.
[23] Fix | Delete
//
[24] Fix | Delete
// You should have received a copy of the GNU General Public License
[25] Fix | Delete
// along with this program in a file named LICENSE.txt .
[26] Fix | Delete
//===========================================================================
[27] Fix | Delete
[28] Fix | Delete
// set this to true if false you will be re-directed to the setup page
[29] Fix | Delete
$installed=true;
[30] Fix | Delete
[31] Fix | Delete
if(empty($_SERVER)){ $_SERVER = $HTTP_SERVER_VARS; }
[32] Fix | Delete
[33] Fix | Delete
// if this program has not been installed and this is not the setup.php
[34] Fix | Delete
// re-direct to that page to setup database..
[35] Fix | Delete
if( ($installed == false) && (!preg_match("/setup.php/", $_SERVER['PHP_SELF'])) ){
[36] Fix | Delete
Header("Location: setup.php");
[37] Fix | Delete
exit;
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
// if this file has insecure permissions:
[41] Fix | Delete
if($installed==true){
[42] Fix | Delete
$perm = @stat("config.php");
[43] Fix | Delete
if(!(empty($perm[2]))){
[44] Fix | Delete
if( ($perm[2] == "33279") || ($perm[2] == "33278") || ($perm[2] == "33270") ){
[45] Fix | Delete
@chmod("config.php", 0755);
[46] Fix | Delete
$perm = @stat("config.php");
[47] Fix | Delete
if(!(empty($perm[2]))){
[48] Fix | Delete
if( ($perm[2] == "33279") || ($perm[2] == "33278") || ($perm[2] == "33270") ){
[49] Fix | Delete
print "<font color=990000>You must secure this program. Insecure permissions on config.php</font>";
[50] Fix | Delete
print "<br>While installing CSLH you might of needed to change the permissions of config.php so ";
[51] Fix | Delete
print "that it is writable by the web server. config.php no longer needs to be written to so ";
[52] Fix | Delete
print " please chmod config.php to not have write permissions for everyone. you can do this by";
[53] Fix | Delete
print " UNCHECKING the box that reads write permissions for the file:";
[54] Fix | Delete
print "<br><br><img src=directions2.gif>";
[55] Fix | Delete
exit;
[56] Fix | Delete
}
[57] Fix | Delete
}
[58] Fix | Delete
}
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
// dbtype either is either:
[63] Fix | Delete
// mysql - this is for Mysql support
[64] Fix | Delete
// txt-db-api - txt database support.
[65] Fix | Delete
$dbtype = 'mysql';
[66] Fix | Delete
[67] Fix | Delete
//database connections for MYSQL
[68] Fix | Delete
$server = '[[softdbhost]]';
[69] Fix | Delete
$database = '[[softdb]]';
[70] Fix | Delete
$datausername = '[[softdbuser]]';
[71] Fix | Delete
$password = '[[softdbpass]]';
[72] Fix | Delete
[73] Fix | Delete
// change this to the full SERVER path to your files
[74] Fix | Delete
// on the server .. not the HTTP PATH.. for example enter in
[75] Fix | Delete
// $application_root = "/usr/local/apache/htdocs/livehelp/"
[76] Fix | Delete
// not /livehelp/
[77] Fix | Delete
// keep ending slash.
[78] Fix | Delete
// WINDOWS would look something like:
[79] Fix | Delete
// $application_root = "D:\\virtual www customers\\craftysyntax\\livehelp_1_6\\";
[80] Fix | Delete
$application_root = '[[softpath]]/';
[81] Fix | Delete
[82] Fix | Delete
// if using txt-db-api need the path to the txt databases directory
[83] Fix | Delete
$DB_DIR = '/';
[84] Fix | Delete
// if using txt-db-api need to have the full path to the txt-db-api
[85] Fix | Delete
// you must set this property to something like /home/website/livehelp/txt-db-api/
[86] Fix | Delete
$API_HOME_DIR = '[[softpath]]/' . 'txt-db-api/';
[87] Fix | Delete
[88] Fix | Delete
[89] Fix | Delete
[90] Fix | Delete
?>
[91] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function