Promoting regional co-operation for the protection and development of the marine environment of the Wider Caribbean Region.

About UNEP

About CEP

Home

Environmental Law

Links

Projects

Mailing List

Site Map

 
Search Search Contacts Contacts Print Print Version Send Subscribe Subscribe

   RESOURCES
Operational Components
Caribbean Action Plan
Caribbean Trust Fund
Partner Organizations
Secretariat- CAR/RCU
Member States
AMEP
SPAW
CEPNET
ETA
Cartagena Convention
Signatories

Recommendations and
Decisions from Meetings

Final Act of 1983
Protocols
Oil Spills
SPAW
LBS
Legal Glossary
Law Links
Information Services
Technical Reports
CEP Databases
Clearing House Mechanism
Meeting Documents
Marine Issues and Links
Coastal Zone Management
Biological Diversity
Coral Reef Management
Sustainable Tourism Initiatives
Environment Awareness
and Education
CEP Links
CEP NEWS
Editorial Items
What's New
Internet Briefs
Publications Available
Education and Training
Marine Protected
Area Corner
Calendar of Events
Meetings & Events
Upcoming Events
Kids Corner
Enviro Kids
Jump with Whales
Kids Links
CAR/RCU STAFF LOGIN
AMEP
CEPNET
SPAW
ETA
OTHER

    REGIONS/COUNTRIES
 

CEP MEETING REPORTS & DOCUMENTS

bulletbl2.gif (285 bytes) Please select

CEP MEETINGS Archive

Top of Section

