¸®´ª½º ¼­¹ö·Î ±¸ÃàÇÏ´Â À¥ ±×·ì¿þ¾î ¼Ö·ç¼Ç

ÇÊÀÚ : ±èÅ¿ë (sysop@debianusers.org)

 

     

µé¾î°¡¸ç..

    ÇöÀç ±â¾÷ ¹× ´Üü¿¡¼­´Â ¾÷¹«ÀÇ È¿À²¼ºÀ» Áõ´ëÇϱâ À§ÇØ ±×·ì¿þ¾î¸¦ µµÀÔÇÏ°í ÀÖ´Ù. ±×·ì¿þ¾î¸¦ »ç¿ëÇÔÀ¸·Î¼­ »ý±â´Â ¾÷¹«ÀÇ È¿À²¼ºÀ» Áö¸éÀ» ÅëÇØ ¸»ÇÏÁö ¾Ê¾Æµµ ¸¹Àº ºÐµéÀÌ ¾Ë°í ÀÖÀ» °ÍÀÌ´Ù. ±×·ì¿þ¾îµéÀÇ Á¾·ù´Â ¼ö½Ê °¡Áö¿¡ ÀÌ·ç¸ç ´ëºÎºÐ »ó¿ëÀÌ°í ÀÚ½Å(ȸ»ç)ÀÇ ¾÷¹«¿¡ Àû¿ëÇϱâ À§Çؼ­´Â ¸¹Àº ½Ã°£°ú µ·À» ÅõÀÚÇØ¾ß ÇÑ´Ù. ÇÏÁö¸¸ Áö±Ý ¼Ò°³ÇÏ·Á°í ÇÏ´Â ±×·ì¿þ¾î´Â ¶Ù¾î³­ ±â´É°ú È®À强 ±×¸®°í º¸¾È¼ºÀ» °¡Áö°í ÀÖÀ¸¸é¼­ GPL LICENSE¸¦ °¡Áö°í ÀÖ´Â ±×·ì¿þ¾îµé Áß ÇÑ °¡ÁöÀÌ´Ù.

 

1. PHPGroupWare ¿¡ ´ëÇؼ­

    PHPGroupWare´Â ÃÖ»óÀÇ ÀÎÆ®¶ó³Ý/±×·ì¿þ¾î Åø ±×¸®°í ¾îÇø®ÄÉÀÌ¼Ç ÇÁ·¹ÀÓ¿öÅ©ÀÌ´Ù. ÀÌ ÇÁ·Î±×·¥Àº PHP ¾ð¾î·Î ÀÛ¼ºµÇ¾î ÀÖÀ¸¸ç, °³¹ßÀÚ ¾Öµå¿Â ¾îÇø®ÄÉÀ̼ÇÀ» ÀÛ¼ºÇÒ ¼ö ÀÖµµ·Ï ¸¸µé¾îÁ³´Ù. PHP´Â °£´ÜÇÏ°í Å©·Î½º Ç®·§ÆûÀ» Áö¿øÇÏ¸ç ¼­¹ö ÂÊ¿¡¼­ ½ÇÇàµÇ´Â ½ºÅ©¸³Æ®ÀÌ´Ù. PHPGroupWare ÀÇ °³¹ß ¸ñÀûÀº ȸ»ç³ª Çб³, °³Àο¡°Ô ÀڽŵéÀÇ ¾îÇø®ÄÉÀ̼ÇÀ» ÀÛ¼º ¹× ¿Ïº®ÇÑ º¸¾È Àû¿ëÀ» ÇÒ ¼ö ÀÖµµ·Ï ÇÏ´Â À¥ ±â¹Ý ±×·ì¿þ¾î ¾îÇø®ÄÉÀ̼ÇÀ» ¸¸µå´Âµ¥ ÀÖ´Ù. ÀÌ ÇÁ·Î±×·¥ÀÇ °³¹ß ÁÖ¾ÈÁ¡Àº ·ÎÅͽº ³ëÃ÷ÀÇ °­·ÂÇÑ ÇÁ·Î±×·¥Àû ´É·ÂÀ» °¡Áø ¿ÀÇ ¼Ò½º ±×·ì¿þ¾î ¾îÇø®ÄÉÀ̼ÇÀ» ÀÛ¼ºÇϴµ¥ ÀÖ´Ù.

 

2. PHPGroupWare ÀÇ Æ¯Â¡

    PHPGroupWare´Â »õ·Î¿î ±â´É°ú ¾îÇø®ÄÉÀ̼ÇÀ» ¾ÆÁÖ °£´ÜÇÏ°Ô ÀÛ¼ºÇÒ ¼ö ÀÖµµ·Ï ¸¸µé¾îÁ® ÀÖ´Ù. ÀÌ ÇÁ·Î±×·¥Àº PHPGroupWare Core ¿Í PHPGroupWare Apps µÎ ºÎºÐÀ¸·Î ³ª´©¾îÁ® ÀÖ°í, API´Â ¾ÆÁÖ ¸ðµâÈ­µÇ¾î Àֱ⠶§¹®¿¡ °´Ã¼ ÁöÇâÀû µðÀÚÀÎÀ» °¡Áö°í ÀÖÀ¸¸ç °³¹ßÀÚ·Î ÇÏ¿©±Ý ÀڽŵéÀÌ ÇÊ¿ä·Î ÇÏ´Â Á¤º¸¿Í ÇÔ¼ö¿¡ Á¢±ÙÇÒ ¼ö ÀÖµµ·Ï ÇÑ´Ù.

    ¿ì¼± core¿Í apps ±×¸®°í APIÀÇ Æ¯Â¡À» »ìÆ캸°Ú´Ù.

     

    - coreÀÇ Æ¯Â¡

    Web Mail (IMAP & POP3 Áö¿ø / Ưº°È÷ Á¤ÇüÈ­µÈ À̸ÞÀÏÀ» Ưº°È÷ °ü¸®Çϱâ À§ÇÑ X-phpGW-Type Áö¿ø) / ÅëÇÕµÈ À¯Áî³Ý ´º½º±×·ì (À̸ÞÀÏ¿¡ ÅëÇÕ) / ´ÙÁß ÆÄÀÏ Ã·ºÎ / ÁÖ¼Ò·Ï ÈÄÅ© (vcard Çü½ÄÀ¸·Î ÀÛ¼ºµÈ ÆÄÀÏ Ãß°¡ °¡´É) / ¹®Á¦ ¹ß»ýÇÒ °æ¿ì ÇØ°áÇÒ ¼ö ÀÖ´Â À̺¥Æ® Áö¿ø / ½ºÄÉÁÙ·¯ (°³ÀÎ / ±×·ì Áö¿ø) / TODO (°³ÀÎ / ±×·ì Áö¿ø) / ÆÄÀÏ °ü¸®ÀÚ (ºñ°ø°³ / ±×·ì µð·ºÅ丮 Áö¿ø) / ¼­¹ö¿¡¼­ ÆÄÀÏÀ» ¾÷·Îµå, »ý¼º, ¼öÁ¤ Áö¿ø / Á÷Á¢ ÀüÀÚ¿ìÆí ÷ºÎ¸¦ ÀúÀå / ±×·ì¿þ¾î ÀÎÅÍÆäÀ̽º ¹ø¿ª °ü¸®ÀÚ (°£´ÜÇÑ ÀÎÅÍÆäÀ̽º·Î ´Ù±¹¾î·Î ÀÎÅÍÆäÀ̽º¸¦ º¯È¯ ¾÷±×·¹À̵å Áö¿ø (Çѱ¹¾î Æ÷ÇÔ 12°³ ±¹¾î Áö¿ø))

    - appsÀÇ Æ¯Â¡

    ¹®Á¦ »ý¼º ½Ã½ºÅÛ / äÆà / Æ÷·³ / Çìµå¶óÀÎ ´º½º / FTP Ŭ¶óÀ̾ðÆ® / Napster Ŭ¶óÀ̾ðÆ® / ¸®¼Ò½º ºÎÆà ½Ã½ºÅÛ (¹ÌÆÃ·ë ¹× ÇÁ·ÎÁ§Æ®¸¦ À§ÇÑ) / ÀÎÀû ÀÚ¿ø ÇÁ·Î±×·¥ / ¹ß¸í ÇÁ·Î±×·¥ / Æѽº ÅëÇÕ ½Ã½ºÅÛ µîÀÌ ÀÖÀ¸¸ç °è¼Ó °³¹ßµÇ°í ÀÖ´Ù.

    - APIÀÇ Æ¯Â¡

    ¿ÏÀüÇÑ °´Ã¼ÁöÇâ ±¸Á¶ / ¼½¼Ç °ü¸® / ÇöÀç Mysql°ú PostgreSQLÀ» Áö¿øÇÏ´Â µ¥ÀÌÅͺ£À̽º Ãß»óÈ­ / ÇÁ·Ï½Ã ¼­¹ö¿Í ¿¬°áÀ» °ü¸®ÇÏ´Â ³×Æ®¿öÅ© Ŭ·¡½º / SQL, LDAP, PAM, SMB ±â¹Ý ÀÎÁõÀ» Áö¿øÇÏ´Â ÀÎÁõ Ãß»óÈ­ / °íµµ·Î ¼¼·ÃµÈ ¹ø¿ª Áö¿ø / »ç¿ëÀÚ ÆÄÀÏÀ» ÀúÀåÇÏ°í »ç¿ëÇÏ´Â ¾îÇø®ÄÉÀ̼ÇÀ» Áö¿øÇÏ´Â ÆÄÀÏ °ü¸®ÀÚ / ÅÛÇø´ ½Ã½ºÅÛ / »ç¿ëÀÚ¿Í ±×·ì Á¶ÇÕ¿¡ ±â¹ÝÇÑ ¾îÇ®¸®ÄÉÀÌ¼Ç ±ÇÇÑ (Æ۹̼Ç) / °³¹ßÀÚ°¡ °£´ÜÇÑ ÇÔ¼ö¸¦ »ç¿ëÇÏ¿© ½ºÄÉÁÙ·¯¿¡ ¾ÆÀÌÅÛÀ» Ãß°¡Çϵµ·Ï ÇÏ´Â µî ¸ðµç ÇÙ½É ¾îÇ®¸®ÄÉÀ̼ǿ¡ °£´ÜÇÑ ÀÎÅÍÆäÀ̽º / ºê¶ó¿ìÀú µðÅؼǰú XML Æļ­ µî°ú °°Àº ´Ù¾çÇÑ À¯Æ¿¸®Æ¼ µîÀÌ ÀÖ´Ù.

 

