PHP Classes

File: search.config

Recommend this page to a friend!
  Classes of Joe Stump   Miester Search   search.config   Download  
File: search.config
Role: ???
Content type: text/plain
Description: Config file for the class
Class: Miester Search
Author: By
Last change:
Date: 24 years ago
Size: 1,891 bytes
 

 

Contents

Class file image Download
<? // Duh $MYSQL_USERNAME = 'root'; $MYSQL_PASSWORD = ''; $USERNAME = $MYSQL_USERNAME; $PASSWORD = $MYSQL_PASSWORD; // Database and Host $DB = 'miester'; $HOST = 'localhost'; $TRUE = 1; $FALSE = 0; $NOTIFY = 0; // Set to 1 to receive emails when the DB fails function stripslashes_array($array) { if(is_array($array)) { while(list($key,$val) = each($array)) { $ret[$key] = stripslashes($val); } return $ret; } else { return $array; } } $tables[] = array ( table_name => 'news_information', table_key => 'newsID', key_def => 'int(11) unsigned not null', fields => array('newsTitle','newsText') ); $tables[] = array ( table_name => 'link_information', table_key => 'linkID', key_def => 'int(11) unsigned not null', fields => array('linkTitle','linkInfo') ); $tables[] = array ( table_name => 'message_threads', table_key => 'threadID', key_def => 'int(11) unsigned not null', fields => array('threadSubject','threadBody') ); $tables[] = array ( table_name => 'message_replies', table_key => 'replyID', key_def => 'int(11) unsigned not null', fields => array('replySubject','replyBody') ); $tables[] = array ( table_name => 'news_feeds', table_key => 'id', key_def => 'int(11) unsigned not null', fields => array('articleTitle','articleText') ); ?>