|
From: mdw c. <myd...@li...> - 2001-11-10 00:38:37
|
MyDynaWeb CVS committal
Author : xbtheria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/admin
Modified Files:
menu.php
Log Message:
removed a line, now LAST_LOGIN_DATE is correct in the admin section.
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/admin/menu.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- menu.php 2001/11/08 03:11:12 1.1
+++ menu.php 2001/11/10 00:38:36 1.2
@@ -19,7 +19,6 @@
$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]);
|
|
From: mdw c. <myd...@li...> - 2001-12-10 16:32:55
|
MyDynaWeb CVS committal
Author : xbtheria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs
Modified Files:
ezphpdoc-1.0.pl
Log Message:
I've added a line to rip off "*" at the beginning of long comment sections.
like this:
/*
* Here, now it vanishes, provided there is a space after it( like here, a way
* to avoid ripping pointer-like stuff (in case there would be any).
*/
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/ezphpdoc-1.0.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ezphpdoc-1.0.pl 2001/12/09 15:52:48 1.9
+++ ezphpdoc-1.0.pl 2001/12/10 16:32:54 1.10
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $Id: ezphpdoc-1.0.pl,v 1.9 2001/12/09 15:52:48 bligneri Exp $
+# $Id: ezphpdoc-1.0.pl,v 1.10 2001/12/10 16:32:54 xbtheria Exp $
#
# A script for parsing php classes
# and for making html documentation from it.
@@ -800,7 +800,7 @@
}
-
+ # todo: Here is the place to set any simple \tags ?? nope.
$functionDescription =~ s/\{in\}/\<b\>In:\<\/b\>\<blockquote\>$in\<\/blockquote\>/;
$functionDescription =~ s/\{out\}/\<b\>Out:\<\/b\>\<blockquote\>$out\<\/blockquote\>/;
$functionDescription =~ s/\{return\}/\<b\>Return:\<\/b\>\<blockquote\>$return\<\/blockquote\>/;
@@ -1254,7 +1254,9 @@
$tmpDesc = $_;
$tmpDesc =~ s/\/\*\!//;
$tmpDesc =~ s/\*\///;
-# $tmpDesc =~ s/^\s+//;
+ $tmpDesc =~ s/^(\s|\t){0,}\*( |\n)//;
+ #$tmpDesc =~ s/^ \*//;
+ #$tmpDesc =~ s/^\s+//;// to kill newlines
$classDescription = $classDescription . $tmpDesc;
}
@@ -1302,6 +1304,8 @@
$tmpDesc = $_;
$tmpDesc =~ s/\/\*\!//;
$tmpDesc =~ s/\*\///;
+ $tmpDesc =~ s/^(\s|\t){0,}\*( |\n)//;
+ #$tmpDesc =~ s/^(\s|\t){0,}\* //;
# $tmpDesc =~ s/^\s+//;
$functionDescription = $functionDescription . $tmpDesc;
|
|
From: mdw c. <myd...@li...> - 2002-05-14 00:44:39
|
MyDynaWeb CVS committal Author : xbtheria Project : mydynaweb Module : htdocs Dir : mydynaweb/htdocs/include Modified Files: admin_form.class.php Log Message: Bug: wasn't possible to reach BUILDING->Environnement->whatever forms !! But maybe a convention should be used, all directory stuff are to be with slashes ending, not prepending. =================================================================== RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/admin_form.class.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- admin_form.class.php 28 Jan 2002 20:48:47 -0000 1.2 +++ admin_form.class.php 14 May 2002 00:44:38 -0000 1.3 @@ -50,7 +50,7 @@ $this->fields = $DBH->describe_table($table); // Templates for the forms - $this->root = DYNA_ROOT."templates/"; + $this->root = DYNA_ROOT."/templates"; } |
|
From: mdw c. <myd...@li...> - 2003-04-04 22:22:48
|
MyDynaWeb CVS committal
Author : xbtheria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/galleries
Modified Files:
gallery_wizzard.sh
Log Message:
- mon appareil produit des *JPG (et ma paresse a produit ce commit).
- plus strict et moins ambigu dans la liste de choix.
- ne pourrait-on avoir un ".gallery_wiz..." ou "~/.galle..." ?? (tjrs cette paresse !!)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/galleries/gallery_wizzard.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- gallery_wizzard.sh 16 May 2002 03:24:40 -0000 1.7
+++ gallery_wizzard.sh 4 Apr 2003 22:22:46 -0000 1.8
@@ -18,7 +18,7 @@
fi
echo "Creating thumbails ..."
- for image in *.jpg
+ for image in *.jpg *.JPG
do
if [ ! -r "thumbs/$image" ]
then
@@ -34,12 +34,12 @@
render_mid() {
if [ ! -d pics_640x480 ]
then
- echo -n "pics_640x480 does not exist, creating it : "
- mkdir pics_640x480 && echo "OK"
+ echo -n "pics_640x480 does not exist, creating it : "
+ mkdir pics_640x480 && echo "OK"
fi
echo "Creating mid pics (640x480) ..."
- for image in *.jpg
+ for image in *.jpg *.JPG
do
if [ ! -r "pics_640x480/$image" ]
then
@@ -121,7 +121,6 @@
echo "2 : Rendering 640x480 pictures in the current directory"
echo "3 : Rendering the directories and the subdirectories and then export the directory to a remote host (ssh)"
echo "4 : Rendering thumbnails and medium size images in the current directory and subdirectories [default]"
- echo "5 : Full method : 4 and 5"
echo "-------------------------------------"
echo -n "-> "
@@ -143,9 +142,14 @@
4)
recurse_directory
;;
+
+ '')
+ recurse_directory
+ ;;
*)
- recurse_directory
+ echo "ERROR: '$CHOICE' is an unknown option."
+ exit 1
;;
esac
|
|
From: mdw c. <myd...@li...> - 2003-04-04 22:52:23
|
MyDynaWeb CVS committal
Author : xbtheria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/galleries
Modified Files:
index.php
Log Message:
- ajout d'exceptions dans le dépouillement d'un répertoire (avi et les tarballs).
- corrections mineurs dans la création de la table contenant les images.
- un clique sur l'image donne un popup 640x480 (quand disponible).
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/galleries/index.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- index.php 26 Aug 2002 13:32:17 -0000 1.24
+++ index.php 4 Apr 2003 22:52:22 -0000 1.25
@@ -63,10 +63,19 @@
continue;
}
// do not display hidden files (.xxxxxxx)
- if (preg_match('/^\.\w+/', $file)) {
+ if (preg_match('/^\.(#|)\w+/', $file)) {
continue;
}
+ // do not display tar.gz or tgz archives files
+ if (preg_match('/^.+\.avi$/', $file)) {
+ continue;
+ }
+ // do not display avi files (*.html)
+ if (preg_match('/^.+\.t(ar\.|)gz/', $file)) {
+ continue;
+ }
+
// do not display html files (*.html)
if (preg_match('/^.+\.html$/', $file)) {
continue;
@@ -308,7 +317,7 @@
if (preg_match('/.*\.jpg/i', $file)) {
if (file_exists(DYNA_ROOT . "/$root/$parse/pics_640x480/$file")) {
- return "<a href='#' onclick=\"window.open('".SITE_ROOT."$root/$parse/$file', 'full', 'toolbar=yes,resizeable=yes');return(false);\"><img src='".SITE_ROOT."$root/$parse/thumbs/$file' border='0'></a>
+ return "<a href='#' onclick=\"window.open('".SITE_ROOT."$root/?mode=popup&parse=$parse&img=$file', 'med', 'toolbar=yes,resizeable=yes');return(false);\"><img src='".SITE_ROOT."$root/$parse/thumbs/$file' border='0'></a>
<br>
@@ -319,7 +328,7 @@
<a href='#' onclick=\"window.open('".SITE_ROOT."$root$parse/$file', 'full', 'toolbar=yes,resizeable=yes');return(false);\">Full</a>";
}
else {
- return "<a href='#' onclick=\"window.open('".SITE_ROOT."$root$parse/$file'', popup', 'menubar=false,resizable=yes');return(false);\"><img src='".SITE_ROOT."$root/$parse/thumbs/$file' border='0'></a><br><a href='".SITE_ROOT."$root/$parse/$file'>Full</a>";
+ return "<a href='#' onclick=\"window.open('".SITE_ROOT."$root/$parse/$file',' popup', 'full', 'menubar=false,resizable=yes');return(false);\"><img src='".SITE_ROOT."$root/$parse/thumbs/$file' border='0'></a><br><a href='".SITE_ROOT."$root/$parse/$file'>Full</a>";
}
}
else {
@@ -403,6 +412,7 @@
*/
function read_messages($dbh, $num_news, $orderby, $parse, $img)
{
+
// the hashtable with the info of the messages
$get_message = Array();
@@ -434,6 +444,7 @@
}
return Array ($get_message, $get_parents, $get_children);
+
}
|
|
From: mdw c. <myd...@li...> - 2003-04-04 23:35:01
|
MyDynaWeb CVS committal
Author : xbtheria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/galleries
Modified Files:
index.php
Log Message:
correction de deux bugs p-e du aux chgts de version de php. Je pense que mes
patches fonctionnent dans les versions superieures a 4.0.6
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/galleries/index.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- index.php 4 Apr 2003 22:52:22 -0000 1.25
+++ index.php 4 Apr 2003 23:35:00 -0000 1.26
@@ -150,8 +150,8 @@
$browse = "<table align=center>\n$browse</table>\n";
if (strlen($parse)) {
- $tmp = explode("/", $parse);
- $titre = $tmp[1];
+ // basename will ignore trailing "/".
+ $titre = basename($parse);
}
else {
$titre = "Galleries";
@@ -298,7 +298,7 @@
function print_back($parse,$root) {
if ($parse != '') {
- $up = preg_replace('/\/\w+$/', '', $parse);
+ $up = substr($parse,0,strrpos(preg_replace('/\/$/','',$parse),"/"));
if (!strlen($up)) $upname = 'Galleries';
else $upname = $up;
return "<center><a href='".SITE_ROOT."$root/?parse=$up&img=content'><img src='".SITE_ROOT."images/folder-back.png' border='0' alt='Back'></a><br>[$upname]</center><br>";
|