3. ¼³Ä¡

    ÇöÀç APM(Apache + PHP + MySQL)ÀÌ ÀÛµ¿ÇÏ°í ÀÖ´Ù¸é ¼³Ä¡ ¹× ¼³Á¤ÇÏ´Â °ÍÀº °£´ÜÇÏ´Ù. ¸î °¡ÁöÀÇ ¼³Á¤À» »©°í´Â À¥À¸·Î ¼³Ä¡ÇÏ°í ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.

    (1)  ½ÃÀÛÇϱâ Àü¿¡.

    PHP°¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö È®ÀÎÀ» ÇÏ·Á¸é À¥ ¼­¹ö ·çÆ® µð·ºÅ丮¿¡ test.php ÆÄÀÏÀ» Çϳª ¸¸µé°í ¾Æ·¡¿Í °°Àº ³»¿ëÀ» ÀÛ¼ºÇÑ´Ù.

    <?      phpinfo();      ?>

    ±×¸®°í À¥ºê¶ó¿ìÀú¿¡¼­ http://¼­¹öÁÖ¼Ò/test.php ¶ó°í ÀÔ·ÂÇϸé PHP ¿É¼ÇÀÌ ÀÚ¼¼ÇÏ°Ô ³ª¿Â´Ù. ±âº»ÀûÀ¸·Î APM¸¸À» ¿ä±¸ÇÏÁö¸¸ ´õ ¸¹Àº ±â´ÉÀ» ¿øÇÑ´Ù¸é Ãß°¡ÀûÀ¸·Î NNTP ¼­¹ö¿Í LDAP ¼­¹ö¸¦ ¼³Á¤ÇØ ÁÖ¾î¾ß ÇÑ´Ù.

    APM ¹× NNTP, LDAP ¼³Á¤¿¡ ´ëÇؼ­´Â Ưº°È÷ ´Ù·çÁö ¾ÊÀ» °ÍÀÌ¸ç ¾Æ·¡ »çÀÌÆ®¸¦ Âü°í ÇÏ±æ ¹Ù¶õ´Ù.
    LDAP HOWTO http://kldp.org/HOWTO/html/LDAP/LDAP-HOWTO.html
    APM HOWTO http://kldp.org/KoreanDoc/html/ApacheMySQLPHP_Guide-KLDP/
                        ApacheMySQLPHP_Guide-KLDP.html
    Apache, SSL, MySQL, PHP  http://www.devshed.com/Server_Side/PHP/SoothinglySeamless

    (2)  Å×½ºÆ® ÇÑ ½Ã½ºÅÛ

    RedHat Linux 6.1, Debian GNU/Linux
    Kernel 2.2.18, 2.4.3
    PHP 3.0.13+, PHP 4.0.x
    Apache 1.3.x
    MySQL 3.2x
    Courier-IMAP & courier-IMAP-SSL 1.3.x ¶Ç´Â courier-POP & courier-POP-SSL 0.3x ±×¸®°í Qmail, Exim, Sendmail

 

