# # This file sends the daily/weekly newsletters with the announcements # # This program is free software. You can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: nlsend.php,v 1.6 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); require "./include/config.inc"; require "./include/lib.inc"; $db = new DB_DevCounter(); $db2 = new DB_DevCounter(); if ($ml_list) { if (!isset($period)) { $period = "daily"; } if ($msg = nlmsg($period)) { switch ($period) { case "weekly": $subj = "{$sys_name} weekly newsletter for " . date("l dS of F Y"); mail($ml_weeklynewstoaddr, $subj, $msg, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\nX-Mailer: PHP"); echo "{$sys_name} weekly newsletter sent at " . date("l dS of F Y H:i:s") . "\n"; break; case "daily": default: $subj = "{$sys_name} daily newsletter for " . date("l dS of F Y"); mail($ml_newstoaddr, $subj, $msg, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\nX-Mailer: PHP");
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: showprofile.php,v 1.8 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php $db->query("SELECT * from auth_user,developers,extra_perms WHERE auth_user.username = developers.username AND developers.username='******' AND extra_perms.username='******'"); if ($db->num_rows() == 0) { $be->box_full($t->translate("Error"), $t->translate("Developer did not specify a Profile yet")); echo "<CENTER><TABLE BORDER=\"0\" WIDTH=\"60%\">"; echo "<TR><TD VALIGN=\"top\">"; switch ($la) { case "English": require "./include/English-intro.inc"; break; case "German": require "./include/German-intro.inc";
# # Set Developers watch for users. # # This program is free software. You can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: watchset.php,v 1.9 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); require "./include/header.inc"; $bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?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"]; $db->query("SELECT * FROM prog_ability_watch WHERE username='******'"); if ($db->next_record()) { $query = "UPDATE "; $update = 1; } else { $query = "INSERT INTO "; $update = 0;
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: devresults.php,v 1.11 2006/01/09 16:26:37 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php // echo "<p>$option\n"; switch ($option) { // All in one case "allinone": $request_amount = 0; $hit_amount = 0; $query = "SELECT DISTINCT developers.username,auth_user.realname,auth_user.email_usr,extra_perms.showname,extra_perms.showemail"; $query .= " FROM developers,auth_user,os_projects,prog_language_values,prog_ability_values,extra_perms"; $query .= " WHERE developers.username=auth_user.username AND developers.username=extra_perms.username AND os_projects.username=extra_perms.username AND prog_language_values.username=prog_ability_values.username AND extra_perms.username=prog_ability_values.username AND extra_perms.search='yes'"; if ($projname != "") { $query .= " AND os_projects.projectname LIKE '%{$projname}%'";
if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); ?> <!-- content --> <?php ### ### Submit Handler ### ## Get a database connection $db = new DB_DevCounter(); // Check if there was a submission $reg = 0; while (is_array($HTTP_POST_VARS) && (list($key, $val) = each($HTTP_POST_VARS))) { switch ($key) { case "register": // Register a new developer $username = trim($username); $password = trim($password); $cpassword = trim($cpassword); $realname = trim($realname); $email_usr = trim($email_usr); if (empty($username) || empty($password) || empty($cpassword) || empty($email_usr)) { // Do we have all necessary data? $be->box_full($t->translate("Error"), $t->translate("Please enter") . " <b>" . $t->translate("Username") . "</b>, <b>" . $t->translate("Password") . "</b> " . $t->translate("and") . " <b>" . $t->translate("E-Mail") . "</b>!"); break;
# the Free Software Foundation; either version 2 or later of the GPL. # # $Id: req_show.php,v 1.6 2004/11/24 10:08:11 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align); $be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php if (!isset($reqid) || empty($reqid)) { if (!isset($offset) || empty($offset) || $offset < 1) { $offset = 0; } if (!isset($limit) || empty($limit) || $limit < 1) { $limit = 25; } $msg = "[ "; if ($offset > 0) { $new_offset = $offset - $limit; if ($new_offset < 0) {
# the Free Software Foundation; either version 2 or later of the GPL. # # $Id: req_manage.php,v 1.3 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $blist = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php if (empty($auth->auth["uname"])) { $be->box_full($t->translate("Not logged in"), $t->translate("Please login first")); } else { $username = $auth->auth["uname"]; switch ($option) { case "delete": $db->query("DELETE from requests WHERE username='******' AND reqid='{$reqid}'"); if ($db->affected_rows() == 1) { $bx->box_full($t->translate("Success"), $t->translate("Request deleted")); } else { $bx->box_full($t->translate("Error"), $t->translate("Request wasn't deleted"));
$num = $db3->f("COUNT(*)"); stats_display($t->translate($db2->f("weighting")), $num, $url, $urlquery, $total_number_dev); } } stats_end(); break; // Developers by Programming Languages/Tools // Developers by Programming Languages/Tools case "prog_languages": stats_title($t->translate("Developers listed by Programming Languages/Tools")); $url = "0"; // No URL in function stats_display $urlquery = "0"; // No URL query in function stats_display $db2 = new DB_DevCounter(); $db3 = new DB_DevCounter(); $db->query("SELECT * FROM prog_languages"); while ($db->next_record()) { stats_subtitle($t->translate($db->f("language"))); $db2->query("SELECT * FROM weightings"); while ($db2->next_record()) { $db3->query("SELECT COUNT(*) FROM prog_language_values WHERE " . $db->f("colname") . "='" . $db2->f("weightid") . "'"); $db3->next_record(); $num = $db3->f("COUNT(*)"); stats_display($t->translate($db2->f("weighting")), $num, $url, $urlquery, $total_number_dev); } } stats_end(); break; // Developers by Nationality // Developers by Nationality
# the Free Software Foundation; either version 2 or later of the GPL. # # $Id: pmess_manage.php,v 1.3 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $blist = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php if (empty($auth->auth["uname"])) { $be->box_full($t->translate("Not logged in"), $t->translate("Please login first")); } else { $username = $auth->auth["uname"]; switch ($option) { case "delete": $db->query("DELETE from pmessages WHERE pmessto='{$username}' AND pmessid='{$pmessid}'"); if ($db->affected_rows() == 1) { $bx->box_full($t->translate("Success"), $t->translate("Message deleted")); } else { $bx->box_full($t->translate("Error"), $t->translate("Message wasn't deleted"));
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: mailform.php,v 1.8 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php $db->query("SELECT * from extra_perms WHERE username='******'"); if ($db->num_rows() == 0) { $be->box_full($t->translate("Error"), $t->translate("Unknown Developer")); } else { $db->next_record(); //echo ".- ".$db->f("username").$db->num_rows()." -."; if ($db->f("contact") == "yes") { $bx->box_begin(); $bx->box_title($t->translate("contact developer")); $bx->box_body_begin(); htmlp_form_action("sendform.php", "", "POST");
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: searchdev.php,v 1.8 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php $bx->box_begin(); $bx->box_title($t->translate("{$sys_name} Search by Category")); $bx->box_body_begin(); echo "<table border=0 width=100% cellspacing=5>\n"; echo "<tr><td><a href=\"" . $sess->url("searchdev.php?option=abilities") . "\">" . $t->translate("Programming & Computer Abilities") . "</a></td>\n"; echo "<td><a href=\"" . $sess->url("searchdev.php?option=projects") . "\">" . $t->translate("Projects") . "</a></td></tr>\n"; echo "<tr><td><a href=\"" . $sess->url("searchdev.php?option=country") . "\">" . $t->translate("Countries") . "</a></td>\n"; echo "<td><a href=\"" . $sess->url("searchdev.php?option=lang") . "\">" . $t->translate("Spoken Languages") . "</a></td></tr>\n"; echo "<tr><td colspan=2><center><a href=\"" . $sess->url("searchdev.php?option=allinone") . "\">" . $t->translate("All in one") . "</a></center></td></tr>\n"; echo "</table>\n"; $bx->box_body_end();
<h3><?php echo $sys_name; ?> Database Connection</h3> <ul> <li>I am now going to try to create a DB_<?php echo $sys_name; ?> database connection.<br>If an error occures, then you should look at these points and fix them before proceeding: <ul> <li>Have you introduced the correct database parameters (<i>Host</i>, <i>Database</i> name, <i>User</i> name and <i>Password</i>) in the include/local.inc file? <li>Have you created the database tables and set the defaults? (you've got them in the <i>sql</i> subdirectory) <li>Is your database running? ;-) </ul> <?php $db = new DB_DevCounter(); if ($db->query("SELECT * FROM auth_user")) { ?> <li><b><font color="green">Created a DB_<?php echo $sys_name; ?> database connection successfully.</font></b></li> <?php } ?> </ul> <p>[ <a href="install.php">Go back</a> ] [ <a href="install.php?action=check_session">Next</a> ]
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: backend.php,v 1.9 2004/03/02 11:26:12 helix Exp $ # ###################################################################### require "./include/prepend.php3"; header("Content-Type: text/xml"); // Disabling cache header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Pragma: no-cache"); // HTTP/1.0 require "./include/config.inc"; require "./include/lib.inc"; $db = new DB_DevCounter(); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n"; echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n"; echo "<rss version=\"0.91\">\n"; echo " <channel>\n"; echo " <title>" . htmlspecialchars($sys_name) . "</title>\n"; echo " <link>" . $sys_url . "</link>\n"; echo " <description>" . $sys_name . " - " . $sys_title . "</description>\n"; echo " <language>en-us</language>\n"; echo " <image>\n"; echo " <title>" . htmlspecialchars($sys_name) . "</title>\n"; echo " <url>" . $sys_url . $sys_logo_image . "</url>\n"; echo " <link>" . $sys_url . "</link>\n"; echo " <description>" . htmlspecialchars($sys_name . " - " . $sys_title) . "</description>\n"; echo " <width>66</width>\n";
# # $Id: admwatch.php,v 1.6 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align); $db2 = new DB_DevCounter(); $db3 = new DB_DevCounter(); ?> <!-- content --> <?php if (!isset($notify) && $config_perm_admwatch != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admwatch))) { $be->box_full($t->translate("Error"), $t->translate("Access denied")); } else { $db->query("SELECT colname FROM prog_abilities WHERE translation='English'"); while ($db->next_record()) { $abilnam[] = $db->f("colname"); } $db->query("SELECT colname FROM prog_languages"); while ($db->next_record()) { $langnam[] = $db->f("colname"); }
# the Free Software Foundation; either version 2 or later of the GPL. # # $Id: questionaire.php,v 1.8 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); $db3 = new DB_DevCounter(); ?> <!-- content --> <?php if (empty($auth->auth["uname"])) { $be->box_full($t->translate("Not logged in"), $t->translate("Please login first")); } else { $bx->box_begin(); $bx->box_title($t->translate("Personal Data")); $bx->box_body_begin(); echo "<table border=0 width=100% align=center cellspacing=0 cellpadding=3>\n"; htmlp_form_action("insert.php", "", "POST"); echo "\n"; $username = $auth->auth["uname"]; htmlp_form_hidden("username", $username);
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: users.php,v 1.10 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php if ($config_perm_users != "all" && (!isset($perm) || !$perm->have_perm($config_perm_users))) { $be->box_full($t->translate("Error"), $t->translate("Access denied")); } else { if (!isset($by) || empty($by)) { $by = "%"; } if (!isset($offset) || empty($offset) || $offset < 1) { $offset = 0; } if (!isset($limit) || empty($limit) || $limit < 1) { $limit = 25;
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: req_edit.php,v 1.3 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); ?> <!-- content --> <?php $counter = 0; if (empty($auth->auth["uname"])) { $be->box_full($t->translate("Not logged in"), $t->translate("Please login first")); } else { $username = $auth->auth["uname"]; $db->query("SELECT * FROM requests WHERE reqid='{$reqid}' AND username='******'"); if ($db->num_rows() == 1) { $db->next_record(); $bx->box_begin(); $bx->box_title($t->translate("edit request")); $bx->box_body_begin();
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: backend_request.php,v 1.1 2004/06/30 12:56:18 helix Exp $ # ###################################################################### require "./include/prepend.php3"; header("Content-Type: text/xml"); // Disabling cache header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Pragma: no-cache"); // HTTP/1.0 require "./include/config.inc"; require "./include/lib.inc"; $db = new DB_DevCounter(); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n"; echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n"; echo "<rss version=\"0.91\">\n"; echo " <channel>\n"; echo " <title>" . htmlspecialchars($sys_name) . "</title>\n"; echo " <link>" . $sys_url . "</link>\n"; echo " <description>" . $sys_name . " - " . $sys_title . "</description>\n"; echo " <language>en-us</language>\n"; echo " <image>\n"; echo " <title>" . htmlspecialchars($sys_name) . "</title>\n"; echo " <url>" . $sys_url . $sys_logo_image . "</url>\n"; echo " <link>" . $sys_url . "</link>\n"; echo " <description>" . htmlspecialchars($sys_name . " - " . $sys_title) . "</description>\n"; echo " <width>66</width>\n";
# Form to set Developers watch for users. # # This program is free software. You can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 or later of the GPL. # # $Id: watch.php,v 1.9 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); require "./include/header.inc"; $bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); $db3 = new DB_DevCounter(); ?> <!-- content --> <?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;
# the Free Software Foundation; either version 2 or later of the GPL. # # $Id: update.php,v 1.7 2004/03/02 09:22:58 helix Exp $ # ###################################################################### require "./include/prepend.php3"; page_open(array("sess" => "DevCounter_Session")); if (isset($auth) && !empty($auth->auth["perm"])) { page_close(); page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm")); } require "./include/header.inc"; $bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align); $be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align); $db2 = new DB_DevCounter(); $db3 = new DB_DevCounter(); ?> <!-- content --> <?php if (empty($auth->auth["uname"])) { $bx->box_begin(); $bx->box_title($t->translate("Not logged in")); $bx->box_body_begin(); echo $t->translate("Please login first") . "\n"; $bx->box_body_end(); $bx->box_end(); } else { $bx->box_begin(); $bx->box_title($t->translate("Personal Data")); $bx->box_body_begin();