|
From: mdw c. <myd...@li...> - 2002-02-19 11:05:51
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/tools/events
Modified Files:
session.php
Log Message:
Fixing the strange bug of 'INVALID CREDENTIAL'
even if you enter a good login/pass mydynaweb said : your login/pass are not good....
Now it works
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/tools/events/session.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- session.php 23 Jan 2002 23:36:38 -0000 1.9
+++ session.php 19 Feb 2002 11:05:50 -0000 1.10
@@ -83,7 +83,6 @@
// call look_for_session_in_db
if (look_for_session_in_db ($login, $SESSION, $DBH)) {
-
return (1);
}
@@ -137,12 +136,7 @@
{
// look for session in the db...
- if (LOGIN_DELAY) {
- $login_delay = LOGIN_DELAY;
- }
- else {
- $login_delay = 30;
- }
+ $login_delay = 30;
$sql = "SELECT last_update
FROM session
@@ -152,10 +146,9 @@
$rqt->query($DBH, $sql);
$row = $rqt->getrow();
$there_is_a_session = $rqt->numrows();
-
if ($there_is_a_session) {
// session is still in db...
-
+
if ($row[0] < (time() - $login_delay * 60)) {
// session has expired, we delete it from db
|
|
From: mdw c. <myd...@li...> - 2002-02-19 11:06:20
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
members.php
Log Message:
Fixing the strange bug of 'INVALID CREDENTIAL'
even if you enter a good login/pass mydynaweb said : your login/pass are not good....
Now it works
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/members.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- members.php 8 Nov 2001 03:11:12 -0000 1.1
+++ members.php 19 Feb 2002 11:05:50 -0000 1.2
@@ -9,7 +9,6 @@
check_session($DYNA_SESSION, $DBH);
-
$titre = translate("WELCOME",$DBH)." $UserID !";
$chapeau = "";
$texte = "<a class=\"lienpage\" href=\"add_news.php\">".translate("POST_NEWS",$DBH)."</a><br>
|
|
From: mdw c. <myd...@li...> - 2002-02-19 11:06:20
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
index.php
Log Message:
Fixing the strange bug of 'INVALID CREDENTIAL'
even if you enter a good login/pass mydynaweb said : your login/pass are not good....
Now it works
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- index.php 24 Jan 2002 01:49:41 -0000 1.5
+++ index.php 19 Feb 2002 11:05:50 -0000 1.6
@@ -6,9 +6,7 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
-global $ACTIVE_MODULES;
-$auth = $ACTIVE_MODULES["auth"];
-if ((! check_session($DYNA_SESSION, $DBH, 'ROOT')) && (! $auth->can_admin("kernel"))) {
+if ((! check_session($DYNA_SESSION, $DBH, 'ROOT')) ) {
header("Location: login.php");
}
|
|
From: mdw c. <myd...@li...> - 2002-02-19 11:06:21
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/include
Modified Files:
modules.init.php utils.inc.php
Log Message:
Fixing the strange bug of 'INVALID CREDENTIAL'
even if you enter a good login/pass mydynaweb said : your login/pass are not good....
Now it works
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/modules.init.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- modules.init.php 23 Jan 2002 19:30:38 -0000 1.6
+++ modules.init.php 19 Feb 2002 11:05:50 -0000 1.7
@@ -15,7 +15,7 @@
include DYNA_ROOT."/modules/auth/auth.class.php";
-$ACTIVE_MODULES["ccs"]=new ccs_module($DBH);
-$ACTIVE_MODULES["hello"]=new hello_module();
+//$ACTIVE_MODULES["ccs"]=new ccs_module($DBH);
+//$ACTIVE_MODULES["hello"]=new hello_module();
$ACTIVE_MODULES["auth"]=new auth_module($DBH);
?>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/utils.inc.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- utils.inc.php 9 Dec 2001 23:26:52 -0000 1.21
+++ utils.inc.php 19 Feb 2002 11:05:50 -0000 1.22
@@ -137,7 +137,7 @@
function send_session_error($error)
{
$msg = urlencode($error);
- header("Location: ".SITE_ROOT."login_failed.php");
+ header("Location: ".SITE_ROOT."login_failed.php?msg=$msg");
die();
}
|
|
From: mdw c. <myd...@li...> - 2002-02-19 11:06:21
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/modules/auth
Modified Files:
auth.class.php
Log Message:
Fixing the strange bug of 'INVALID CREDENTIAL'
even if you enter a good login/pass mydynaweb said : your login/pass are not good....
Now it works
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/modules/auth/auth.class.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- auth.class.php 28 Jan 2002 12:24:09 -0000 1.7
+++ auth.class.php 19 Feb 2002 11:05:50 -0000 1.8
@@ -2,7 +2,7 @@
//!! Module AUTH
//! A module that manage authentification for MDW
-// $Id: auth.class.php,v 1.7 2002/01/28 12:24:09 bligneri Exp $
+// $Id: auth.class.php,v 1.8 2002/02/19 11:05:50 sukria Exp $
/*!TODO
ALL !
@@ -200,7 +200,7 @@
}
-function check_session ($SESSION)
+function check_session ($SESSION, $mode='USER')
///////////////////////////////////////////////////////
// this function take the session id stored in the
// cookie and spell the look_for_session_in_db function
@@ -275,7 +275,7 @@
{
// look for session in the db...
- if (LOGIN_DELAY) {
+ if (strlen(LOGIN_DELAY)) {
$login_delay = LOGIN_DELAY;
}
else {
|
|
From: mdw c. <myd...@li...> - 2002-02-19 11:24:23
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/dynadot Modified Files: main.html Log Message: I was forced to desactivate the feature of the login delay in order to the login system work. I'll fix it later. =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/dynadot/main.html,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- main.html 18 Dec 2001 10:28:29 -0000 1.12 +++ main.html 19 Feb 2002 11:24:21 -0000 1.13 @@ -174,6 +174,8 @@ ~CONTROL_PANNEL~ ~CALENDAR~ <p> +~HEADLINES~ +<p> </td> </tr> <tr> |
|
From: mdw c. <myd...@li...> - 2002-02-19 11:24:52
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/include Modified Files: modules.init.php Log Message: I was forced to desactivate the feature of the login delay in order to the login system work. I'll fix it later. =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/modules.init.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- modules.init.php 19 Feb 2002 11:05:50 -0000 1.7 +++ modules.init.php 19 Feb 2002 11:24:21 -0000 1.8 @@ -10,12 +10,14 @@ */ include DYNA_ROOT."/modules/modules.class.php"; -include DYNA_ROOT."/modules/hello/hello.class.php"; -include DYNA_ROOT."/modules/ccs/ccs.class.php"; +//include DYNA_ROOT."/modules/hello/hello.class.php"; +//include DYNA_ROOT."/modules/ccs/ccs.class.php"; include DYNA_ROOT."/modules/auth/auth.class.php"; //$ACTIVE_MODULES["ccs"]=new ccs_module($DBH); //$ACTIVE_MODULES["hello"]=new hello_module(); $ACTIVE_MODULES["auth"]=new auth_module($DBH); +//$ACTIVE_MODULES["ccs"]=new ccs_module($DBH); +//$ACTIVE_MODULES["hello"]=new hello_module(); ?> |
|
From: mdw c. <myd...@li...> - 2002-02-19 12:37:49
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs Modified Files: comment.php Log Message: The fetching order of message is now like that : the first displayed messages are the first posted. =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- comment.php 19 Feb 2002 09:29:07 -0000 1.15 +++ comment.php 19 Feb 2002 12:37:47 -0000 1.16 @@ -140,7 +140,7 @@ $sql = "select num_cmt, title, content, user_name, user_mail, date_ins, pere, _num_news from comments where _num_news = $num_news - order by num_cmt desc"; + order by num_cmt"; $rqt = new query($dbh); $rqt->query($dbh, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error()); |
|
From: mdw c. <myd...@li...> - 2002-02-19 17:33:27
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
comment.php login_failed.php
Log Message:
Changing the login box messages and the loginfailed title
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- comment.php 19 Feb 2002 12:37:47 -0000 1.16
+++ comment.php 19 Feb 2002 17:32:56 -0000 1.17
@@ -111,8 +111,13 @@
$get_message[$num_cmt]['SIZE'] -= 5;
}
- $HTML .= "<tr><td>" . get_template(THEMES_PATH."/comment.html", $get_message[$num_cmt]) . "</td></tr>";
-
+ if ($level == 0) { // a new thread
+ $HTML .= "<tr><td>" . get_template(THEMES_PATH."/thread.html", $get_message[$num_cmt]) . "</td></tr>";
+ }
+ else {
+ $HTML .= "<tr><td>" . get_template(THEMES_PATH."/comment.html", $get_message[$num_cmt]) . "</td></tr>";
+ }
+
if (sizeof($get_children[$num_cmt])) {
foreach ($get_children[$num_cmt] as $child) {
$HTML .= print_message($child, $level+1, $get_message, $get_children);
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/login_failed.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- login_failed.php 9 Dec 2001 21:47:53 -0000 1.1
+++ login_failed.php 19 Feb 2002 17:32:56 -0000 1.2
@@ -8,7 +8,7 @@
$LOGIN_FORM = get_login_box("$DYNA_SESSION", 1, $DBH);
-$CONTENT = get_page(translate("ENTER_RESTRICTED", $DBH), translate("INVALID_CREDENTIAL", $DBH), $LOGIN_FORM, $DBH);
+$CONTENT = get_page(translate("ERROR", $DBH), translate("INVALID_CREDENTIAL", $DBH), $LOGIN_FORM, $DBH);
print_template(THEMES_PATH."/main.html", $CONTENT, $row[1], $DBH,$c, $REMOTE_ADDR, $HTTP_REFERER);
|
|
From: mdw c. <myd...@li...> - 2002-02-19 18:38:02
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
comment.php news.php set_session.php
Log Message:
Adding the thread concept in the comments
we are close to forum aren't we ? ;-)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- comment.php 19 Feb 2002 17:32:56 -0000 1.17
+++ comment.php 19 Feb 2002 18:37:31 -0000 1.18
@@ -35,6 +35,15 @@
$row2 = $rqt2->getrow();
$num_comments = $row2[0];
+////////////////////////////////////////////////////////////////////////
+// the comments related to that piece of news
+
+// Step 1 : init stuff
+$msg_infos = read_messages($DBH, $news);
+$get_message = $msg_infos[0];
+$get_parents = $msg_infos[1];
+$get_children = $msg_infos[2];
+
// here we can increase the hit number
$row[nbhit]++;
$sql = ("UPDATE news set nbhit=".$row[nbhit]." where num_news = $row[0]");
@@ -45,7 +54,7 @@
$PAGE .= "";
$PAGE .= get_piece_of_news($row[1], '<P>' . $row['texte'] . '<br><br>' .
-$row['long_text'], $row[4], translate($row[5],$DBH), "news.php?q=$row[6]", $row[nbhit], $row[0], $row2[0], strlen($row['long_text']) * 8, $DBH);
+$row['long_text'], $row[4], translate($row[5],$DBH), "news.php?q=$row[6]", $row[nbhit], $row[0], $row2[0], strlen($row['long_text']) * 8, sizeof($get_parents), $DBH);
@@ -58,19 +67,10 @@
<p>";
-////////////////////////////////////////////////////////////////////////
-// the comments related to that piece of news
-
-// Step 1 : init stuff
-$msg_infos = read_messages($DBH, $news);
-$get_message = $msg_infos[0];
-$get_parents = $msg_infos[1];
-$get_children = $msg_infos[2];
-
$PAGE .= "<table width='100%'>";
if (sizeof($get_parents)) {
- $PAGE .= "<tr><td><b>$num_comments " . translate("COMMENTS", $DBH). " : </b></td></tr>";
+ $PAGE .= "<tr><td><b>$num_comments " . translate("COMMENTS", $DBH). " / ".sizeof($get_parents)." ". translate('THREADS', $DBH)." </b></td></tr>";
}
// Step 2 : print out the threads
@@ -85,7 +85,7 @@
////////////////////////////////////////////////////////////////////////
-$CONTENT = get_page("<h2>$news_titre</h2>", $info, $PAGE, $DBH);
+$CONTENT = get_page("<h3>$news_titre</h3>", $info, $PAGE, $DBH);
print_template(THEMES_PATH."/main.html", $CONTENT, $row[1], $DBH,"COMMENT.$news", $REMOTE_ADDR, $HTTP_REFERER, $MSG, 10, 50);
}
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/news.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- news.php 6 Feb 2002 14:08:18 -0000 1.6
+++ news.php 19 Feb 2002 18:37:32 -0000 1.7
@@ -179,7 +179,15 @@
$rqt2->query($DBH, $sql);
$row2 = $rqt2->getrow();
- $HTML = get_piece_of_news($full_title, ($full_header . '<br>' . $full_page), $row[4], $row[5], "news.php?q=$row[6]", $row[nbhit], $row[0], $row2[0], strlen($full_page), $DBH);
+ $sql = "select * from comments
+ where _num_news = $row[0]
+ and pere=0";
+ $rqtcm = new query($DBH);
+ $rqtcm->query($DBH, $sql);
+ $nbthreads = $rqtcm->numrows();
+
+
+ $HTML = get_piece_of_news($full_title, ($full_header . '<br>' . $full_page), $row[4], $row[5], "news.php?q=$row[6]", $row[nbhit], $row[0], $row2[0], strlen($full_page), $nbthreads, $DBH);
print_template(THEMES_PATH."/main.html", $HTML, translate("NEWS",$DBH),
$DBH,"NEWS.$q.$old.$num.$fam",$REMOTE_ADDR, $MSG, 10, 50);
die();
@@ -214,6 +222,13 @@
$rqtcm->query($DBH, $sql);
$nbcmt = $rqtcm->numrows();
+ $sql = "select * from comments
+ where _num_news = $row[0]
+ and pere=0";
+ $rqtcm = new query($DBH);
+ $rqtcm->query($DBH, $sql);
+ $nbthreads = $rqtcm->numrows();
+
/////////////////////////////////
// creation of the title
@@ -225,7 +240,7 @@
$news_title = $news_tt;
- $PAGE .= get_piece_of_news($news_title, $intro, $row[4], $row[5], "news.php?q=$row[6]", $new_nbhit, $row[0], $nbcmt, strlen($row['long_text']), $DBH);
+ $PAGE .= get_piece_of_news($news_title, $intro, $row[4], $row[5], "news.php?q=$row[6]", $new_nbhit, $row[0], $nbcmt, strlen($row['long_text']),$nbthreads, $DBH);
$PAGE .= "<p> </p>\n";
}
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/set_session.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- set_session.php 8 Nov 2001 03:11:12 -0000 1.1
+++ set_session.php 19 Feb 2002 18:37:32 -0000 1.2
@@ -2,6 +2,11 @@
include("include/mydynaweb.init.php");
include("include/mydynaweb.libs.php");
+if ($user == 'guest') {
+ header("Location: guest.php");
+ die();
+}
+
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
|
|
From: mdw c. <myd...@li...> - 2002-02-19 18:38:02
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/include
Modified Files:
gui.inc.php
Log Message:
Adding the thread concept in the comments
we are close to forum aren't we ? ;-)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/gui.inc.php,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- gui.inc.php 6 Feb 2002 14:08:18 -0000 1.49
+++ gui.inc.php 19 Feb 2002 18:37:32 -0000 1.50
@@ -129,8 +129,7 @@
-function get_piece_of_news($title, $text, $image, $image_alt, $link,
- $nbhit, $num_news, $num_cmt, $num_byte, $DBH)
+function get_piece_of_news($title, $text, $image, $image_alt, $link, $nbhit, $num_news, $num_cmt, $num_byte, $num_threads, $DBH)
{
// set the hash templates
@@ -140,6 +139,8 @@
$VALUES['PAGE_BOX_LINES'] = PAGE_BOX_LINES;
$VALUES['PAGE_TEXTE_BACK'] = PAGE_TEXTE_BACK;
$VALUES['PAGE_TITRE_BACK'] = PAGE_TITRE_BACK;
+ $VALUES['NBTHREADS'] = $num_threads;
+ $VALUES['THREADS'] = translate('THREADS', $DBH);
$VALUES['TITLE'] = $title;
$VALUES['TEXT'] = $text;
$VALUES['LINK'] = $link;
|
|
From: mdw c. <myd...@li...> - 2002-02-20 15:48:20
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
comment.php save_coment.php
Log Message:
Comments / Forum updates (improvements)
DONE:
- when sending comments to users, parsing the email end removing any "nospam" tags
- fixing the limit of indentation to 5
- adding the availability of displaying only the title of messages under a threshold
TODO:
- A navigation bar which would provide an easy way of look at the comments
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- comment.php 19 Feb 2002 18:37:31 -0000 1.18
+++ comment.php 20 Feb 2002 15:48:18 -0000 1.19
@@ -56,7 +56,11 @@
$PAGE .= get_piece_of_news($row[1], '<P>' . $row['texte'] . '<br><br>' .
$row['long_text'], $row[4], translate($row[5],$DBH), "news.php?q=$row[6]", $row[nbhit], $row[0], $row2[0], strlen($row['long_text']) * 8, sizeof($get_parents), $DBH);
-
+///////////////
+// Threshold
+if (!isset($threshold)) {
+ $threshold = -1;
+}
// The react button
$PAGE .= "<center><b><form action='add_comment.php'>
@@ -76,7 +80,7 @@
// Step 2 : print out the threads
if ($num_comments) {
foreach ($get_parents as $thread) {
- $PAGE .= print_message($thread, 0, $get_message, $get_children);
+ $PAGE .= print_message($thread, 0, $threshold, $get_message, $get_children);
}
}
@@ -101,26 +105,40 @@
can draw messages and their children...
*/
-function print_message ($num_cmt, $level, $get_message, $get_children)
+function print_message ($num_cmt, $level, $threshold, $get_message, $get_children)
{
$HTML = "";
$get_message[$num_cmt]['REACT'] = REACT;
$get_message[$num_cmt]['SIZE'] = 100;
+
+ // the limit of the identation : 5
+ if ($level > 5) $level = 5;
+
for ($i=0; $i<$level; $i++) {
$get_message[$num_cmt]['SIZE'] -= 5;
}
-
- if ($level == 0) { // a new thread
+
+ // a new thread
+ if ($level == 0) {
$HTML .= "<tr><td>" . get_template(THEMES_PATH."/thread.html", $get_message[$num_cmt]) . "</td></tr>";
}
- else {
+
+ // a comment fully displayed (under threshold)
+ else if (($threshold == -1) or ($threshold >= $level)) {
+ $get_message[$num_cmt]['desc'] = ("Reply to ".$get_message[$get_message[$num_cmt]['pere']]['title']);
$HTML .= "<tr><td>" . get_template(THEMES_PATH."/comment.html", $get_message[$num_cmt]) . "</td></tr>";
}
+ // a comment under the threshold : only the title
+ else {
+ $get_message[$num_cmt]['threshold'] = $level;
+ $HTML .= "<tr><td>". get_template(THEMES_PATH."/comment_title.html", $get_message[$num_cmt])."</td></tr>";
+ }
+
if (sizeof($get_children[$num_cmt])) {
foreach ($get_children[$num_cmt] as $child) {
- $HTML .= print_message($child, $level+1, $get_message, $get_children);
+ $HTML .= print_message($child, $level+1, $threshold, $get_message, $get_children);
}
}
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/save_coment.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- save_coment.php 19 Feb 2002 00:33:16 -0000 1.11
+++ save_coment.php 20 Feb 2002 15:48:18 -0000 1.12
@@ -74,7 +74,10 @@
}
foreach ($trolls as $email=>$name) {
-
+ $email = str_replace('nospam.', '', $email);
+ $email = str_replace('nospam', '', $email);
+ $email = str_replace('.nospam', '', $email);
+
$sujet = (translate("NEW_COMMENT_ON", $DBH) . SITE_TITLE);
$headers .= "From: <".WEBMASTER_EMAIL.">\n";
$headers .= "X-Sender: <".WEBMASTER_EMAIL.">\n";
|
|
From: mdw c. <myd...@li...> - 2002-02-20 22:07:05
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
comment.php
Log Message:
Some more stuff for the comment engine :
- navbar that provides threshold customization
- anchor link to messages
- smarter display than before ;)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- comment.php 20 Feb 2002 15:48:18 -0000 1.19
+++ comment.php 20 Feb 2002 22:06:32 -0000 1.20
@@ -7,6 +7,7 @@
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
define("REACT", translate('REACT', $DBH));
+define("BASE_URL", ($PHP_SELF . "?" . $QUERY_STRING));
$ca = new cache($DBH);
if ($file_name=$ca->is_cached("COMMENT.$news", USER_LANG, ACTIVE_THEME))
@@ -50,6 +51,8 @@
$rqt2 = new query($DBH);
$rqt2->query($DBH, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error());
+//template init
+$template = read_template(THEMES_PATH."/comment.html");
$PAGE .= "";
@@ -59,16 +62,48 @@
///////////////
// Threshold
if (!isset($threshold)) {
- $threshold = -1;
+ $threshold = 0;
}
-// The react button
-$PAGE .= "<center><b><form action='add_comment.php'>
-<input type='hidden' name='num_news' value='$news'>
-<input type='submit' value='".translate("COMMENT_NEWS",$DBH)."'></form>
+// The navbar
+$PAGE .= "<center>
+<p>
+<hr>
+<table bgcolor='#eeeeee' align='center' width='100%'>
+<tr>
+ <td>
+ <form action='add_comment.php'>
+ <input type='hidden' name='num_news' value='$news'>
+ <input type='submit' value='".translate("NEW_THREAD",$DBH)."'>
+ </form>
+ </td>
+ <td>
+ <form action='comment.php'>
+ <input type='hidden' name='news' value='$news'>
+ ".translate("THRESHOLD", $DBH)."
+ <select name='threshold'>
+ <option value='-1'>".translate("NONE", $DBH)."</option>
+ <option value='0' selected>".translate("ONLY_THREADS", $DBH)."</option>
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ <option>10</option>
+ <option>15</option>
+ <option>20</option>
+ </select>
+
+ <input type='submit' value='OK'>
+ </form>
+ </td>
+
+</tr>
+</table>
</center>
-
-<p>";
+<hr>
+<p>
+";
$PAGE .= "<table width='100%'>";
@@ -80,7 +115,7 @@
// Step 2 : print out the threads
if ($num_comments) {
foreach ($get_parents as $thread) {
- $PAGE .= print_message($thread, 0, $threshold, $get_message, $get_children);
+ $PAGE .= print_message($thread, 0, $threshold, $get_message, $get_children, $template);
}
}
@@ -105,8 +140,9 @@
can draw messages and their children...
*/
-function print_message ($num_cmt, $level, $threshold, $get_message, $get_children)
+function print_message ($num_cmt, $level, $threshold, $get_message, $get_children, $template)
{
+
$HTML = "";
$get_message[$num_cmt]['REACT'] = REACT;
@@ -121,24 +157,25 @@
// a new thread
if ($level == 0) {
- $HTML .= "<tr><td>" . get_template(THEMES_PATH."/thread.html", $get_message[$num_cmt]) . "</td></tr>";
+ $HTML .= "<tr><td>" . get_hash_template($template["thread"], $get_message[$num_cmt]) . "</td></tr>";
}
// a comment fully displayed (under threshold)
else if (($threshold == -1) or ($threshold >= $level)) {
- $get_message[$num_cmt]['desc'] = ("Reply to ".$get_message[$get_message[$num_cmt]['pere']]['title']);
- $HTML .= "<tr><td>" . get_template(THEMES_PATH."/comment.html", $get_message[$num_cmt]) . "</td></tr>";
+ $pere = $get_message[$num_cmt]['pere'];
+ $get_message[$num_cmt]['desc'] = ("<a href='".BASE_URL."#$pere'>".$get_message[$pere]['title']."</a>");
+ $HTML .= "<tr><td>" . get_hash_template($template["comment"], $get_message[$num_cmt]) . "</td></tr>";
}
// a comment under the threshold : only the title
else {
$get_message[$num_cmt]['threshold'] = $level;
- $HTML .= "<tr><td>". get_template(THEMES_PATH."/comment_title.html", $get_message[$num_cmt])."</td></tr>";
+ $HTML .= "<tr><td>". get_hash_template($template["title"], $get_message[$num_cmt])."</td></tr>";
}
if (sizeof($get_children[$num_cmt])) {
foreach ($get_children[$num_cmt] as $child) {
- $HTML .= print_message($child, $level+1, $threshold, $get_message, $get_children);
+ $HTML .= print_message($child, $level+1, $threshold, $get_message, $get_children, $template);
}
}
|
|
From: mdw c. <myd...@li...> - 2002-02-20 22:10:41
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/deekay Modified Files: comment.html Log Message: the new template for comments =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/comment.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- comment.html 18 Feb 2002 23:51:28 -0000 1.2 +++ comment.html 20 Feb 2002 22:10:39 -0000 1.3 @@ -1,12 +1,47 @@ +<!-- BLOCK:comment --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0" bgcolor="#eeeeee"> + <tr bgcolor="#eeeeee"> + <td align='left'> + <a name="~num_cmt~"></a> + <i><font size="-1">[~desc~]</font></i> <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right' valign="top"> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> + + <tr bgcolor="#ffffff"> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> - -<table width='~SIZE~%' align='right'> +<!-- BLOCK:title --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> <tr> - <td bgcolor='#dddddd' align='left' width='90%'> - <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + <td align='left'> + <b>>> <a href="comment.php?news=~_num_news~&threshold=~threshold~">~title~</a></b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) </td> <td align='right' valign="top"> - <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1"><SUP>~REACT~</SUP></a> </font><a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><img border='0' src='images/answer.gif'></a> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> +</table> + + + +<!-- BLOCK:thread --> + +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> + <tr bgcolor='#dddddd'> + <td align='left'> + <a name="~num_cmt~"></a> + <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right'> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> </td> </tr> @@ -17,3 +52,6 @@ </td> </tr> </table> + + + |
|
From: mdw c. <myd...@li...> - 2002-02-21 10:15:15
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
comment.php
Log Message:
Comments update
The navbar allows user to sort messages by oldest / newest publication.
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- comment.php 20 Feb 2002 22:06:32 -0000 1.20
+++ comment.php 21 Feb 2002 10:14:43 -0000 1.21
@@ -40,7 +40,7 @@
// the comments related to that piece of news
// Step 1 : init stuff
-$msg_infos = read_messages($DBH, $news);
+$msg_infos = read_messages($DBH, $news, $orderby);
$get_message = $msg_infos[0];
$get_parents = $msg_infos[1];
$get_children = $msg_infos[2];
@@ -71,30 +71,31 @@
<hr>
<table bgcolor='#eeeeee' align='center' width='100%'>
<tr>
- <td>
+ <td align='center'>
+ <font size='-1'>
<form action='add_comment.php'>
<input type='hidden' name='num_news' value='$news'>
<input type='submit' value='".translate("NEW_THREAD",$DBH)."'>
+ </font>
</form>
</td>
- <td>
+</tr>
+<tr>
+ <td align='center'>
<form action='comment.php'>
+ <font size='-1'>
<input type='hidden' name='news' value='$news'>
- ".translate("THRESHOLD", $DBH)."
<select name='threshold'>
- <option value='-1'>".translate("NONE", $DBH)."</option>
+ <option value='-1'>".translate("SHOW_ALL_MESSAGES", $DBH)."</option>
<option value='0' selected>".translate("ONLY_THREADS", $DBH)."</option>
- <option>1</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- <option>5</option>
- <option>10</option>
- <option>15</option>
- <option>20</option>
</select>
+ <select name='orderby'>
+ <option value='desc'>".translate("NEWEST_FIRST", $DBH)."</option>
+ <option value=''>".translate("OLDEST_FIRST", $DBH)."</option>
+ </select>
<input type='submit' value='OK'>
+ </font>
</form>
</td>
@@ -157,7 +158,8 @@
// a new thread
if ($level == 0) {
- $HTML .= "<tr><td>" . get_hash_template($template["thread"], $get_message[$num_cmt]) . "</td></tr>";
+ $HTML .= "<tr><td><p> </p></td></tr>
+ <tr><td>" . get_hash_template($template["thread"], $get_message[$num_cmt]) . "</td></tr>";
}
// a comment fully displayed (under threshold)
@@ -189,7 +191,7 @@
for instance
$message[12][TITLE] send me the title of the #12 comment
*/
-function read_messages($dbh, $num_news)
+function read_messages($dbh, $num_news, $orderby)
{
// the hashtable with the info of the messages
$get_message = Array();
@@ -200,7 +202,7 @@
$sql = "select num_cmt, title, content, user_name, user_mail, date_ins, pere, _num_news
from comments
where _num_news = $num_news
- order by num_cmt";
+ order by num_cmt $orderby";
$rqt = new query($dbh);
$rqt->query($dbh, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error());
|
|
From: mdw c. <myd...@li...> - 2002-02-21 16:10:17
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/deekay Modified Files: comment.html Log Message: Now when clicking a message, you are autmotically put on the top of the message. I use Anchor for this. Again, you can see the result on sukria.net : http://www.sukria.net/comment.php?news=119&threshold=4#143 yep ;) =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/comment.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- comment.html 20 Feb 2002 22:10:39 -0000 1.3 +++ comment.html 21 Feb 2002 16:10:14 -0000 1.4 @@ -22,7 +22,7 @@ <table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> <tr> <td align='left'> - <b>>> <a href="comment.php?news=~_num_news~&threshold=~threshold~">~title~</a></b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + <b>>> <a href="comment.php?news=~_num_news~&threshold=~threshold~#~num_cmt~">~title~</a></b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) </td> <td align='right' valign="top"> <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> |
|
From: mdw c. <myd...@li...> - 2002-02-22 09:15:11
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/enlightened Modified Files: comment.html Log Message: better look with the enlightened theme =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/enlightened/comment.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- comment.html 18 Feb 2002 23:51:28 -0000 1.3 +++ comment.html 22 Feb 2002 09:15:10 -0000 1.4 @@ -1,12 +1,47 @@ +<!-- BLOCK:comment --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align='left'> + <a name="~num_cmt~"></a> + <i><font size="-1">[~desc~]</font></i> <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right' valign="top"> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> + + <tr> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> - -<table width='~SIZE~%' align='right'> +<!-- BLOCK:title --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> <tr> - <td bgcolor='#dddddd' align='left' width='90%'> - <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + <td align='left'> + <b>>> <a href="comment.php?news=~_num_news~&threshold=~threshold~#~num_cmt~">~title~</a></b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) </td> <td align='right' valign="top"> - <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1"><SUP>~REACT~</SUP></a> </font><a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><img border='0' src='images/answer.gif'></a> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> +</table> + + + +<!-- BLOCK:thread --> + +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> + <tr > + <td align='left'> + <a name="~num_cmt~"></a> + <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right'> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> </td> </tr> @@ -17,3 +52,6 @@ </td> </tr> </table> + + + |
|
From: mdw c. <myd...@li...> - 2002-02-22 11:21:52
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/deekay
Modified Files:
default.css
Log Message:
theme updates
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/default.css,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- default.css 21 Dec 2001 09:14:07 -0000 1.4
+++ default.css 22 Feb 2002 11:21:51 -0000 1.5
@@ -1,6 +1,6 @@
body {
font-family: Verdana, Lucida, Arial;
- font-size: 11px;
+ font-size: 11pt;
color: #333333;
}
pre {
@@ -10,28 +10,38 @@
text-decoration: none;
}
a:hover {
- border: 0px;
text-decoration: underline;
}
-img {
- border: 0px solid #000000;
-}
-
-pre a {
- color: #333333;
- text-decoration: none;
-}
hr {
height: 1px;
color: #999999;
}
-#footer input {
+
+select {
+ BACKGROUND-COLOR: #f5f5f5;
+ COLOR: #888888;
+ FONT-FAMILY: Verdana, Lucida, Arial;
+ FONT-SIZE: 9pt;
+ BORDER-BOTTOM: #808080 1px solid;
+ BORDER-LEFT: #808080 1px solid;
+ BORDER-RIGHT: #808080 1px solid;
+ BORDER-TOP: #808080 1px solid;
+ scrollbar-3dlight-color:#808080;
+ scrollbar-arrow-color:#808080;
+ scrollbar-base-color:#808080;
+ scrollbar-darkshadow-color:white;
+ scrollbar-face-color:white;
+ scrollbar-highlight-color:white;
+ scrollbar-shadow-color:#808080
+}
+
+input {
font-family: Verdana, Lucida, Arial;
color: #888888;
- font-size: 9px;
- border: 1px solid #999999;
-// border: 3px double #aaaaaa;
+ font-size: 9pt;
+// border: 1px solid #999999;
+// border: 1px solid #aaaaaa;
padding: 1px;
}
#footer input[type="submit"] {
@@ -77,7 +87,7 @@
background-color: #ffffff;
}
td {
- font-size: 11px;
+ font-size: 10pt;
}
#main {
padding: 10px;
|
|
From: mdw c. <myd...@li...> - 2002-02-24 12:47:37
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
index.php
Log Message:
news.php set as defaut index page
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- index.php 8 Nov 2001 03:11:12 -0000 1.4
+++ index.php 24 Feb 2002 12:47:36 -0000 1.5
@@ -29,6 +29,6 @@
/* You can here change the location to the url you want */
/* for instance : Location: print.php?c=welcome */
/* The default location is the news page : */
-header("Location: welcome.php");
+header("Location: news.php");
?>
|
|
From: mdw c. <myd...@li...> - 2002-03-04 12:24:19
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/deekay
Modified Files:
brown.css
Log Message:
Fixing the unwanted green link underline color
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/brown.css,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- brown.css 13 Dec 2001 23:08:20 -0000 1.1
+++ brown.css 4 Mar 2002 12:24:17 -0000 1.2
@@ -4,6 +4,3 @@
a {
color: #8b5a2b;
}
-a:hover {
- border-bottom: 1px solid #009900;
-}
|
|
From: mdw c. <myd...@li...> - 2002-03-04 23:14:12
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/deekay
Modified Files:
default.css
Log Message:
Theme fixes
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/default.css,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- default.css 22 Feb 2002 11:21:51 -0000 1.5
+++ default.css 4 Mar 2002 23:14:11 -0000 1.6
@@ -71,6 +71,7 @@
text-align: center;
color: #777777;
font-weight: bold;
+ font-size: 12px;
}
#menu a {
font-weight: bold;
@@ -98,7 +99,7 @@
background-color: #f5f5f5;
border: 1px dashed #c0c0c0;
padding: 10px;
- font-size: 11px;
+ font-size: 14px;
line-height: 200%;
}
#sidebar {
@@ -108,6 +109,7 @@
border: 1px dashed #c0c0c0;
padding: 10px;
line-height: 130%;
+ font-size: 12px;
}
#headline {
visibility: visible;
@@ -139,7 +141,7 @@
border: 0px;
}
#note {
- color: #888888;
+ color: #444444;
text-align: center;
}
.screenshot {
|
|
From: mdw c. <myd...@li...> - 2002-03-04 23:17:11
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/dynadot Modified Files: comment.html Log Message: Topnews is translated, dyndot as a good working comment theme =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/dynadot/comment.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- comment.html 18 Feb 2002 23:51:28 -0000 1.3 +++ comment.html 4 Mar 2002 23:17:10 -0000 1.4 @@ -1,12 +1,47 @@ +<!-- BLOCK:comment --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0" bgcolor="#eeeeee"> + <tr bgcolor="#eeeeee"> + <td align='left'> + <a name="~num_cmt~"></a> + <i><font size="-1">[~desc~]</font></i> <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right' valign="top"> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> + + <tr bgcolor="#ffffff"> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> - -<table width='~SIZE~%' align='right'> +<!-- BLOCK:title --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> <tr> - <td bgcolor='#dddddd' align='left' width='90%'> - <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + <td align='left'> + <b>>> <a href="comment.php?news=~_num_news~&threshold=~threshold~#~num_cmt~">~title~</a></b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) </td> <td align='right' valign="top"> - <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1"><SUP>~REACT~</SUP></a> </font><a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><img border='0' src='images/answer.gif'></a> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> +</table> + + + +<!-- BLOCK:thread --> + +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> + <tr bgcolor='#dddddd'> + <td align='left'> + <a name="~num_cmt~"></a> + <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right'> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> </td> </tr> @@ -17,3 +52,6 @@ </td> </tr> </table> + + + |
|
From: mdw c. <myd...@li...> - 2002-03-04 23:17:40
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
topnews.php
Log Message:
Topnews is translated, dyndot as a good working comment theme
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/topnews.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- topnews.php 6 Feb 2002 14:08:18 -0000 1.4
+++ topnews.php 4 Mar 2002 23:17:09 -0000 1.5
@@ -54,11 +54,10 @@
}
$TEXTE .= "</table>$NEXT_FOOTER";
-$title = "Top des nouvelles";
-$header = "<center>Voici les classements de nouvelles les plus visitées sur le site.</center>";
+$title = translate("TOPNEWS", $DBH);
-$CONTENT = get_page($title,$header,$TEXTE, $DBH);
+$CONTENT = get_page($title,'',$TEXTE, $DBH);
print_template(THEMES_PATH."/main.html",$CONTENT, $title, $DBH, $event, $REMOTE_ADDR, $HTTP_REFERER, '', 10, 6);
$DBH->close();
|
|
From: mdw c. <myd...@li...> - 2002-04-08 15:43:33
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/smarty Modified Files: comment.html Log Message: Bug fixed with comments =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/smarty/comment.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- comment.html 18 Feb 2002 23:51:28 -0000 1.2 +++ comment.html 8 Apr 2002 15:07:20 -0000 1.3 @@ -1,12 +1,47 @@ +<!-- BLOCK:comment --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0" bgcolor="#eeeeee"> + <tr bgcolor="#eeeeee"> + <td align='left'> + <a name="~num_cmt~"></a> + <i><font size="-1">[~desc~]</font></i> <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right' valign="top"> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> + + <tr bgcolor="#ffffff"> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> - -<table width='~SIZE~%' align='right'> +<!-- BLOCK:title --> +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> <tr> - <td bgcolor='#dddddd' align='left' width='90%'> - <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + <td align='left'> + <b>>> <a href="comment.php?news=~_num_news~&threshold=~threshold~#~num_cmt~">~title~</a></b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) </td> <td align='right' valign="top"> - <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1"><SUP>~REACT~</SUP></a> </font><a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><img border='0' src='images/answer.gif'></a> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> + </td> + </tr> +</table> + + + +<!-- BLOCK:thread --> + +<table width='~SIZE~%' align='right' cellpadding="0" cellspacing="0" border="0"> + <tr bgcolor='#dddddd'> + <td align='left'> + <a name="~num_cmt~"></a> + <b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~) + </td> + <td align='right'> + <a href='add_comment.php?num_news=~_num_news~&pere=~num_cmt~'><font size="-1">~REACT~</font></a> </td> </tr> @@ -17,3 +52,6 @@ </td> </tr> </table> + + + |
|
From: mdw c. <myd...@li...> - 2002-04-08 22:36:26
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/petits Log Message: Directory /cvsroot/mydynaweb/mydynaweb/htdocs/templates/petits added to the repository |