4. PHPGroupWare ¼³Ä¡Çϱâ

    (1)  TarBall ¼³Ä¡Çϱâ

    tarball ¿¡¼­ ¼³Ä¡ÇÏ´Â ¹æ¹ýÀº °¡Àå ½±´Ù.
    ¿¹¸¦ µé¸é
    xxx:/var/www# wget http://prdownloads.sourceforge.net/phpgroupware/phpGroupWare-0.9.9p1.tar.gz
    xxx:/var/www# tar vfxz phpGroupWare-0.9.9p1.tar.gz
    xxx:/var/www# cd phpgroupware/

    (2)  CVS¿¡¼­ ¼³Ä¡Çϱâ

    CVS¿¡¼­ ¼³Ä¡ÇÏ´Â °Íµµ ½±´Ù. ÆÄÀÏÀÌ À¥¼­¹ö µð·ºÅ丮¿¡ ÀÖ´ÂÁö È®ÀÎÇÏ°í ´ÙÀ½Ã³·³ ÇÑ´Ù.
    (ÁÖÀÇ : ¼­¹ö ¼³Á¤¿¡ ¸ÂÃß¾î¾ß ÇÑ´Ù.)

    xxx:/var/www# cd /var/www
    xxx:/var/www# cvs -d:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware login (Password´Â ¿£ÅÍ Å°·Î ³Ñ±ä´Ù.)
    xxx:/var/www# cvs -z3 -d:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware co phpgroupware

    ¸¸¾à CVSROOT¸¦ »ç¿ëÇÏ·Á¸é:

    xxx:/var/www# export CVSROOT=¡®:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware¡¯
    xxx:/var/www# cvs login (Password´Â ¿£ÅÍ Å°·Î ³Ñ±ä´Ù.)
    xxx:/var/www# cvs co phpgroupware

    ÀÌ ¹æ¹ý ¶ÇÇÑ À¥µð·ºÅ丮¿¡ Æ۹̼ÇÀÌ ÀÖ¾î¾ß ÇÑ´Ù. ¾ø´Ù¸é °ü¸®ÀÚ¿¡°Ô ¹®ÀÇÇϱ⠹ٶõ´Ù.
    (2)-1.  CVS·Î ÆÐÄ¡ Çϱâ.

    ÃÖ±Ù phpGroupWare °³¹ßÀÚµéÀÌ ¸±¸®ÁîµÈ ¹öÀüµé¿¡ ´ëÇØ ÆÐÄ¡¸¦ Áö¿øÇÏ°í ÀÖ´Ù. ÀÌ°ÍÀº ´ÙÀ½ °ø½Ä ¸±¸®Á ±â´Ù¸± ÇÊ¿ä ¾øÀÌ ÇöÀç ¹öÀü¿¡ À߸øµÈ °ÍµéÀ» ¼öÁ¤ÇÏ´Â Á¤µµ¶ó°í ÇÒ ¼ö ÀÖ´Ù. ÆÐÄ¡¿Í ÇȽº¸¦ Àû¿ëÇÏ°í °ü¸®Çϱâ À§ÇÑ °³¹ßÀÚ°¡ µû·Î ÀÖ´Ù. ¿¹¸¦ µé¾î 0.9.9¸¦ »ç¿ëÇÏ´Â ÄÚµåÀÇ ÀÌ ¹öÀüÀ» °Ë»çÇØ º¸·Á¸é ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÈ´Ù.:

    login to cvs anonymously as described above
    cvs -z3 -d:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgroupware -r Version-0_9_9-patches phpgroupware

    (3)  ÆÄÀÏ ÆÛ¹Ì¼Ç ¼³Á¤

    phpGroupWare°¡ Á¤»óÀûÀ¸·Î ÀÛµ¿ÇÏ°Ô ÇÏ·Á¸é ¸î °¡Áö ÆÄÀÏ Æ۹̼ÇÀ» ¼³Á¤ÇØÁà¾ß ÇÏ´Â µð·ºÅ丮°¡ ÀÖ´Ù.

    Àӽà µð·ºÅ丮(¹Ýµå½Ã ÇÊ¿äÇÏ´Ù) - ÀÌ°Ç ¾Ï½ÃÀûÀ¸·Î /tmp µð·ºÅ丮Àε¥ ¸î °¡Áö ¾îÇ®¸®ÄÉÀ̼ÇÀÌ Á¤»óÀûÀ¸·Î ÀÛµ¿ÇÏ·Á¸é ¹Ýµå½Ã ÇÊ¿äÇÏ´Ù. °£´ÜÇÏ°Ô À¥¼­¹ö°¡ °Å±â¿¡ ÆÄÀÏÀ» Ãß°¡/»èÁ¦ÇÒ ¼ö ÀÖ´ÂÁö È®ÀÎÇØ ºÁ¾ß ÇÑ´Ù.

    ÆÄÀÏ µð·ºÅ丮(²À ÇÊ¿äÇÔ) - ÀÌ°Ç phpGroupWare ¹Ø¿¡ ÀÖ´Â µð·ºÅ丮µéÀε¥ ÀÌ µð·ºÅ丮ÀÇ À¥ ¼­¹ö °èÁ¤ ¼ÒÀ¯±ÇÀ» ÁÙ ¼ö ÀÖ´Ù.

    chown nobody:nobody
    ( ÀÌ°ÍÀº »ç¿ëÀÚ nobody ·Î À¥ ¼­¹ö¸¦ ½ÇÇàÇß´Ù´Â ¸»ÀÌ´Ù. ÀÚ½ÅÀÇ ¼­¹ö ȯ°æ¿¡ ¸ÂÃß¾î¾ß ÇÑ´Ù.)
    chmod 700 /var/www/phpgroupware/files

    ·çÆ® µð·ºÅ丮(Ãßõ ¾È ÇÔ) - À¥ ¼­¹ö °èÁ¤À¸·Î phpgroupware µð·ºÅ丮¿¡ ¾²±â ±ÇÇÑÀ» ÁÖ¸é ¼³Ä¡ ÇÁ·Î±×·¥ÀÌ ÀÚµ¿ÀûÀ¸·Î header.inc.php ÆÄÀÏÀ» ¸¸µé¾îÁà¾ß ÇÑ´Ù. ¾Æ´Ï¸é ±×°ÍÀ» ¸¸µé±â À§Çؼ­ ¼³Ä¡ ÇÁ·Î±×·¥À» »ç¿ëÇØ¾ß ÇÏ°í ±×°ÍÀ» ÆÄÀÏ¿¡ ÀúÀåÇÏ·Á¸é ¼öµ¿À¸·Î ÇØÁÖ¾î¾ß ÇÑ´Ù.

    ±×·¸°Ô ÇÏ·Á¸é:
    chown :nobody /var/www/phpgroupware
    chmod 770

    ÀÌ·¸°Ô ÇÏ·Á¸é Æ۹̼ÇÀÌ ÇÊ¿äÇÏ´Ù. À¥ ¼­¹ö µð·ºÅ丮¿¡ ¾²±â ±ÇÇÑÀÌ ¾øÀ¸¸é ½Ã½ºÅÛ °ü¸®ÀÚ¿¡°Ô ¿¬¶ôÇÑ´Ù.

    (4)  DB ¸¸µé±â

    ¾îÇø®ÄÉÀ̼ÇÀ» ¼³Ä¡Çϱâ À§Çؼ­ Å×À̺íÀ» ¸¸µé·Á¸é ºó µ¥ÀÌÅͺ£À̽º°¡ ÇÊ¿äÇÏ´Ù.

      (4)-1.  Mysql (MysqlÀÌ ¼³Ä¡µÇ¾î¼­ Àß µ¿ÀÛÇÑ´Ù°í °¡Á¤ÇÏ°í)

      Mandrake ¶Ç´Â RedHat: /etc/rc.d/init.d/mysqld start
      Debian: /etc/init.d/mysql start
      ´Ù¸¥ ½Ã½ºÅÛ: /usr/local/mysql/bin/safe_mysqld &
      ºó µ¥ÀÌÅͺ£À̽º ¸¸µé±â: mysqldadmin -u someuser create phpgroupware -p
      mysql¿¡ µé¾î°¡·Á¸é: mysql -u someuser -p
      mysql ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù:
      ¡°somepassword¡± À¸·Î phpgroupware@local ·Î Á¢¼ÓÇؼ­ phpgroupware.* ¿¡ ¸ðµç ±ÇÇÑÀ» Áà¾ß ÇÑ´Ù.
      Mysql¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ »ç¿ëÀÚ ¹®¼­¸¦ º¸·Á¸é ÀÌ°÷À¸·Î : http://www.mysql.com

      (4)-2.  Postgresql (¿ª½Ã ¼³Ä¡µÇ¾ú°í Àß µ¿ÀÛÇÑ´Ù°í °¡Á¤ÇÏ°í)

      Postgresql¿¡¼­ ¿ä±¸µÇ´Â µðºñ¸¦ »ý¼ºÇϱâ À§Çؼ­´Â postgresqlÀÌ ½ÃÀ۵Ǿú´ÂÁö È®ÀÎÇØ¾ß ÇÑ´Ù.
      Mandrake ¶Ç´Â RedHat: /etc/rc.d/init.d/postgresql start
      ´Ù¸¥ ½Ã½ºÅÛ: /usr/bin/postmaster -D /var/lib/pgsql/data or /usr/bin/pg_ctl -D /var/lib/pgsq/data start (¼³Ä¡µÈ µð·ºÅ丮¿¡ ¸ÂÃç¼­)
      ºó µ¥ÀÌÅͺ£À̽º ¸¸µé±â: /usr/bin/createdb phpgroupware
      µ¥ÀÌÅͺ£À̽º »ç¿ëÀÚ ¸¸µé±â: /usr/bin/createuser phpgroupware
      Postgresql¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¹®¼­´Â À¥À¸·Î °¡¸é µÈ´Ù: http://www.postgresql.org

    (5)  phpGroupWare ¼³Ä¡/¼³Á¤

    À¥ ºê¶óÀÚ¿¡¼­ http://¼­¹ö·çÆ®/phpgroupware/setup/ À̶ó°í ÀÔ·ÂÇÑ´Ù. ¿©±â¿¡ header.inc.php °ú µ¥ÀÌÅͺ£À̽º Å×À̺íÀÌ ¸¸µé¾îÁö°Å³ª ¾÷±×·¹ÀÌµå µÈ´Ù. ¼³Ä¡´Â phpGroupWare µ¥ÀÌÅͺ£À̽º ¹öÀü°ú ¼³Ä¡µÈ header.inc.php ÆÄÀÏÀ» ¾Ë¾Æ³»·Á°í ÇÒ °ÍÀÌ´Ù. ±×¸®°í ÃÖ±Ù ¹öÀüÀ¸·Î ¾÷±×·¹À̵å ÇÑ´Ù.
    Âü°í: ¹®Á¦ »ý±â´Â °Ô ½È´Ù¸é setup ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇϱâ Àü¿¡ µ¥ÀÌÅͺ£À̽º¸¦ ¸ðµÎ ¹é¾÷ÇØ¾ß ÇÑ´Ù!

    xxx:/var/www/phpgroupware# cp header.inc.php.template header.inc.php
    header.inc.php¸¦ ÀÚ½ÅÀÇ ¼­¹öÀÇ È¯°æ¿¡ ¸Â°Ô ¼öÁ¤ÇÑ ´ÙÀ½¿¡ À¥ºê¶ó¿ìÀú¸¦ ÅëÇÏ¿© È®ÀÎÇÑ´Ù.

    ¿¹) http://webserver/phpgroupware/setup/

    À§¿Í °°Àº °á°ú°¡ ³ª¿À¸é ÀÏ´Ü Ãâ¹ßÀÌ ¼øÁ¶·Î¿î ÆíÀÌ´Ù. header admin login¿¡ Á¢¼ÓÇÑ´Ù.

    LoginÀ» ÇÏ°í³ª¸é À§¿Í °°ÀÌ header ¼¼ÆÃÀ» ÇÏ°Ô µÈ´Ù. ¼¼ÆÃÀ» ÇÏ°í ³ª¼­ Continue¸¦ ´­·¯ ¼¼ÆðªÀ» ÀúÀåÇÑ´Ù.

    ±âº» ¼¼ÆÃÀ» ÀúÀåÇß´Ù¸é Setup/Config Admin Login¿¡ Á¢¼ÓÇÑ´Ù.

    header.inc.php À» Á¤È®È÷ ¼³Á¤Çß´Ù¸é À§¿Í °°Àº È­¸éÀ» º¼ °ÍÀÌ´Ù.
    Step 1. Create ¸¦ ´­·¯ Å×À̺íÀ» »ý¼º½ÃŲ´Ù.

    À§¿Í °°Àº È­¸éÀÌ ³ª¿À¸é Å×ÀÌºí »ý¼ºÀÌ ¼º°øÀûÀ¸·Î ÀÌ·ç¾îÁ³´Ù.
    Re-Check Myinstallation À¸·Î »ý¼ºµÈ µ¥ÀÌÅÍ º£À̽º¸¦ °Ë»çÇÑ´Ù.

    µ¥ÀÌÅͺ£À̽º Å×ÀÌºí »ý¼ºÀÌ ¿Ï·áµÇ¸é Step 2. Configure New À» ´©¸¥´Ù.

    ÀÌ°÷¿¡¼­ PHPGruopWare ÀÇ ÀÎÁõ ¹× °¢Á¾ ¼­¹ö¿¡ ´ëÇÑ ¼³Á¤À» ¸¶Ä¡°í

    Step 3. Manage Languages ¸¦ ´­·Á »ç¿ë¾ð¾î¸¦ ¼±ÅÃÇÑ´Ù.

    ÀÌ°÷¿¡¼­ °áÁ¤µÇ´Â ¾ð¾î´Â ³ªÁß¿¡ »ç¿ëÀÚ°¡ °¢ÀÚ ÀÚ½ÅÀÇ »ç¿ë¾ð¾î¸¦ ¼±ÅÃÇÒ ¶§ »ç¿ëµÈ´Ù.
    ¿Ü±¹ÀÎÀÌ ÀÌ¿ëÇϰųª ÇÒ °æ¿ì´Â »ç¿ëÇÏ°íÀÚ ÇÏ´Â ¾ð¾î¸¦ ¸ðµÎ Ãß°¡ÇÑ´Ù.

    Áö±Ý ±îÁö PHPGroupWare ÀÇ È¯°æÀ» ¼³Á¤ÇÏ¿´´Ù.
    ¿©±â¼­ Step 2. Click Here ¸¦ ´­·¯ Admin °èÁ¤ ¹× ºñ¹Ð¹øÈ£¸¦ ¹Ýµå½Ã ÀÛ¼ºÇØ¾ß ÇÑ´Ù.

    (5)  ¼³Ä¡ Å×½ºÆ®

    ´ë·«ÀûÀÎ ¼³Á¤ÀÌ ³¡³ª°í http://webserver/phpgroupware/ ·Î(¼³Ä¡µÈ µð·ºÅ丮) À̵¿À» ÇÑ ´ÙÀ½ µåµð¾î ·Î±×ÀÎÀ» ÇÑ´Ù. ¼³Á¤ÀÌ Á¤»óÀûÀ¸·Î µÇ¾úÀ¸¸é ·Î±×ÀÎÇÒ ¼ö ÀÖ´Ù. ¿©±â¼­ °ü¸®ÀÚ ±ÇÇÑÀ» °¡Áø »õ·Î¿î »ç¿ëÀÚ¸¦ ¸¸µé°í ¿¹Àü °ÍÀº Áö¿ö¹ö¸®´Â °ÍÀÌ ¾Æ¸¶ ÁÁÀ» °ÍÀÌ´Ù.

    ·Î±×ÀÎÀ» ÇÏ¸é ºê¶ó¿ìÀú À­ ºÎºÐ¿¡ ¾ÆÀÌÄܵéÀÌ ³ª¿À´Âµ¥ preferences¾ÆÀÌÄÜÀ» ¼±ÅÃÇؼ­ ȯ°æÀ» ¼³Á¤ÇØÁÖ¸é µÈ´Ù. (À§ È­¸éÀº ·Î±×ÀÎÇÏ°í ³ª¼­ AdministrationÀÇ È­¸éÀÌ´Ù.)

    ¼³Ä¡µÈ À§Ä¡¸¦ À¥ ºê¶ó¿ìÀú¿¡¼­ ÁöÁ¤ÇÑ´Ù. ·Î±×ÀÎÇØ º»´Ù. ¿©±â¼­ °ü¸®ÀÚ ±ÇÇÑÀ» °¡Áø »õ·Î¿î »ç¿ëÀÚ¸¦ ¸¸µé°í ¿¹Àü °ÍÀº Áö¿ö¹ö¸®´Â °Ô ÁÁ´Ù.

    (6)  Ãß°¡ ¾îÇø®ÄÉÀÌ¼Ç ¼³Ä¡

    phpGroupWare À» ¼³Ä¡ÇÏ°í ½ÇÇàÇØ ºÃ´Ù¸é ¾Æ¸¶ Ãß°¡ÀûÀÎ ¾îÇø®ÄÉÀ̼ÇÀ» ¹Þ¾Æ¼­ ¼³Ä¡ÇÏ°í ½ÍÀ» °ÍÀÌ´Ù.

    »õ ¾îÇø®ÄÉÀ̼ÇÀ» ¹ÞÀ¸¸é README³ª INSTALLÀ» ²À º¸µµ·Ï ÇÑ´Ù. ±×¸®°í DB¿¡ »õ·Î¿î Å×À̺íÀ» »ý¼ºÇÏ°í lang Å×À̺í(ÀϹÝÀûÀ¸·Î lang.sql À̶ó´Â ÆÄÀÏ)¿¡ Ãß°¡ÀûÀÎ ¹ø¿ª µ¥ÀÌÅ͵éÀÌ ÀÖÀ» °ÍÀÌ´Ù.
    ±×³É phpGroupWare ¼³Ä¡µÈ °÷¿¡ ¾îÇø®ÄÉÀÌ¼Ç µð·ºÅ丮¸¦ º¹»ç¸¸ ÇÏ¸é »õ ¾îÇø®ÄÉÀ̼ÇÀÌ ´Ù ¼³Ä¡µÈ °ÍÀÌ´Ù. ±×¸®°í °ü¸®ÀÚ ÆäÀÌÁö¿¡¼­ ¾îÇø®ÄÉÀ̼ÇÀ» °¡´ÉÇϵµ·Ï ÇØÁÖ¸é µÈ´Ù.

    ¿¹¸¦ µé¸é Çìµå¶óÀÎ ¾îÇø®ÄÉÀÌ¼Ç À» ¼³Ä¡ÇÑ´Ù¸é
    (¾îÇø®ÄÉÀ̼ǿ¡ ´ëÇÑ °ÍÀº http://www.sourceforge.net/projects/phpgwapps ¿¡¼­ º¸µµ·Ï ÇÑ´Ù.)
    ¾îÇø®ÄÉÀ̼ÇÀÇ .tar.gz ¸¦ ¹Þ°Å³ª ´ÙÀ½ ¸í·ÉÀ¸·Î CVS ¿¡ ¼Ò½º°¡ ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.

    export CVSROOT=¡®:pserver:anonymous@cvs.phpgroupware.sourceforge.net:/cvsroot/phpgwapps¡¯
    cvs login (password ´Â ¿£ÅÍ·Î ³Ñ±ä´Ù.)
    cvs co headlines

    phpGroupWare °¡ ¼³Ä¡µÈ µð·ºÅ丮·Î headlines µð·ºÅ丮¸¦ ¿Å°í °ü¸®ÀÚ·Î phpGroupWare¿¡ µé¾î°¡¼­ °ü¸®ÀÚ ÆäÀÌÁö·Î °£´Ù. ù¹ø° ¼½¼Ç¿¡¼­ ¾îÇø®ÄÉÀÌ¼Ç ¸µÅ©¸¦ ¼±ÅÃÇÏ°í Ãß°¡ÇÏ·Á¸é Ŭ¸¯ÇÏ°í ¾ç½ÄÀ» ´Ù ä¿ì¸é µÈ´Ù. ¾îÇø®ÄÉÀÌ¼Ç À̸§Àº ¿Å±ä µð·ºÅ丮 À̸§À¸·Î ÇÏ¸é µÇ°í ÀÌ °æ¿ì¿¡´Â headlines ¶ó°í ÇÏ¸é µÈ´Ù. ¾îÇø®ÄÉÀÌ¼Ç Á¦¸ñÀº ³×ºñ°ÔÀÌ¼Ç ¹Ù¿¡ º¸¿©Áö´Â °ÍÀÌ°í ´Ù¸¥ °÷¿¡ »õ ¾îÇø®ÄÉÀ̼ÇÀ» ¾ð±ÞÇϱâ À§ÇÑ °ÍÀε¥ ¿©±â¼­´Â Headlines ¶ó°í ¾²¸é µÈ´Ù. Enabled ´Â ÀÓ½ÃÀûÀ¸·Î ¸ðµç »ç¿ëÀÚµéÀÌ ¾îÇø®ÄÉÀ̼ÇÀ» »ç¿ë ¸øÇϵµ·Ï ÇÏ´Â °ÍÀε¥ ÀÌÁ¦ ÀÌ ¾îÇø®ÄÉÀ̼ÇÀ» »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ¹Ú½º¿¡ üũÇÏ¸é µÈ´Ù. °ü¸®ÀÚ ÆäÀÌÁö·Î µ¹¾Æ°¡¼­ ƯÁ¤ »ç¿ëÀÚ³ª »ç¿ëÀÚ ±×·ì¿¡ ´ëÇÑ ¾îÇø®ÄÉÀ̼ÇÀ» °¡´ÉÇϵµ·Ï ÇØ¾ß ÇÑ´Ù. ±×¸®°í °èÁ¤ ¼öÁ¤ ÆäÀÌÁöÀÇ Áß°£¿¡ º¸ÀÌ´Â Headlines ¹Ú½º¸¦ üũÇØÁÖ¸é µÈ´Ù.

    °èÁ¤¿¡ Headlines ¾îÇø®ÄÉÀ̼ǿ¡ Ãß°¡µÇ¾úÀ¸¸é °ü¸®ÀÚ¿Í È¯°æ¼³Á¤ ÆäÀÌÁö¿¡¼­ Headlines ¶ó´Â°É º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù. ±×¸®°í ³×ºñ°ÔÀÌ¼Ç ¹Ù¸¦ º¸¸é Headlines ¾îÇø®ÄÉÀ̼ǿ¡ ´ëÇÑ ¾ÆÀÌÄܵµ ÀÖ´Ù. °ü¸®ÀÚ ¿µ¿ª ¸µÅ©¸¦ ÅëÇØ Headlines »çÀÌÆ®¸¦ È°¼ºÈ­Çß´Ù¸é ³×ºñ°ÔÀÌ¼Ç ¹Ù¿¡¼­ Headlines ¾ÆÀÌÄÜÀ» Ŭ¸¯Çؼ­ ¼±ÅÃÇÑ »çÀÌÆ®·ÎºÎÅÍ Çìµå¶óÀÎÀ» ¹Þ¾Æ¿Ã ¼ö ÀÖ´Ù.

 

5. phpGroupWare ¾îÇø®ÄÉÀÌ¼Ç °³¹ß

    À̹ø ÀåÀº ¾îÇø®ÄÉÀ̼ǵéÀ» ÅëÇÕÇϴµ¥ ÇÊ¿äÇÑ phpGroupWareÀÇ ÇϺα¸Á¶¿Í API¸¦ ¼³¸íÇÏ´Â °ÍÀÌ´Ù.

    (1)  ¾îÇø®ÄÉÀÌ¼Ç ÀÛ¼ºÀÇ °³¿ä

    ¿ì¸®´Â º°´Ù¸¥ ¾î·Á¿ò ¾øÀÌ phpGroupWare¸¦ À§ÇÑ ¾îÇø®ÄÉÀ̼ÇÀ» ¸¸µé ¼ö ÀÖµµ·Ï ½ÃµµÇß´Ù. ¿ì¸®´Â ¾îÇø®ÄÉÀÌ¼Ç ÀÛ¾÷À» ½±°Ô ÇÒ ¼ö Àֱ⸦ ¹Ù¶ó¸ç phpGroupWare ÀÚü´Â ´Ù·çÁö ¾Ê°Ú´Ù.

    (2)  phpGroupWare API°¡ Á¦°øÇÏ´Â °ÍÀº?

    phpGroupWare API´Â ¼¼¼Ç °ü¸®, »ç¿ëÀÚ/±×·ì °ü¸®¸¦ °ü¸®ÇÏ°í PHPLIB µ¥ÀÌÅͺ£À̽º Ãß»ó ¸Þ¼Òµå¸¦ »ç¿ëÇÑ ´ÙÁß µ¥ÀÌÅͺ£À̽º¸¦ Áö¿øÇÑ´Ù. ±×¸®°í PHPLIB ÅÛÇø´ Ŭ·¡½º¸¦ »ç¿ëÇÑ ÅÛÇø´°ú ÆÄÀÏ ½Ã½ºÅÛ ÀÎÅÍÆäÀ̽º, ³×Æ®¿öÅ© ÀÔÃâ·Â ÀÎÅÍÆäÀ̽º±îÁö Áö¿øÇÑ´Ù.

    ÀÌ·± ±âº»ÀûÀÎ ÇÔ¼öµéÀÇ Á¦ÀÏ À§¿¡´Â, ÇÊ¿ä·Î ÇÏ´Â »ç¿ëÀÚ È¯°æ¿¡ ´ëÇÑ Á¤º¸¿Í phpGroupWare¿¡ Á¦´ë·Î Àû¿ëµÉ ¼ö ÀÖµµ·Ï ÇÏ´Â ¸î °¡Áö ÇÔ¼öµéÀ» phpGroupWare¿¡¼­ Á¦°øÇÑ´Ù.

 

6.  Áöħ

    (1)  ¿ä±¸

    ÀÌ Áöħ´Â phpGroupWare µô·°½º¿¡ Æ÷ÇԵǵµ·Ï °í·ÁµÈ ¾î¶² ¾îÇø®ÄÉÀ̼ÇÀ» ¹Ýµå½Ã µû¸£µµ·Ï µÇ¾î¾ß ÇÑ´Ù.

      ¹Ýµå½Ã PHP3¿Í PHP4¿¡¼­ ½ÇÇàµÇ¾î¾ß ÇÑ´Ù.
      SQL ¹®ÀåÀº MySQL°ú PostgreSQL¿¡¼­ ȣȯµÇ¾î¾ß ÇÑ´Ù.
      ±âº»ÀûÀ¸·Î Æ÷ÇÔµÈ header.inc.php¸¦ »ç¿ëÇØ¾ß ÇÑ´Ù.
      ¸ðµç ¸µÅ©¿¡ %phpgw_link($url)À» »ç¿ëÇØ¾ß ÇÑ´Ù (ÀÌ°ÍÀº ¼¼¼ÇÀ» Áö¿øÇϱâ À§ÇÑ °ÍÀÌ´Ù).
      Æû¿¡ ´ëÇØ ¡°post¡±¸¦ »ç¿ëÇØ¾ß ÇÑ´Ù.
      phpGW ±×·ì ±ÇÇÑ°ú phpGW »ç¿ëÀÚ Æ۹̼ÇÀ» Á¸ÁßÇØ¾ß ÇÑ´Ù.
      µð·ºÅ丮 ±¸Á¶, ÅÛÇø´ Áö¿ø, ¾ð¾î(´ÙÁß ¾ð¾î) Áö¿øÀ» »ç¿ëÇØ¾ß ÇÑ´Ù.
      Unix¿Í NT Ç÷§Æû¿¡¼­ µ¿ÀÛÇØ¾ß ÇÑ´Ù.

    ÀÌ ¿ä±¸¿¡ ¸ÂÁö ¾Ê´Â ¾îÇø®ÄÉÀ̼ǿ¡ ´ëÇؼ­´Â phpGroupWare ¾îÇø®ÄÉÀÌ¼Ç ÇÁ·ÎÁ§Æ®¸¦ ÅëÇÏ¿© »ç¿ëÀÚµéÀÌ È°¿ëÇÒ ¼ö ÀÖ°í °³¹ßÀÚ°¡ °áÁ¤ÇÑ´Ù´Â °ÍÀ» ¶æÇÑ´Ù. ¸¸¾à ÅÛÇø´°ú ¾ð¾î Áö¿øÀ¸·Î ¾îÇø®ÄÉÀ̼ÇÀ» º¯È¯Çϴµ¥ µµ¿òÀÌ ÇÊ¿äÇÏ´Ù¸é µµ¿òÀ» ÁÖµµ·Ï ÇÏ°Ú´Ù.

    (2)  ¾îÇø®ÄÉÀÌ¼Ç ÀÛ¼º/Æ÷ÆÃ

    ÀÎŬ·çµå ÆÄÀÏ
    ÀÛ¼ºÇÏ´Â °¢ PHP ÆäÀÌÁö´Â ¾î¶² º¯¼ö¸¦ µû¶ó header.inc.php¸¦ Æ÷ÇÔ½ÃÄÑ¾ß ÇÑ´Ù.
    ÀÌ°ÍÀº °¢ PHP ÆäÀÌÁöÀÇ Á¦ÀÏ À§¿¡ ÀÌ°ÍÀ» ³ÖÀ¸¸é µÈ´Ù.

      <?php
      $phpgw_info[¡°flags¡±][¡°currentapp¡±] = ¡°appname¡±;
      include(¡°../header.inc.php¡±);
      ?>

    ¹°·Ð ¾îÇø®ÄÉÀÌ¼Ç À̸§Àº ¸Âµµ·Ï °íÄ¡¸é µÈ´Ù.
    ÀÌ°ÍÀº ´ÙÀ½°ú °°Àº °ÍÀ» Á¦°øÇÒ °ÍÀÌ´Ù:

    phpgwAPI - phpGroupWare API°¡ ·ÎµåµÉ °ÍÀÌ´Ù.
                      phpGW navbar°¡ ·ÎµåµÉ °ÍÀÌ´Ù
                      (±âº»ÀûÀÌÁö¸¸ ´ÙÀ½ ÁöÁ¡¿¡¼­ ºñÈ°¼ºÈ­ÇÒ ¼ö ÀÖ´Ù).
    appname/inc/functions.inc.php - ÀÌ ÆÄÀÏÀº phpgwAPI µÚ¿¡ ±×¸®°í ¾î¶² HTML Äڵ尡
                                                    »ý¼ºµÇ±â Á÷Àü¿¡ ·ÎµåµÈ´Ù. ÀÌ ÆÄÀÏÀº ¸ðµç ¾îÇø®ÄÉÀ̼Ç
                                                    Æ¯Á¤ ÇÔ¼ö¸¦ Æ÷ÇÔÇÒ °ÍÀÌ´Ù. ÀÌ ÆÄÀÏ ¾È¿¡ ÇÊ¿ä·Î ÇÏ´Â
                                                    ´Ù¸¥ Ãß°¡ÀûÀÎ ÆÄÀϵµ Æ÷ÇÔÇÒ ¼ö ÀÖ´Ù.
    appname/inc/header.inc.php - ÀÌ ÆÄÀÏÀº ½Ã½ºÅÛ header/navbar ¹Ù·Î ´ÙÀ½¿¡ ·ÎµåµÇ°í
                                                 °³¹ßÀÚµéÀº ·ÎµåµÉ ÇÊ¿ä°¡ ÀÖÀ» ¶§¸¶´Ù »ç¿ëÇÒ ¼ö ÀÖ´Ù.
    appname/inc/footer.inc.php - ÀÌ ÆÄÀÏÀº ½Ã½ºÅÛ footer ¹Ù·Î ´ÙÀ½¿¡ ·ÎµåµÇ°í °³¹ßÀÚµéÀº
                                                ÇÊ¿äÇÑ ´Ù¸¥ °÷À̳ª Á¢¼ÓÀ» Á¾·áÇϱâ À§ÇØ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
                                                phpGW footer°¡ ·ÎµåµÉ °ÍÀÌ°í ¸î¸î Á¢¼ÓÀÌ Á¾·áµÉ °ÍÀÌ´Ù.

 

]7.  ¾îÇø®ÄÉÀÌ¼Ç ¼³Ä¡

    (1)  °³¿ä

    phpGroupWare¿¡¼­ ¾îÇø®ÄÉÀ̼ÇÀ» Ãß°¡ÇÏ°í »èÁ¦ÇÏ´Â °ÍÀº ¾ÆÁÖ ½±´Ù.

    (2)  ÀÚµ¿ ±â´É

    ¿ì¸®´Â °³¹ßÀÚµéÀÌ ½±°Ô ¸¸µé ¼ö ÀÖµµ·Ï ÇÏ·Á°í ´ÙÀ½°ú °°Àº ÆÄÀÏÀ» ·ÎµåÇÑ´Ù.
    appname/inc/functions.inc.php - ÀÌ ÆÄÀÏÀº ¸ðµç ¾îÇø®ÄÉÀÌ¼Ç Æ¯Á¤ ÇÔ¼öµéÀ»
                                                    Æ÷ÇÔÇÒ ¼ö ÀÖ´Ù.
    appname/inc/header.inc.php - ÀÌ ÆÄÀÏÀº ½Ã½ºÅÛ header/navbar ¹Ù·Î ´ÙÀ½¿¡¼­
                                                 $phpgw->common->header¿¡ ÀÇÇØ ·ÎµåµÇ°í °³¹ßÀÚ·Î
                                                 ÇÏ¿©±Ý ·Îµå°¡ ÇÊ¿äÇÑ ºÎºÐ¿¡ »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÑ´Ù.
    appname/inc/footer.inc.php - ÀÌ ÆÄÀÏÀº ½Ã½ºÅÛ footer ¹Ù·Î ¾Õ¿¡¼­
                                                $phpgw->common->footer ¿¡ ÀÇÇØ ·ÎµåµÇ°í, °³¹ßÀÚ·Î
                                                ÇÏ¿©±Ý ÇÊ¿ä·Î ÇÏ´Â ´Ù¸¥ ºÎºÐ°ú Á¢¼ÓÀ» Á¾·áÇϱâ À§ÇØ »ç¿ë
                                                ÇÒ ¼ö ÀÖ´Ù.

    (3)  ÆÄÀÏ, µð·ºÅ丮, ¾ÆÀÌÄÜ Ãß°¡

    Äڵ忡 ´ÙÀ½ µð·ºÅ丮¸¦ »ý¼ºÇÒ ÇÊ¿ä°¡ ÀÖ´Ù
    (¡®appname¡¯À» ¾îÇø®ÄÉÀÌ¼Ç À̸§À¸·Î ¹Ù²ã¶ó)

    `--appname
      |--inc
      |   |--functions.inc.php
      |   |--header.inc.php
      |   |--hook_preferences.inc.php
      |   |--hook_admin.inc.php
      |   `--footer.inc.php
      `--templates
      |   `--default

    (4)  ¾îÇø®ÄÉÀ̼ÇÀ» phpGroupWare¿¡ ÀνĽÃÅ°±â

    ¾îÇø®ÄÉÀ̼ÇÀ» ÀνÄÇÏ´Â ¾îÇø®ÄÉÀ̼ÇÀ» ¸¸µé±â À§Çؼ­´Â ¾îÇø®ÄÉÀÌ¼Ç Å×ÀÌºí¿¡ ¾îÇø®ÄÉÀÌ¼Ç ¼³¸íÀ» Ãß°¡Ç϶ó. ÀÌ°ÍÀº GUI °ü¸®ÀÚ È­¸éÀ» ÅëÇÏ¿© ÀÌ·ç¾îÁø´Ù. ¶Ç´Â SQL ½ºÅ©¸³Æ®·Îµµ ÇÒ ¼ö ÀÖ´Ù.

    insert into applications (app_name, app_title, app_enabled) values (¡®appname¡¯, ¡®The App name¡¯, 1);

    (5)  °ü¸®ÀÚ ÆäÀÌÁö¿¡ ÈÄÅ·

    »ç¿ëÀÚ°¡ °ü¸®ÀÚ ÆäÀÌÁö·Î °¡¸é °¢ ¾îÇø®ÄÉÀ̼ÇÀÌ È°¼ºÈ­µÇ¾î ÀÖ´ÂÁö ¾îÇø®ÄÉÀÌ¼Ç Á¦¸ñÀÌ ¾ËÆĺª ¼ø¼­¿¡ µû¸£´ÂÁö È®ÀÎÇÏ¿© appname/inc/hook_admin.inc.php °¡ ½ÃÀ۵ȴÙ. ÀÌ ÆÄÀÏÀÌ Á¸ÀçÇϸé ÀÌ°ÍÀº nclude() ÀÌ¸é ±× ¾îÇø®ÄÉÀ̼ÇÀ» ¼³Á¤Çϱâ À§ÇÑ ¸µÅ©ÀÇ ¼±ÅÃÀ» Ç¥½ÃÇÒ °ÍÀÌ´Ù.

    °£´ÜÇÑ ¿¹Á¦:

    <?php
      $img = ¡°/¡± . $appname . ¡°/images/navbar.gif¡±;
      section_start(¡°My Application¡±,$img);
      echo ¡°<a HREF=¡¬¡°¡± . $phpgw->link(¡°myAdminPage.php¡±) . ¡°¡¬¡±>¡±;
      echo lang(¡°Change myApp settings¡±) . ¡°</a>¡±;
      section_end();
    ?>

    ´õ ÀÚ¼¼ÇÑ ¿¹Á¦´Â headlines/inc/hook_admin.inc.php ¿Í admin/inc/hook_admin.inc.php ¸¦ º¸¶ó
    Âü°íÀûÀ¸·Î:

    ¸µÅ©´Â admin/index.php ÆÄÀÏ¿¡ »ó´ëÀûÀÌÁö¸¸ ¾îÇø®ÄÉÀ̼ÇÀÇ ±âº» µð·ºÅ丮´Â ¾Æ´Ï´Ù. (±×·¯¹Ç·Î link() ¸¦ È£ÃâÇÏ´Â °÷¿¡ $appname À» »ç¿ëÇ϶ó)

    ÆÄÀÏÀº include() ¿¡¼­ ºÒ¸®¿öÁö¸ç À̸§¿¡ °ø¹éÀÌ µé¾î°¡Áö ¾Êµµ·Ï Á¶½ÉÇ϶ó. ±âº» $phpgw ¿Í $phpgw_info º¯¼ö´Â ¿µ¿ª ¾È¿¡ ÀÖÀ¸¸ç Æнº¿¡¼­ ¾îÇø®ÄÉÀÌ¼Ç À̸§°ú °ü·ÃµÈ $appname ÀÌ´Ù.

    °¢ ¾îÇø®ÄÉÀ̼ÇÀÇ ¸µÅ©¸¦ Ç¥½ÃÇÏ´Â °ÍÀº section_start()¿Í sectio_end()ÀÇ µÎ °¡Áö ÇÔ¼ö°¡ ÀÖ´Ù.

    section_start
    section_start($title,$icon_url) Àº ¾îÇø®ÄÉÀ̼ǿ¡ ´ëÇÑ ¼½¼ÇÀ» ½ÃÀÛÇÑ´Ù. $titleÀº lang()À» ÅëÇØ ÆнºµÇ¸ç $icon_url()Àº admin/index.php ³ª Àý´ë ÁÖ¼Ò¿¡ ÆäÀÌÁö »ó´ëÀûÀ̾î¾ß ÇÑ´Ù.

    section_end
    section_end()´Â section_start()·Î ½ÃÀÛµÈ ¼½¼ÇÀ» Á¾·áÇÑ´Ù.

    (6)  È¯°æ ÆäÀÌÁö·Î ÈÄÅ·Çϱâ

    ȯ°æ ÆäÀÌÁö·Î ÈÄÅ·ÇÏ´Â ¸ÞÄ¿´ÏÁòÀº °ü¸®ÀÚ ÆäÀÌÁö¿¡ ÈÄÅ©Çϱâ À§ÇØ »ç¿ëµÈ °Í°ú µ¿ÀÏÇÏÁö¸¸ appname/inc/hook_admin.php ´ë½Å appname/inc/hook_preferences.inc.php ¸¦ ã´Â´Ù. µ¿ÀÏÇÑ ÇÔ¼ö¿Í º¯¼ö°¡ Á¤ÀǵǾî ÀÖ´Ù.

 

