#########################
# System Config Script
#########################
//error_reporting(2047); // Debuggin Line
include_once("DBMySQL.php");
$dbserver = "localhost";
$dbuser = "lbargain_site";
$dbpass = "lbargains";
$dbname = "lbargain_site";
$dbprefix = "lb";
// Datbase Connection Support
$db = new DBMySQL;
$db->init($dbserver,$dbname,$dbuser,$dbpass);
// Start User Session
session_start();
if (!isset($op)){ $op = "";} // Define Common Variable
if (!isset($page)){ $page = "1";}
if (!isset($msg)){ $msg = "";}
if (!isset($uri)){ $uri = "";}
if (!isset($uploaderror)){ $uploaderror = "";}
// User Validation Support
function authUser($email,$passwd){
global $db,$dbprefix;
if(!empty($email) && !empty($passwd)){
$checkcookie = $db->getRowExtended($db->do_query("SELECT email, passwd FROM ".$dbprefix."_users WHERE email='".$email."' AND passwd='".$passwd."'"));
return true;
} else { return false;}
}
// User Validation Support
function checkUser($db,$dbprefix,$username,$passwd){
$query = mysql_query("SELECT username,password FROM ".$dbprefix."_users WHERE username='".$username."' AND password='".md5($passwd)."'");
$numRows = mysql_num_rows($query);
if ($numRows){
return true;
} else {
return false;
}
}
function stripsearch($text){
$search = array('@<>@',
'@@siU', // Strip out javascript
'@@siU', // Strip style tags properly
'@@siU', // embed
'@@siU', // object
'@@', // Strip multi-line comments including CDATA
'@?[^>]*>*@' // html tags
);
while($text != strip_tags($text)) { $text = preg_replace($search, '', $text); }
return $text;
}
function limit_text($text,$limit)
{
// figure out the total length of the string
if( strlen($text)>$limit )
{
# cut the text
$text = substr( $text,0,$limit );
# lose any incomplete word at the end
$text = substr( $text,0,-(strlen(strrchr($text,' '))) );
}
// return the processed string
return $text."... ";
}
function shorten($string, $length)
{
// By default, an ellipsis will be appended to the end of the text.
$suffix = '...';
// Convert 'smart' punctuation to 'dumb' punctuation, strip the HTML tags,
// and convert all tabs and line-break characters to single spaces.
$short_desc = trim(str_replace(array("\r","\n", "\t"), ' ', strip_tags($string)));
// Cut the string to the requested length, and strip any extraneous spaces
// from the beginning and end.
$desc = trim(substr($short_desc, 0, $length));
// Find out what the last displayed character is in the shortened string
$lastchar = substr($desc, -1, 1);
// If the last character is a period, an exclamation point, or a question
// mark, clear out the appended text.
if ($lastchar == '.' || $lastchar == '!' || $lastchar == '?') $suffix='';
// Append the text.
$desc .= $suffix;
// Send the new description back to the page.
return $desc;
}
function countVisit(){
// SET VISITOR COOKIE / Update Page Visits if not already a visitor
// Count Starting Jan 2 2007: 50,553
if ($_COOKIE['visitor'] != "1"){
$db->do_query("UPDATE ".$dbprefix."_system_visits SET visits=visits+1");
setcookie ("visitor", "1", time()+3600,"/",".listbargains.com");
}
}
function genPass($min,$max){
// Random Password Generator
$passwd=""; //to store generated password
for($i=0;$i 97 && $num < 122)){
$passwd.=chr($num);
}else if(($num > 65 && $num < 90)){
$passwd.=chr($num);
}else if(($num >48 && $num < 57)){
$passwd.=chr($num);
}else if($num==95){
$passwd.=chr($num);
}else{
$i--;
}
}
return $passwd;
}
function loginPanel($msg){
echo '
'.$msg.'
'
. ''
. '
';
}
?>
ListBargins.com :) Quality lists for less!
Amy joined Media Source Solutions in 2005 to launch the company’s ListBargains.com reseller and licensing division, and has successfully propelled the growth of the business year after year. Amy has been providing direct marketing services to premier credit card, publishing, non-profit and business clients such as Discover Card, US News, Reader’s Digest, Smithsonian and Bisk Education since 1994.
Prior to joining ListBargains.com, Amy worked at various leading list firms in list management, brokerage and insert media functions, from Account Executive to Vice President capacities. She is proud to have introduced several clients to insert media and email marketing, and enjoys helping clients grow their businesses. Amy is an active member of the DMA and the HVDMA, is a WomenCertified Professional, and enjoys giving back to the industry by publishing marketing articles and speaking at conferences. Amy’s primary goal at ListBargains.com is to make list ordering FUN again!
Mary Jane Acito,
Vice President of Multi-Channel Marketing
Mary Jane joined ListBargains.com in 2008 and focuses on new business development with both Business to Business and Business to Consumer clients, List Brokers, Advertising Agencies and Resellers. Utilizing a multi-channel marketing approach, Mary Jane provides clients with targeted online and postal prospect lists to increase their existing customer base.
Mary Jane has been active in the direct marketing arena for many years holding positions at marketing organizations such as Donnelley Marketing/infoUSA and Cox Target Media. Mary Jane is an active member of the DMA and is also Women Certified with superior commitment to customer service.