phpwebapp-commits Mailing List for phpWebApp (Page 20)
Brought to you by:
dashohoxha
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(15) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2003 |
Jan
|
Feb
(43) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(194) |
Sep
(60) |
Oct
(6) |
Nov
|
Dec
(16) |
| 2004 |
Jan
(73) |
Feb
(13) |
Mar
(5) |
Apr
|
May
(5) |
Jun
|
Jul
(183) |
Aug
|
Sep
(5) |
Oct
(30) |
Nov
|
Dec
|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(1) |
Jun
(35) |
Jul
(17) |
Aug
(2) |
Sep
(6) |
Oct
(19) |
Nov
(108) |
Dec
|
| 2006 |
Jan
(10) |
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dashamir H. <das...@us...> - 2004-01-15 14:53:46
|
Update of /cvsroot/phpwebapp/top10/templates/admin/users
In directory sc8-pr-cvs1:/tmp/cvs-serv28809/templates/admin/users
Modified Files:
Tag: maisp
adduser.html
Log Message:
small fixes
Index: adduser.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/adduser.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** adduser.html 14 Jan 2004 14:30:36 -0000 1.1.2.1
--- adduser.html 15 Jan 2004 14:53:43 -0000 1.1.2.2
***************
*** 1,3 ****
! <h3>Add New User</h3>
<table width="100%" cellspacing="1" cellpadding="2" bgcolor="#dddddd">
<form name="adduser" onsubmit="return false;">
--- 1,3 ----
! <h2>Add New User</h2>
<table width="100%" cellspacing="1" cellpadding="2" bgcolor="#dddddd">
<form name="adduser" onsubmit="return false;">
|
|
From: Dashamir H. <das...@us...> - 2004-01-15 14:53:46
|
Update of /cvsroot/phpwebapp/top10/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv28809/templates
Modified Files:
Tag: maisp
module.php
Log Message:
small fixes
Index: module.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/module.php,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -C2 -d -r1.5.2.2 -r1.5.2.3
*** module.php 14 Jan 2004 16:26:00 -0000 1.5.2.2
--- module.php 15 Jan 2004 14:53:43 -0000 1.5.2.3
***************
*** 70,75 ****
WebApp::setSVar("menu->selected", "preference_list");
WebApp::setSVar("module", "preference_list");
- $username = $event_args["username"];
- WebApp::setSVar("username", $username);
//redirect event to 'preference_list.change_username'
--- 70,73 ----
|
|
From: Dashamir H. <das...@us...> - 2004-01-15 14:53:46
|
Update of /cvsroot/phpwebapp/top10/templates/edit_project
In directory sc8-pr-cvs1:/tmp/cvs-serv28809/templates/edit_project
Modified Files:
Tag: maisp
edit_project.php edit_project.js edit_project.html
Log Message:
small fixes
Index: edit_project.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.php,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -C2 -d -r1.5.2.3 -r1.5.2.4
*** edit_project.php 14 Jan 2004 16:25:59 -0000 1.5.2.3
--- edit_project.php 15 Jan 2004 14:53:43 -0000 1.5.2.4
***************
*** 177,184 ****
"proj_id" => "",
"proj_name" => "",
! "url1" => "Project Homepage",
! "url2" => "Development Page",
! //"group_id" => "",
! //"register_date" => date("Y-m-d"),
"license" => "GPL",
"prog_lang" => "PHP",
--- 177,182 ----
"proj_id" => "",
"proj_name" => "",
! "url1" => "http://Project Homepage",
! "url2" => "http://Development Page",
"license" => "GPL",
"prog_lang" => "PHP",
Index: edit_project.js
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.js,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -C2 -d -r1.3.2.2 -r1.3.2.3
*** edit_project.js 14 Jan 2004 16:25:59 -0000 1.3.2.2
--- edit_project.js 15 Jan 2004 14:53:43 -0000 1.3.2.3
***************
*** 25,28 ****
--- 25,35 ----
var form = document.edit_project;
+ if (form.proj_id.value=='')
+ {
+ alert("Please enter a project id.");
+ form.proj_id.focus();
+ return;
+ }
+
//collect all the input in the form
var event_args = getEventArgs(form);
Index: edit_project.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.html,v
retrieving revision 1.4.2.5
retrieving revision 1.4.2.6
diff -C2 -d -r1.4.2.5 -r1.4.2.6
*** edit_project.html 14 Jan 2004 16:25:59 -0000 1.4.2.5
--- edit_project.html 15 Jan 2004 14:53:43 -0000 1.4.2.6
***************
*** 93,97 ****
</a>
</If>
! <If condition="'{{ADMIN}}'=='true'">
<script language="javascript" src="{{./}}edit_project_adm.js"></script>
<a class="button" href="javascript:send_to_user()">
--- 93,97 ----
</a>
</If>
! <If condition="(('{{ADMIN}}'=='true') and ('{{mode}}'=='edit'))">
<script language="javascript" src="{{./}}edit_project_adm.js"></script>
<a class="button" href="javascript:send_to_user()">
|
|
From: Dashamir H. <das...@us...> - 2004-01-15 14:53:46
|
Update of /cvsroot/phpwebapp/top10/templates/proj_details
In directory sc8-pr-cvs1:/tmp/cvs-serv28809/templates/proj_details
Modified Files:
Tag: maisp
proj_details.php proj_details.db
Log Message:
small fixes
Index: proj_details.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/proj_details.php,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -C2 -d -r1.2.2.1 -r1.2.2.2
*** proj_details.php 14 Jan 2004 16:25:59 -0000 1.2.2.1
--- proj_details.php 15 Jan 2004 14:53:42 -0000 1.2.2.2
***************
*** 31,34 ****
--- 31,43 ----
{
$proj_id = $event_args["proj_id"];
+
+ //check whether there is such a project
+ $rs = WebApp::openRS("get_project_data", $event_args);
+ if ($rs->EOF())
+ {
+ WebApp::message("There is no project with id '$proj_id'.");
+ return;
+ }
+
$this->setSVar("proj_id", $proj_id);
}
Index: proj_details.db
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/proj_details.db,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** proj_details.db 24 Sep 2003 14:01:36 -0000 1.2
--- proj_details.db 15 Jan 2004 14:53:42 -0000 1.2.2.1
***************
*** 1,5 ****
<!--# -*-SQL-*- #tell emacs to use SQL mode #-->
! <Recordset ID="get_project_data">
<Query>
SELECT * FROM proj_list
--- 1,5 ----
<!--# -*-SQL-*- #tell emacs to use SQL mode #-->
! <Recordset ID="get_project_data" type="DynamicRS">
<Query>
SELECT * FROM proj_list
|
|
From: Dashamir H. <das...@us...> - 2004-01-15 14:53:46
|
Update of /cvsroot/phpwebapp/top10/templates/proj_details/comments
In directory sc8-pr-cvs1:/tmp/cvs-serv28809/templates/proj_details/comments
Modified Files:
Tag: maisp
comments.php
Log Message:
small fixes
Index: comments.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/comments/comments.php,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -C2 -d -r1.6.2.1 -r1.6.2.2
*** comments.php 14 Jan 2004 16:25:59 -0000 1.6.2.1
--- comments.php 15 Jan 2004 14:53:42 -0000 1.6.2.2
***************
*** 47,52 ****
//get the email of the user
! $username = WebApp::getSVar("username", compact("username"));
! $rs = WebApp::openRS("get_user");
if ($rs->EOF()) //no such user
{
--- 47,51 ----
//get the email of the user
! $rs = WebApp::openRS("get_user", compact("username"));
if ($rs->EOF()) //no such user
{
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:05
|
Update of /cvsroot/phpwebapp/top10/templates/preference_list
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/preference_list
Modified Files:
Tag: maisp
preference_list.php preference_list.js preference_list.html
preference_list.db
Log Message:
removed some sourceforge references etc.
Index: preference_list.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/preference_list/preference_list.php,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -d -r1.5 -r1.5.2.1
*** preference_list.php 5 Jan 2004 14:42:00 -0000 1.5
--- preference_list.php 14 Jan 2004 16:25:59 -0000 1.5.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
***************
*** 31,34 ****
--- 31,48 ----
function on_set_username($event_args)
{
+ $username = $event_args["username"];
+
+ //check that the username exists
+ $rs = WebApp::openRS("get_user", $event_args);
+ if ($rs->EOF()) //no such user
+ {
+ $msg = "There is no user with username '$username'.";
+ WebApp::message($msg);
+ return;
+ }
+
+ //set the new username
+ WebApp::setSVar("username", $username);
+
//merge the DB and session pref lists,
//taking care to remove duplications
***************
*** 57,60 ****
--- 71,88 ----
function on_change_username($event_args)
{
+ $username = $event_args["username"];
+
+ //check that the username exists
+ $rs = WebApp::openRS("get_user", $event_args);
+ if ($rs->EOF()) //no such user
+ {
+ $msg = "There is no user with username '$username'.";
+ WebApp::message($msg);
+ return;
+ }
+
+ //set the new username
+ WebApp::setSVar("username", $username);
+
//discard the previous preference list and
//instead of it place the preference list of
***************
*** 83,88 ****
//send a confirmation request e-mail
$username = WebApp::getSVar("username");
! //$to = $username."@users.sourceforge.net";
! $to = "dasho";
$subject = "Top10: Confirmation Required";
$message = $this->get_message_body($request_id);
--- 111,116 ----
//send a confirmation request e-mail
$username = WebApp::getSVar("username");
! $rs = WebApp::openRS("get_user");
! $to = $rs->Field("email");
$subject = "Top10: Confirmation Required";
$message = $this->get_message_body($request_id);
***************
*** 91,95 ****
//display a confirmation message
$msg = "A confirmation e-mail has been sent \n"
! . "to $use...@us... .\n"
. "If you don't confirm the changes in 24 hours, \n"
. "they will be discarded.";
--- 119,123 ----
//display a confirmation message
$msg = "A confirmation e-mail has been sent \n"
! . "to $to .\n"
. "If you don't confirm the changes in 24 hours, \n"
. "they will be discarded.";
***************
*** 273,278 ****
$message = "
The site $top10_site received a request from [$remote_addr]
! on behalf of user '$username' (at SourceForge) for saving the list
! of prefered projects, which is as follows:
$proj_list
--- 301,306 ----
$message = "
The site $top10_site received a request from [$remote_addr]
! on behalf of user '$username' for saving the list of prefered projects,
! which is as follows:
$proj_list
Index: preference_list.js
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/preference_list/preference_list.js,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1
*** preference_list.js 23 Sep 2003 14:04:14 -0000 1.1.1.1
--- preference_list.js 14 Jan 2004 16:25:59 -0000 1.1.1.1.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
***************
*** 37,42 ****
username = prompt("Set a username: ");
if (username==null) return; //canceled
! session.setVar("username", username);
! SendEvent("preference_list", "set_username");
}
else
--- 37,41 ----
username = prompt("Set a username: ");
if (username==null) return; //canceled
! SendEvent("preference_list", "set_username", "username="+username);
}
else
***************
*** 51,56 ****
username = prompt("Set a new username: ");
if (username==null) return; //canceled
! session.setVar("username", username);
! SendEvent("preference_list", "change_username");
}
}
--- 50,54 ----
username = prompt("Set a new username: ");
if (username==null) return; //canceled
! SendEvent("preference_list", "change_username", "username="+username);
}
}
Index: preference_list.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/preference_list/preference_list.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** preference_list.html 26 Sep 2003 15:32:21 -0000 1.2
--- preference_list.html 14 Jan 2004 16:25:59 -0000 1.2.2.1
***************
*** 4,8 ****
<a class="button" href="javascript:change_username()">Change Username</a>
<If condition="'{{username}}'=='guest'">
! Please identify yourself by giving your SourceForge username.
</If>
</p>
--- 4,8 ----
<a class="button" href="javascript:change_username()">Change Username</a>
<If condition="'{{username}}'=='guest'">
! Please identify yourself by giving your username.
</If>
</p>
Index: preference_list.db
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/preference_list/preference_list.db,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** preference_list.db 5 Jan 2004 14:42:00 -0000 1.2
--- preference_list.db 14 Jan 2004 16:25:59 -0000 1.2.2.1
***************
*** 9,12 ****
--- 9,19 ----
</Recordset>
+ <Recordset ID="get_user">
+ <Query>
+ SELECT * FROM users
+ WHERE username = '{{username}}'
+ </Query>
+ </Recordset>
+
<Recordset ID="get_pref_list">
<Query>
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:05
|
Update of /cvsroot/phpwebapp/top10
In directory sc8-pr-cvs1:/tmp/cvs-serv4744
Modified Files:
Tag: maisp
search_proj.php global.php
Log Message:
removed some sourceforge references etc.
Index: search_proj.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/search_proj.php,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1
*** search_proj.php 23 Sep 2003 14:04:07 -0000 1.1.1.1
--- search_proj.php 14 Jan 2004 16:26:00 -0000 1.1.1.1.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
Index: global.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/global.php,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -d -r1.3 -r1.3.2.1
*** global.php 26 Sep 2003 15:32:21 -0000 1.3
--- global.php 14 Jan 2004 16:26:00 -0000 1.3.2.1
***************
*** 9,13 ****
/** E-mail of the admin of Top10. */
! //define("ADMIN_EMAIL", "das...@us...");
! define("ADMIN_EMAIL", "dasho");
?>
\ No newline at end of file
--- 9,12 ----
/** E-mail of the admin of Top10. */
! define("ADMIN_EMAIL", "da...@ma...");
?>
\ No newline at end of file
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:05
|
Update of /cvsroot/phpwebapp/top10/templates/about
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/about
Modified Files:
Tag: maisp
about.php about.html
Log Message:
removed some sourceforge references etc.
Index: about.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/about/about.php,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1
*** about.php 23 Sep 2003 14:04:12 -0000 1.1.1.1
--- about.php 14 Jan 2004 16:26:00 -0000 1.1.1.1.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
***************
*** 26,33 ****
{
$copying = "
! Top10 is a web application for ranking and evaluating web application
! projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 26,33 ----
{
$copying = "
! Top10 is a web application for ranking and evaluating free software
! projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
Index: about.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/about/about.html,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1
*** about.html 23 Sep 2003 14:04:12 -0000 1.1.1.1
--- about.html 14 Jan 2004 16:26:00 -0000 1.1.1.1.2.1
***************
*** 3,31 ****
<h2>What is Top 10</h2>
! <p>This is a web application for ranking and evaluating web
! application projects at SourceForge. If you make a simple search at
! SourceForge you will find hundreds of web application projects:
! hundreds of frameworks, hundreds of template systems, hundreds of
! content management systems, document management systems, groupwares,
! wikis, etc. Somebody that would like to get and use an existing web
! application project will have a difficult time in choosing which one,
! and often will not be able to make the best choice. This application
! will attempt to make an evaluation and ranking of these web
! applications, thus helping to identify the best projects and helping
! the users to choose the best ones.</p>
! <p>The evaluation will be done by the developers of these web
! applications themselves and by other developers that are registered
! with SourceForge. For the time being, no other people can participate
! in the evaluation due to technical reasons (because I want to keep
! simple the identification process, without registration, passwords
! etc.; I can ensure this for people who have a SourceForge username,
! but I cannot ensure it for the others). However, I think that this is
! not a shortcoming, because web application developers can evaluate
! projects that are similar to their own better than anyone else. After
! all I want this to be an evaluation in terms of quality rather than in
! terms of popularity (votes from the many users indicate
! popularity).</p>
<p>If everybody makes an effort and tries to evaluate at least 10
--- 3,20 ----
<h2>What is Top 10</h2>
! <p>This is a web application for ranking and evaluating web application
! projects. If you make a simple search you will find hundreds of web
! application projects: hundreds of frameworks, hundreds of template systems,
! hundreds of content management systems, document management systems,
! groupwares, wikis, etc. Somebody that would like to get and use an
! existing web application project will have a difficult time in choosing
! which one, and often will not be able to make the best choice. This
! application will attempt to make an evaluation and ranking of these web
! applications, thus helping to identify the best projects and helping the
! users to choose the best ones.</p>
! <p>The evaluation will be done by the developers of these web applications
! themselves and by other developers.</p>
<p>If everybody makes an effort and tries to evaluate at least 10
***************
*** 37,56 ****
<h2>The evaluation process</h2>
! <p>Every SourceForge developer can identify 10 web application
! projects that he likes most and he can rank them according to his
! preference. The project in the first place will get 10 points, the
! project in the second place will get 9 points, and so on. He can
! enlist less than 10 projects and add others latter, as he evaluates
! them with time. Or, he can add in his list more than 10 projects with
! the aim of evaluating and ranking them later (the projects after the
! 10-th position will receive 0 points). Of course, he will be able to
! delete the projects in his list at any time, and able to change their
! ranking at any time. This ensures that the evaluation is dynamic and
! it can change during the time (e.g. if a new application project that
! is very good comes out, then it is perfectly possible for it to
! achieve the highest rankings and to be enlisted as one of the best
! projects). This also means that the evaluation process is meant to
! take a long time and to be continuous, rather than to provide instant
! results that are valid just for the time being.</p>
<p>This evaluation process is an open one, in the sense that everybody
--- 26,44 ----
<h2>The evaluation process</h2>
! <p>Every developer can identify 10 web application projects that he likes
! most and he can rank them according to his preference. The project in the
! first place will get 10 points, the project in the second place will get 9
! points, and so on. He can enlist less than 10 projects and add others
! latter, as he evaluates them with time. Or, he can add in his list more
! than 10 projects with the aim of evaluating and ranking them later (the
! projects after the 10-th position will receive 0 points). Of course, he
! will be able to delete the projects in his list at any time, and able to
! change their ranking at any time. This ensures that the evaluation is
! dynamic and it can change during the time (e.g. if a new application
! project that is very good comes out, then it is perfectly possible for it
! to achieve the highest rankings and to be enlisted as one of the best
! projects). This also means that the evaluation process is meant to take a
! long time and to be continuous, rather than to provide instant results that
! are valid just for the time being.</p>
<p>This evaluation process is an open one, in the sense that everybody
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:05
|
Update of /cvsroot/phpwebapp/top10/templates/admin/users
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/admin/users
Modified Files:
Tag: maisp
users.php users.js
Log Message:
removed some sourceforge references etc.
Index: users.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/users.php,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** users.php 14 Jan 2004 14:30:36 -0000 1.1.2.2
--- users.php 14 Jan 2004 16:25:59 -0000 1.1.2.3
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
Index: users.js
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/users.js,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** users.js 14 Jan 2004 14:30:36 -0000 1.1.2.1
--- users.js 14 Jan 2004 16:25:59 -0000 1.1.2.2
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:05
|
Update of /cvsroot/phpwebapp/top10/templates/proj_details/comments
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/proj_details/comments
Modified Files:
Tag: maisp
comments.php comments.db
Log Message:
removed some sourceforge references etc.
Index: comments.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/comments/comments.php,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -d -r1.6 -r1.6.2.1
*** comments.php 5 Jan 2004 14:41:59 -0000 1.6
--- comments.php 14 Jan 2004 16:25:59 -0000 1.6.2.1
***************
*** 46,49 ****
--- 46,71 ----
$date = $rs->Field("date");
+ //get the email of the user
+ $username = WebApp::getSVar("username", compact("username"));
+ $rs = WebApp::openRS("get_user");
+ if ($rs->EOF()) //no such user
+ {
+ //show an error message to the user
+ WebApp::message("User '$username' does not exist.");
+ //send a notification message to admin
+ $ip = $_SERVER["REMOTE_ADDR"];
+ $message = "
+ Somebody from [$ip] tried to delete the following
+ comment from project '$proj_id':
+
+ Title: $title
+ Comment: $comment
+ ";
+ $subject = "Top10: Delete Comment";
+ mail(ADMIN_EMAIL, $subject, $message);
+ return;
+ }
+ $to = $rs->Field("email");
+
//get a unique id
$request_id = md5(uniqid(rand()));
***************
*** 55,60 ****
//send a notification e-mail to the user
- $to = "dasho";
- //$to = $username."@users.sourceforge.net";
$subject = "Top10: Delete Comment";
$top10_site = "http://" . $_SERVER["HTTP_HOST"] . APP_URL;
--- 77,80 ----
***************
*** 82,86 ****
//display a confirmation message
$msg = "A confirmation e-mail has been sent \n"
! . "to $use...@us... .\n"
. "If you don't confirm the delete request in 24 hours, \n"
. "it will be discarded.";
--- 102,106 ----
//display a confirmation message
$msg = "A confirmation e-mail has been sent \n"
! . "to $to .\n"
. "If you don't confirm the delete request in 24 hours, \n"
. "it will be discarded.";
Index: comments.db
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/comments/comments.db,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -d -r1.6 -r1.6.2.1
*** comments.db 5 Jan 2004 14:41:59 -0000 1.6
--- comments.db 14 Jan 2004 16:25:59 -0000 1.6.2.1
***************
*** 44,47 ****
--- 44,54 ----
</Recordset>
+ <Recordset ID="get_user">
+ <Query>
+ SELECT * FROM users
+ WHERE username = '{{username}}'
+ </Query>
+ </Recordset>
+
<dbCommand ID="insert_request">
<Query>
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:05
|
Update of /cvsroot/phpwebapp/top10/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates
Modified Files:
Tag: maisp
module.php
Log Message:
removed some sourceforge references etc.
Index: module.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/module.php,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -C2 -d -r1.5.2.1 -r1.5.2.2
*** module.php 13 Jan 2004 14:34:02 -0000 1.5.2.1
--- module.php 14 Jan 2004 16:26:00 -0000 1.5.2.2
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:05
|
Update of /cvsroot/phpwebapp/top10/templates/edit_project
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/edit_project
Modified Files:
Tag: maisp
edit_project.php edit_project.js edit_project.html
Log Message:
removed some sourceforge references etc.
Index: edit_project.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.php,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -C2 -d -r1.5.2.2 -r1.5.2.3
*** edit_project.php 12 Jan 2004 15:21:26 -0000 1.5.2.2
--- edit_project.php 14 Jan 2004 16:25:59 -0000 1.5.2.3
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
***************
*** 122,126 ****
//send a notification e-mail to the user
- //$to = "dasho";
$to = $email;
$subject = "Top10: Modify Project '$proj_id'";
--- 122,125 ----
Index: edit_project.js
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.js,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -d -r1.3.2.1 -r1.3.2.2
*** edit_project.js 12 Jan 2004 15:21:26 -0000 1.3.2.1
--- edit_project.js 14 Jan 2004 16:25:59 -0000 1.3.2.2
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
Index: edit_project.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/edit_project/edit_project.html,v
retrieving revision 1.4.2.4
retrieving revision 1.4.2.5
diff -C2 -d -r1.4.2.4 -r1.4.2.5
*** edit_project.html 12 Jan 2004 15:45:24 -0000 1.4.2.4
--- edit_project.html 14 Jan 2004 16:25:59 -0000 1.4.2.5
***************
*** 7,12 ****
<If condition="'{{mode}}'!='add'">
! <h2>Edit Project: <a href="http://sourceforge.net/projects/{{proj_id}}"
! target="_blank">{{proj_name}} ({{proj_id}})</a></h2>
</If>
--- 7,13 ----
<If condition="'{{mode}}'!='add'">
! <h2>Edit Project:
! <a href="{{url1}}" target="_blank">{{proj_name}} ({{proj_id}})</a>
! </h2>
</If>
***************
*** 32,44 ****
</td>
</tr>
- <!--#
- <tr>
- <td bgcolor="eeeeee">SourceForge group id:</td>
- <td bgcolor="#ffffff">
- <input type="text" size="30" name="group_id" value="{{group_id}}"
- onfocus="select()">
- </td>
- </tr>
- #-->
<tr>
<td bgcolor="eeeeee">URL1:</td>
--- 33,36 ----
***************
*** 53,66 ****
</td>
</tr>
- <!--#
- <tr>
- <td bgcolor="eeeeee">Register Date:</td>
- <td bgcolor="#ffffff">
- <input type="text" size="12" name="register_date"
- value="{{register_date}}"
- onfocus="select()">
- </td>
- </tr>
- #-->
<tr>
<td bgcolor="eeeeee">License:</td>
--- 45,48 ----
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:04
|
Update of /cvsroot/phpwebapp/top10/templates/proj_list/filter
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/proj_list/filter
Modified Files:
Tag: maisp
filter.php filter.js
Log Message:
removed some sourceforge references etc.
Index: filter.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/filter/filter.php,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** filter.php 2 Oct 2003 07:09:40 -0000 1.2
--- filter.php 14 Jan 2004 16:25:59 -0000 1.2.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
Index: filter.js
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/filter/filter.js,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** filter.js 2 Oct 2003 07:09:40 -0000 1.2
--- filter.js 14 Jan 2004 16:25:59 -0000 1.2.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:03
|
Update of /cvsroot/phpwebapp/top10/templates/admin/login
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/admin/login
Modified Files:
Tag: maisp
on.login.php
Log Message:
removed some sourceforge references etc.
Index: on.login.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/login/on.login.php,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** on.login.php 26 Sep 2003 15:31:13 -0000 1.1
--- on.login.php 14 Jan 2004 16:25:59 -0000 1.1.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:03
|
Update of /cvsroot/phpwebapp/top10/templates/confirm
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/confirm
Modified Files:
Tag: maisp
confirm.php
Log Message:
removed some sourceforge references etc.
Index: confirm.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/confirm/confirm.php,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -C2 -d -r1.7 -r1.7.2.1
*** confirm.php 5 Jan 2004 14:42:00 -0000 1.7
--- confirm.php 14 Jan 2004 16:25:59 -0000 1.7.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:03
|
Update of /cvsroot/phpwebapp/top10/templates/menu
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/menu
Modified Files:
Tag: maisp
menu.php
Log Message:
removed some sourceforge references etc.
Index: menu.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/menu/menu.php,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -C2 -d -r1.2.2.1 -r1.2.2.2
*** menu.php 13 Jan 2004 14:34:01 -0000 1.2.2.1
--- menu.php 14 Jan 2004 16:25:59 -0000 1.2.2.2
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:03
|
Update of /cvsroot/phpwebapp/top10/templates/proj_list/footer
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/proj_list/footer
Modified Files:
Tag: maisp
list_footer.php list_footer.js
Log Message:
removed some sourceforge references etc.
Index: list_footer.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/footer/list_footer.php,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -d -r1.4 -r1.4.2.1
*** list_footer.php 5 Jan 2004 14:41:59 -0000 1.4
--- list_footer.php 14 Jan 2004 16:25:59 -0000 1.4.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
Index: list_footer.js
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/footer/list_footer.js,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -d -r1.5 -r1.5.2.1
*** list_footer.js 2 Oct 2003 07:09:40 -0000 1.5
--- list_footer.js 14 Jan 2004 16:25:59 -0000 1.5.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:03
|
Update of /cvsroot/phpwebapp/top10/templates/proj_details
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/proj_details
Modified Files:
Tag: maisp
proj_details.php
Log Message:
removed some sourceforge references etc.
Index: proj_details.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/proj_details.php,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** proj_details.php 24 Sep 2003 14:01:36 -0000 1.2
--- proj_details.php 14 Jan 2004 16:25:59 -0000 1.2.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 16:26:03
|
Update of /cvsroot/phpwebapp/top10/templates/proj_list
In directory sc8-pr-cvs1:/tmp/cvs-serv4744/templates/proj_list
Modified Files:
Tag: maisp
proj_list.php
Log Message:
removed some sourceforge references etc.
Index: proj_list.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/proj_list.php,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -d -r1.4 -r1.4.2.1
*** proj_list.php 2 Oct 2003 07:09:40 -0000 1.4
--- proj_list.php 14 Jan 2004 16:25:59 -0000 1.4.2.1
***************
*** 2,8 ****
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating web application projects at SourceForge.
! Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
--- 2,8 ----
/*
This file is part of Top10. Top10 is a web application for ranking
! and evaluating free software projects.
! Copyright (C) 2003, 2004 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
|
|
From: Dashamir H. <das...@us...> - 2004-01-14 14:30:39
|
Update of /cvsroot/phpwebapp/top10/templates/admin/users
In directory sc8-pr-cvs1:/tmp/cvs-serv8756/templates/admin/users
Modified Files:
Tag: maisp
users.php users.html users.db
Added Files:
Tag: maisp
users.js adduser.html
Log Message:
add a new user (evaluator)
--- NEW FILE: users.js ---
// -*-C-*- //tell emacs to use C mode
/*
This file is part of Top10. Top10 is a web application for ranking
and evaluating web application projects at SourceForge.
Copyright 2003 Dashamir Hoxha, das...@us...
Top10 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 of the License, or (at your
option) any later version.
Top10 is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with Top10; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
function adduser()
{
var form = document.adduser;
var username = form.username.value;
var realname = form.realname.value;
var email = form.email.value;
var homepage = form.homepage.value;
var status = form.status.value;
var event_args = "username=" + username + ";"
+ "realname=" + realname + ";"
+ "email=" + email + ";"
+ "homepage=" + homepage + ";"
+ "status=" + status;
SendEvent("users", "adduser", event_args);
}
--- NEW FILE: adduser.html ---
<h3>Add New User</h3>
<table width="100%" cellspacing="1" cellpadding="2" bgcolor="#dddddd">
<form name="adduser" onsubmit="return false;">
<tr>
<td bgcolor="#eeeeee" align="center">username</td>
<td bgcolor="#eeeeee" align="center">Real Name</td>
<td bgcolor="#eeeeee" align="center">E-mail</td>
<td bgcolor="#eeeeee" align="center">Homepage</td>
<td bgcolor="#eeeeee" align="center">Status</td>
<td bgcolor="#eeeeee" align="center"></td>
</tr>
<tr>
<td bgcolor="white">
<input type="text" name="username" value=""
class="textbox" size="10" onfocus="select()" />
</td>
<td bgcolor="white">
<input type="text" name="realname" value=""
class="textbox" size="20" onfocus="select()" />
</td>
<td bgcolor="white">
<input type="text" name="email" value=""
class="textbox" size="20" onfocus="select()" />
</td>
<td bgcolor="white">
<input type="text" name="homepage" value=""
class="textbox" size="20" onfocus="select()" />
</td>
<td bgcolor="white" align="center">
<input type="text" name="status" value="private"
class="textbox" size="5" onfocus="select()" />
</td>
<td bgcolor="white" align="center">
<a class="button" href="javascript:adduser()">Add</a>
</td>
</tr>
</form>
</table>
Index: users.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/users.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** users.php 13 Jan 2004 15:48:24 -0000 1.1.2.1
--- users.php 14 Jan 2004 14:30:36 -0000 1.1.2.2
***************
*** 29,32 ****
--- 29,36 ----
}
+ function on_adduser($event_args)
+ {
+ WebApp::execDBCmd("adduser", $event_args);
+ }
}
?>
\ No newline at end of file
Index: users.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/users.html,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** users.html 13 Jan 2004 15:48:24 -0000 1.1.2.2
--- users.html 14 Jan 2004 14:30:36 -0000 1.1.2.3
***************
*** 6,11 ****
</IfEmpty>
<Header>
! <table cellspacing="1" cellpadding="2" bgcolor="#dddddd">
! <form name="proj_list" onsubmit="return false;">
<tr>
<td bgcolor="#eeeeee" align="center" width="2%">Nr</td>
--- 6,11 ----
</IfEmpty>
<Header>
! <table width="100%" cellspacing="1" cellpadding="2" bgcolor="#dddddd">
! <form name="users" onsubmit="return false;">
<tr>
<td bgcolor="#eeeeee" align="center" width="2%">Nr</td>
***************
*** 14,18 ****
<td bgcolor="#eeeeee" align="center">E-mail</td>
<td bgcolor="#eeeeee" align="center">Homepage</td>
! <td bgcolor="#eeeeee" align="center">Public</td>
<td bgcolor="#eeeeee" align="center">Save</td>
</tr>
--- 14,18 ----
<td bgcolor="#eeeeee" align="center">E-mail</td>
<td bgcolor="#eeeeee" align="center">Homepage</td>
! <td bgcolor="#eeeeee" align="center">Status</td>
<td bgcolor="#eeeeee" align="center">Save</td>
</tr>
***************
*** 37,41 ****
</td>
<td bgcolor="white" align="center">
! <input type="checkbox" name="public" value="{{public}}">
</td>
<td bgcolor="white" align="center">
--- 37,42 ----
</td>
<td bgcolor="white" align="center">
! <input type="text" name="status" value="{{status}}"
! class="textbox" size="5" onfocus="select()" />
</td>
<td bgcolor="white" align="center">
***************
*** 50,52 ****
--- 51,57 ----
</Footer>
</Repeat>
+
+ <Include SRC="{{./}}adduser.html" />
+
</WebBox>
+
Index: users.db
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/users.db,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** users.db 13 Jan 2004 15:48:24 -0000 1.1.2.1
--- users.db 14 Jan 2004 14:30:36 -0000 1.1.2.2
***************
*** 6,7 ****
--- 6,19 ----
</Query>
</Recordset>
+
+ <dbCommand ID="adduser">
+ <Query>
+ INSERT INTO users
+ SET
+ username = '{{username}}',
+ realname = '{{realname}}',
+ email = '{{email}}',
+ homepage = '{{homepage}}',
+ status = '{{status}}'
+ </Query>
+ </dbCommand>
|
|
From: Dashamir H. <das...@us...> - 2004-01-13 15:48:27
|
Update of /cvsroot/phpwebapp/top10/templates/admin/users
In directory sc8-pr-cvs1:/tmp/cvs-serv10917/templates/admin/users
Modified Files:
Tag: maisp
users.html
Added Files:
Tag: maisp
users.php users.db users.css footer.html
Log Message:
the list of users (evaluators)
--- NEW FILE: users.php ---
<?php
/*
This file is part of Top10. Top10 is a web application for ranking
and evaluating web application projects at SourceForge.
Copyright 2003 Dashamir Hoxha, das...@us...
Top10 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 of the License, or (at your
option) any later version.
Top10 is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with Top10; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
class users extends WebObject
{
function on_next($event_args)
{
$page = $event_args["page"];
WebApp::setSVar("users_rs->current_page", $page);
}
}
?>
--- NEW FILE: users.db ---
<!--# -*-SQL-*- #tell emacs to use the SQL mode #-->
<Recordset ID="users_rs" type="PagedRS" recs_per_page="10">
<Query>
SELECT * FROM users
</Query>
</Recordset>
--- NEW FILE: users.css ---
.textbox, textarea
{
border: none;
font-family: arial, helvetica, sans-se;
font-size: 12pt;
color: #000044;
}
#footer-table
{
width: 100%;
background-color: #eeeeee;
border: 1px solid #dddddd;
margin-top: 3px;
margin-bottom: 5px;
}
--- NEW FILE: footer.html ---
<table id="footer-table" cellspacing="0" cellpadding="0">
<tr>
<td>
Total: {{AllRecs}} users
</td>
<td width="10"></td>
<td>
Page {{CurrPage}} of {{LastPage}}
</td>
<td width="10"></td>
<td>
<If condition="'{{CurrPage}}'<>'{{PrevPage}}'">
<input type="button" value="<<"
onclick="SendEvent('users','next','page=1')">
<input type="button" value=" < "
onclick="SendEvent('users','next','page={{PrevPage}}')">
</If>
<If condition="'{{CurrPage}}'<>'{{LastPage}}'">
<input type="button" value=" > "
onclick="SendEvent('users','next','page={{NextPage}}')">
<input type="button" value=">>"
onclick="SendEvent('users','next','page={{LastPage}}')">
</If>
</td>
</tr>
</table>
Index: users.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/users.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** users.html 13 Jan 2004 14:34:01 -0000 1.1.2.1
--- users.html 13 Jan 2004 15:48:24 -0000 1.1.2.2
***************
*** 1 ****
! users.html
--- 1,52 ----
! <WebBox ID="users">
! <br>
! <Repeat rs="users_rs">
! <IfEmpty>
! No Users Selected! <br>
! </IfEmpty>
! <Header>
! <table cellspacing="1" cellpadding="2" bgcolor="#dddddd">
! <form name="proj_list" onsubmit="return false;">
! <tr>
! <td bgcolor="#eeeeee" align="center" width="2%">Nr</td>
! <td bgcolor="#eeeeee" align="center">username</td>
! <td bgcolor="#eeeeee" align="center">Real Name</td>
! <td bgcolor="#eeeeee" align="center">E-mail</td>
! <td bgcolor="#eeeeee" align="center">Homepage</td>
! <td bgcolor="#eeeeee" align="center">Public</td>
! <td bgcolor="#eeeeee" align="center">Save</td>
! </tr>
! </Header>
! <RepeatBody>
! <tr>
! <td bgcolor="white" width="2%" align="center">{{CurrentRecNr}}</td>
! <td bgcolor="white">
! {{username}}
! </td>
! <td bgcolor="white">
! <input type="text" name="realname" value="{{realname}}"
! class="textbox" size="20" onfocus="select()" />
! </td>
! <td bgcolor="white">
! <input type="text" name="email" value="{{email}}"
! class="textbox" size="20" onfocus="select()" />
! </td>
! <td bgcolor="white">
! <input type="text" name="homepage" value="{{homepage}}"
! class="textbox" size="20" onfocus="select()" />
! </td>
! <td bgcolor="white" align="center">
! <input type="checkbox" name="public" value="{{public}}">
! </td>
! <td bgcolor="white" align="center">
! <a class="button" href="">Save</a>
! </td>
! </tr>
! </RepeatBody>
! <Footer>
! </form>
! </table>
! <Include SRC="{{./}}footer.html" />
! </Footer>
! </Repeat>
! </WebBox>
|
|
From: Dashamir H. <das...@us...> - 2004-01-13 14:34:05
|
Update of /cvsroot/phpwebapp/top10/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv19815/templates
Modified Files:
Tag: maisp
module.php
Log Message:
Added modules 'users' and 'modify' that will be used by admin.
Index: module.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/module.php,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -C2 -d -r1.5 -r1.5.2.1
*** module.php 5 Jan 2004 14:42:00 -0000 1.5
--- module.php 13 Jan 2004 14:34:02 -0000 1.5.2.1
***************
*** 88,91 ****
--- 88,97 ----
$module_file = "about/about.html";
break;
+ case "users":
+ $module_file = "admin/users/users.html";
+ break;
+ case "modify":
+ $module_file = "admin/modify/modify.html";
+ break;
case "proj_list":
$module_file = "proj_list/proj_list.html";
|
|
From: Dashamir H. <das...@us...> - 2004-01-13 14:34:05
|
Update of /cvsroot/phpwebapp/top10/templates/admin/users
In directory sc8-pr-cvs1:/tmp/cvs-serv19815/templates/admin/users
Added Files:
Tag: maisp
users.html
Log Message:
Added modules 'users' and 'modify' that will be used by admin.
--- NEW FILE: users.html ---
users.html
|
|
From: Dashamir H. <das...@us...> - 2004-01-13 14:34:05
|
Update of /cvsroot/phpwebapp/top10/templates/menu
In directory sc8-pr-cvs1:/tmp/cvs-serv19815/templates/menu
Modified Files:
Tag: maisp
menu.php menu.html
Log Message:
Added modules 'users' and 'modify' that will be used by admin.
Index: menu.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/menu/menu.php,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** menu.php 24 Sep 2003 14:01:36 -0000 1.2
--- menu.php 13 Jan 2004 14:34:01 -0000 1.2.2.1
***************
*** 40,43 ****
--- 40,45 ----
WebApp::addVars( array(
"about" => "menu-tab",
+ "users" => "menu-tab",
+ "modify" => "menu-tab",
"proj_list" => "menu-tab",
"proj_details" => "menu-tab",
Index: menu.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/menu/menu.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** menu.html 24 Sep 2003 14:01:37 -0000 1.2
--- menu.html 13 Jan 2004 14:34:01 -0000 1.2.2.1
***************
*** 8,11 ****
--- 8,17 ----
<td class="{{preference_list}}"><a href="javascript:select_tab('preference_list')">Preference List</a></td>
<td width="3"></td>
+ <If condition="'{{ADMIN}}'=='true'">
+ <td class="{{users}}"><a href="javascript:select_tab('users')">Users</a></td>
+ <td width="3"></td>
+ <td class="{{modify}}"><a href="javascript:select_tab('modify')">Modify</a></td>
+ <td width="3"></td>
+ </If>
<td class="{{about}}"><a href="javascript:select_tab('about')">About Top10</a></td>
</tr>
|
|
From: Dashamir H. <das...@us...> - 2004-01-13 14:34:05
|
Update of /cvsroot/phpwebapp/top10/templates/admin/modify
In directory sc8-pr-cvs1:/tmp/cvs-serv19815/templates/admin/modify
Added Files:
Tag: maisp
modify.html
Log Message:
Added modules 'users' and 'modify' that will be used by admin.
--- NEW FILE: modify.html ---
modify.html
|