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.'' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '
Email:
Password:
 ' . '

'; } ?> ListBargins.com :) Quality lists for less!
" . "
\n" . "

".stripslashes(urldecode($data['title']))." (".date("M j, Y",$data['date']).")

" . "
".stripslashes(urldecode($data['body'])) . "
\n" . "
" . "

\n\n"; } else { echo "
No News at this time.
"; } ?>

ListBargains.com: Site News    Click here to subscribe to this RSS Feed Subscribe    Click here to view all topics View All


"; while ($data = mysql_fetch_array($result)) { echo "
  • " . stripslashes(urldecode($data['title'])) . " (".date("M j, Y",$data['date']).")
  • "; } echo ""; } else { echo "
    No News at this time.
    "; } ?>

    DMNews.com: Latest Articles    Click here to subscribe to this RSS Feed Subscribe    Click here to view all topics View All


    items, 0, $num_items); echo "" . $rss->channel['title'] . ""; echo "
      "; foreach ( $items as $item ) { $href = $item['link']; $title = shorten($item['title'], "100"); $description = $item['description']; echo "
    • $title
    • "; } echo "
    "; } else { echo "
    We're sorry. DMA news is currently unavailable.
    "; } ?>

    All at the touch of a button
    Browse over 400 Datacards, Postal Lists, Email Services,
    Texting 101, Data Processing, and News.