Jump to content

Encrypting config.php


Xerxes1

Recommended Posts

I need a basic encryption for my config.php so that people can't read it if they have access to the server, how can I implement this so people can download my software and run the encryption.php file to encrypt config.php?

 

<?php
//	****** MASTER DATABASE SETTINGS ******
//	These are the settings required to connect to your MySQL Database.
$sqlhostname = "localhost";
$sqlusername = "username";
$sqlpassword = "password";
$sqldb = "database";

//	****** STATUS CHECKS SYSTEM ******
//	This option will allow CMS to perform full status checks. This,
//	however, slows down your site A LOT. It is therefore disabled by
//	default.
$enable_status_image = "0";

//	****** SITE PATH ******
//	The full URL to your site; with an slash added on the end.
$path = "http://site.com";

//	****** REFFERAL REWARD ******
//	The amount of credits a user recieves upon referring a friend to the
//	hotel. Set to '500' by default.
$reward = "50";

//	****** CMS SYSTEM ADMINISTRATOR ******
//	User ID of the System Administrator. Will be granted access to sensitive
//	features. Set to '1' by default. This setting will not change your
//	ingame priveliges.
$sysadmin = "1";

//	****** CMS ENCRYPTION SYSTEM ******
//	How CMS stores passowrds.
//	Do NOT manually change this unless you know what you are doing,
//	doing so may corrupt your database.
$encryption = "new";
$hashtext = "";

//	****** BADGES ******
//	Where badges are located.
$cimagesurl = "http://images.site.co.uk/c_images/";
$badgesurl = "album1584/";

//	****** EMAIL VERIFY ******
//	Email verification settings
$email_verify = true;
$email_force_verify = false;
$email_verify_reward = "500";
?>

Link to comment
https://forums.phpfreaks.com/topic/155833-encrypting-configphp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.