readme.txt
$Date: Wed May 11 15:11:20 2005 $

PHP script for 
Japanese Drosophila Reserach Conference Online Registration 
Copyright (c) 2005 Takashi Matsuo & Masatoshi Tomaru 

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or any
later version.

This program is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Contact: 
Masatoshi TOMARU
Drosophila Genetic Resource Center
Kyoto Institute of Technology
Saga-Ippongi-cho, Ukyo-ku,
Kyoto 616-8354, JAPAN
Email: tomaru@kit.jp
Phone: +81-75-873-2655
Fax:   +81-75-861-0881

See also readme.txt


<<<<< In Japanese

JDRC Online Registration 
VEWEoG̃ICo^̂߂PHPXNvg
Copyright (c) 2005 Takashi Matsuo & Masatoshi Tomaru 

kiswj̗͂؂AsۉqisH|@ۑwjƂӂ
ō쐬2005ÑVEWEoG̃ICo^̂߂ PHP 
XNvgB



쌠єzz

쌠͏Ɠsۂɂ܂B GNU General Public License
version 2 igpl.txtj܂́Ȁʃo[W̉Ŕzz͎RłB

GNU General Public License ɂďڂm肽ꍇ́AGNŨEFuy[
Wihttp://www.gnu.org/jQlƂȂł傤B


fBNg\

JDRC7--JDRC7form
     |
     +-JDRC7organizer

JDRC7form o^̂߂̃XNvg
JDRC7organizer o^邽߂̃XNvg

ꂾł^pł܂Aۂ̓fBNg JDRC7  pukiwiki C
Xg[ăCy[WƂĎg܂B

JDRC7/JDRC7form/jdrcinc.php ɐݒ肷ׂϐG[bZ[WA^Cg
AᕶĂ܂B̃t@CҏW邾ŁASʂ̌
W̎󂯕tɗpł܂Bey[W̃fUCύXɂ́A
̃t@CύXKv܂B

Ⴆ΁A
$jdrc_deadline = "Jun 3, 2005"; 
̂悤ɒߐ؂Ă΁A
$jdrc_real_deadline_timestamp = $jdrc_deadline_timestamp + 60*60; 
Œ` delay xāił1ԁi60*60bĵUSiyj
̌ߑO05959bjA󂯕tI܂Bregistration ̃XNvg
́Asubmit {^i܂̓NjȂ̂ŁAXNvg͓삵
܂Bߐ؂OɃANZXăuEUɃ{^oĂ΁Â܂ܒ
ߐ؂肪߂Ă܂ĂԂɍ܂BłccAo^l͂Ȃɍl
܂Ȃ悤ɏĂق̂ł ;)


JDRC7form ̃f[^x[Xɂ

\͉ createtable.sql QlɂĉBee[uł́Auserid 
g relation ł܂B{vOł́Asql query ł܂ 
relation gĂ܂(^^;Bo^̎ɁAuniqid("") ɂ userid 
쐬Ă܂Bjdrc_name_list  userid ̏ĺAu-------------v
i13 ̃nCtjł邱ƂOɂĂ܂B

Table account  shortkey  userid ̉6łBeo^[U 
user ID Ƃē͂Ă炤悤ɂ܂BO shortkey Ō
userid 𓾂āA userid y[WԂŎ܂悤ɂĂ
܂B

postgreSQL ͂ȂOŏĂ邽߁ApostgreSQL ̃G[[
`͂قƂǏĂ܂B

S̊GiJDRC7-gray.gifAJDRC7-small.gifAJDRC7-small.pngAJDRC7.pngj
͉^pĂ̂Ƃ͈قȂ܂B


JDRC7organizer ɂXNvgɂ

JDRC7/JDRC7form/jdrcinc.php ̂悤ȍ׍H܂肵ĂȂ̂ŁAۂ
^pɂ̓t@C𒼐ڂȂƂ܂B


ݒu@

PHP  postgreSQL 삷KvłB̃R[h́AOS  LinuxA
http T[o Apache Ƃł삳ƂȂ̂ŁÅ
œǂ͖młB

PHP XNvgɂẮAA[JCu𓀂Γ삷͂łB
postreSQL ̃[U쐬AL̃R[hŁApostreSQL ̃f[^x[X
ݒuł܂B
jdrc_name_list ̒g /home/hogehoge/hohehohe.txt ɗpӂꍇ
Buserid ɂ͏lƂāu-------------vĂKv܂B

<<<<<<< createtable.sql 

drop table access_log;
drop table account;
drop table attending;
drop table jdrc_name_list; 
drop table presentation;


create table access_log(
 userid           character(13),
 firstregistered  timestamp with time zone,
 lastmodified     timestamp with time zone,
 modifiedfrom     text
);


create table account(
 userid                  character(13),
 familynamealphabetical  text,
 lastnamealphabetical    text,
 shortkey                character(6)
);


create table attending(
 userid     character(13),
 salary     boolean,
 meeting    boolean,
 symposium  boolean,
 party      boolean,
 lunch29    boolean,
 lunch30    boolean,
 lunch31    boolean,
 lunch1     boolean
);


create table jdrc_name_list(
 userid                  character(13),
 familynamealphabetical  text,
 lastnamealphabetical    text,
 kanjiname               text,
 affiliation             text,
 emailaddress            text
);


create table presentation(
 userid               character(13),
 title                text,
 names                text,
 affiliations         text,
 abstract             text,
 keywords             text,
 preferoral           boolean,
 englishpresentation  boolean,
 otherlang            boolean,
 langname             text
);

copy jdrc_name_list from '/home/hogehoge/hohehohe.txt' using delimiters '	';

<<<<<<< createtable.sql ܂

postgreSQLŎs

# psql -f createtable.sql databaseuser databasename



̑

JDRC7/JDRC7organizer  BasicF؂ɂANZXāA^pĂ
܂i.htaccess  .htpasswd gă[UF؁jB

<<<<<<<<<< JDRC7/JDRC7organizer/.htaccess̓e
AuthUserFile "/home/hoge/public_html/JDRC7/JDRC7organizer/.htpasswd"
AuthType Basic
AuthName "JDRC7 organizer"
require valid-user
<<<<<<<<<< JDRC7/JDRC7organizer/.htaccess̓e܂

.htpasswd̂
$ htpasswd -c .htpasswd username
Ƃ͌܂

قƂ́A.htpasswdǂʂȏꏊɒuقZLeB悢B

܂Fꏏɉ^pĂApukiwikiłmd5̃pX[h̍
$ echo -n 'password' | md5sum


 php XNvg͏Ɠsۂ̂ɂUCNƂȂĂ镔
܂Bperl ۂƂ͏́AC ۂƂ͓sۂ̃R[hł
ƂƎv܂BJԂR[hɂẮA֐ƂAϐƂ
ďAʂȃt@CCN[hAt@CȂJ
ԂĂ܂AƂȂĂāAR[hڎwԂȂ
Ƃ΂΂ł X<


ӎ

}炸Â悤ȍ쐬̋@㑺iswjɊӂ
B


Ai҂\āj
  s q 
  sH|@ۑwVEWEoG`Z^[
  616-8354 ssE捵{ؒ
  db: 075-873-2660i 34j
  db: 075-873-2655i_CCj
  Fax:  075-861-0881 
  Email:tomaru@kit.jp 
