PHP Classes

File: db_config.php

Recommend this page to a friend!
  Classes of Olaf Lederer   Import templates   db_config.php   Download  
File: db_config.php
Role: Configuration script
Content type: text/plain
Description: DB connection and variables
Class: Import templates
Import data about TemplateMonster.com templates
Author: By
Last change:
Date: 19 years ago
Size: 1,028 bytes
 

Contents

Class file image Download
<?php
// modify these constants to fit your environment
define("DB_SERVER", "localhost");
define("DB_NAME", "database");
define ("DB_USER", "user");
define ("DB_PASSWORD", "pw");

// local settings
define("CLASS_PATH", dirname($_SERVER['PHP_SELF'])."/");
define("THUMB_FOLDER", "/images/thumbs/");

// these are the names for the standard table names
define("SS_TABLE", "tpl_screenshots4");
define("KEYWORDS_TABLE", "tpl_keywords");
define("AUTHORS_TABLE", "tpl_authors");
define("CATEGORIES_TABLE", "tpl_categorie_list"); // category list
define("CAT_LINKS_TABLE", "tpl_categorie_links"); // category relations
// log file (table)
define("LOG_TABLE", "tpl_log");

// general settings
define("DELIMITER", "|");
define("CURRENCY", ""); // leave it empty to get values in USD
define("LIST_BEGIN", "{");
define("LIST_DELIM", ";");
define("LIST_END", "}");
define("REMOTE_HOST", "http://www.templatemonster.com/webapi/");
define("REMOTE_SCREENSHOTS", "http://www.templatemonster.com/screenshots/");
?>