MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.222.182.249
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/softaculous/4images/../framadate/../mongo/../crafty/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/softaculous/4images/../framadate/../mongo/../crafty/config.php
<?php
//===========================================================================
//* --    ~~                Sales Syntax Live Help                ~~    -- *
//===========================================================================
//           URL:   http://www.salessyntax.com/    EMAIL: salessyntax@gmail.com
//         Copyright (C) 2003-2016 Eric Gerdes   (http://www.salessyntax.com )
// ----------------------------------------------------------------------------
// Please check http://www.salessyntax.com/ or REGISTER your program for updates
// --------------------------------------------------------------------------
// NOTICE: Do NOT remove the copyright and/or license information any files. 
//         doing so will automatically terminate your rights to use program.
//         If you change the program you MUST clause your changes and note
//         that the original program is Sales Syntax Live help or you will 
//         also be terminating your rights to use program and any segment 
//         of it.        
// --------------------------------------------------------------------------
// LICENSE:
//     This program is free software; you can redistribute it and/or
//     modify it under the terms of the GNU General Public License
//     as published by the Free Software Foundation; 
//     This program is distributed in the hope that it will be useful,
//     but WITHOUT ANY WARRANTY; without even the implied warranty of
//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//     GNU General Public License for more details.
//
//     You should have received a copy of the GNU General Public License
//     along with this program in a file named LICENSE.txt .
//===========================================================================

// set this to true if false you will be re-directed to the setup page
$installed=true;  

if(empty($_SERVER)){ $_SERVER = $HTTP_SERVER_VARS; }

// if this program has not been installed and this is not the setup.php
// re-direct to that page to setup database..
if( ($installed == false) && (!preg_match("/setup.php/", $_SERVER['PHP_SELF'])) ){ 
 header("Location: setup.php",TRUE,307);
 exit;
}

// if this file has insecure permissions:
if($installed==true){
 $perm = @stat("config.php");
 if(!(empty($perm[2]))){
  if( ($perm[2] == "33279") || ($perm[2] == "33278") || ($perm[2] == "33270")  ){
  	@chmod("config.php", 0755);
  	$perm = @stat("config.php");
    if(!(empty($perm[2]))){
      if( ($perm[2] == "33279") || ($perm[2] == "33278") || ($perm[2] == "33270")  ){
  	      print "<font color=990000>You must secure this program. Insecure permissions on config.php</font>";
  	      print "<br>While installing CSLH you might of needed to change the permissions of config.php so ";
  	      print "that it is writable by the web server. config.php no longer needs to be written to so ";
  	      print " please chmod config.php to not have write permissions for everyone. you can do this by";
  	      print " UNCHECKING the box that reads write permissions for the file:";
          print "<br><br><img src=directions2.gif>";    
          exit;
       }
     }
    }      
  }
 } 
 
 // dbtype either is either:
 // mysql       - this is for Mysql support
 // txt-db-api  - txt database support. 
 $dbtype = 'mysql';

 //database connections for MYSQL 
 $server = '[[softdbhost]]';
 $database = '[[softdb]]';
 $datausername = '[[softdbuser]]';
 $password = '[[softdbpass]]';

 // change this to the full SERVER path to your files 
 // on the server .. not the HTTP PATH.. for example enter in
 // $application_root = "/usr/local/apache/htdocs/livehelp/"
 // not /livehelp/
 // keep ending slash.
 // WINDOWS would look something like:
 // $application_root = "D:\\virtual www customers\\craftysyntax\\livehelp_1_6\\";
 $application_root = '[[softpath]]/';

 // if using txt-db-api need the path to the txt databases directory
 $DB_DIR = '/';
 // if using txt-db-api need to have the full path to the txt-db-api
 // you must set this property to something like /home/website/livehelp/txt-db-api/ 
 $API_HOME_DIR = '[[softpath]]/' . 'txt-db-api/';
 
	

?>

MMCT - 2023