mail($db->f("email_usr"), "[{$sys_name}] {$pmesssubject}", "{$pmessmessage}\n---\n \nRead your personal messages at http://devcounter.berlios.de/", "From: noreply@berlios.de\nReply-To: noreply@berlios.de\nX-Mailer: PHP"); } } else { $bx->box_full($t->translate("Error"), $t->translate("Message wasn't posted")); } } else { $be->box_full($t->translate("Error"), $t->translate("Developer does not allow to contact him")); } } break; } $db->query("SELECT * FROM pmessages WHERE pmessto='{$username}' ORDER BY pmesstime DESC"); $number_of_pmessages = $db->num_rows(); $counter = 0; $blist->box_begin(); $blist->box_body_begin(); $blist->box_columns_begin(5); $blist->box_column("center", "5%", $th_strip_title_bgcolor, "<b>" . $t->translate("Status") . "</b>"); $blist->box_column("right", "5%", $th_strip_title_bgcolor, "<b>" . $t->translate("No") . "</b>"); $blist->box_column("center", "20%", $th_strip_title_bgcolor, "<b>" . $t->translate("Subject") . "</b>"); $blist->box_column("center", "20%", $th_strip_title_bgcolor, "<b>" . $t->translate("Sender") . "</b>"); $blist->box_column("center", "20%", $th_strip_title_bgcolor, "<b>" . $t->translate("Time") . "</b>"); $blist->box_column("center", "10%", $th_strip_title_bgcolor, "<b>" . $t->translate("-") . "</b>"); $blist->box_column("center", "10%", $th_strip_title_bgcolor, "<b>" . $t->translate("-") . "</b>"); $blist->box_next_row_of_columns(); $bgcolor = "#FFFFFF"; while ($counter != $number_of_pmessages) { $db->next_record(); $counter++; $pmessstatus = $db->f("pmessstatus"); switch ($pmessstatus) {
<?php if ($config_perm_watch != "all" && (!isset($perm) || !$perm->have_perm($config_perm_watch))) { $be->box_full($t->translate("Error"), $t->translate("Access denied")); } else { $username = $auth->auth["uname"]; htmlp_form_action("watchset.php", array(), "POST"); echo "\n"; $db3->query("SELECT * FROM prog_ability_watch WHERE username='******'"); if ($db3->next_record()) { $exists = 1; } else { $exists = 0; } $bx->box_begin(); $bx->box_title($t->translate("Set your Developers Watch")); $bx->box_body_begin(); echo "<table border=0 width=100% align=center cellspacing=0 cellpadding=3>\n"; echo "<tr><td align=center><B>" . $t->translate("Which programming experiences you like to watch?") . "</B></td></tr><tr><td>\n"; echo "<center><table border=0>\n"; $db->query("SELECT * from prog_abilities WHERE translation='{$la}'"); $count = 0; while ($db->next_record()) { $count++; $ability_code = $db->f("code"); $colname = $db->f("colname"); if ($count == 1) { echo "<tr>\n"; } echo "<td align=right>" . $db->f("ability") . "</td><td>\n"; htmlp_select("ability[" . $ability_code . "]"); $db2->query("SELECT * FROM weightings");
$bgcolor = "gold"; $bx->box_column("center", "", $bgcolor, html_form_submit($t->translate("Delete"), "")); htmlp_form_end(); $bx->box_next_row_of_columns(); $bgcolor = "#FFFFFF"; } $bgcolor = "gold"; htmlp_form_action("projects.php", array(), "POST"); htmlp_form_hidden("option", "add"); $bx->box_column("right", "", $bgcolor, "--"); $bx->box_column("center", "", $bgcolor, html_input_text("projectname", 25, 64, "")); $bx->box_column("center", "", $bgcolor, html_input_text("projecturl", 35, 255, "")); $bx->box_column("center", "", $bgcolor, html_input_text("pcomment", 35, 400, "")); $bx->box_colspan(2, "center", $bgcolor, html_form_submit($t->translate("Add Project"), "")); $bx->box_columns_end(); htmlp_form_end(); } else { $be->box_begin(); $be->box_title($t->translate("Error")); $be->box_body_begin(); htmlp_link("addproj.php", "", $t->translate("Enter your projects here")); $be->box_body_end(); $be->box_end(); } } ?> <!-- end content --> <?php require "./include/footer.inc"; @page_close();