|
|
||
| CEP DECISIONS FROM MEETINGSThe meetings of the CEP represent an important part of the activities of the CEP. They allow the CEP to receive feedback and hear the concerns and interests of its member states. These help to define a common mechanism to improve the coastal and marine environments of the Wider Caribbean Region. The CEP and the Cartagena Convention require Intergovernmental Meetings (IGM) to be held every two years (and also rotating Monitoring Committee (MonCom) Meetings) to review the CEP's progress, chart future activities, and oversee financial and institutional arrangements. The Protocols to the Convention also requests periodic technical and scientific meetings. At the MonCom Meetings recommendations are made while decisions are taken at the IGM. For easy reference, the recommendations and decisions of the CEP Meetings are given below in chronological order. These documents presented are in Word forma
\\2 ",$fusnewsm); $fusnewsm = eregi_replace("\\[shadow=([^\\[]*)\\,([^\\[]*)\\,([^\\[]*)\\]([^\\[]*)\\[/shadow\\]","\\4",$fusnewsm); $fusnewsm = eregi_replace("\\[glow=([^\\[]*)\\,([^\\[]*)\\,([^\\[]*)\\]([^\\[]*)\\[/glow\\]","\\4",$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]", "
quote:", $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);
}
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); ?> UNEP Caribbean
Environment Programme, Regional Coordinating Unit
|