8.  ÇϺα¸Á¶

    (1)  °³¿ä

    pgpGroupWare´Â °³¹ßÀÚ¿¡°Ô ÀÛµ¿ÇÒ sound µð·ºÅ丮 ±¸Á¶¸¦ Á¦°øÇϵµ·Ï ÇÒ °ÍÀÌ´Ù.
    µð·ºÅ丮 ·¹À̾ƿôÀº óÀ½¿¡ º¹ÀâÇÑ °Íó·³ º¸ÀÌÁö¸¸ Á¶±Ý »ç¿ëÇÑ ÈÄ¿¡´Â ¸¹Àº ¼öÀÇ ¾îÇø®ÄÉÀ̼ǰú ÇÔ¼öµéÀÌ ¼ö¿ëÇÏ°í ÀÖ´Ù´Â °ÍÀ» ¾Ë°Ô µÉ °ÍÀÌ´Ù.

    (2)  µð·ºÅ丮 Æ®¸®

    .--appname
    |   |--inc
    |   |   |--functions.inc.php
    |   |   |--header.inc.php
    |   |   |--hook_preferences.ini.php
    |   |   |--hook_home.inc.php
    |   |   `--footer.inc.php
    |   |--manual
    |   |--setup
    |   |   |--baseline.inc.php
    |   |   |--droptables.inc.php
    |   |   |--newtables.inc.php
    |   |   |--upgradetables.inc.php
    |   |   |--config.inc.php
    |   |   `--register.inc.php
    |   `--templates
    |   |   `--default
    |   |      `--images
    |   |        `--navbar.gif
    |   |--preferences.php
    |--docs (installation docs)
    |--files
    |   |--groups
    |   `--users
    `--phpgwapi
       |--cron (phpgroupware's optional daemons)
       |--doc (developers docs)
       |--inc
       |

      |--phpgw.inc.php
       |   |--phpgw_info.inc.php
       |   |--phpgw_common.inc.php
       |   `--etc..
       |--manual
       |--setup
       |   |--baseline.inc.php
       |   |--droptables.inc.php
       |   |--newtables.inc.php
       |   |--upgradetables.inc.php
       |   |--config.inc.php
       |   `--register.inc.php
       |--templates
       |   |--default
       |   |   `--images
       |   |   |--home.gif
       |   |   `--preferences.gif
       |   `--verilak
       |      `--images
       |       |--home.gif
       |       `--preferences.gif
       `--themes
          `--default.theme

    (3)  ¹ø¿ª

    ¹ø¿ªÀº µ¥ÀÌÅͺ£À̽º¸¦ ÅëÇØ ÀÌ·ç¾îÁö¸ç ´Ù¸¥ ¸ÞÄ¿´ÏÁòÀ» »ç¿ëÇϵµ·Ï ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
    Transy¶ó°í ºÎ¸£´Â ÇÁ·Î±×·¥À» ÅëÇØ °³¹ßÀÚ/¹ø¿ª°¡µéÀÌ ¹ø¿ª¹°À» ¸¸µé°Å³ª ¾÷±×·¹À̵åÇϵµ·Ï ÈǸ¢ÇÑ GUI¸¦ Á¦°øÇÒ °ÍÀÌ´Ù. ÀÌ°ÍÀº SQL ½ºÅ©¸³Æ®¸¦ ÀÛ¼ºÇÏ°í À̸§À» lang.sqlÀ̶ó°í ÇÏ¸é µÈ´Ù´Â °ÍÀÌ´Ù. ÀÌ°ÍÀ» doc/lang.sql·Î º¹»çÇÏ°í ÅÛÇø´À¸·Î »ç¿ëÇÏ¸é µÈ´Ù.

 

9.  API

    (1)  ¼Ò°³

    phpGroupWare´Â °³¹ßÀڵ鿡°Ô ÀÏ¹Ý Å½ºÅ©¸¦ °ü¸®ÇÏ´Â À¯¿ëÇÑ API¸¦ Á¦°øÇÑ´Ù.
    ÀÌ°ÍÀ» Çϱâ À§Çؼ­ ¿ì¸®´Â ´ÙÂ÷¿ø Ŭ·¡½º $phpgw-> ¸¦ ¸¸µé¾ú´Ù.
    ÀÌ°ÍÀº ±²ÀåÇÑ ÄÚµå ü°è¸¦ Çã¿ëÇÏ¸ç °³¹ßÀÚµéÀÌ ÇÔ¼ö°¡ »ç¿ëµÈ ÆÄÀÏÀ» ½±°Ô ¸í½ÃÇÒ ¼ö ÀÖµµ·Ï µµ¿ÍÁØ´Ù. ÀÌ Å¬·¡½ºÀÇ ºÎºÐÀÎ ¸ðµç ÆÄÀϵéÀº inc/core µð·ºÅ丮¿¡ ÀÖÀ¸¸ç sub-class ¿Í ¸Âµµ·Ï À̸§µÇ¾î ÀÖ´Ù.

    ¿¹: $phpgw->send->msg() ´Â inc/phpgwapi/phpgw_send.inc.php ÆÄÀÏ¿¡ ÀÖ´Ù.

    (2)  ±âº» ÇÔ¼ö

    $phpgw->link
    $phpgw->link($url)

    ¼¼¼Ç °ü¸®¿¡ ´ëÇÑ Áö¿øÀ» Ãß°¡ÇÑ´Ù. ¸ðµç ¸µÅ©´Â ¹Ýµå½Ã ÀÌ°ÍÀ» »ç¿ëÇϸç hrefÀÇ Æû ¾×¼Ç°ú Çì´õ ·ÎÄÉÀ̼ÇÀ» Æ÷ÇÔÇÑ´Ù. ¸¸¾à °°Àº ÆäÀÌÁö·Î µ¹¾Æ°¡´Â Æû ¾×¼ÇÀ» ÇØ¾ß ÇÑ´Ù¸é ¾î¶² ÆĶó¹ÌÅ͵µ ¾øÀÌ »ç¿ëÇÒ ¼ö ÀÖ´Ù.

    ÀÌ ÇÔ¼ö´Â ¸Å¿ì ÀÚÁÖ »ç¿ëµÇ±â ¶§¹®¿¡ Ŭ·¡½ºÀÇ ÇÙ½É ºÎºÐ¿¡ ÀÖÀ¸¸ç °³¹ßÀÚµéÀÌ Å°¸¸ ¸î ¹ø µÎµå¸®¸é µÇ±â¸¦ ¹Ù¶õ´Ù. ¿¹:

    <form name=copy method=post action=¡°<?php echo $phpgw->link();?>¡±>

    /* ¸¸¾à ¼¼¼Ç °ü¸®°¡ url ÆĶó¹ÌÅ͸¦ Àü´ÞÇÏ¿© ÀÌ·ç¾îÁø´Ù¸é */
    /* °á°ú´Â ´ÙÀ½°ú °°ÀÌ µÉ °ÍÀÌ´Ù. */
    /* <form name=copy method=post action=¡°somepage.php?sessionid=87687693276?kp3=kjh98u80¡±> */

    (3)  ¾îÇø®ÄÉÀÌ¼Ç ÇÔ¼ö

    $phpgw->common->phpgw_header
    $phpgw->phpgw_header()
    ³×ºñ°ÔÀÌ¼Ç ¹Ù¿Í appname/inc/header.php¸¦ Æ÷ÇÔÇÏ´Â HTML ÆäÀÌÁöÀÇ ½ÃÀÛ ºÎºÐÀ» Ãâ·ÂÇÑ´Ù.

    $phpgw->common->phpgw_footer
    $phpgw->phpgw_footer()
    appname/inc/footer.php ¸¦ Æ÷ÇÔÇÏ´Â ½Ã½ºÅÛ footer ¸¦ Ãâ·ÂÇÑ´Ù.

    $phpgw->common->appsession
    $phpgw->common->appsession($data)

    ¾îÇø®ÄÉÀ̼ÇÀÌ ÇÊ¿ä·Î ÇÏ´Â Áß¿äÇÑ Á¤º¸ ¼¼¼Ç Á¤º¸µéÀ» ÀúÀåÇÑ´Ù.
    $phpgw->appsesstionÀº ¼¼¼Ç Å×ÀÌÅÍÀÇ °ªÀÌ ÆĶó¹ÌÅ͸¦ ºó °ªÀ» ³²°å´Ù´Â °ÍÀ» ¸®ÅÏÇϸç [Áï $phpgw->appsession(¡°¡±)] ±×·¸Áö ¾ÊÀ¸¸é º¸³»´Â µ¥ÀÌÅÍ°¡ ÀúÀåµÉ °ÍÀÌ´Ù.
    ¶ÇÇÑ ½°Ç¥·Î ºÐ¸®µÈ ¹®ÀÚ¿­À» ÀúÀåÇÒ ¼ö ÀÖ°í µ¹·Á¹ÞÀ» °ªÀ» ¹Þ¾ÒÀ» ¶§ ¹è¿­¿¡ ³Ö±â À§Çؼ­´Â explode()¸¦ »ç¿ëÇ϶ó.

    ¿¹:
      $phpgw->common->appsession(¡°/path/to/something¡±);
      echo ¡°Dir: ¡± . $phpgw->common->appsession();

    (4)  ÆÄÀÏ ÇÔ¼ö

    $phpgw->vfs->read_file
    $phpgw->vfs->read_file($file)
    $file·ÎºÎÅÍ µ¥ÀÌÅ͸¦ ¸®ÅÏÇÑ´Ù.
    ÆÄÀÏ¿¡ ¿ÏÀüÇÑ °æ·Î¸¦ Àü´ÞÇØ¾ß ÇÑ´Ù.

    ¿¹:
    $data = $phpgw->vfs->read_file(¡°/some/dir/to/file.txt¡±);

    $phpgw->vfs->write_file
    $phpgw->vfs->write_file($file, $contents)
    $file¿¡ µ¥ÀÌÅ͸¦ ±â·ÏÇÑ´Ù.
    ÆÄÀÏ¿¡ ¿ÏÀüÇÑ °æ·Î¸¦ Àü´ÞÇØ¾ß ÇÑ´Ù.

    ¿¹:
    $data = $phpgw->vfs->write_file(¡°/some/dir/to/file.txt¡±);

    $phpgw->vfs->read_userfile
    $phpgw->vfs->read_userfile($file)
    »ç¿ëÀÚ °³ÀÎ µð·ºÅ丮¿¡¼­ $file·ÎºÎÅÍ µ¥ÀÌÅ͸¦ ¸®ÅÏÇÑ´Ù.

    ¿¹:
    $data = $phpgw->vfs->read_userfile(¡°file.txt¡±);

    $phpgw->vfs->write_userfile
    $phpgw->write_userfile($file, $contents)
    »ç¿ëÀÚ °³ÀÎ µð·ºÅ丮¿¡¼­ $file¿¡ µ¥ÀÌÅ͸¦ ±â·ÏÇÑ´Ù.

    ¿¹:
    $data = $phpgw->vfs->write_userfile(¡°file.txt¡±);

    $phpgw->vfs->list_userfiles
    $phpgw->vfs->list_userfiles()
    »ç¿ëÀÚ °³ÀÎ µð·ºÅ丮¿¡ ÀÖ´Â ÆÄÀÏÀÇ ¸ñ·ÏÀ» °¡Áø ¹è¿­À» ¸®ÅÏÇÑ´Ù.

    ¿¹:
    $filelist = array();
    $filelist = $phpgw->vfs->list_userfiles();

    (5)  À̸ÞÀÏ/NNTP ÇÔ¼ö

    $phpgw->send->msg
    $phpgw->msg->send($service, $to, $subject, $body, $msgtype, $cc, $bcc)
    emailÀ̳ª NNTP¸¦ ÅëÇØ ¸Þ½ÃÁö¸¦ Àü¼ÛÇÏ°í ¿¡·¯ Äڵ带 ¸®ÅÏÇÑ´Ù.

    ¿¹:
    $to = ¡°someuser@domain.com¡±;
    $subject = ¡°Hello buddy¡±;
    $body = ¡°Give me a call\n Been wondering what your up to.¡±;
    $errors = $phpgw->msg->send(¡°email¡±, $to, $subject, $body);

 

10.  ¼³Á¤ º¯¼ö

    (1)  ¼Ò°³

    phpGroupWare´Â °³¹ßÀڵ鿡°Ô °¡´ÉÇÑ »ç¿ëÀÚ, ±×·ì, ¼­¹ö, ¾îÇø®ÄÉÀÌ¼Ç È¯°æ¿¡ ´ëÇÑ Á¤º¸¸¦ Á¦°øÇÑ´Ù.
    ÀÌ·¸°Ô Çϱâ À§ÇØ ¿ì¸®´Â ȯ°æ¿¡ ´ëÇÑ ¸ðµç Á¤º¸¸¦ °¡Áø $phpgw_info[]¶ó°í ÇÏ´Â ´ÙÂ÷¿ø ¹è¿­À» Á¦°øÇÑ´Ù.
    ´ÙÂ÷¿ø ¹è¿­¿¡ Á¢±ÙÇؼ­ ÀÌ °ªÀ» ¾Ë¾Æ³»´Â °ÍÀº ½±´Ù.

    ¸î °¡Áö ¿¹¸¦ º¸ÀÚ:

      <?php
      // To do a hello username
      echo ¡°Hello¡± . $phpgw_info[¡°user¡±][¡°fullname¡±];
      //If username first name is John and last name is Doe, prints: ¡®Hello John Doe¡¯
      ?>
      <?php
      // To find out the location of the imap server
      echo ¡°IMAP Server is named: ¡± . $phpgw_info[¡°server¡±][¡°imap_server¡±];
      //If imap is running on localhost, prints: ¡®IMAP Server is named: localhost¡¯
      ?>

    (2)  »ç¿ëÀÚ Á¤º¸

    $phpgw_info[¡°user¡±][¡°userid¡±] = »ç¿ëÀÚ ¾ÆÀ̵ð
    $phpgw_info[¡°user¡±][¡°sessionid¡±] = ¼¼¼Ç ¾ÆÀ̵ð
    $phpgw_info[¡°user¡±][¡°theme¡±] = ¼±ÅÃÇÑ Å׸¶
    $phpgw_info[¡°user¡±][¡°private_dir¡±] = »ç¿ëÀÚ °³ÀÎ µð·ºÅ丮. phpGroupWare ÇÙ½É ÇÔ¼ö´Â ÆÄÀÏ¿¡ Á¢±ÙÇϱâ À§ÇØ ÀÌ°ÍÀ» »ç¿ëÇÑ´Ù.
    $phpgw_info[¡°user¡±][¡°firstname¡±] = »ç¿ëÀÚ À̸§
    $phpgw_info[¡°user¡±][¡°lastname¡±] = »ç¿ëÀÚ ¼º
    $phpgw_info[¡°user¡±][¡°fullname¡±] = »ç¿ëÀÚ Àüü À̸§
    $phpgw_info[¡°user¡±][¡°groups¡±] = »ç¿ëÀÚ°¡ ¼ÓÇÑ ±×·ì
    $phpgw_info[¡°user¡±][¡°app_perms¡±] = »ç¿ëÀÚ°¡ ÇöÀç ¾îÇø®ÄÉÀ̼ǿ¡ Á¢±ÙÇÒ ¼ö ÀÖ´Ù¸é
    $phpgw_info[¡°user¡±][¡°lastlogin¡±] = »ç¿ëÀÚ°¡ ¸¶Áö¸·À¸·Î ·Î±×ÀÎÇÑ ½Ã°£
    $phpgw_info[¡°user¡±][¡°lastloginfrom¡±] = ¸¶Áö¸·¿¡ ·Î±×ÀÎÇÑ °÷
    $phpgw_info[¡°user¡±][¡°lastpasswd_change¡±] = ¸¶Áö¸·À¸·Î º¯°æÇÑ ºñ¹Ð¹øÈ£
    $phpgw_info[¡°user¡±][¡°passwd¡±] = Çؽ¬µÈ ºñ¹Ð¹øÈ£
    $phpgw_info[¡°user¡±][¡°status¡±] = »ç¿ëÀÚ°¡ È°¼ºÈ­ µÇ¾ú´Ù¸é
    $phpgw_info[¡°user¡±][¡°logintime¡±] = ÇöÀç ¼¼¼Ç¿¡ ·Î±×ÀÎÇÑ ½Ã°£
    $phpgw_info[¡°user¡±][¡°session_dla¡±] = ÇöÀç ¼¼¼Ç¿¡ ¹«¾ùÀΰ¡¸¦ ÇÑ ¸¶Áö¸· ½Ã°£

    $phpgw_info[¡°user¡±][¡°session_ip¡±] = ÇöÀç ¾ÆÀÌÇÇ ÁÖ¼Ò

    (3)  ±×·ì Á¤º¸

    $phpgw_info[``group''][``group_names''] = ±×·ì ¸ñ·Ï

    (4)  ¼­¹ö Á¤º¸

    $phpgw_info[¡°server¡±][¡°server_root¡±] = ¸ÞÀÎ ¼³Ä¡ µð·ºÅ丮
    $phpgw_info[¡°server¡±][¡°include_root¡±] = inc µð·ºÅ丮ÀÇ À§Ä¡
    $phpgw_info[¡°server¡±][¡°temp_dir¡±] = Àӽ÷ΠÀúÀåÇÒ ¼ö ÀÖ´Â µð·ºÅ丮
    $phpgw_info[¡°server¡±][¡°files_dir¡±] = »ç¿ëÀÚ¿Í ±×·ì ÆÄÀÏÀÌ ÀúÀåµÇ´Â µð·ºÅ丮
    $phpgw_info[¡°server¡±][¡°common_include_dir¡±] = ÇÙ½É/°øÀ¯ Æ÷ÇÔ ÆÄÀϵéÀÇ À§Ä¡
    $phpgw_info[¡°server¡±][¡°template_dir¡±] = È°¼ºÈ­µÈ ÅÛÇø´ ÆÄÀÏ µð·ºÅ丮. ÀÌ°ÍÀº ¼­¹ö¿¡
                                                                ÀÇÇØ ±âº»ÀûÀ¸·Î Á¤ÇØÁö¸ç »ç¿ëÀÚ°¡ ¹Ù²Ü¼ö ÀÖ´Ù.
    $phpgw_info[¡°server¡±][¡°dir_separator¡±] = À©µ¶¿£Æ¢ µð·ºÅ丮 Çü½ÄÀ¸·Î ȣȯ °¡´É
    $phpgw_info[¡°server¡±][¡°encrpytkey¡±] = ¾Ïȣȭ ÇÔ¼ö¿¡ »ç¿ëµÈ Å°
    $phpgw_info[¡°server¡±][¡°site_title¡±] = °¢ À¥ ÆäÀÌÁöÀÇ Å¸ÀÌƲ¹Ù¿¡ º¸¿©Áú »çÀÌÆ® ŸÀÌƲ
    $phpgw_info[¡°server¡±][¡°webserver_url¡±] = phpGroupWare ¼³Ä¡µÈ URL
    $phpgw_info[¡°server¡±][¡°hostname¡±] = phpGroupWare°¡ ¼³Ä¡µÈ ¼­¹öÀÇ À̸§
    $phpgw_info[¡°server¡±][¡°charset¡±] = ±âº» ¹®ÀÚ¼Â, ±âº»:iso8859-1
    $phpgw_info[¡°server¡±][¡°version¡±] = phpGroupWare ¹öÀü.

    (5)  µ¥ÀÌÅͺ£À̽º Á¤º¸

    »ç¿ëÇÒ µ¥ÀÌÅͺ£À̽ºµéÀÌ $phpgw_info_db¿¡ ÀÇÇØ ÀÌ¹Ì ·ÎµåµÇ¾î Àֱ⠶§¹®¿¡ ÇÊ¿äÇÏÁö´Â ¾ÊÀ» °ÍÀÌ´Ù.

    $phpgw_info[¡°server¡±][¡°db_host¡±] = µ¥ÀÌÅͺ£À̽ºÀÇ ÁÖ¼Ò. localhost·Î ¼³Á¤µÈ´Ù.
    $phpgw_info[¡°server¡±][¡°db_name¡±] = µ¥ÀÌÅͺ£À̽º À̸§
    $phpgw_info[¡°server¡±][¡°db_user¡±] = »ç¿ëÀÚ À̸§
    $phpgw_info[¡°server¡±][¡°db_pass¡±] = ºñ¹Ð¹øÈ£
    $phpgw_info[¡°server¡±][¡°db_type¡±] = µ¥ÀÌÅͺ£À̽º ŸÀÔ. ÇöÀç MySQL°ú PostgreSQLÀÌ
                                                          Áö¿øµÈ´Ù.

    (6)  ¸ÞÀÏ ÇÔ¼ö

    ÀÌ°ÍÀº phpGroupWare ÇÔ¼ö¸¦ ÅëÇØ Á¦°øµÇ±â ¶§¹®¿¡ ÇÊ¿ä°¡ ¾øÀ» °ÍÀÌ´Ù.

    $phpgw_info[¡°server¡±][¡°mail_server¡±] = IMAP ¼­¹öÀÇ ÁÖ¼Ò. º¸Åë localhost
    $phpgw_info[¡°server¡±][¡°mail_server_type¡±] = IMAP ¶Ç´Â POP3
    $phpgw_info[¡°server¡±][¡°imap_server_type¡±] = Cyrus ¶Ç´Â Uwash
    $phpgw_info[¡°server¡±][¡°imap_port¡±] = ÀϹÝÀûÀ¸·Î 143, ¹Ù²Ü ¼öµµ ÀÖ´Ù.
    $phpgw_info[¡°server¡±][¡°mail_suffix¡±] = µµ¸ÞÀÎ À̸§À̸ç À̸ÞÀÏ ¾îµå·¹½º¸¦
                                                              Ãß°¡ÇÒ ¶§ »ç¿ëÇÑ´Ù.
    $phpgw_info[¡°server¡±][¡°mail_login_type¡±] = VMailMgrÀ» Áö¿øÇϱâ À§ÇØ Ãß°¡ÇÑ´Ù.
                                                                    ÀϹÝÀûÀ¸·Î 'standard' ÀÌ´Ù.
    $phpgw_info[¡°server¡±][¡°smtp_server¡±] = SMTP ¼­¹öÀÇ ÁÖ¼Ò. ÀϹÝÀûÀ¸·Î localhostÀÌ´Ù.
    $phpgw_info[¡°server¡±][¡°smtp_port¡±] = º¸Åë 25ÀÌ¸ç ¹Ù²ãµµ µÈ´Ù.

    (7)  NNTP Á¤º¸

    $phpgw_info[¡°server¡±][¡°nntp_server¡±] = NNTP ¼­¹ö ÁÖ¼Ò
    $phpgw_info[¡°server¡±][¡°nntp_port¡±] = º¸Åë XXÀÌ¸ç ¹Ù²ãµµ µÈ´Ù.
    $phpgw_info[¡°server¡±][¡°nntp_sender¡±] = ¸ð¸¥´Ù
    $phpgw_info[¡°server¡±][¡°nntp_organization¡±] = ¸ð¸¥´Ù
    $phpgw_info[¡°server¡±][¡°nntp_admin¡±] = ¸ð¸¥´Ù

    (8)  ¾îÇø®ÄÉÀÌ¼Ç Á¤º¸

    °¢ ¾îÇø®ÄÉÀ̼ÇÀº °¡´ÉÇÑ ´ÙÀ½ Á¤º¸¸¦ °¡Áö°í ÀÖ´Ù.

    $phpgw_info[¡°apps¡±][¡°appname¡±][¡°title¡±] = ¾îÇø®ÄÉÀ̼ÇÀÇ Á¦¸ñ
    $phpgw_info[¡°apps¡±][¡°appname¡±][¡°enabled¡±] = ¾îÇø®ÄÉÀÌ¼Ç È°¼ºÈ­. True ¶Ç´Â False
    $phpgw_info[¡°server¡±][¡°app_include_dir¡±] = ÇöÀç ¾îÇø®ÄÉÀÌ¼Ç include ÆÄÀÏ À§Ä¡
    $phpgw_info[¡°server¡±][¡°app_template_dir¡±] = ÇöÀç ¾îÇø®ÄÉÀÌ¼Ç tpl ÆÄÀÏÀÇ À§Ä¡
    $phpgw_info[¡°server¡±][¡°app_lang_dir¡±] = ÇöÀç lang µð·ºÅ丮 À§Ä¡
    $phpgw_info[¡°server¡±][¡°app_auth¡±] = ¼­¹ö¿Í ÇöÀç »ç¿ëÀÚ°¡ ÇöÀç ¾îÇø®ÄÉÀ̼ǿ¡
                                                            Á¢±ÙÇÒ ¼ö Àִ°¡
    $phpgw_info[¡°server¡±][¡°app_current¡±] = ÇöÀç ¾îÇø®ÄÉÀ̼ÇÀÇ À̸§

 

11.  ¾ð¾î Áö¿ø »ç¿ëÇϱâ

    (1)  °³¿ä

    phpGroupWare´Â ´ÙÁß ¾ð¾î Áö¿ø ½ºÅ°¸¶¸¦ ³»ÀåÇÏ°í ÀÖ´Ù. ÀÌ°ÍÀº ÆäÀÌÁö°¡ ¾ÆÁÖ ½±°Ô ´Ù¸¥ ¾ð¾î·Î º¯°æµÉ ¼ö ÀÖ´Ù´Â ¶æÀÌ´Ù. ÅؽºÆ® ¹®ÀÚ¿­ÀÇ ¹ø¿ªÀº phpGroupWare µ¥ÀÌÅͺ£À̽º¿¡ ÀúÀåµÇ¾î ÀÖ°í phpGroupWare °ü¸®ÀÚ°¡ º¯°æÇÒ ¼ö ÀÖ´Ù.

    (2)  ¾ð¾î Áö¿ø »ç¿ëÇÏ´Â ¹æ¹ý

    lang() ÇÔ¼ö´Â phpGroupWareÀÇ ±¹Á¦È­ Áö¿ø¿¡ ¸Â´Â ¾îÇø®ÄÉÀ̼ÇÀÇ ÀÎÅÍÆäÀ̽ºÀÌ´Ù.
    ¾îÇø®ÄÉÀ̼ÇÀ» °³¹ßÇÏ´Â µ¿¾È lang()À» È£ÃâÇÏ¿© ÅؽºÆ®¸¦ Ãâ·ÂÇÏ¸é µÈ´Ù. ´ÙÀ½°ú °°Àº ÄÚµå·Î:

      $x = 42;
      echo lang(¡°The counter is %1¡±,$x).¡°<br>¡±;

    ÀÌ°ÍÀº ¡°The counter is %1'¡±À» ¹ø¿ªÇÒ °ÍÀÌ¸ç »ç¿ë ÁßÀÎ ÇöÀç ¾îÇø®ÄÉÀ̼ǰú ¾ð¾î¸¦ ±â¹ÝÀ¸·Î ÇÑ ¹ø¿ªµÈ ¹öÀüÀÌ ¸®Å쵃 °ÍÀÌ´Ù. $x °¡ ³¡³ª´Â À§Ä¡°¡ ÄÚµå »ó¿¡¼­ ¹®ÀÚ¿­·Î ó¸®ÇÏ´Â °ÍÀÌ ¾Æ´Ï¶ó ¹®ÀÚ¿­ Çü½ÄÀ¸·Î Á¦¾î°¡ µÇ¾î ÀÖ´Ù´Â °ÍÀ» ÁÖÀÇÇ϶ó. ÀÌ°ÍÀº ¾îÇø®ÄÉÀ̼ÇÀÌ ½ÇÁ¦ ¼ýÀÚ°¡ ¹®ÀÚ¿­ÀÇ ³¡¿¡ ÀÖÁö ¾Ê´Ù´Â °ÍÀ¸·Î ¹ø¿ªÇÏ´Â °ÍÀ» Çã¿ëÇÑ´Ù.

    ¹ø¿ªÀÌ ¾øÀ¸¸é ¿ø·¡ ¹®ÀåÀº ¹®ÀÚ¿­ ´ÙÀ½¿¡ * ¸¦ Æ÷ÇÔÇÏ¿© ¸®ÅϵȴÙ. ÀÌ°ÍÀº ¾îÇø®ÄÉÀ̼ÇÀ» ½±°Ô °³¹ßÇϵµ·Ï ÇÏ¸ç ´Ù½Ã µ¹¾Æ°¡ ³ªÁß¿¡ (*¿¡ ÀÇÇØ Ç¥½ÃµÈ) ¹ø¿ª¹°ÀÌ ºüÁ³´Ù´Â °ÍÀ» Ãß°¡ÇÑ´Ù. lang Å×ÀÌºí¿¡¼­ ƯÁ¤ ¹ø¿ªÀÌ ¾øÀ¸¸é ´ÙÀ½°ú °°ÀÌ Ãâ·ÂµÈ´Ù:

    The counter is 42*<br>

    ¸¸¾à ÇöÀç »ç¿ëÀÚ°¡ ÀÌÅ»¸®¾Æ¾î¸¦ »ç¿ëÇÑ´Ù¸é ¹®ÀåÀº ´ÙÀ½°ú °°ÀÌ ¸®Å쵃 °ÍÀÌ´Ù:

    il contatore e 42<br>

    lang ÇÔ¼ö

    lang($key, $m1=¡°¡±, $m2=¡°¡±, $m3=¡°¡±, $m4=¡°¡±, $m5=¡°¡±,
              $m6=¡°¡±, $m7=¡°¡±, $m8=¡°¡±, $m9=¡°¡±, $m10=¡°¡±)

    [$key ]
    ¹ø¿ªÇÒ ¹®ÀÚ¿­À̸ç %n Çü½ÄÀÇ ±³Ã¼ Áö½ÃÀÚ¸¦ Æ÷ÇÔÇÒ °ÍÀÌ´Ù.

    [$m1 ]
    ù¹ø° ±³Ã¼ °ª ¶Ç´Â ±³Ã¼ °ªÀÇ ¹è¿­ÀÌ µÉ °ÍÀÌ´Ù ($m2ÀÎ °æ¿ì¿¡´Â ¹«½ÃµÈ´Ù)

    [$m2 - $m10 ]
    ¸¸¾à $m1ÀÌ ¹è¿­ÀÌ ¾Æ´Ï¶ó¸é µÎ¹ø°ºÎÅÍ ¿­¹ø ° ±³Ã¼ °ª
    µ¥ÀÌÅͺ£À̽º´Â $key¿¡ ¸Â´Â lang.message_id¸¦ °¡Áø ¿­À» ãÀ» °ÍÀÌ´Ù. ¸¸¾à ¹ø¿ªÀÌ ¾øÀ¸¸é ¿ø·¡ $key°¡ »ç¿ëµÈ´Ù. ¹ø¿ª ¿£ÁøÀº %N Çü½ÄÀÇ ¸ðµç ÅäÅ«À» N¹ø° ÆĶó¹ÌÅÍ($m1[N] ¶Ç´Â $mN)À¸·Î ´ëüµÉ °ÍÀÌ´Ù.

    ¹ø¿ª µ¥ÀÌÅÍ Ãß°¡
    ¹ø¿ª µ¥ÀÌÅ͸¦ ¼öµ¿À¸·Î »ý¼ºÇϴµ¥ Transy¶ó´Â ¾îÇø®ÄÉÀ̼ÇÀº ÀÌ°ÍÀ» ½±°Ô Çϵµ·Ï °³¹ßµÇ¾ú´Ù.

    lang Å×À̺í
    ¹ø¿ª Ŭ·¡½º´Â ¸ðµç ¹ø¿ª¿¡ lang Å×À̺íÀ» »ç¿ëÇÑ´Ù. ¹ø¿ªÀ» ¸¸µå´Â °ÍÀº ³× °¡Áö Ä÷³ÀÌ ÀÖ´Ù:

    [$message_id ]
    ¸Þ½ÃÁö(lang() ÇÔ¼ö¿¡ Àü´ÞµÈ $key)¿¡ ÀÏÄ¡ÇÏ´Â Å°. ÀÌ°ÍÀº ¿µ¾î·Î ÀÛ¼ºµÇ¾ú´Ù.

    [app_name ]
    ¹ø¿ªÀÌ Àû¿ëµÉ ¾îÇø®ÄÉÀ̼Ç. ¶Ç´Â ´ÙÁß ¾îÇø®ÄÉÀ̼ǿ¡ ÀÖ´Ù¸é °Å±â¿¡µµ.

    [lang ]
    ¹ø¿ªµÈ ¾îÇø®ÄÉÀ̼ǿ¡ ´ëÇÑ Äڵ尡 ÀÖ´Ù.

    [content ]
    ¹ø¿ªµÈ ¹®ÀÚ¿­

    lang,sql
    ÇöÀç ¸ðµç ¾îÇø®ÄÉÀÌ¼Ç ±×¸®°í ÇÙ½É phpGroupWare ¼Ò½º Æ®¸®´Â lang.sql ÆÄÀÏÀ» °¡Áö°í ÀÖ´Ù. ÀÌ°ÍÀº ¹ø¿ª µ¥ÀÌÅ͸¦ Ãß°¡ÇÏ´Â °÷ÀÌ´Ù. Æû¿¡¼­ ÇÑ ÁÙ¸¸ Ãß°¡ÇÑ´Ù.

    REPLACE INTO lang (message_id, app_name, lang, content)
    VALUES( ¡®account has been deleted¡¯,¡®common¡¯,¡®en¡¯,¡®Account has been deleted¡¯);

    lang ¾ð¾î¿¡ message_id ¹®ÀÚ¿­À» ¹Ý¿µÇÏ´Â ³»¿ëÀ» ¹ø¿ªÇÑ´Ù. ¸¸¾à ¹®ÀÚ¿­ÀÌ ¾îÇø®ÄÉÀ̼ǿ¡ Ç¥½ÃµÇ¸é app_name¿¡ ¾îÇø®ÄÉÀ̼ÇÀ» ³Ö°Å³ª ÀϹÝÀûÀÎ À̸§À» »ç¿ëÇ϶ó. message_id´Â ¼Ò¹®ÀÚÀ̾î¾ß ÇÑ´Ù.

    (3)  ÀϹÝÀûÀÎ ¸®ÅÏ ÄÚµå

    phpGroupWare ¼Ò½º¸¦ º¸¸é °í¼öÁØ ÇÔ¼öµé¿¡¼­ »ç¿ëµÈ ¸®ÅÏ ÄÚµåµé¿¡ ´ëÇÑ ÆÐÅÏÀ» ¾Ë ¼ö ÀÖÀ» °ÍÀÌ´Ù. »ç¿ëµÈ ÄÚµå´Â doc/developers/CODES ÆÄÀÏ¿¡ ºÎºÐÀûÀ¸·Î ¹®¼­È­µÇ¾î ÀÖ´Ù.
    ÄÚµå´Â ÀϹÝÀûÀÎ ¿¡·¯¸¦ ¾Ë¾Ö³»°í »ç¿ëÀÚ¿¡°Ô ÇÁ·Î¼¼½º Á¦¾î¸¦ °£´ÜÇÏ°Ô ¾Ë·ÁÁÖ±â À§ÇØ »ç¿ëµÇ¾ú´Ù. ÀÌ°ÍÀº ¸®ÅϵDZâ Àü¿¡ lang()À» ÅëÇÏ¿© ¹®ÀÚ¿­À» Àü´ÞÇϸé check_code() ÇÔ¼ö¸¦ ÅëÇØ ¹®ÀÚ¿­·Î º¯È¯µÈ´Ù.

    ¿¹¸¦ µé¸é

    echo check_code(13);

    À̶ó°í È£ÃâÇÏ¸é ´ÙÀ½°ú °°ÀÌ Ãâ·ÂÇÒ °ÍÀÌ´Ù.

    Your message has been sent

    ÇöÀç ¾ð¾î·Î ¹ø¿ªµÈ´Ù.

 

12.  ÅÛÇø´ »ç¿ëÇϱâ

    (1)  °³¿ä

    phpGroupWare´Â ÅÛÇø´¿¡ ±â¹ÝÇÑ ±¸Á¶¸¦ »ç¿ëÇÑ´Ù. ÀÌ°ÍÀº ÆäÀÌÁö¸¦ Ãâ·ÂÇÏ°í tpl ÆÄÀÏÀ» ÀúÀåÇÏ°í ´Ù¸¥ ¾ð¾î·Î º¯È¯ÇÒ ¼ö ÀÖ´Ù´Â °ÍÀÌ¸ç ¿ÏÀüÈ÷ ´Ù¸¥ °ÍÀ¸·Î º¸¿©Áö°Ô ÇÒ ¼öµµ ÀÖ´Ù´Â ¶æÀÌ´Ù.

    (2)  ÅÛÇø´ »ç¿ëÇϱâ

    ÅÛÇø´À» »ç¿ëÇÏ´Â ¸î °¡Áö ¸í·É:

    ÅÛÇø´ Ŭ·¡½º´Â PHPLIBs ¹®¼­¸¦ Àо¶ó.
    http://phplib.netuse.de




¡ã top

homeÀ¸·Î...