Database (DATABASE_NAME); $DB -> User(DATABASE_USERNAME,DATABASE_PASSWORD); //username password include "/var/www/mods/tools/tools.php"; function Config($Sleutel){ $DB = new databaseFunction(); $DB -> Database (DATABASE_NAME); $DB -> User(DATABASE_USERNAME,DATABASE_PASSWORD); //username password $DB -> TableSelect ("website_configuratie"); // tabel $DB -> FieldsSelect(); // FieldsSelect() all $DB -> isWhere("sleutel",$Sleutel, "text",'='); $DB -> Select(); return $DB ->Values["waarde"]; } $NIEUWS_SEP = Config("NIEUWS_SEP"); $RRS_FEED = Config("RRS_FEED"); //echo $_GET["action"]."
"; if ($_GET["action"] == "list") { $DB -> TableSelect ("website_news"); // tabel $DB -> FieldsSelect(); // FieldsSelect() all $DB -> isWhere("actief",1, "int", '='); $DB -> moreWhere("AND", "tot_datum", date("Y-m-d"),"date",'>'); $DB -> moreWhere("OR", "tot_datum", "0000-00-00","date",'='); $DB -> OderBy("van_datum", "DESC"); $DB -> Select(); // $DB ->TotalRows; } if ($_GET["action"] == "rss") { include "/var/www/mods/tools/rss.php"; RSSHeader(Config("RSS_TITEL") ,Config("RSS_SITE") ,Config("RSS_OMSCHRIJVING") ,"nl-nl" ,DOMAIN_URL."/".Config("RSS_LOGO") ,"wiskita.nl"); $DB -> TableSelect ("website_news"); // tabel $DB -> FieldsSelect(); // FieldsSelect() all $DB -> isWhere("actief",1, "int", '='); $DB -> moreWhere("AND", "tot_datum", date("Y-m-d"),"date",'>'); $DB -> moreWhere("OR", "tot_datum", "0000-00-00","date",'='); $DB -> OderBy("van_datum", "DESC"); $DB -> Select(); do { RSSFeed(DOMAIN_URL."/Nieuws/read/".str_replace(" ","-",$DB ->Values["titel"]) ,$DB ->Values["bericht"] ,$DB ->Values["tijdstamp"] ,$DB ->Values["titel"] ,$DB ->Values["schrijver"]); } while($DB ->SelectNext() == true); CloseFeed(); exit(); } ?> Wiskita - NIEUWS
Cattery Wiskita

Nieuws..... (vanaf januari 2009)       '; } ?> Bookmark and Share

"; do { if ($class == "line1") {$class = "line2"; } else { $class = "line1"; } switch ($NIEUWS_SEP) { case "1": echo $DB ->Values["titel"]."
"; echo $DB ->Values["bericht"]."
"; break; case "2": echo $DB ->Values["titel"]."
"; echo substr($DB ->Values["bericht"],0,100); echo 'Values["titel"]).'">meer....
'; break; case "3": echo "
  • ".FormatDate($DB ->Values["van_datum"]).' Values["titel"]).'" target="info">'.$DB ->Values["titel"].'
  • '; break; } } while($DB ->SelectNext() == true); echo ""; } ?>