Upcoming CEP Meetings
\\2",$fusnewsm); $fusnewsm = eregi_replace("\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\]","\\2",$fusnewsm); $fusnewsm = eregi_replace("\\[font=([^\\[]*)\\]([^\\[]*)\\[/font\\]","\\2",$fusnewsm); $fusnewsm = eregi_replace("\\[img height=([^\\[]*)\\ width=([^\\[]*)\\]([^\\[]*)\\[/img\\]","",$fusnewsm); $fusnewsm = eregi_replace("\\[img width=([^\\[]*)\\ height=([^\\[]*)\\]([^\\[]*)\\[/img\\]","",$fusnewsm); $fusnewsm = eregi_replace("\\[img]([^\\[]*)\\[/img\\]","",$fusnewsm); $fusnewsm = eregi_replace("\\[flash=([^\\[]*)\\,([^\\[]*)\\]([^\\[]*)\\[/flash\\]","",$fusnewsm); $fusnewsm = eregi_replace("\\[align=([^\\[]*)\\]([^\\[]*)\\[/align\\]","

\\2

",$fusnewsm); $fusnewsm = eregi_replace("\\[shadow=([^\\[]*)\\,([^\\[]*)\\,([^\\[]*)\\]([^\\[]*)\\[/shadow\\]","\\4",$fusnewsm); $fusnewsm = eregi_replace("\\[glow=([^\\[]*)\\,([^\\[]*)\\,([^\\[]*)\\]([^\\[]*)\\[/glow\\]","\\4",$fusnewsm); $fusnewsm = str_replace("[move]", "", $fusnewsm); $fusnewsm = str_replace("[/move]", "", $fusnewsm); $fusnewsm = str_replace("[hr]", "
", $fusnewsm); $fusnewsm = str_replace("[sub]", "", $fusnewsm); $fusnewsm = str_replace("[/sub]", "", $fusnewsm); $fusnewsm = str_replace("[tt]", "", $fusnewsm); $fusnewsm = str_replace("[/tt]", "", $fusnewsm); $fusnewsm = str_replace("[sup]", "", $fusnewsm); $fusnewsm = str_replace("[/sup]", "", $fusnewsm); $fusnewsm = str_replace("[s]", "", $fusnewsm); $fusnewsm = str_replace("[/s]", "", $fusnewsm); $fusnewsm = str_replace("[b]", "", $fusnewsm); $fusnewsm = str_replace("[/b]", "", $fusnewsm); $fusnewsm = str_replace("[i]", "", $fusnewsm); $fusnewsm = str_replace("[/i]", "", $fusnewsm); $fusnewsm = str_replace("[u]", "", $fusnewsm); $fusnewsm = str_replace("[/u]", "", $fusnewsm); $fusnewsm = str_replace("[*]", "
  • ", $fusnewsm); $fusnewsm = str_replace("[list]", "
      ", $fusnewsm); $fusnewsm = str_replace("[/list]", "
    ", $fusnewsm); $fusnewsm = eregi_replace("\\[email\\]([^\\[]*)\\[/email\\]", "
    \\1",$fusnewsm); $fusnewsm = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]", "\\2",$fusnewsm); $fusnewsm = str_replace("[quote]", "
    quote:
    ", $fusnewsm); $fusnewsm = str_replace("[/quote]", "
    ", $fusnewsm); $fusnewsm = str_replace("[code]","
    ",$fusnewsm);
    $fusnewsm = str_replace("[/code]","
    ",$fusnewsm); $fusnewsm = eregi_replace("\\[url\\]www.([^\\[]*)\\[/url\\]", "\\1",$fusnewsm); $fusnewsm = eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","\\1",$fusnewsm); $fusnewsm = eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","\\2",$fusnewsm); $fusnewsm = eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1\\2://\\3\\4", $fusnewsm); return $fusnewsm; } function InsertSmillies($fusnewsm, $fusurl){ $fusnewsm = eregi_replace(":)", "", $fusnewsm); $fusnewsm = str_replace(";)", "", $fusnewsm); $fusnewsm = str_replace(":P", "", $fusnewsm); $fusnewsm = str_replace(":mad:", "", $fusnewsm); $fusnewsm = str_replace(":D", "", $fusnewsm); $fusnewsm = str_replace(":cool", "", $fusnewsm); $fusnewsm = str_replace(":p", "", $fusnewsm); $fusnewsm = str_replace(":soppy:", "", $fusnewsm); $fusnewsm = str_replace(":(", "", $fusnewsm); $fusnewsm = str_replace(":surprised:", "", $fusnewsm); $fusnewsm = str_replace(":?:", "", $fusnewsm); $fusnewsm = str_replace(":worry:", "", $fusnewsm); $fusnewsm = str_replace(":sleep:", "", $fusnewsm); $fusnewsm = str_replace(":tired:", "", $fusnewsm); $fusnewsm = str_replace(":ooh:", "", $fusnewsm); $fusnewsm = str_replace(":embarrasment:", "", $fusnewsm); $fusnewsm = str_replace(":urgh:", "", $fusnewsm); $fusnewsm = str_replace(":stress:", "", $fusnewsm); $fusnewsm = str_replace(":rolleyes:", "", $fusnewsm); $fusnewsm = str_replace(":dunno:", "", $fusnewsm); $fusnewsm = str_replace(":eek:", "", $fusnewsm); $fusnewsm = str_replace(":blush:", "", $fusnewsm); $fusnewsm = str_replace(":huh:", "", $fusnewsm); return $fusnewsm; } function short_story($news, $poster, $date, $subject, $id, $full_active, $email){ global $full_link, $NHurl, $dbprefix; $temp_query = "SELECT short_story FROM ".$dbprefix."_templates"; $temp_result = mysql_query($temp_query); $temp_row = mysql_fetch_object($temp_result); $template1 = stripslashes($temp_row->short_story); $query3 = "select sig from ".$dbprefix."_users where username = '$poster'"; $result3 = mysql_query($query3); $row3 = mysql_fetch_object($result3); $sig = stripslashes($row3->sig); $template = str_replace("{news}", "$news", $template1); $template = str_replace("{user}", "$poster", $template); $template = str_replace("{date}", "$date", $template); $template = str_replace("{email}", "$email", $template); $template = str_replace("{subject}", "$subject", $template); $template = str_replace("{sig}", "$sig", $template); if ($full_active == "0"){ //remove/add extra features $template = str_replace("{fullstory}", "", $template); } else{ //$template = str_replace("{fullstory}", "$full_link", $template); //$template = str_replace("{fullstory}", "$full_link", $template); $template = str_replace("{fullstory}", "$full_link", $template); } return "$template"; } //show full story! function long_story($news, $poster, $date, $subject, $email){ global $dbprefix; $temp_query2 = "SELECT full_story FROM ".$dbprefix."_templates"; $temp_result2 = mysql_query($temp_query2); $temp_row = mysql_fetch_object($temp_result2); $template1 = stripslashes($temp_row->full_story); $query3 = "select sig from ".$dbprefix."_users where username = '$poster'"; $result3 = mysql_query($query3); $row3 = mysql_fetch_object($result3); $sig = stripslashes($row3->sig); //remove/add extra features $template = str_replace("{news}", "$news", $template1); $template = str_replace("{user}", "$poster", $template); $template = str_replace("{date}", "$date", $template); $template = str_replace("{email}", "$email", $template); $template = str_replace("{subject}", "$subject", $template); $template = str_replace("{sig}", "$sig", $template); return "$template"; } function BadWords($text){ global $dbprefix; $query = "SELECT bad_word, replaced_word FROM ".$dbprefix."_badwords"; $result = mysql_query($query) or die("sdf" . mysql_error()); while($row = mysql_fetch_object($result)){ $bad = $row->bad_word; $good = $row->replaced_word; $text = str_replace("$bad","$good", $text); } return $text; } //end functions mysql_open(); //get some config vars $query3 = "SELECT max_show, full_story_link, folder_url, smilies, bbcode, html, word_filter FROM ".$dbprefix."_config WHERE id = '1'"; $result3 = mysql_query($query3); $row3 = mysql_fetch_object($result3); $show_max = $row3->max_show; $full_link = $row3->full_story_link; $NHurl = $row3->folder_url; $bbcode = $row3->bbcode; $html = $row3->html; $smilies = $row3->smilies; $bad_words = $row3->word_filter; //lets view the news! $type = $_GET['a']; $id = $_GET['id']; if (isset($type)){ //full story $query1 = "SELECT * FROM ".$dbprefix."_templates"; $result1 = mysql_query($query1); $row1 = mysql_fetch_object($result1); $header = $row1->header; $footer = $row1->footer; $full_header = stripslashes($row1->full_header); $full_footer = stripslashes($row1->full_footer); $query2 = "SELECT full_story, poster, date, subject, email FROM ".$dbprefix."_posts WHERE id = '$id'"; $result2 = mysql_query($query2); $row2 = mysql_fetch_object($result2); $news = $row2->full_story; $poster = $row2->poster; $date = $row2->date; $subject = $row2->subject; $email = $row2->email; //make smilies/bbcode/badwords/stripslashes/html $poster = stripslashes($poster); $email = stripslashes($email); $subject = stripslashes($subject); $date = stripslashes($date); $news = stripslashes($news); if ($html == "0"){ $subject = strip_tags($subject); $news = strip_tags($news); } if ($bbcode == "1"){ $news = insertbbcode($news); } if ($smilies == "1"){ $subject = InsertSmillies($subject, $NHurl); $news = InsertSmillies($news, $NHurl); } if ($bad_words == "1"){ $subject = BadWords($subject); $news = BadWords($news); } $news = nl2br($news); echo "$full_header"; $show = stripslashes(long_story($news, $poster, $date, $subject, $email)); echo "$show"; echo "$full_footer"; } else{ //short news $query4 = "SELECT header, footer FROM ".$dbprefix."_templates"; $result4 = mysql_query($query4); $row4 = mysql_fetch_object($result4); $header = stripslashes($row4->header); $footer = stripslashes($row4->footer); $query5 = "SELECT id, short_story, poster, date, subject, full_active, email FROM ".$dbprefix."_posts ORDER BY id DESC LIMIT 0, $show_max"; $result5 = mysql_query($query5); echo "$header
    "; while($row5 = mysql_fetch_object($result5)) { $news = $row5->short_story; $poster5 = $row5->poster; $date = $row5->date; $subject = $row5->subject; $full_active = $row5->full_active; $id5 = $row5->id; $email = $row5->email; $poster5 = stripslashes($poster5); $email = stripslashes($email); $subject = stripslashes($subject); $date = stripslashes($date); $news = stripslashes($news); if ($html == "0"){ $subject = strip_tags($subject); $news = strip_tags($news); } if ($bbcode == "1"){ $news = insertbbcode($news); } if ($smilies == "1"){ $subject = InsertSmillies($subject, $NHurl); $news = InsertSmillies($news, $NHurl); } if ($bad_words == "1"){ $subject = BadWords($subject); $news = BadWords($news); } $news = nl2br($news); $show = stripslashes(short_story($news, $poster5, $date, $subject, $id5, $full_active, $email)); echo "$show"; } echo "
    $footer"; } mysql_close($conn); ?>

    Top of Section

    UNEP -- Caribbean Environment Programme Regional Coordinating Unit
    14 - 20 Port Royal Street Kingston, Jamaica
    Tel: (876) 922 - 9267 Fax: (876) 922 - 9292
    uneprcuja@cwjamaica.com : http://www.cep.unep.org/
      UNEP.ORG
    CEP Disclaimer - Privacy Policy - guest (Read) 2004