How to declare these functions?
Posted: Thu Jul 15, 2004 8:06 am
I am wanting to add some functions like $url_maindir, $url_dir, $COMPANY_email and $COMPANY_name.
Example of my config file below, the info in general information is what I want you to look at. The rest I am going to try to get to work later:
Example of my config file below, the info in general information is what I want you to look at. The rest I am going to try to get to work later:
Code: Select all
<?
// *HOST* *link_display* *Password* *Database*
function db() {mysql_pconnect("localhost","lsscript","tv781212");mysql_selectdb("lsscript_lstestimonials");
}
function db_close() {
mysql_close();
}
/*
//Bellow will be used for LS Testimonials Version 2.0
//-----------------------
// Database config
//-----------------------
// The server your databse is on. This is usually localhost
$DB_host = "localhost";
// The username used to access your database
$DB_user = "";
// The password used for this username
$DB_pass = "";
// The name of the database LS Testimonials is installed on
$DB_name = "";
// If you want to add a prefix to the table names. Otherwise
// leave blank
$DB_prefix = "lst_";
// If your database runs under a persistant connection.
// Note leave this as 0 unless you know what you are doing.
$DB_pconnect = 0;
*/
//----------------------
// General config
//----------------------
// The full URL to the directory LS Testimonials is in.
// Make sure you do not include a trailing slash '/'
$URL_maindir = "//www.lsscripts.com/lst";
// The directory that the files are located in. Make sure
// you include a / at the beginning and end of the
// directory name. If it is in a sub domain just use one /
$URL_dir = "/lst/";
// This path is the full server path to your LS Testimonials
// directory (excluding the trailing slash '/'). If you are using
// a *nix server you can use $_SERVER["DOCUMENT_ROOT"] to get to
// your web directory but Windows does not seem to recognise this
// function.
$LST_path = $_SERVER["DOCUMENT_ROOT"]."/lst";
// The name of your company. This will appear in the
// title of any visable pages.
$COMPANY_name = "LS Testimonials";
// The admin email of your company. This e-mail address
// will be used in all automatic e-mails that are sent
// from LS Testimonials
$COMPANY_email = "admin@example.com";
/*
// The skin you want to use
$SKIN_name = "default";
// The language that will be used for the client side. Use the name
// of the language file. e.g. if you are using spanishlang.php, in
// the language setting put spannishlang
$LANG_setting = "english";
// To check for updates on the control panel homepage, set to true,
// otherwise set to false. Setting this to true will enable LS Testimonials
// to collect information about your website (which will not be distributed
// to third parties) in order to produce usage statistics etc.
// None of the information collected will be used in any unlawful ways.
$lst_update = "true";
*/
?>