|
From: mdw c. <myd...@li...> - 2001-10-08 21:48:39
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
index.html menu.php3
Added Files:
admin-header.gif sphere.gif
Log Message:
I've reorganized the admin section to have a better look and feel.
Indeeed it was a little bit 'ugly' with the frameset and the only tow colors...
Now it is a little bit much nice to see :)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/index.html,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -3 -r1.1.1.1 -r1.2
--- index.html 2001/03/23 01:05:51 1.1.1.1
+++ index.html 2001/10/08 21:48:08 1.2
@@ -4,9 +4,9 @@
<title>MyDynaWeb Admin</title>
</head>
-<frameset cols="150, *" border="no">
+<frameset rows="150, *" border="no" scrollbars="no" scrolling="no">
<frame src="menu.php3" name="menu">
<frame src="page.php3" name="page">
</frameset>
-</html>
\ No newline at end of file
+</html>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/menu.php3,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- menu.php3 2001/10/08 15:01:42 1.14
+++ menu.php3 2001/10/08 21:48:08 1.15
@@ -14,6 +14,11 @@
color: 000000;
}
+ A:hover {
+ text-decoration: underline;
+ color: #bd741c;
+ }
+
H1 {
text-decoration: bold;
color: 222299;
@@ -26,100 +31,133 @@
font-family: lucida,verdana,helvetica,arial,sans-serif;
font-size: 10pt;
}
+ td.title {
+ font-family: tahoma,arial,helvetica;
+ color: #000000;
+ font-size: 10pt;
+ font-weight: bold;
+ text-align: left;
+ }
+ td.items {
+ font-family: tahoma,arial,helvetica;
+ color: #000000;
+ font-size: 8pt;
+ text-align: left;
+ }
+
</style>
</head>
-<body bgcolor="#ffffff">
+<body background="./admin-header.gif">
-<img src="images/logo.jpg">
+<center>
+<font size="-1"><b> M y D y n a W e b A d m i n S e c t i o n </b></font>
+<hr width="90%">
+</center>
-<br>
-<br>
+<table width="100%" border="0" align="center">
-<table>
-
+<!-- TITRES -->
<tr>
- <td><H1><? echo uphtml(translate("MAIN_ADMIN",$DBH)) ?></H1><td>
-</tr>
-<tr>
- <td><img src="images/puce.jpg"> <b><? echo translate("SETTINGS",$DBH) ?></b><br>
-
- <a href="new_setting.php3" target="page"><? echo translate("CREATE",$DBH) ?></a><br>
- <a href="show_settings.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a><br>
- <a href="show_settings.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a><br><br>
- </td>
-</tr>
-<tr>
-<td>
- <a href="../vide_cache.php" target="page"><? echo translate("DROP_CACHE_FILES",$DBH) ?></a><br>
+<td class="title" valign="middle">
+ <img src="./sphere.gif" valign="middle"> <? echo uphtml(translate("MAIN_ADMIN",$DBH)); ?>
+</td>
- </td>
+<td class="title" valign="middle">
+ <img src="./sphere.gif" valign="middle"> <? echo uphtml(translate("BUILDING",$DBH)); ?>
+</td>
-</tr>
-<tr>
- <td><H1><? echo uphtml(translate("BUILDING",$DBH)) ?></H1><td>
+<td class="title" valign="middle">
+ <img src="./sphere.gif" valign="middle"> <? echo uphtml(translate("FILLING",$DBH)); ?>
+</td>
+
+
+
</tr>
+<!-- ITEMS -->
<tr>
- <td valign="top"><img src="images/puce.jpg"> <b><? echo translate("L_BOX",$DBH) ?></b><br>
- <a href="add_box.php3" target="page"><? echo translate("CREATE",$DBH) ?></a><br>
- <a href="mod_box.php3" target="page"><? echo translate("UPDATE",$DBH) ?></a><br>
- <a href="del_box.php3" target="page"><? echo translate("DELETE",$DBH) ?></a><br><br>
- </td>
-</tr>
-<tr>
- <td><img src="images/puce.jpg"> <b><? echo translate("ENV",$DBH) ?></b><br>
- <a href="db_interface.php?table=languages&KEY=id_lang" target="page"><? echo translate("LANGUAGE",$DBH) ?></a><br>
- <a href="db_interface.php?table=top_bar&KEY=bar_name&KEY2=lang_id" target="page"><? echo translate("TOP_BAR",$DBH) ?></a><br>
- <a href="db_interface.php?table=topic&KEY=titre&KEY2=num_topic" target="page"><? echo translate("TOPICS",$DBH) ?></a><br>
- <a href="db_interface.php?table=members&KEY=name" target="page"><? echo translate("MEMBERS",$DBH) ?></a><br>
+<!-- MAIN ADMIN -->
+<td class="items">
+<b><? echo translate("SETTINGS",$DBH) ?></b> :
+[ <a href="new_setting.php3" target="page"><? echo translate("CREATE",$DBH) ?></a> |
+ <a href="show_settings.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
+ <a href="show_settings.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a>
+]
+<br>
+<b><? echo translate("CACHE", $DBH); ?></b> :
+ <a href="../vide_cache.php" target="page"><? echo translate("DROP_CACHE_FILES",$DBH) ?></a>
- <a href="newsletter.php" target="page"><? echo translate("NEWS_LETTER",$DBH) ?></a><br><br>
</td>
-</tr>
-<tr>
- <td><H1><? echo uphtml(translate("FILLING",$DBH)) ?></H1><td>
-</tr>
+<!-- BUILDING -->
+<td class="items">
+<b><? echo translate("L_BOX",$DBH) ?></b> :
+[
+ <a href="add_box.php3" target="page"><? echo translate("CREATE",$DBH) ?></a> |
+ <a href="mod_box.php3" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
+ <a href="del_box.php3" target="page"><? echo translate("DELETE",$DBH) ?></a>
+]
+<br>
+<b><? echo translate("ENV", $DBH); ?></b> :
+[
+ <a href="db_interface.php?table=languages&KEY=id_lang" target="page"><? echo translate("LANGUAGE",$DBH) ?></a> |
+ <a href="db_interface.php?table=top_bar&KEY=bar_name&KEY2=lang_id" target="page"><? echo translate("TOP_BAR",$DBH) ?></a> |
+ <a href="db_interface.php?table=topic&KEY=titre&KEY2=num_topic" target="page"><? echo translate("TOPICS",$DBH) ?></a> |
+ <a href="db_interface.php?table=members&KEY=name" target="page"><? echo translate("MEMBERS",$DBH) ?></a> |
+ <a href="newsletter.php" target="page"><? echo translate("NEWS_LETTER",$DBH) ?></a>
-<tr>
- <td><img src="images/puce.jpg"> <b><? echo translate("PAGES",$DBH) ?></b><br>
-
- <a href="new_page.php3" target="page"><? echo translate("CREATE",$DBH) ?></a><br>
- <a href="show_pages.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a><br>
- <a href="show_pages.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a><br><br>
-
- </td>
-</tr>
+]
+<br>
-<tr>
- <td><img src="images/puce.jpg"> <b><? echo translate("NEWS",$DBH) ?></b><br>
-
- <a href="submit_news.php3" target="page"><? echo translate("CREATE",$DBH) ?></a><br>
- <a href="show_news.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a><br>
- <a href="update_comment.php" target="page"><? echo translate("UPDATE_COMMENT",$DBH) ?></a><br>
- <a href="show_news.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a><br><br>
-
- </td>
-</tr>
-<tr>
- <td><img src="images/puce.jpg"> <b><? echo translate("CALENDAR",$DBH) ?></b><br>
-
- <a href="new_event.php3" target="page"><? echo translate("CREATE",$DBH) ?></a><br>
- <a href="show_events.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a><br>
- <a href="show_events.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a><br><br>
-
- </td>
-</tr>
+</td>
+
+
+
+<!-- FILLING -->
+<td class="items">
+<b><? echo translate("PAGES", $DBH); ?></b> :
+[
+ <a href="new_page.php3" target="page"><? echo translate("CREATE",$DBH) ?></a> |
+ <a href="show_pages.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
+ <a href="show_pages.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a>
+]
+
+<br>
+
+<b><? echo translate("NEWS", $DBH); ?></b> :
+[
+ <a href="submit_news.php3" target="page"><? echo translate("CREATE",$DBH) ?></a> |
+ <a href="show_news.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
+ <a href="update_comment.php" target="page"><? echo translate("UPDATE_COMMENT",$DBH) ?></a> |
+ <a href="show_news.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a>
+]
+
+<br>
+
+<b><? echo translate("CALENDAR", $DBH); ?></b> :
+[
+ <a href="new_event.php3" target="page"><? echo translate("CREATE",$DBH) ?></a> |
+ <a href="show_events.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
+ <a href="show_events.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a>
+]
+
+
+</td>
+
+
+
+
+</tr>
</table>
|
|
From: mdw c. <myd...@li...> - 2001-10-09 08:26:25
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/dynadot Removed Files: box_h.html box_l.html Log Message: old files |
|
From: mdw c. <myd...@li...> - 2001-10-09 08:27:18
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/dynadot Added Files: bar.html comment.html Log Message: some files was missing : box.html and comment.html |
|
From: mdw c. <myd...@li...> - 2001-10-09 09:21:58
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/admin Modified Files: index.html Log Message: the frameset is now fixed =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/index.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- index.html 2001/10/08 21:48:08 1.2 +++ index.html 2001/10/09 09:21:58 1.3 @@ -4,9 +4,9 @@ <title>MyDynaWeb Admin</title> </head> -<frameset rows="150, *" border="no" scrollbars="no" scrolling="no"> - <frame src="menu.php3" name="menu"> - <frame src="page.php3" name="page"> +<frameset rows="150, *" NORESIZE BORDER="0" FRAMEBORDER="0" scrollbars="no" scrolling="no"> + <frame src="menu.php3" name="menu" NORESIZE BORDER="0" FRAMEBORDER="0"> + <frame src="page.php3" name="page" NORESIZE BORDER="0" FRAMEBORDER="0"> </frameset> </html> |
|
From: mdw c. <myd...@li...> - 2001-10-09 14:21:40
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/images Added Files: new.gif Log Message: Adding ... |
|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:10
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
add_news.php3 index.php news.php3
Log Message:
Adding ...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/add_news.php3,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- add_news.php3 2001/08/26 18:52:52 1.16
+++ add_news.php3 2001/10/09 14:21:39 1.17
@@ -11,7 +11,7 @@
$liste_lang = get_languages_box($DBH, USER_LANG);
-$list_families = get_fam_box($DBH, USER_FAM);
+$list_families = get_fam_box($DBH, USER_FAM, '');
$liste_topics = get_topics_box($DBH);
$formulaire = "<FORM name=\"f\" action=\"save_news.php3\">
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- index.php 2001/07/30 10:38:47 1.2
+++ index.php 2001/10/09 14:21:39 1.3
@@ -29,6 +29,6 @@
/* You can here change the location to the url you want */
/* for instance : Location: print.php3?c=welcome */
/* The default location is the news page : */
-header("Location: news.php3");
+header("Location: welcome.php");
?>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/news.php3,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- news.php3 2001/09/28 09:12:57 1.39
+++ news.php3 2001/10/09 14:21:39 1.40
@@ -54,7 +54,7 @@
$sql = "select num_news, news.titre, texte, date, icone, topic.titre,
-topic.num_topic, user_name, nbhit, long_text, family.label
+topic.num_topic, user_name, nbhit, long_text, family.label, num_fam
from news, topic, family
where news._num_topic = topic.num_topic
AND news.lang = '". USER_LANG ."'
@@ -79,6 +79,9 @@
$num_month = $date_val["mon"];
$family = $row[10];
+
+ $lien_accueil = "<a href='welcome.php?MODE=FULL&FAM=$row[11]'>".translate("TOUTES_LES_NEWS", $DBH)."</a>";
+
switch(USER_LANG)
{
case FR: {
@@ -138,7 +141,7 @@
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>";
$full_page = $row[long_text];
- $full_header = $row[texte];
+ $full_header = $row[texte] . "<p>$lien_accueil</p>";
$sql = "select count(*) from comments
where _num_news = $row[0]";
@@ -188,12 +191,12 @@
$intro = "<font size='-1'><i>".translate("POSTED_BY", $DBH).
" $row[7], $da_formated_date<br>" .
translate('FROM_THE_CATEGORY', $DBH) .
- " ".translate($family,$DBH)."</font></i> <br><br>" . $row[2];
+ " <a href='welcome.php?MODE=FULL&FAM=$row[11]'>".translate($family,$DBH)."</a></font></i> <br><br>" . $row[2];
$news_title = $news_tt;
$PAGE .= get_piece_of_news($news_title, $intro, $row[4], $row[5], "news.php3?q=$row[6]", $new_nbhit, $row[0], $nbcmt, strlen($row['long_text']), $DBH);
- $PAGE .= "<table><tr><td> </td></tr></table>\n";
+ $PAGE .= "<p> </p>\n";
}
}
|
|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:10
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
menu.php3
Log Message:
Adding ...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/menu.php3,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- menu.php3 2001/10/08 21:48:08 1.15
+++ menu.php3 2001/10/09 14:21:39 1.16
@@ -91,7 +91,10 @@
]
<br>
<b><? echo translate("CACHE", $DBH); ?></b> :
- <a href="../vide_cache.php" target="page"><? echo translate("DROP_CACHE_FILES",$DBH) ?></a>
+[ <a href="../vide_cache.php" target="page"><? echo translate("DROP_CACHE_FILES",$DBH) ?></a> ]
+<br>
+<b><? echo translate("COMMUNICATION", $DBH); ?></b> :
+[ <a href="newsletter.php" target="page"><? echo translate("NEWS_LETTER",$DBH) ?></a> ]
</td>
@@ -105,17 +108,21 @@
<a href="mod_box.php3" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
<a href="del_box.php3" target="page"><? echo translate("DELETE",$DBH) ?></a>
]
+
<br>
<b><? echo translate("ENV", $DBH); ?></b> :
[
- <a href="db_interface.php?table=languages&KEY=id_lang" target="page"><? echo translate("LANGUAGE",$DBH) ?></a> |
- <a href="db_interface.php?table=top_bar&KEY=bar_name&KEY2=lang_id" target="page"><? echo translate("TOP_BAR",$DBH) ?></a> |
- <a href="db_interface.php?table=topic&KEY=titre&KEY2=num_topic" target="page"><? echo translate("TOPICS",$DBH) ?></a> |
- <a href="db_interface.php?table=members&KEY=name" target="page"><? echo translate("MEMBERS",$DBH) ?></a> |
- <a href="newsletter.php" target="page"><? echo translate("NEWS_LETTER",$DBH) ?></a>
-
+<a href="db_interface.php?table=languages&KEY=id_lang" target="page"><? echo translate("LANGUAGE",$DBH) ?></a> |
+<a href="db_interface.php?table=members&KEY=name" target="page"><? echo translate("MEMBERS",$DBH) ?></a> |
+<a href="db_interface.php?table=topic&KEY=titre&KEY2=num_topic" target="page"><? echo translate("TOPICS",$DBH) ?></a> |
+<a href="db_interface.php?table=family&KEY=num_fam&KEY2=label" target="page"><? echo translate("CATEGORY", $DBH);?></a>
]
+
<br>
+<b><? echo translate("VISUELS", $DBH); ?></b> :
+[
+<a href="db_interface.php?table=top_bar&KEY=bar_name&KEY2=lang_id" target="page"><? echo translate("TOP_BAR",$DBH) ?></a>
+]
</td>
@@ -135,10 +142,10 @@
<b><? echo translate("NEWS", $DBH); ?></b> :
[
- <a href="submit_news.php3" target="page"><? echo translate("CREATE",$DBH) ?></a> |
- <a href="show_news.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
- <a href="update_comment.php" target="page"><? echo translate("UPDATE_COMMENT",$DBH) ?></a> |
- <a href="show_news.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a>
+ <a href="submit_news.php3" target="page"><? echo translate("CREATE",$DBH) ?></a> |
+ <a href="show_news.php3?act=mod" target="page"><? echo translate("UPDATE",$DBH) ?></a> |
+ <a href="update_comment.php" target="page"><? echo translate("UPDATE_COMMENT",$DBH) ?></a> |
+ <a href="show_news.php3?act=del" target="page"><? echo translate("DELETE",$DBH) ?></a> |
]
<br>
|
|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:11
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/include
Modified Files:
gui.inc.php
Log Message:
Adding ...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/gui.inc.php,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- gui.inc.php 2001/10/08 21:48:08 1.35
+++ gui.inc.php 2001/10/09 14:21:39 1.36
@@ -162,6 +162,7 @@
$VALUES['NBCOMMENT'] = $num_cmt;
$VALUES['READ_MORE'] = "+" . $num_byte . " bytes";
$VALUES['COMMENT'] = translate("COMMENT",$DBH);
+ $VALUES['DETAILS'] = translate("DETAILS",$DBH);
$VALUES['EMAIL_FRIEND'] = translate("EMAIL_FRIEND",$DBH);
return(get_hash_template($NEWS_HASH_TEMPLATE["ALL"], $VALUES));
|
|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:11
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/images/topics Modified Files: mysql.gif Log Message: Adding ... =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/images/topics/mysql.gif,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 Binary files /tmp/cvsk8YcTk and /tmp/cvs0CkEIv differ |
|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:11
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/templates/default
Modified Files:
main.html page.html topbar.html
Log Message:
Adding ...
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/default/main.html,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- main.html 2001/09/10 18:50:31 1.28
+++ main.html 2001/10/09 14:21:39 1.29
@@ -127,7 +127,7 @@
<center>~TOPBAR~</center>
-<table class="bandeau" width="800" cellpadding="0" border="0" cellspacing="0" bgcolor="#ffffff" align="center">
+<table class="bandeau" width="900" cellpadding="0" border="0" cellspacing="0" bgcolor="#ffffff" align="center">
<tr>
<td align="left" valign="top">
<br>
@@ -144,7 +144,7 @@
</table>
-<table class="corps" width="800" align="center" cellpadding="0" border="0" cellspacing="0" bgcolor="#ffffff">
+<table class="corps" width="900" align="center" cellpadding="0" border="0" cellspacing="0" bgcolor="#ffffff">
<tr>
@@ -189,7 +189,7 @@
</tr>
</table>
-<table class="foot" border=0 cellpadding="1" cellspacing="0" width="800" align="center" bgcolor="#FFFFFF">
+<table class="foot" border=0 cellpadding="1" cellspacing="0" width="900" align="center" bgcolor="#FFFFFF">
<tr><td colspan="4"><br><br><br></td></tr>
<tr><td align="left">
@@ -205,5 +205,19 @@
<p>
</P>
+
+<!--DEBUT WEBOSCOPE TEST ALEXIS QUI MARCHE PUTAIN -->
+<!-- NE MODIFIER QUE WEBO_ZONE ET WEBO_PAGE-->
+<script language="javascript">
+WEBO_ZONE=10;
+WEBO_PAGE=10;
+webo_ok=0;
+</script>
+<script language="javascript" src="/script/weboscope.js"></SCRIPT>
+<SCRIPT>
+if(webo_ok==1){webo_zpi(WEBO_ZONE,WEBO_PAGE,4);}
+</script>
+<!-- FIN WEBOSCOPE COPYRIGHT WEBORAMA-->
+
</body>
</html>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/default/page.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- page.html 2001/05/15 22:25:36 1.5
+++ page.html 2001/10/09 14:21:39 1.6
@@ -1,5 +1,5 @@
- <table width="480" align="center" valign="top" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
+ <table width="550" align="center" valign="top" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr valign="top">
<td><font size=+2><b>~TITLE~</b></font></td>
</tr>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/default/topbar.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- topbar.html 2001/09/06 22:56:18 1.4
+++ topbar.html 2001/10/09 14:21:39 1.5
@@ -2,7 +2,7 @@
<br>
-<table class="topbar" cellspacing="0" cellpadding="1" width="800" border="0" bgcolor="#6A749D">
+<table class="topbar" cellspacing="0" cellpadding="1" width="900" border="0" bgcolor="#6A749D">
<tr valign="middle">
<td>
|
|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:11
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/templates/dynadot Modified Files: main.html Log Message: Adding ... =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/templates/dynadot/main.html,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- main.html 2001/10/08 08:25:28 1.5 +++ main.html 2001/10/09 14:21:39 1.6 @@ -113,6 +113,7 @@ <br> </td> <td align="center" valign="top" bgcolor="#ffffff"> +~LOGIN~ <!-- CALENDAR --> ~CALENDAR~ <!-- end CALENDAR --> |
|
From: mdw c. <myd...@li...> - 2001-10-09 14:22:11
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/tools/content Modified Files: rdf_grabber.php Log Message: Adding ... =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/tools/content/rdf_grabber.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- rdf_grabber.php 2001/07/27 17:55:52 1.17 +++ rdf_grabber.php 2001/10/09 14:21:39 1.18 @@ -61,7 +61,7 @@ $this->db = $DBH; $this->alert = new beeper(); $this->ca = new cache($DBH); - $this->sites["local"] = array(SITE_TITLE,SITE_ROOT,"/backend/mydynaweb_".DEFAULT_LANG.".rdf","rdf"); + $this->sites["local"] = array(SITE_TITLE,SITE_ROOT,"backend/mydynaweb_".DEFAULT_LANG.".rdf","rdf"); } |
|
From: mdw c. <myd...@li...> - 2001-10-09 14:32:37
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Added Files:
welcome.php
Log Message:
*** All the CVS commits that are logged 'Adding...' are conerned by this log. ***
I've added a new way of displaying the news.
The goal is not to provide a bunch of news item like slashdot does but provide a fast way of understanding what is new and where it is.
In fact, the new script 'welcome.php' draw the list of last five news item published in each of the existing families.
By doing this, we are able to see immediately if there is a fresh news item (an icon "new!" will be displayed in front of news posted on the current day)
I've also changed the index.php script so that it uses the new welcome.php script instead of news.php3.
So the default homepage is welcome.php actually.
Anyway, you can still access news.php3 (it is still functionnal)
NOTE : if you want your homepage to be news.php3 instead of welcome.php, just edit the script index.php and change the line
header("Location: welcome.php");
by
header("Location: news.php3");
OK.
Hope you'll like it !
;-)
|
|
From: mdw c. <myd...@li...> - 2001-10-10 15:20:10
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
welcome.php
Log Message:
Fixing a little bug :
last five news where sorted by date, it is better to sort it on the incremential ID : num_news.
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/welcome.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- welcome.php 2001/10/09 15:08:37 1.2
+++ welcome.php 2001/10/10 15:20:09 1.3
@@ -23,7 +23,7 @@
$sql = "select num_news, user_name, titre, date
from news
where family=$row[1]
- order by date desc";
+ order by num_news desc";
$rqt2 = new query($DBH);
$rqt2->query($DBH, $sql);
while($news = $rqt2->getrow()) {
@@ -50,7 +50,7 @@
$sql = "select num_news, user_name, titre, date
from news
where family=$row[1]
- order by date desc
+ order by num_news desc
limit 5";
$rqt2 = new query($DBH);
$rqt2->query($DBH, $sql);
|
|
From: mdw c. <myd...@li...> - 2001-10-10 21:28:17
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/tools/events
Modified Files:
session.php
Log Message:
OK, now the admin section has its own login system.
Most and most users - about 2, which is really a large number ! ;+]
asked for it and now it's OK.
So, what have been done ?
-------------------------
There is now a login script in the root of the admin section :
/admin/login.php.
This script can create a session key for the user that would be particular
in the way that it would be a SUPERUSER key.
Which login/passwords should I use to enter the admin ?
-------------------------------------------------------
The creation of the session is based by default on the same login and
password as the one for the database ; defined as '$dbUser' and '$dbPass'
in the init script (mydynaweb.init.php)
But, as ever, mydynaweb let you the choice : you can choose to use diffrent IDs
and will then define yours in mydynaweb.init.php.
To make this possible, I've had to hack the session library (tools/events/session.php)
so that it can create superuser session (not the same as user session)
Why doing such a thing ? htaccess works fine !
----------------------------------------------
The most important improvement by doing this way is that you can now
secure your admin section over SSL.
Indeed, htaccess is given uncripted over the network and BTW cannot be secured.
With every actions managed through php scripts, SSL is possible and then security
is too...
see ya :)
sukria - Wed Oct 10 21:29:00 GMT 2001
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/tools/events/session.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- session.php 2001/08/26 18:52:52 1.2
+++ session.php 2001/10/10 21:28:17 1.3
@@ -12,7 +12,7 @@
****************************************************/
-function create_session ($LOGIN, $DBH)
+function create_session ($LOGIN, $DBH, $mode='USER')
////////////////////////////////////////////////////
// this function create a session in the database.
// it must be called just after the login has been
@@ -22,14 +22,18 @@
// we generate a session ID
$session = time() . "-" . (rand(0,50000) + 15535) . "-" . $LOGIN;
-
+ if ($mode=='ROOT') {
+ $session = ('ROOT_' . $session);
+ } else {
+ $session = ('USER_' . $session);
+ }
// we store it in the database
$sql = "INSERT INTO session VALUES ('$session', '$LOGIN', ".time().")";
$rqt = new query($DBH);
$rqt->query($DBH, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error());
// we put a cookie with this session ID on the computer
- setcookie('DYNA_SESSION', $session, (time() + 30 * 60));
+ setcookie('DYNA_SESSION', $session, 0);
return(1);
}
@@ -44,7 +48,7 @@
}
-function check_session ($SESSION, $DBH)
+function check_session ($SESSION, $DBH, $mode='USER')
///////////////////////////////////////////////////////
// this function take the session id stored in the
// cookie and spell the look_for_session_in_db function
@@ -54,6 +58,14 @@
{
$login = get_login_from_session ($SESSION, $DBH);
+
+ if ($mode == 'ROOT') {
+ $frags=explode("_", $SESSION);
+ if ($frags[0] != 'ROOT') {
+ return(0);
+ }
+ }
+
// call look_for_session_in_db
if (look_for_session_in_db ($login, $SESSION, $DBH)) {
|
|
From: mdw c. <myd...@li...> - 2001-10-10 21:28:47
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/include
Modified Files:
default.ini.php3 utils.inc.php
Log Message:
OK, now the admin section has its own login system.
Most and most users - about 2, which is really a large number ! ;+]
asked for it and now it's OK.
So, what have been done ?
-------------------------
There is now a login script in the root of the admin section :
/admin/login.php.
This script can create a session key for the user that would be particular
in the way that it would be a SUPERUSER key.
Which login/passwords should I use to enter the admin ?
-------------------------------------------------------
The creation of the session is based by default on the same login and
password as the one for the database ; defined as '$dbUser' and '$dbPass'
in the init script (mydynaweb.init.php)
But, as ever, mydynaweb let you the choice : you can choose to use diffrent IDs
and will then define yours in mydynaweb.init.php.
To make this possible, I've had to hack the session library (tools/events/session.php)
so that it can create superuser session (not the same as user session)
Why doing such a thing ? htaccess works fine !
----------------------------------------------
The most important improvement by doing this way is that you can now
secure your admin section over SSL.
Indeed, htaccess is given uncripted over the network and BTW cannot be secured.
With every actions managed through php scripts, SSL is possible and then security
is too...
see ya :)
sukria - Wed Oct 10 21:29:00 GMT 2001
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/default.ini.php3,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- default.ini.php3 2001/08/02 19:28:52 1.26
+++ default.ini.php3 2001/10/10 21:28:17 1.27
@@ -137,6 +137,17 @@
*********************************************/
+// login and password for admin section
+// > USE_DB_ID_AS_ROOT_ID == 1 : mydynaweb will
+// consider that $dbUser is the root's login
+// and that $dbPass is the root's password
+// > USE_DB_ID_AS_ROOT_ID == 0 : you MUST set
+// ROOT_LOGIN and ROOT_PASSWORD to the values
+// you want.
+define("USE_DB_ID_AS_ROOT_ID", 1);
+define("ROOT_LOGIN", "istari");
+define("ROOT_PASSWORD", "gandalf");
+
define("WEBMASTER_EMAIL", "ga...@mi...");
define("WEBMASTER_NAME", "Gandalf the White");
define("WEBMASTER_HOMEPAGE", "http://www.theonering.com");
@@ -147,6 +158,6 @@
//
// DYNACACHE SECTION
// Value : no, yes, debug
-define("DYNACACHE","yes");
+define("DYNACACHE","no");
?>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/utils.inc.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- utils.inc.php 2001/07/27 09:22:45 1.17
+++ utils.inc.php 2001/10/10 21:28:17 1.18
@@ -137,7 +137,7 @@
function send_session_error($error)
{
$msg = urlencode($error);
- header("Location: news.php3?MSG=$msg");
+ header("Location: /");
die();
}
|
|
From: mdw c. <myd...@li...> - 2001-10-10 21:28:48
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
add_box.php3 add_item.php db_interface.php del_box.php3
del_event.php3 del_news.php3 del_page.php3 del_setting.php3
link_help.php3 menu.php3 mod_box.php3 new_event.php3
new_page.php3 new_setting.php3 newsletter.php page.php3
save_new_box.php3 save_news.php3 show_events.php3
show_news.php3 show_pages.php3 show_settings.php3
submit_news.php3 update_comment.php update_event.php3
update_news.php3 update_page.php3 update_setting.php3
Added Files:
index.php login.php logout.php
Log Message:
OK, now the admin section has its own login system.
Most and most users - about 2, which is really a large number ! ;+]
asked for it and now it's OK.
So, what have been done ?
-------------------------
There is now a login script in the root of the admin section :
/admin/login.php.
This script can create a session key for the user that would be particular
in the way that it would be a SUPERUSER key.
Which login/passwords should I use to enter the admin ?
-------------------------------------------------------
The creation of the session is based by default on the same login and
password as the one for the database ; defined as '$dbUser' and '$dbPass'
in the init script (mydynaweb.init.php)
But, as ever, mydynaweb let you the choice : you can choose to use diffrent IDs
and will then define yours in mydynaweb.init.php.
To make this possible, I've had to hack the session library (tools/events/session.php)
so that it can create superuser session (not the same as user session)
Why doing such a thing ? htaccess works fine !
----------------------------------------------
The most important improvement by doing this way is that you can now
secure your admin section over SSL.
Indeed, htaccess is given uncripted over the network and BTW cannot be secured.
With every actions managed through php scripts, SSL is possible and then security
is too...
see ya :)
sukria - Wed Oct 10 21:29:00 GMT 2001
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/add_box.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- add_box.php3 2001/07/04 13:56:02 1.7
+++ add_box.php3 2001/10/10 21:28:17 1.8
@@ -6,6 +6,12 @@
$DBH = new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
+
+
$js = "function get_num_items(passed)
{
if (passed == '') {
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/add_item.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- add_item.php 2001/10/04 20:41:19 1.2
+++ add_item.php 2001/10/10 21:28:17 1.3
@@ -5,6 +5,11 @@
$DBH = new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
+
if (strlen($box)) {
if (strlen($title) && strlen($link) && strlen($target)) {
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/db_interface.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- db_interface.php 2001/07/30 13:15:22 1.5
+++ db_interface.php 2001/10/10 21:28:17 1.6
@@ -7,6 +7,10 @@
$DBH = new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
if (! strlen($table)) {
print "You must give me a table name !";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/del_box.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- del_box.php3 2001/04/20 17:18:10 1.5
+++ del_box.php3 2001/10/10 21:28:17 1.6
@@ -6,6 +6,10 @@
$DBH = new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
if (strlen($box)) {
$sql = "delete from item_box_titles where num_titre=$box";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/del_event.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- del_event.php3 2001/10/06 04:06:07 1.1
+++ del_event.php3 2001/10/10 21:28:17 1.2
@@ -6,6 +6,10 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
if ($id) {
$sql = "delete from calendar_messages where id=$id";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/del_news.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- del_news.php3 2001/10/06 02:07:15 1.6
+++ del_news.php3 2001/10/10 21:28:17 1.7
@@ -6,6 +6,10 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
if ($num_news) {
$sql = "delete from news where num_news=$num_news";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/del_page.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- del_page.php3 2001/10/06 02:07:15 1.6
+++ del_page.php3 2001/10/10 21:28:17 1.7
@@ -6,6 +6,10 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
if (strlen($num_page)) {
$sql = "delete from page where idpage='$num_page'";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/del_setting.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- del_setting.php3 2001/10/08 15:01:42 1.1
+++ del_setting.php3 2001/10/10 21:28:17 1.2
@@ -6,6 +6,10 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
if ($varname) {
$sql = "delete from dyna_settings where varname='$varname'";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/link_help.php3,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- link_help.php3 2001/06/18 21:45:40 1.4
+++ link_help.php3 2001/10/10 21:28:17 1.5
@@ -5,6 +5,11 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ die();
+}
+
$js = "function set_link(field,name,url,target)
{
if (field > -1) {
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/menu.php3,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- menu.php3 2001/10/09 14:21:39 1.16
+++ menu.php3 2001/10/10 21:28:17 1.17
@@ -5,6 +5,25 @@
$DBH = new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
+$sql = "select last_update
+ from session
+ where user_login='SUPERUSER'
+ and session_id like 'ROOT_%'
+ order by last_update desc";
+$rqt = new query($DBH);
+$rqt->query($DBH, $sql) or send_sql_error($PHP_SELF, $sql, $rqt->error());
+$row = $rqt->getrow();
+$row = $rqt->getrow();
+
+
+$LAST_LOGIN_DATE = date("Y-m-d H:i:s", $row[0]);
+
?>
<html>
<head>
@@ -53,7 +72,23 @@
<body background="./admin-header.gif">
<center>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<tr>
+<td align="left" width="25%">
+<font size="-1"><? echo (translate("LAST_LOGIN_WAS", $DBH) . " : " . $LAST_LOGIN_DATE) ?></font>
+</td>
+
+<td align="center" width="50%">
<font size="-1"><b> M y D y n a W e b A d m i n S e c t i o n </b></font>
+</td>
+
+<td width="25%" align="right">
+<font size="-1"><a href="logout.php" target="_top"><? echo translate("LOGOUT", $DBH) ?></font>
+</td>
+
+</tr>
+</table>
+
<hr width="90%">
</center>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/mod_box.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- mod_box.php3 2001/07/02 22:22:33 1.7
+++ mod_box.php3 2001/10/10 21:28:17 1.8
@@ -6,6 +6,11 @@
$DBH = new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
if (! strlen($num_box)) {
Admin_popup_header("Update a link box", '');
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/new_event.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- new_event.php3 2001/10/06 04:06:07 1.1
+++ new_event.php3 2001/10/10 21:28:17 1.2
@@ -5,6 +5,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$sql = "select id, date, title, text, msg_poster_id, ocurence, active
from calendar_messages
where id='$PAGE'";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/new_page.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- new_page.php3 2001/04/20 17:18:10 1.5
+++ new_page.php3 2001/10/10 21:28:17 1.6
@@ -5,6 +5,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$ITEMS_LIST = "<select name=\"num_item\">";
$sql = "select item_libelle, num_content
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/new_setting.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- new_setting.php3 2001/10/08 15:01:42 1.1
+++ new_setting.php3 2001/10/10 21:28:17 1.2
@@ -5,6 +5,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$sql = "select varname,varvalue
from dyna_settings
where varname='$varname'";
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/newsletter.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- newsletter.php 2001/04/30 15:31:39 1.1
+++ newsletter.php 2001/10/10 21:28:17 1.2
@@ -3,6 +3,12 @@
include "../include/mydynaweb.init.php";
include(DYNA_ROOT . '/include/mydynaweb.libs.php');
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
if (strlen($title) && strlen($content)) { // we have the args we want
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/page.php3,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- page.php3 2001/03/27 21:24:53 1.2
+++ page.php3 2001/10/10 21:28:17 1.3
@@ -1,3 +1,19 @@
+<?
+include('../include/mydynaweb.init.php');
+include(DYNA_ROOT . '/include/mydynaweb.libs.php');
+
+$DBH = new db();
+$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+
+
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
+?>
+
<html>
<head></head>
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/save_new_box.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- save_new_box.php3 2001/04/20 17:18:10 1.5
+++ save_new_box.php3 2001/10/10 21:28:17 1.6
@@ -5,6 +5,12 @@
$DBH = new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
if (! strlen($titre) ||
! strlen($lang) ||
! strlen($nbit)) {
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/save_news.php3,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- save_news.php3 2001/10/08 15:21:58 1.13
+++ save_news.php3 2001/10/10 21:28:17 1.14
@@ -5,6 +5,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$aujourdhui = date( "Y-m-d", time() );
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/show_events.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- show_events.php3 2001/10/06 04:06:07 1.1
+++ show_events.php3 2001/10/10 21:28:17 1.2
@@ -5,6 +5,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$js = "function confirm_go_to (url, question)
{
if (confirm(question))
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/show_news.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- show_news.php3 2001/07/09 10:21:23 1.7
+++ show_news.php3 2001/10/10 21:28:17 1.8
@@ -7,6 +7,12 @@
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$js = "function confirm_go_to (url, question)
{
if (confirm(question)) {
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/show_pages.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- show_pages.php3 2001/07/24 00:40:31 1.6
+++ show_pages.php3 2001/10/10 21:28:17 1.7
@@ -5,6 +5,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$js = "function confirm_go_to (url, question)
{
if (confirm(question))
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/show_settings.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- show_settings.php3 2001/10/08 15:01:42 1.1
+++ show_settings.php3 2001/10/10 21:28:17 1.2
@@ -5,6 +5,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$js = "function confirm_go_to (url, question)
{
if (confirm(question))
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/submit_news.php3,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- submit_news.php3 2001/08/02 22:22:55 1.11
+++ submit_news.php3 2001/10/10 21:28:17 1.12
@@ -7,6 +7,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
// set DynaOpe settings
$UserID = WEBMASTER_NAME;
$UserEMAIL = WEBMASTER_EMAIL;
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/update_comment.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- update_comment.php 2001/09/27 21:54:54 1.1
+++ update_comment.php 2001/10/10 21:28:17 1.2
@@ -19,6 +19,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+// checking that user is root
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
// Do we have a piece of news to choose a comment to update from ?
if (! strlen($num_news)) {
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/update_event.php3,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- update_event.php3 2001/10/06 04:26:05 1.2
+++ update_event.php3 2001/10/10 21:28:17 1.3
@@ -7,6 +7,12 @@
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$sql = "select id, date, title, text, msg_poster_id, ocurence, active
from calendar_messages
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/update_news.php3,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- update_news.php3 2001/07/09 10:21:23 1.9
+++ update_news.php3 2001/10/10 21:28:17 1.10
@@ -6,6 +6,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
if (!$num_news) {
header("Location: index.php3");
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/update_page.php3,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- update_page.php3 2001/09/28 09:18:37 1.11
+++ update_page.php3 2001/10/10 21:28:17 1.12
@@ -6,6 +6,12 @@
$DBH=new db();
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$sql = "select idpage, titre, chapeau, content, lang
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/update_setting.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- update_setting.php3 2001/10/08 15:01:42 1.1
+++ update_setting.php3 2001/10/10 21:28:17 1.2
@@ -7,6 +7,12 @@
$DBH->open($dbName, $dbServer, $dbUser, $dbPass);
+if (! check_session($DYNA_SESSION, $DBH, 'ROOT')) {
+ header("Location: login.php");
+ $DBH->close();
+ die();
+}
+
$sql = "select varname,varvalue
from dyna_settings
|
|
From: mdw c. <myd...@li...> - 2001-10-10 21:38:29
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/admin Removed Files: index.html Log Message: not necessary anymore |
|
From: mdw c. <myd...@li...> - 2001-10-12 19:40:28
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/help Log Message: Directory /cvsroot/mydynaweb/mydynaweb/htdocs/help added to the repository |
|
From: mdw c. <myd...@li...> - 2001-10-12 20:36:08
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/help
Added Files:
nohelp.EN.html
Log Message:
*** New feature : Help System ***
I've made some tools to easily open help files in wmart popup.
To make a link to the appropriate help popu proceed as folling :
include the admin-libs in the script you want to put a help link :
include(DYNA_ROOT . '/include/admin-libs.php');
build the link like that :
$helplink = ("<a href='#' onClick=\"open_popup('".popup_help_url('$topic', $help_section)."');return(false);\">" . translate("HELP", $DBH) . "</a>");
where $topic is the name of the directory that contains the HTML help file in htdocs/help/
and $help_section is the name of the help to open.
Don't forget to include the JavaScript libtool in the HTML output of the script you are written ; like that :
$header = "
<html>
<head>
<script src='js/utils.js'></script>
</head>";
print $header;
To see it in an example (probably more easy to understand :), look at the script htdocs/admin/db_interface.php
Have fun :)
|
|
From: mdw c. <myd...@li...> - 2001-10-12 20:36:38
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
db_interface.php
Log Message:
*** New feature : Help System ***
I've made some tools to easily open help files in wmart popup.
To make a link to the appropriate help popu proceed as folling :
include the admin-libs in the script you want to put a help link :
include(DYNA_ROOT . '/include/admin-libs.php');
build the link like that :
$helplink = ("<a href='#' onClick=\"open_popup('".popup_help_url('$topic', $help_section)."');return(false);\">" . translate("HELP", $DBH) . "</a>");
where $topic is the name of the directory that contains the HTML help file in htdocs/help/
and $help_section is the name of the help to open.
Don't forget to include the JavaScript libtool in the HTML output of the script you are written ; like that :
$header = "
<html>
<head>
<script src='js/utils.js'></script>
</head>";
print $header;
To see it in an example (probably more easy to understand :), look at the script htdocs/admin/db_interface.php
Have fun :)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/db_interface.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- db_interface.php 2001/10/10 21:28:17 1.6
+++ db_interface.php 2001/10/12 20:36:07 1.7
@@ -2,6 +2,7 @@
include "../include/mydynaweb.init.php";
include(DYNA_ROOT . '/include/mydynaweb.libs.php');
+include(DYNA_ROOT . '/include/admin-libs.php');
$DBH = new db();
@@ -17,7 +18,21 @@
die();
}
-$header = "<html><head></head><body bgcolor=\"#ffffff\"><p> </p><center><h2>$table</h2><p> </p></center>";
+$helplink = ("<a href='#' onClick=\"open_popup('".popup_help_url('building', $table)."');return(false);\">" . translate("HELP", $DBH) . "</a>");
+
+$header = "
+<html>
+<head>
+<script src='js/utils.js'></script>
+</head>
+<body bgcolor=\"#ffffff\">
+<p> </p>
+<center>
+<h2>$table</h2>
+<p>$helplink</p>
+<p> </p>
+</center>";
+
$footer = "</body></html>";
switch ($MODE)
|
|
From: mdw c. <myd...@li...> - 2001-10-12 20:38:41
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/include Added Files: admin-libs.php Log Message: the admin lib |
|
From: mdw c. <myd...@li...> - 2001-10-12 20:39:45
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/admin/js Log Message: Directory /cvsroot/mydynaweb/mydynaweb/htdocs/admin/js added to the repository |
|
From: mdw c. <myd...@li...> - 2001-10-12 20:40:07
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/admin/js Added Files: utils.js Log Message: help javascript tool |
|
From: mdw c. <myd...@li...> - 2001-10-12 22:43:23
|
MyDynaWeb CVS committal Author : sukria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/help/building Log Message: Directory /cvsroot/mydynaweb/mydynaweb/htdocs/help/building added to the repository |