|
From: mdw c. <myd...@li...> - 2001-12-18 15:21:32
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/smarty
Modified Files:
main.html
Log Message:
mozilla 0.9.6 makes strange thing with table... the theme is now better with it
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/smarty/main.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- main.html 2001/12/18 10:28:29 1.8
+++ main.html 2001/12/18 15:21:32 1.9
@@ -194,10 +194,10 @@
<TD width=70% valign="top" height="100%">
- <TABLE height="100%" width=100% bgcolor=#000000 cellspacing=0 cellpadding=1 border=0><TR><TD>
- <TABLE height="100%" width=100% bgcolor=#FFFFFF cellspacing=0 cellpadding=2 border=0>
- <TR height="100%">
- <TD height="100%" valign="top">
+ <TABLE width=100% bgcolor=#000000 cellspacing=0 cellpadding=1 border=0><TR><TD>
+ <TABLE width=100% bgcolor=#FFFFFF cellspacing=0 cellpadding=2 border=0>
+ <TR>
+ <TD valign="top">
<!-- Main contents-->
|
|
From: mdw c. <myd...@li...> - 2001-12-21 09:14:08
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/deekay
Modified Files:
default.css news.html
Log Message:
adding topics image
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/default.css,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- default.css 2001/12/18 09:40:29 1.3
+++ default.css 2001/12/21 09:14:07 1.4
@@ -15,7 +15,7 @@
}
img {
- border: 1px solid #000000;
+ border: 0px solid #000000;
}
pre a {
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/news.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- news.html 2001/12/17 09:43:55 1.2
+++ news.html 2001/12/21 09:14:07 1.3
@@ -1,6 +1,7 @@
<div id="headline">- ~TITLE~ </div>
<div id="news">
+ <A HREF="~LINK~"><IMG SRC="~IMAGE~" BORDER="0" ALIGN="RIGHT" HSPACE="20" VSPACE="10" ALT="~ALT~"></A>
~TEXT~
<table ><tr>
|
|
From: mdw c. <myd...@li...> - 2001-12-21 21:39:16
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
index.php menu.php show_settings.php
Log Message:
admin section
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- index.php 2001/12/03 15:38:41 1.3
+++ index.php 2001/12/21 21:38:45 1.4
@@ -21,7 +21,7 @@
<title>MyDynaWeb Admin</title>
</head>
-<frameset rows="200, *" border="no" scrollbars="no" scrolling="no">
+<frameset rows="150, *" border="no" scrollbars="no" scrolling="no">
<frame src="menu.php" name="menu">
<frame src="page.php" name="page">
</frameset>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/menu.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- menu.php 2001/12/03 15:38:41 1.4
+++ menu.php 2001/12/21 21:38:45 1.5
@@ -52,7 +52,7 @@
td.title {
font-family: tahoma,arial,helvetica;
color: #000000;
- font-size: 10pt;
+ font-size: 9pt;
font-weight: bold;
text-align: left;
}
@@ -117,9 +117,6 @@
<td class="items">
<!-- MAIN ADMIN -->
<?
-echo "<b>".translate("SETTINGS",$DBH)."</b>";
-echo " [ <a href=\"new_setting.php\"
-target=\"page\">".translate("CREATE",$DBH)."</a> ]<BR>";
foreach($var_db_settings as $key=>$value)
{
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/show_settings.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- show_settings.php 2001/12/03 15:38:41 1.7
+++ show_settings.php 2001/12/21 21:38:45 1.8
@@ -16,7 +16,7 @@
<body bgcolor="#ffffff">
-<table align="center">
+<table align="center" border="0">
<?
if ($act == "mod")
@@ -69,8 +69,7 @@
if ($act == "mod") {
print "<TR>
<TD>
- <a
- href=\"update_setting.php?varname=$infos_page[0]\">$infos_page[0]</A>
+ <a href=\"update_setting.php?varname=$infos_page[0]\">$infos_page[0]</A>
</TD>
<TD>
$description
@@ -83,9 +82,7 @@
else {
print "<tr>
<td>
- <a href=\"#\"
- onclick=\"confirm_go_to('del_setting.php?varname=$infos_page[0]',
- 'Are you sure you want to delete setting $infos_page[0]?');return(false);\">$infos_page[0]</a>
+ <a href=\"#\" onclick=\"confirm_go_to('del_setting.php?varname=$infos_page[0]', 'Are you sure you want to delete setting $infos_page[0]?');return(false);\">$infos_page[0]</a>
</td>
<TD>
$description
|
|
From: mdw c. <myd...@li...> - 2001-12-21 21:39:16
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/smarty Modified Files: topbar.html Log Message: admin section =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/smarty/topbar.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- topbar.html 2001/12/11 14:07:07 1.3 +++ topbar.html 2001/12/21 21:38:45 1.4 @@ -8,7 +8,7 @@ <TABLE width=100% bgcolor=#aaaabb cellspacing=0 cellpadding=2 border=0><TR> <td align="left"> - <font face="tahoma,arial,helvetica" size="+3" color="#DDDDEE"> sukria.net </font> + <font face="tahoma,arial,helvetica" size="+3" color="#DDDDEE"> ~SITE_TITLE~ </font> </td> <TD ALIGN="CENTER"> |
|
From: mdw c. <myd...@li...> - 2002-01-11 11:33:59
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
news.php
Log Message:
I've enhanced the display of the topics related news page.
It now displays the topic's icon
PS ben : are you back ? :)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/news.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- news.php 2001/12/13 23:08:20 1.2
+++ news.php 2002/01/11 11:33:57 1.3
@@ -135,11 +135,14 @@
+
+/* Liste des nouvelles pour une categorie donnee */
+
if ( (strlen($q) || strlen($old)) &&
(!strlen($num))
) {
- $PAGE .= "<a href=\"$PHP_SELF?num=$row[0]\"><li><b>$row[1]</b></a>, $da_formated_date - $row[7] (<i><a href='$PHP_SELF?q=$row[6]'>".translate($row[5],$DBH)."</a></i>)</li>";
+ $PAGE .= "<a href=\"$PHP_SELF?num=$row[0]\"><li><b>$row[1]</b></a>, $da_formated_date $row[7] </li>";
}
else if (strlen($readmore)) {
$full_title = "<b>$row[1]</b> <font size='-1'><i>".translate("POSTED_BY",$DBH)." $row[7] ".translate("ON",$DBH)." $da_formated_date</font>".translate('FROM_THE_CATEGORY', $DBH)." ". translate($family,$DBH) . "</i><br>";
@@ -208,13 +211,22 @@
if (strlen($q)) {
$page_title = "NEWS_BY_TOPICS_LIST_TITLE";
$page_header = "NEWS_BY_TOPICS_LIST_HEADER";
+ $page_header = "<center>" . translate($page_header, $DBH) . ": ";
+
+ $sql = "select icone, titre
+ from topic
+ where num_topic=$q";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql);
+ $row = $rqt->getrow();
+ $page_header .= "$row[1]<p><img src='$row[0]'><p>";
}
else {
$page_title = "OLD_NEWS_LIST_TITLE";
$page_header = "OLD_NEWS_LIST_HEADER";
}
- $HTML = get_page(translate($page_title, $DBH), translate($page_header, $DBH), $PAGE, $DBH);
+ $HTML = get_page(translate($page_title, $DBH), $page_header, $PAGE, $DBH);
print_template(THEMES_PATH."/main.html", $HTML, translate("NEWS",$DBH),
$DBH,"NEWS.$q.$old.$num.$fam",$REMOTE_ADDR, $HTTP_REFERER, $MSG, 10, 20);
|
|
From: mdw c. <myd...@li...> - 2002-01-11 11:47:12
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
news.php
Log Message:
OK, the translation of "OLD_NEWS_LIST_HEADER" was removed.
It's ok now :)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/news.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- news.php 2002/01/11 11:33:57 1.3
+++ news.php 2002/01/11 11:47:11 1.4
@@ -224,6 +224,7 @@
else {
$page_title = "OLD_NEWS_LIST_TITLE";
$page_header = "OLD_NEWS_LIST_HEADER";
+ $page_header = "<center>" . translate($page_header, $DBH);
}
$HTML = get_page(translate($page_title, $DBH), $page_header, $PAGE, $DBH);
|
|
From: mdw c. <myd...@li...> - 2002-01-14 19:05:24
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
topnews.php
Log Message:
Yeah, the top of the news !!!
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/topnews.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- topnews.php 2001/11/16 12:00:59 1.1
+++ topnews.php 2002/01/14 19:05:24 1.2
@@ -11,17 +11,31 @@
order by nbhit desc";
$rqt = new query($DBH);
$rqt->query($DBH, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error());
+$TEXTE .= "<table align='center' width='90%'>";
+$i=0;
while ($row = $rqt->getrow())
{
$numnews = $row[1];
$titre = $row[0];
$hits = $row[2];
+ if ($i++ % 2 == 0) {
+ $bgcolor = '#eeeeee';
+ }
+ else {
+ $bgcolor = '#ffffff';
+ }
- $TEXTE .= "<a href=\"comment.php?news=$numnews\">$titre</a> : $hits";
+ $TEXTE .= "<tr bgcolor='$bgcolor'><td><a href=\"comment.php?news=$numnews\">$titre</a></td>
+ <td align='right'>$hits</td></tr>";
}
-print $TEXTE;
+$TEXTE .= "</table>";
+$title = "Top des nouvelles";
+$header = "<center>Voici les classements de nouvelles les plus visitées sur le site.</center>";
+
+$CONTENT = get_page($title,$header,$TEXTE, $DBH);
+print_template(THEMES_PATH."/main.html",$CONTENT, $title, $DBH, $event, $REMOTE_ADDR, $HTTP_REFERER, '', '', '');
$DBH->close();
|
|
From: mdw c. <myd...@li...> - 2002-01-15 08:37:17
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
news.php topnews.php
Log Message:
OK, fixing some little things such as <br>...
Just to have it look smarter
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/news.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- news.php 2002/01/11 11:47:11 1.4
+++ news.php 2002/01/15 08:37:15 1.5
@@ -195,7 +195,7 @@
$news_tt = "<b><font size='+1'>$row[1]</font></b>";
$intro = "<font size='-1'><i>".translate("POSTED_BY", $DBH).
- " $row[7], $da_formated_date<br>" .
+ " $row[7], $da_formated_date " .
translate('FROM_THE_CATEGORY', $DBH) .
" <a href='welcome.php?MODE=FULL&FAM=$row[11]'>".translate($family,$DBH)."</a></font></i> <br><br>" . $row[2];
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/topnews.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- topnews.php 2002/01/14 19:05:24 1.2
+++ topnews.php 2002/01/15 08:37:16 1.3
@@ -34,8 +34,9 @@
$title = "Top des nouvelles";
$header = "<center>Voici les classements de nouvelles les plus visitées sur le site.</center>";
+
$CONTENT = get_page($title,$header,$TEXTE, $DBH);
-print_template(THEMES_PATH."/main.html",$CONTENT, $title, $DBH, $event, $REMOTE_ADDR, $HTTP_REFERER, '', '', '');
+print_template(THEMES_PATH."/main.html",$CONTENT, $title, $DBH, $event, $REMOTE_ADDR, $HTTP_REFERER, '', 10, 6);
$DBH->close();
|
|
From: mdw c. <myd...@li...> - 2002-01-15 11:16:46
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/backend
Modified Files:
layer.txt
Log Message:
Again I try to make mydynaweb 0.5 really nice to see....
The show_stats.php can now show the stats with the new format.
The detail of a piece of news is better. (author and date added)
The count.php script wotrks fine now.
TO DO : the referer mode for show_stats.php
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/backend/layer.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- layer.txt 2001/12/18 10:48:07 1.1
+++ layer.txt 2002/01/15 11:16:46 1.2
@@ -1,24 +1,12 @@
-<!-- BLOCK:EN -->
-<div align="center" id="layer" valign="center" style="position:absolute; top:100px; width:100%; height:auto; visibility: hidden">
-<div id="layerIn">
-<p>
-<center>
-<h2>Last Update</h2>
-<p align="center">
-<center>Nothing new right now...
-<br><br>
-<a href="#" onClick="hide('layer');return(false);">Close</a>
-</center>
-</div>
-</div>
<!-- BLOCK:FR -->
<div align="center" id="layer" valign="center" style="position:absolute; top:100px; width:100%; height:auto; visibility: hidden">
<div id="layerIn">
<p>
<center>
<h2>Dernière Minute</h2>
-<p align="center">
-<center>Rien de nouveau à l'horizon...
+<img src="/images/t_gandalf.jpg">
+<p>
+Une nouvelle sur le Seigneur des Anneaux vous attend et propose divers liens en rapport avec l'univers merveilleux de Tolkien...
<br><br>
<a href="#" onClick="hide('layer');return(false);">Fermer</a>
</center>
|
|
From: mdw c. <myd...@li...> - 2002-01-15 11:17:16
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
comment.php count.php show_stats.php
Log Message:
Again I try to make mydynaweb 0.5 really nice to see....
The show_stats.php can now show the stats with the new format.
The detail of a piece of news is better. (author and date added)
The count.php script wotrks fine now.
TO DO : the referer mode for show_stats.php
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- comment.php 2001/11/08 03:11:12 1.12
+++ comment.php 2002/01/15 11:16:46 1.13
@@ -25,7 +25,7 @@
$rqt->query($DBH, $sql);
$row = $rqt->getrow();
$news_titre = $row[1];
-
+$info = "<center>" . translate('POSTED_BY', $DBH). " " . $row['user_name'].", ".$row['date'] . "</center>";
$sql = "select count(*) from comments
where _num_news = $row[0]";
$rqt2 = new query($DBH);
@@ -38,10 +38,11 @@
$rqt2 = new query($DBH);
$rqt2->query($DBH, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error());
+
+$PAGE .= "";
-$PAGE = get_piece_of_news($row[1], '<i>' . $row['texte'] . '</i><br><br>' .
+$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);
-$PAGE .= "<P><a href='add_comment.php?num_news=$news'>".translate("COMMENT_NEWS",$DBH)."</a></P>";
// we get the comments
@@ -66,7 +67,8 @@
}
-$CONTENT = get_page(translate("COMMENT_RELATED",$DBH)." <EM>$news_titre</EM>", translate("THERE_ARE",$DBH)." $num_cmt ".translate("COMMENTS_REC",$DBH), $PAGE, $DBH);
+$PAGE .= "<P><center><b><a href='add_comment.php?num_news=$news'>".translate("COMMENT_NEWS",$DBH)."</a></b></P></center>";
+$CONTENT = get_page("<h2>$news_titre</h2>", $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/count.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- count.php 2001/12/06 16:28:40 1.6
+++ count.php 2002/01/15 11:16:46 1.7
@@ -23,10 +23,10 @@
if (!isset($DYNA_UNIQUE)) {
- header ("Location: images/poweredbymydynaweb.gif");
+ header ("Location: images/dynalogo.gif");
}
else {
- header ("Location: images/coffee.gif");
+ header ("Location: images/pixel.gif");
}
$DBH->close();
@@ -77,6 +77,8 @@
$PAGES = $old['PAGEVIEWS'] + 1;
$VISITS = $old['VISITS'] + 1;
$PEOPLE = $old['PEOPLE'];
+ // This is your first visit
+ setcookie('DYNA_VISIT', '1', (time() + 30 * 60));
}
}
else { // no, never seen before...
@@ -100,6 +102,7 @@
$PEOPLE = $old['PEOPLE'] + 1;
}
+ //if (!$PEOPLE) $PEPOLE=1;
// now, we have to store in the DB the new vals of the stats :
$sql = "UPDATE STATS
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/show_stats.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- show_stats.php 2001/09/26 22:25:00 1.8
+++ show_stats.php 2002/01/15 11:16:46 1.9
@@ -3,44 +3,40 @@
include('./include/mydynaweb.init.php');
include(DYNA_ROOT . '/include/mydynaweb.libs.php');
+if (!strlen($mode)) {
+ $mode = 'MONTH';
+ $month='2001-12';
+}
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
-if (SHOW_STATS) {
-
- if (strlen($fullday) && $mode == "DAY") {
- $date_frag = explode("-",$fullday);
- $mon = $date_frag[1] . "_" . $date_frag[0];
- $day = $date_frag[2];
- }
-
// We generate graphs from the user query and store it in $PAGE
switch($mode)
{
case 'MONTH':
- $PAGE = "<i>" . str_replace('_', ' ', $mon) . "</i><br><br>";
-
+ $PAGE .= "<table width='90%' align='center'>
+ <tr><td><b>Day</b></td>
+ <td><b>Pages Viewed</b></td>
+ <td><b>Visits</b></td>
+ <td><b>Visitors</b></td></tr>\n";
+
// what is he max hit number ?
- $sql = "select sum(nb_hit) from hit_$mon group by day;";
+ $sql = "select day, PAGEVIEWS, VISITS, PEOPLE
+ from STATS
+ where DAY like '$month-%'
+ order by DAY ";
$rqt = new query($DBH);
$rqt->query($DBH, $sql);
$max = 0;
while($row = $rqt->getrow()) {
- if ($row[0] > $max) {
- $max = $row[0];
- }
+ $PAGE .= "<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td><td>$row[3]</td></tr>\n";
}
- // we look for each day in the month $mon
- $sql = "select distinct day from hit_$mon order by day asc";
- $rqt = new query($DBH);
- $rqt->query($DBH, $sql);
- while ($row = $rqt->getrow()) {
- $PAGE .= get_stats_day($mon, $row[0], $max, $DBH);
- }
+ $PAGE.= "</table>\n";
+
break;
case 'DAY':
@@ -63,44 +59,6 @@
}
- $PAGE .= "<hr align='center' width='50%'>
- <form name='foo' action='$PHP_SELF'>
- <table width=480 cellpadding=0 cellspacing=0 border=0>
- <tr>
- <td valign='middle' align='center'>
- <b>Choose your stats period</b>
- </td>
- <td valign='middle' align='center'>
- <select name='mode'>
- <option value='DAY'>Day</option>
- <option value='MONTH'>Month</option>
- </select>
- </td>
- </tr>
- <tr>
- <td valign='middle' align='center'>
- <b>Enter the day you want</b>
- </td>
- <td valign='middle' align='center'>
- <input type='text' name='fullday' value='YYYY-MM-DD' size='10'>
- </td>
- </tr>
- <tr><td clospan='2' valign='top' align='middle'><i>OR</i></td></tr>
- <tr>
- <td valign='middle' align='center'>
- <b>Enter the month you want</b>
- </td>
- <td valign='middle' align='center'>
- <input type='text' name='mon' value='MM_YYYY' size='7'>
- </td>
- </tr>
-
- <tr><td clospan='2' valign='top' align='middle'><input type='submit' value='show stats'></td></tr>
-
- </table>
- </form>
-
- <div align='center'><a href='show_stats.php?mode=REFERER'>".translate('SHOW_REFERERS', $DBH)."</a></center>";
// 2 - We send the HTML output in the appropriate format (language, theme)
@@ -109,83 +67,5 @@
print_template(THEMES_PATH."/main.html", $CONTENT, translate('STATS_TITLE', $DBH), $DBH, 'stats', $REMOTE_ADDR, $HTTP_REFERER);
-
-}
-else {
-
- $CONTENT = get_page(translate('STATS_SORRY_TITLE', $DBH), '', translate('STATS_SORRY_CONTENT', $DBH), $DBH);
- print_template(THEMES_PATH."/main.html", $CONTENT, translate('STATS_SORRY_TITLE', $DBH), $DBH, 'stats', $REMOTE_ADDR, $HTTP_REFERER);
-
-}
-
-die();
-
-
-function get_stats_day ($mon, $day, $max, $DBH)
-{
-
- // we make the stats for the day $mon $day (yyyy-mm-dd)
-
-
- $sql = "select count(*) from hit_$mon where day=$day";
- $rqt = new query($DBH);
- $rqt->query($DBH, $sql);
- $row = $rqt->getrow();
- $surfers = $row[0];
-
-
- $sql = "select nb_visit from hit_$mon where day=$day";
- $rqt = new query($DBH);
- $rqt->query($DBH, $sql);
- $visits = 0;
- while ($row = $rqt->getrow()) {
- $visits += $row[0];
- }
-
-
- $sql = "select nb_hit from hit_$mon where day=$day";
- $rqt = new query($DBH);
- $rqt->query($DBH, $sql);
- $hits = 0;
- while ($row = $rqt->getrow()) {
- $hits += $row[0];
- }
-
-
- if (!$hits) {
- $CONTENT = get_page('Stats Unavailable !',
- "The following problem occured :",
- 'Sorry stats are no longer supported in this release.', $DBH);
- print_template(THEMES_PATH."/main.html", $CONTENT, 'No Stats', $DBH,"URL=$url", $REMOTE_ADDR, $HTTP_REFERER);
- die();
- }
-
-if (! strlen($max)) {
- $max = $hits;
-}
-
- $hit_percentile = ($hits * 100 / $max);
- $vis_percentile = ($visits * 100 / $max);
- $sur_percentile = ($surfers * 100 / $max);
-
- if ($day < 10) {
- $day = "0" . $day;
- }
-
- $PAGE = " <table>
- <tr> <td rowspan='3' valign='middle' align='center'><b>$day</b></td>
- <td>".translate("PAGE_VIEW", $DBH). " : </td>
- <td>$hit_percentile</td><td align='right'>$hits</td></tr>
- <tr><td>".translate("VISIT",$DBH)." : </td> <td>$vis_percentile</td>
- <td align='right'>$visits</td></tr>
- <tr><td>".translate("USER", $DBH)." : </td> <td>$sur_percentile</td>
- <td align='right'>$surfers</td></tr>
- </table>";
-
- $date = date("d - m - Y");
-
- return $PAGE;
-
-}
?>
|
|
From: mdw c. <myd...@li...> - 2002-01-23 09:50:07
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
save_coment.php seek.php show_stats.php
Log Message:
These are one of the last changes done to the 0.5 branch.
- When user post a comment, a mail is sent to every previous user that have post a comment.
- Stats are quite finished. You can look at referer
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/save_coment.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- save_coment.php 2001/11/08 03:11:12 1.8
+++ save_coment.php 2002/01/23 09:50:04 1.9
@@ -59,5 +59,44 @@
$ca->clear_news(USER_LANG);
$ca->clear_comment($num_news);
header("Location: news.php");
+
+ $sql = "select titre, user_name from news where num_news=$num_news";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql);
+ $orig = $rqt->getrow();
+
+ $sql = "select user_name, user_mail from comments where comments._num_news=$num_news";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql) or die ("err : $sql, ".$rqt->error());
+ while ($row = $rqt->getrow()) {
+ $trolls[$row[1]] = $row[0];
+ }
+ foreach ($trolls as $email=>$name) {
+
+
+ $sujet = ("Nouveau commentaire sur ".SITE_TITLE);
+ $headers .= "From: <".WEBMASTER_EMAIL.">\n";
+ $headers .= "X-Sender: <".WEBMASTER_EMAIL.">\n";
+ $headers .= "X-Mailer: MyDynaWeb 0.5\n";
+ $headers .= "Return-Path: <".WEBMASTER_EMAIL.">\n";
+ $message = "
+Bonjour,
+
+Vous avez récemment posté un commentaire par rapport à la nouvelle
+intitulée : \"$orig[0]\" sur le site ".SITE_TITLE.".
+
+\"$username\" vient de poster un nouveau message intitulé \"$titre\".
+
+Vous pouvez consulter et répondre à ce commentaire à l'adresse suivante :
+".SITE_ROOT."comment.php?news=$num_news
+
+A bientôt sur ".SITE_TITLE." !
+
+________________________________________________________________________
+Message généré par MyDynaWeb (http://mydynaweb.sf.net)
+Moteur du site ".SITE_TITLE." (".SITE_ROOT.") ";
+
+ mail($email, stripslashes($sujet), $message, $headers);
+ }
?>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/seek.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- seek.php 2002/01/22 00:13:39 1.2
+++ seek.php 2002/01/23 09:50:04 1.3
@@ -145,7 +145,7 @@
$FORM = "
- <FORM NAME='search' ACTION='$PHP_SELF' METHOD='POST'>
+ <FORM NAME='search' ACTION='$PHP_SELF' METHOD='GET'>
<table align='center' cellspacing='10' cellpadding='0' border='0' width='400'>
<tr>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/show_stats.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- show_stats.php 2002/01/15 11:16:46 1.9
+++ show_stats.php 2002/01/23 09:50:04 1.10
@@ -23,7 +23,6 @@
<td><b>Visits</b></td>
<td><b>Visitors</b></td></tr>\n";
- // what is he max hit number ?
$sql = "select day, PAGEVIEWS, VISITS, PEOPLE
from STATS
where DAY like '$month-%'
@@ -39,29 +38,64 @@
break;
- case 'DAY':
- $PAGE = get_stats_day($mon, $day, '', $DBH);
- break;
-
- default:
- // we just look for today
- $mon = date("m_Y");
- $day = date("d");
- $PAGE = get_stats_day($mon, $day, '', $DBH);
- break;
+ case 'REF':
+
+ $PAGE .= "<table width='100%' align='center'>
+ <tr><td><b>Day</b></td>
+ <td><b>Referrer</b></td>
+ <td><b>Times</b></td></tr>\n";
+
+ $sql = "select DAY,REF_URL,NB
+ From REFERRERS, REF_DAY
+ where DAY like '$day%'
+ and REFERRERS.REF_ID = REF_DAY.REF_ID
+ order by NB desc ";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql);
+ $max = 0;
+ while($row = $rqt->getrow()) {
+
+ $url = urldecode($row[1]);
+ if (ereg(SITE_ROOT, $url, $regs)) {
+ $interne++;
+ }
+ else {
+ if (ereg('google', $url) or
+ ereg('yahoo', $url) or
+ ereg('altavista', $url)) {
+ $moteur++;
+ }
+ $url = "<a href='$url' target='ref'>$url</a>";
+ $PAGE .= "<tr> <td width='90'><font size='-2'>$row[0]</font></td>
+ <td><font size='-2'>$url</font></td>
+ <td align='right'><font size='-2'>$row[2]</font></td>
+ </tr>\n";
+ }
+ }
+
+ $PAGE.= "</table>\n";
+ $PAGE = "$interne referrers internes, $moteur referrers venant de moteur <P>" . $PAGE;
- case 'REFERER':
- $PAGE = "<b>Referer for the site ".SITE_TITLE."</b><br><br>";
- $PAGE .= "<font size='-2' face='tahoma,arial,helvetica'>" . look_referers($DBH) . "</font>";
- break;
+ break;
+
+ default:
+ $sql = "Select day, PAGEVIEWS, VISITS, PEOPLE
+ from STATS
+ where DAY like '$month-%'
+ order by DAY ";
+ $rqt = new query($DBH);
+ $rqt->query($DBH, $sql);
+ $max = 0;
+ $PAGE .= "<table><tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td><td>$row[3]</td></tr></table>\n";
+ break;
}
- // 2 - We send the HTML output in the appropriate format (language, theme)
+ // 2 - We send the HTML output in the apprOpriate format (language, theme)
$CONTENT = get_page(translate('STATS_TITLE', $DBH), translate('STATS_CONTENT', $DBH), $PAGE, $DBH);
print_template(THEMES_PATH."/main.html", $CONTENT, translate('STATS_TITLE', $DBH), $DBH, 'stats', $REMOTE_ADDR, $HTTP_REFERER);
|
|
From: mdw c. <myd...@li...> - 2002-01-23 11:53:34
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
login.php
Log Message:
OKay, now the login script is much more conveniant :)
it speaks a little bit more and enable "tabbing-login"
PS : thx 2 ben
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/login.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- login.php 2001/10/10 21:28:17 1.1
+++ login.php 2002/01/23 11:53:33 1.2
@@ -38,20 +38,20 @@
<td>
".translate("LOGIN", $DBH)."
</td>
-<td><input type='text' name='login' size='10'>
-
-<td rowspan=2 align='right'>
-<input type='submit' value='".translate("ENTER", $DBH)." >>'>
-</td>
-
+<td><input type='text' name='login' size='10'></td>
</tr>
<tr>
<td>
".translate("PASSWORD",$DBH)."
</td>
-<td><input type='password' name='password' size='10'>
+<td><input type='password' name='password' size='10'></td>
+</tr>
+<tr>
+<td colspan='2' align='center'>
+<input type='submit' value='".translate("ENTER", $DBH)." >>'>
+</td>
</tr>
</table>
@@ -80,12 +80,17 @@
<table width="400" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><td>
<table width="400" bgcolor="#FFFFFF" cellpadding="0" cellspacing="10" border="0"><tr><td>
+<br><br>
+
+<p align="center">
<? echo translate("ENTER_ROOT_ACCESS_CODE", $DBH) ?>
+</p>
<p>
<? echo $LOGIN_FORM ?>
+<br><br>
</td></tr></table>
</td></tr></table>
|
|
From: mdw c. <myd...@li...> - 2002-01-23 13:03:53
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/tools/content
Modified Files:
form.php
Log Message:
Okay.
I encountered a strange problem with the "str_pad" function.
It was bombing out my ccs module.
So I just replaced str_pad with an appropriate sprintf occurence.
It works fine now :)
Pleae tell me if it is OK for you.
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/tools/content/form.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- form.php 2002/01/21 16:24:00 1.9
+++ form.php 2002/01/23 13:03:52 1.10
@@ -72,7 +72,7 @@
$menu .= "<SELECT name=\"$dvar\">";
for($iday=1;$iday<=31;$iday++){
- $idaypadded=str_pad($iday,2,"0",STR_PAD_LEFT);
+ $idaypadded=sprintf("%02d", $iday);
if($idaypadded == $dsel){$selected="SELECTED";}else{$selected="";}
$menu .= "<OPTION $selected value=$idaypadded>$idaypadded</OPTION>";
}
|
|
From: mdw c. <myd...@li...> - 2002-01-24 10:07:46
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
save_coment.php
Log Message:
Translation of the mail sent to user when commenting a piece of news.
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/save_coment.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- save_coment.php 2002/01/23 09:50:04 1.9
+++ save_coment.php 2002/01/24 10:07:44 1.10
@@ -74,27 +74,22 @@
foreach ($trolls as $email=>$name) {
- $sujet = ("Nouveau commentaire sur ".SITE_TITLE);
+ $sujet = (translate("NEW_COMMENT_ON", $DBH) . SITE_TITLE);
$headers .= "From: <".WEBMASTER_EMAIL.">\n";
$headers .= "X-Sender: <".WEBMASTER_EMAIL.">\n";
$headers .= "X-Mailer: MyDynaWeb 0.5\n";
$headers .= "Return-Path: <".WEBMASTER_EMAIL.">\n";
- $message = "
-Bonjour,
+ $message = (translate ('NEW_COMMENT_MAIL1', $DBH) . " $orig[0] " .
+ translate('NEW_COMMENT_MAIL2', $DBH) .
+ SITE_TITLE. ".\n\n".
+ "$username ". translate('NEW_COMMENT_MAIL3', $DBH) . "\"$titre\".\n\n".
+ translate('NEW_COMMENT_MAIL4', $DBH) .
+ SITE_ROOT."comment.php?news=$num_news
-Vous avez récemment posté un commentaire par rapport à la nouvelle
-intitulée : \"$orig[0]\" sur le site ".SITE_TITLE.".
-
-\"$username\" vient de poster un nouveau message intitulé \"$titre\".
-
-Vous pouvez consulter et répondre à ce commentaire à l'adresse suivante :
-".SITE_ROOT."comment.php?news=$num_news
-
-A bientôt sur ".SITE_TITLE." !
-
________________________________________________________________________
-Message généré par MyDynaWeb (http://mydynaweb.sf.net)
-Moteur du site ".SITE_TITLE." (".SITE_ROOT.") ";
+".
+translate('NEW_COMMENT_MAIL5', $DBH) . "\n" .
+translate('NEW_COMMENT_MAIL6', $DBH) . SITE_TITLE ." (".SITE_ROOT.") ");
mail($email, stripslashes($sujet), $message, $headers);
|
|
From: mdw c. <myd...@li...> - 2002-01-24 12:01:36
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/gnome
Modified Files:
box.html main.html topbar.html
Log Message:
some clean up
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/gnome/box.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- box.html 2001/10/08 11:03:35 1.1
+++ box.html 2002/01/24 12:01:35 1.2
@@ -1,6 +1,6 @@
<!-- BLOCK:HEAD -->
-<TABLE cellpadding=3 cellspacing=0 border=1 width="170" align=center>
- <TR bgcolor="#996666">
+<TABLE cellpadding=3 cellspacing=0 border=0 width="170" align=center bgcolor="#FFFFFF">
+ <TR bgcolor="#770000">
<TD valign=top>
<FONT size=4 color="#FFFFFF" face="arial,helvetica" >
<B>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/gnome/main.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- main.html 2001/12/18 10:28:29 1.7
+++ main.html 2002/01/24 12:01:35 1.8
@@ -14,6 +14,7 @@
<style type="text/css">
A {
+ color: #440000;
text-decoration: none;
}
@@ -23,6 +24,7 @@
td,p,li {
font-family: tahoma,arial,helvetica;
+ color: #000000;
}
#layerIn {
top: 100px;
@@ -46,36 +48,38 @@
-<body background="images/themes/gnome/gnome-bg.jpg"
- bgcolor="#e8e5e0"
- text="#333333" link="#770000" vlink="#000000" alink="#000000">
+<body background="images/themes/gnome/gnome-bg.jpg" bgcolor="#e8e5e0">
<center>~TOPBAR~</center>
-<table width="90%" cellpadding="0" border="0" cellspacing="0" align="center">
+<table width="100%" cellpadding="0" border="0" cellspacing="0" align="center">
<tr>
-<td align="left" valign="top">
+<td align="center" valign="top" width="100%">
<br>
-<a href="~SITE_ROOT~"><font size="+3" color="#000011">~SITE_TITLE~</font></a></td>
-<td valign="middle" align="center">
-~QUOTATION~
-<!--<img src="images/mdw.gif" alt="MyDynaWeb"><br>
-<b><font face="tahoma,arial,helvetica" size="-1">"What you think is what you get !"</font></b>
--->
+
+
+<table bgcolor="#000000" cellspacing="0" cellpadding="1" border="0" align="center"><tr><td>
+<table bgcolor="#FFFFFF" cellspacing="10" cellpadding="2" border="0" align="center"><tr><td>
+<a href="~SITE_ROOT~"><font size="+5" color="#000011"><b>~SITE_TITLE~</b></font></a>
+</td></tr></table>
+</td></tr></table>
+
+
</td>
-<td align="right">~RIGHT_CORNER~</td>
+
+
</tr>
<tr>
-<td colspan="3"><img src="images/pixel.gif" width="7" height="1"></td>
+<td ><img src="images/pixel.gif" width="7" height="1"></td>
</tr>
</table>
-<table width="99%" align="center" cellpadding="0" border="0" cellspacing="0">
+<table width="100%" align="center" cellpadding="0" border="0" cellspacing="0">
<tr>
@@ -84,11 +88,9 @@
<td valign="top" align="center" width="120">
<br>
-~LINK_BOXES~
-<br>
+~LINK_BOXES~
-~NEWS_LETTER~
</td>
@@ -108,17 +110,13 @@
<td valign="top" align="center" width="120">
-<br>
-~CALENDAR~
-<br>
-~SEARCH~
-<br>
~LOGIN~
<br>
~CONTROL_PANNEL~
<br>
+~SEARCH~
+<br>
~HEADLINES~
- <br>
<br>
<A href="http://sourceforge.net">
<IMG src="http://sourceforge.net/sflogo.php?group_id=18465" width="88" height="31" border="0" alt="Source Forge Logo"></A>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/gnome/topbar.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- topbar.html 2001/07/24 22:07:52 1.1
+++ topbar.html 2002/01/24 12:01:35 1.2
@@ -7,21 +7,21 @@
<table cellspacing="0" width="100%" >
<tr><td>
- <font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif"><b>~BAR_TITLE~</b></font>
+ <font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif"><b>~BAR_TITLE~</b></font>
<a
- style="text-decoration: none" href="~LEFT1_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT1~</font></a> · <a
- style="text-decoration: none" href="~LEFT2_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT2~</font></a> · <a
- style="text-decoration: none" href="~LEFT3_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT3~</font></a> · <a
- style="text-decoration: none" href="~LEFT4_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT4~</font></a> · <a
- style="text-decoration: none" href="~LEFT5_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT5~</font></a>
+ style="text-decoration: none" href="~LEFT1_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT1~</font></a> · <a
+ style="text-decoration: none" href="~LEFT2_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT2~</font></a> · <a
+ style="text-decoration: none" href="~LEFT3_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT3~</font></a> · <a
+ style="text-decoration: none" href="~LEFT4_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT4~</font></a> · <a
+ style="text-decoration: none" href="~LEFT5_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~LEFT5~</font></a>
</td>
<td align="right">
<a
- style="text-decoration: none" href="~RIGHT1_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~RIGHT1~</font></a> · <a
- style="text-decoration: none" href="~RIGHT2_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~RIGHT2~</font></a> · <a
- style="text-decoration: none" href="~RIGHT3_URL~"><font color="#000000" size="-1" face="Geneva, Verdana, Arial, Sans-Serif">~RIGHT3~</font></a>
+ style="text-decoration: none" href="~RIGHT1_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~RIGHT1~</font></a> · <a
+ style="text-decoration: none" href="~RIGHT2_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~RIGHT2~</font></a> · <a
+ style="text-decoration: none" href="~RIGHT3_URL~"><font color="#000000" size="+2" face="Geneva, Verdana, Arial, Sans-Serif">~RIGHT3~</font></a>
</td></tr>
</table>
|
|
From: mdw c. <myd...@li...> - 2002-02-06 14:08:19
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/include
Modified Files:
gui.inc.php
Log Message:
OKay
I'm about to release 0.5
...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/gui.inc.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- gui.inc.php 2002/01/22 01:12:35 1.48
+++ gui.inc.php 2002/02/06 14:08:18 1.49
@@ -308,7 +308,7 @@
</table>
</form>";
} else {
- $VALUES['CONTENT'] = ("<a href='members.php3'>".
+ $VALUES['CONTENT'] = ("<a href='members.php'>".
translate('LOGGED_IN_AS', $DBH) .
"</a> $login<br>
<font size=-2><center>
|
|
From: mdw c. <myd...@li...> - 2002-02-06 14:08:49
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
news.php topnews.php
Log Message:
OKay
I'm about to release 0.5
...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/news.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- news.php 2002/01/15 08:37:15 1.5
+++ news.php 2002/02/06 14:08:18 1.6
@@ -7,6 +7,25 @@
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
$ca= new cache($DBH);
+
+// 20 $news item a page
+///////////////////////
+
+$limit = "limit 10, 20";
+if (isset($start)) {
+ $limit = "limit $start, $stop";
+}
+else if (isset($stop)) {
+ $limit = "limit $stop";
+}
+
+$start += 30;
+$stop = 20;
+
+$p_start -= 30;
+
+if ($p_start < 0) $p_start = 10;
+
$page = 10;
if ($file_name=$ca->is_cached("NEWS.$q.$old.$num.$fam", USER_LANG, ACTIVE_THEME))
@@ -19,7 +38,13 @@
{
if ($old == "yes") {
- $cond = "limit 10, 15000";
+
+ if (!strlen($limit)) {
+ $cond = "limit 10, 15000";
+ } else {
+ $cond = $limit;
+ }
+
$old_or_not = "Old ";
$chapeau_news = translate("OLD_NEWS",$DBH);
$num_page_count = 6;
@@ -141,8 +166,7 @@
if ( (strlen($q) || strlen($old)) &&
(!strlen($num))
) {
-
- $PAGE .= "<a href=\"$PHP_SELF?num=$row[0]\"><li><b>$row[1]</b></a>, $da_formated_date $row[7] </li>";
+ $PAGE .= " <a href=\"$PHP_SELF?num=$row[0]\"> <b>$row[1]</b></a>, $da_formated_date $row[7] <br><br>";
}
else if (strlen($readmore)) {
$full_title = "<b>$row[1]</b> <font size='-1'><i>".translate("POSTED_BY",$DBH)." $row[7] ".translate("ON",$DBH)." $da_formated_date</font>".translate('FROM_THE_CATEGORY', $DBH)." ". translate($family,$DBH) . "</i><br>";
@@ -220,19 +244,31 @@
$rqt->query($DBH, $sql);
$row = $rqt->getrow();
$page_header .= "$row[1]<p><img src='$row[0]'><p>";
+ $NEXT_FOOTER = "<table width=50% align=center><tr>
+ <td align=left><a href='news.php?q=$q&start=$p_start&stop=$stop'><<</a></td>
+ <td align=right><a href='news.php?q=$q&start=$start&stop=$stop'>>></a></td>
+ </tr></table>";
}
else {
$page_title = "OLD_NEWS_LIST_TITLE";
$page_header = "OLD_NEWS_LIST_HEADER";
$page_header = "<center>" . translate($page_header, $DBH);
+ $NEXT_FOOTER = "<table width=50% align=center><tr>
+ <td align=left><a href='news.php?old=yes&start=$p_start&stop=$stop'><<</a></td>
+ <td align=right><a href='news.php?old=yes&start=$start&stop=$stop'>>></a></td>
+ </tr></table>";
}
+
+ $PAGE .= $NEXT_FOOTER;
+
$HTML = get_page(translate($page_title, $DBH), $page_header, $PAGE, $DBH);
print_template(THEMES_PATH."/main.html", $HTML, translate("NEWS",$DBH),
$DBH,"NEWS.$q.$old.$num.$fam",$REMOTE_ADDR, $HTTP_REFERER, $MSG, 10, 20);
}
else {
+ $PAGE .= $NEXT_FOOTER;
print_template(THEMES_PATH."/main.html", $PAGE, translate("NEWS",$DBH),
$DBH,"NEWS.$q.$old.$num.$fam",$REMOTE_ADDR, $HTTP_REFERER, $MSG, 10, $page);
}
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/topnews.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- topnews.php 2002/01/15 08:37:16 1.3
+++ topnews.php 2002/02/06 14:08:18 1.4
@@ -3,16 +3,30 @@
include('./include/mydynaweb.init.php');
include(DYNA_ROOT . '/include/mydynaweb.libs.php');
+$limit = "limit 0, 30";
+if (isset($start)) {
+ $limit = "limit $start, $stop";
+}
+else if (isset($stop)) {
+ $limit = "limit $stop";
+}
+$i=$start;
+$start += 30;
+$stop = 30;
+
+$p_start -= 30;
+
+if ($p_start < 0) $p_start = 0;
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
$sql = "select titre, num_news, nbhit from news
- order by nbhit desc";
+ order by nbhit desc
+ $limit";
$rqt = new query($DBH);
$rqt->query($DBH, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error());
$TEXTE .= "<table align='center' width='90%'>";
-$i=0;
while ($row = $rqt->getrow())
{
$numnews = $row[1];
@@ -26,11 +40,20 @@
$bgcolor = '#ffffff';
}
- $TEXTE .= "<tr bgcolor='$bgcolor'><td><a href=\"comment.php?news=$numnews\">$titre</a></td>
+ $TEXTE .= "<tr bgcolor='$bgcolor'><td align=right><b>$i</b></td> <td><a href=\"comment.php?news=$numnews\">$titre</a></td>
<td align='right'>$hits</td></tr>";
}
+
+$NEXT_FOOTER = "<table width=50% align=center><tr>
+ <td align=left><a href='topnews.php?start=$p_start&stop=$stop'><<</a></td>
+ <td align=right><a href='topnews.php?start=$start&stop=$stop'>>></a></td>
+ </tr></table>";
+
+if (!$rqt->numrows()) {
+ $NEXT_FOOTER = "<center>" . translate("NO_NEWS", $DBH)."</center>";
+}
-$TEXTE .= "</table>";
+$TEXTE .= "</table>$NEXT_FOOTER";
$title = "Top des nouvelles";
$header = "<center>Voici les classements de nouvelles les plus visitées sur le site.</center>";
|
|
From: mdw c. <myd...@li...> - 2002-02-18 23:51:29
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/smarty Modified Files: comment.html Log Message: =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/smarty/comment.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- comment.html 14 Nov 2001 14:42:48 -0000 1.1 +++ comment.html 18 Feb 2002 23:51:28 -0000 1.2 @@ -1,20 +1,19 @@ -<table width="480" border="0" cellpadding="1" cellspacing="0" bgcolor="#6A749D"><tr><td> -<table width="480" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE"><tr><td> -<table width="480" border="0" cellpadding="0" cellspacing="3" bgcolor="#EEEEEE"><tr> -<td align="left" bgcolor="#EEEEEE"> - -<font color="#6A749D"><b>~title~</b> (posté par <a href="mailto:~user_mail~">~user_name~</a>, le ~date_ins~)</font><br><br> - -~content~ - -</td> -</tr> +<table width='~SIZE~%' align='right'> + <tr> + <td bgcolor='#dddddd' align='left' width='90%'> + <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"><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> + </td> + </tr> + + <tr> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> </table> - -</td></tr></table> -</td></tr></table> - -<p> - |
|
From: mdw c. <myd...@li...> - 2002-02-18 23:51:59
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/basic Modified Files: comment.html Log Message: =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/basic/comment.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- comment.html 4 Jul 2001 13:09:59 -0000 1.2 +++ comment.html 18 Feb 2002 23:51:28 -0000 1.3 @@ -1,19 +1,19 @@ - <table width="480" border="0" cellpadding="1" cellspacing="0" bgcolor="#AACCFF"><tr><td> - <table width="480" border="0" cellpadding="0" cellspacing="0" bgcolor="#AACCFF"><tr><td> - <table width="480" border="0" cellpadding="0" cellspacing="3" bgcolor="#AACCFF"><tr> - - <td align="left" bgcolor="#AACCff"> - - <font color="#6A749D"><b>~title~</b> (posted by ~user~ @ ~date_ins~)</font><br><br> - ~content~ - - </td> - </tr> - </table> - - </td></tr></table> - </td></tr></table> - - <p> +<table width='~SIZE~%' align='right'> + <tr> + <td bgcolor='#dddddd' align='left' width='90%'> + <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"><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> + </td> + </tr> + + <tr> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> |
|
From: mdw c. <myd...@li...> - 2002-02-18 23:51:59
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/deekay Modified Files: comment.html Log Message: =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/deekay/comment.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- comment.html 13 Dec 2001 23:08:20 -0000 1.1 +++ comment.html 18 Feb 2002 23:51:28 -0000 1.2 @@ -1,9 +1,19 @@ -<hr> - -<b>~title~</b> (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~)<br><br> - -~content~ - -<p> +<table width='~SIZE~%' align='right'> + <tr> + <td bgcolor='#dddddd' align='left' width='90%'> + <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"><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> + </td> + </tr> + + <tr> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> |
|
From: mdw c. <myd...@li...> - 2002-02-18 23:51:59
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/enlightened Modified Files: comment.html Log Message: =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/enlightened/comment.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- comment.html 4 Oct 2001 21:20:43 -0000 1.2 +++ comment.html 18 Feb 2002 23:51:28 -0000 1.3 @@ -1,13 +1,19 @@ -<table align="left"><tr><td> -<b>~title~ (<a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~)</b> -</td></tr> - -<tr><td class="newsbody"> -~content~ -</td></tr></table> - -<p> - -</p> +<table width='~SIZE~%' align='right'> + <tr> + <td bgcolor='#dddddd' align='left' width='90%'> + <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"><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> + </td> + </tr> + + <tr> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> |
|
From: mdw c. <myd...@li...> - 2002-02-18 23:51:59
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/dynadot Modified Files: comment.html Log Message: =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/dynadot/comment.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- comment.html 23 Oct 2001 22:07:56 -0000 1.2 +++ comment.html 18 Feb 2002 23:51:28 -0000 1.3 @@ -1,20 +1,19 @@ - <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#006666" align="center"><tr><td> - <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE"><tr><td> - <table width="100%" border="0" cellpadding="0" cellspacing="3" bgcolor="#EEEEEE"><tr> - - <td align="left" bgcolor="#EEEEEE"> - - <font color="#006666"><b>~title~</b> (posted by <a href="mailto:~user_mail~">~user_name~</a>, ~date_ins~)</font><br><br> - - ~content~ - - </td> - </tr> - </table> - - </td></tr></table> - </td></tr></table> - - <p> +<table width='~SIZE~%' align='right'> + <tr> + <td bgcolor='#dddddd' align='left' width='90%'> + <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"><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> + </td> + </tr> + + <tr> + <td colspan='2' valign="top" align="left"> + ~content~ + <br><br> + </td> + </tr> +</table> |
|
From: mdw c. <myd...@li...> - 2002-02-19 00:33:16
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/images Added Files: answer.gif Log Message: OK, now the comments are like a true forum : you can comment a comment ! have a look here for an example : http://www.sukria.net/comment.php?news=100 |
|
From: mdw c. <myd...@li...> - 2002-02-19 00:33:46
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs Modified Files: comment.php add_comment.php save_coment.php Log Message: OK, now the comments are like a true forum : you can comment a comment ! have a look here for an example : http://www.sukria.net/comment.php?news=100 =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- comment.php 15 Jan 2002 11:16:46 -0000 1.13 +++ comment.php 19 Feb 2002 00:33:15 -0000 1.14 @@ -6,6 +6,8 @@ $DBH=new db(); $DBH->open($dbName, $dbServer, $dbUser, $dbPass); +define("REACT", translate('REACT', $DBH)); + $ca = new cache($DBH); if ($file_name=$ca->is_cached("COMMENT.$news", USER_LANG, ACTIVE_THEME)) { @@ -28,9 +30,10 @@ $info = "<center>" . translate('POSTED_BY', $DBH). " " . $row['user_name'].", ".$row['date'] . "</center>"; $sql = "select count(*) from comments where _num_news = $row[0]"; - $rqt2 = new query($DBH); - $rqt2->query($DBH, $sql); - $row2 = $rqt2->getrow(); +$rqt2 = new query($DBH); +$rqt2->query($DBH, $sql); +$row2 = $rqt2->getrow(); +$num_comments = $row2[0]; // here we can increase the hit number $row[nbhit]++; @@ -44,32 +47,112 @@ $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); -// we get the comments -$sql = "select title, content, user_name, user_mail, date_ins - from comments - where _num_news = $news - order by num_cmt desc"; -$rqt = new query($DBH); -$rqt->query($DBH, $sql); -$num_cmt = 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> +</center> + +<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]; -while ($row = $rqt->getrow()) { - $num_cmt++; +if (sizeof($get_parents)) { + $PAGE .= "<br><b>$num_comments " . translate("COMMENTS", $DBH). " : </b><br><br>"; +} - if (! strlen($row['user_name'])) { - $row['user_name'] = translate("anonymous",$DBH); - } - - $PAGE .= get_template(THEMES_PATH."/comment.html", $row); - +// Step 2 : print out the threads +foreach ($get_parents as $thread) { + $PAGE .= print_message($thread, 0, $get_message, $get_children); } +//////////////////////////////////////////////////////////////////////// -$PAGE .= "<P><center><b><a href='add_comment.php?num_news=$news'>".translate("COMMENT_NEWS",$DBH)."</a></b></P></center>"; $CONTENT = get_page("<h2>$news_titre</h2>", $info, $PAGE, $DBH); print_template(THEMES_PATH."/main.html", $CONTENT, $row[1], $DBH,"COMMENT.$news", $REMOTE_ADDR, $HTTP_REFERER, $MSG, 10, 50); } + + + + +/* + Great news : comments are recursive ! + Now people can answer to comment like + in every forum ... + So we need a recursive function which + can draw messages and their children... +*/ + +function print_message ($num_cmt, $level, $get_message, $get_children) +{ + $HTML = ""; + + $get_message[$num_cmt]['REACT'] = REACT; + $get_message[$num_cmt]['SIZE'] = 100; + for ($i=0; $i<$level; $i++) { + $get_message[$num_cmt]['SIZE'] -= 5; + } + + $HTML .= get_template(THEMES_PATH."/comment.html", $get_message[$num_cmt]); + + if (sizeof($get_children[$num_cmt])) { + foreach ($get_children[$num_cmt] as $child) { + $HTML .= print_message($child, $level+1, $get_message, $get_children); + } + } + + return $HTML; +} + +/* + To increase speed, we do only one query to the DB : + get every comments posted to that piece of news and + put it into a hashtable $message[num] => [FIELD] => content + for instance + $message[12][TITLE] send me the title of the #12 comment +*/ +function read_messages($dbh, $num_news) +{ + // the hashtable with the info of the messages + $get_message = Array(); + + // return an array of children + $get_children = Array(); + + $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"; + $rqt = new query($dbh); + $rqt->query($dbh, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error()); + + // fetching the message and filling the hash with infos... + while ($row = $rqt->getrow()) { + $get_message[$row[0]] = $row; + + // if this message has a parent, say it ! + if ($row['pere']) { + // push the numcmt to the table of children of the parent + $get_children[$row['pere']][sizeof($get_children[$row['pere']])] = $row['num_cmt']; + } + else { + // this message begins a new thread, lets say it ! + $get_parents[sizeof($get_parents)] = $row['num_cmt']; + } + } + + return Array ($get_message, $get_parents, $get_children); +} + ?> =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/add_comment.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- add_comment.php 8 Nov 2001 03:11:12 -0000 1.6 +++ add_comment.php 19 Feb 2002 00:33:16 -0000 1.7 @@ -24,7 +24,7 @@ } // we get every comment posted for that news (for creating the reply listbox) -$sql = "SELECT title +$sql = "SELECT title, num_comment FROM comments WHERE _num_news = $num_news ORDER BY date_ins DESC"; @@ -32,10 +32,12 @@ $rqt->query($DBH, $sql); $REPLY_LIST = "<select name='reply' onchange=\"update_title();return(false);\">\n"; while ($row = $rqt->getrow()) { - $REPLY_LIST .= "\t<option>$row[0]</option>\n"; + $REPLY_LIST .= "\t<option value=''>$row[0]</option>\n"; } $REPLY_LIST .= "</SELECT>\n"; +if (!isset($pere)) $pere = 0; + $formulaire = " @@ -57,6 +59,7 @@ <FORM name=\"form_cmt\" action=\"save_coment.php\" METHOD='POST'> <input type='hidden' name='num_news' value='$num_news'> +<input type='hidden' name='pere' value='$pere'> <table align=\"center\" cellpadding=0 cellspacing=5 border=0> =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/save_coment.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- save_coment.php 24 Jan 2002 10:07:44 -0000 1.10 +++ save_coment.php 19 Feb 2002 00:33:16 -0000 1.11 @@ -45,13 +45,14 @@ $content = ereg_replace("((ftp://)|(http://))(([[:alnum:]]|[[:punct:]])*)", "<a href=\"\\0\">\\0</a>",$content); - + // we insert the comment in the database + if (!isset($pere)) $pere = 0; - $sql = "insert into comments (title, _num_news, date_ins, content, user_name, user_mail) - values ('$titre', $num_news, '$aujourdhui', '$content', '$username', '$usermail')"; + $sql = "insert into comments (title, _num_news, date_ins, content, user_name, user_mail, pere) + values ('$titre', $num_news, '$aujourdhui', '$content', '$username', '$usermail', $pere)"; $rqt = new query($DBH); $rqt->query($DBH, $sql) or die($sql . $rqt->error()); |
|
From: mdw c. <myd...@li...> - 2002-02-19 09:29:08
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
comment.php
Log Message:
It was bugging under non Mozilla browser such as IE
Now its ok
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/comment.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- comment.php 19 Feb 2002 00:33:15 -0000 1.14
+++ comment.php 19 Feb 2002 09:29:07 -0000 1.15
@@ -67,14 +67,21 @@
$get_parents = $msg_infos[1];
$get_children = $msg_infos[2];
+$PAGE .= "<table width='100%'>";
+
if (sizeof($get_parents)) {
- $PAGE .= "<br><b>$num_comments " . translate("COMMENTS", $DBH). " : </b><br><br>";
+ $PAGE .= "<tr><td><b>$num_comments " . translate("COMMENTS", $DBH). " : </b></td></tr>";
}
// Step 2 : print out the threads
-foreach ($get_parents as $thread) {
- $PAGE .= print_message($thread, 0, $get_message, $get_children);
+if ($num_comments) {
+ foreach ($get_parents as $thread) {
+ $PAGE .= print_message($thread, 0, $get_message, $get_children);
+ }
}
+
+$PAGE .= "</table>";
+
////////////////////////////////////////////////////////////////////////
@@ -104,7 +111,7 @@
$get_message[$num_cmt]['SIZE'] -= 5;
}
- $HTML .= get_template(THEMES_PATH."/comment.html", $get_message[$num_cmt]);
+ $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) {
|