sun's longitude:52 08 02 
¡¤ ÀÚÀ¯°Ô½ÃÆÇ ¡¤ ¹¯°í´äÇϱ⠡¤ ¾ËÆĹ®¼­ ¡¤ RPMS list
¡¤ »ç¿ëÀÚ¹®¼­ ¡¤ ÆÁ/FAQ¸ðÀ½ ¡¤ ¸®´ª½ºLinks ¡¤ ÀÚ·á½Ç
¡¤ ¼­¹öÁ¤º¸ ¡¤ ¿î¿µÀÚ ¡¤ Books/FAQ ¡¤ FreeBSD
 
/board/read.php:¼Ò½ºº¸±â   
 

Áú¹®°ú ´äº¯ °Ô½ÃÆÇÀÔ´Ï´Ù.

ÇöÀç ½Ç½Ã°£À¸·Î ÀÌ°÷ ¼­¹öÀÇ ¼³Á¤ÆÄÀÏ(¸î°³)¸¦ º¸¿©ÁÖ°í ÀÖ½À´Ï´Ù.
¼­¹öÀÇ ¼³Á¤³»¿ë¿¡ °üÇÑ Áú¹®Àº ¸ÕÀú ÀÌ°÷ ¼­¹öÀÇ ¼³Á¤³»¿ëÀ» Âü°íÇÏ½Ã±æ ¹Ù¶ø´Ï´Ù.

[*** ¾²±â ±ÝÁö´Ü¾î ÆÐÅÏ ***]
±Û º»¹® Áß°£¿¡ ¾÷·ÎµåÇÒ À̹ÌÁö¸¦ Ãß°¡ÇÏ´Â ¹æ¹ý : @@À̹ÌÁöÀ̸§@@
ex) @@foo.gif@@
1298 ¹ø ±ÛÀÇ ´äÀå±Û: Re: ½©ÇÁ·Î±×·¡¹Ö
±Û¾´ÀÌ: »êÀÌ [ȨÆäÀÌÁö] ±Û¾´³¯: 2003³â 01¿ù 22ÀÏ 20:21:24 ¼ö(Àú³á) Á¶È¸: 703
[°­¿µº¸]´ÔÀÌ ³²±â½Å ±Û:

>½©ÇÁ·Î±×·¡¹Ö °ú php¸¦ È¥¿ëÇؼ­ »ç¿ëÇÒ·Á°í Çϴµ¥¿©.. Àß ¾ÈµÇ³×¿©
>
>ÀÏ´Ü php·Î ȸ¿øÀÇ Á¤º¸¸¦ °¡Á®¿Í¼­¿© ±× ȸ¿øÀÇ °èÁ¤¿¡ ¹®¼­¸¦
¼³Ä¡Çϴ°ǵ¥¿©
>
>
>######################
>
>#!/usr/local/bin/php -q 
>
><?
>$query = "select uid from member where type = 'free'";
>$result = mysql_query($query,$conn);
>
>while($data = mysql_fetch_array($result)){
>             #¼³Ä¡shell
>              exec("../../bin/free_install.sh $data[uid]")
>             }
>
>?>
>
>ÀÌ·±½ÄÀ¸·Î Çؼ­¿©.. 
>free_install.sh ¿¡¼­´Â ±×³É 
>
>#!/bin/bash
>
>echo "¹«·áÇü »ý¼ºÇÒ °èÁ¤À» ÀÔ·ÂÇϼ¼¿ä"
>echo "==============================="
>
>read mallid
>
>echo  "¸ô¾ÆÀ̵𸸠´Ù½Ã ÀÔ·ÂÇϽÿä"
>
>read mall
>
>if test "$mallid" != ''; then
>cp /hosting/freemall.tar.gz /hosting/$mallid/public_html
>cd /hosting/$mallid/public_html
>tar xvzf /hosting/$mallid/public_html/freemall.tar.gz
>
>rm -rf /hosting/$mallid/public_html/conf/Merchant_set.inc
>#vi /hosting/$mallid/public_html/conf/Merchant_set.bak
>
>echo "<?" >> /hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$Merchant_table= \"$mall\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.incecho "\$Main_image =
\"../conf/mainimg.gif\";" >>  /hosting/$mallid/public_html/conf/Merchant_set.incecho
"\$product_cnt = \"6\";" >> /hosting/$mallid/public_html/conf/Merchant_set.incecho
"\$oldimg = \"../conf/mainimg.gif\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.incecho "\$bottom_display = \"Y\";"
>> /hosting/$mallid/public_html/conf/Merchant_set.incecho "\$Merchant_money =
\"5000\";" >> /hosting/$mallid/public_html/conf/Merchant_set.incecho
"\$Merchant_mail = \"Y\";" >> /hosting/$mallid/public_html/conf/Merchant_set.incecho
"\$total_product_cnt =\"30\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.incecho "\$backcolor=\"#ececec\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$layout=\"L\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "?>" >>  /hosting/$mallid/public_html/conf/Merchant_set.inc
>cat /hosting/$mallid/public_html/conf/Merchant_set.bak
/hosting/$mallid/public_html/conf/Merchant_set.inc
>
>rm -rf sql.bakecho "create table $mall (uid int(11) not null auto_increment primary
key, num int(7) not null)" >> ./sql.bakmysql -uroot -pspdhelql rkddudqh  <
sql.bak
>
>mv /hosting/$mallid/public_html/Product_List/auth.bak
/hosting/$mallid/public_html/Product_List/auth.inc
>cat icash/Order.php3.bak | sed "s/icashurl/$mallid/g" >
icash/Order.php3.bak
>rm -rf icash/Order.php3
>mv icash/Order.php3.bak icash/Order.php3chown -R $mall.$mall
/hosting/$mallid/
>rm -rf  /hosting/$mallid/public_html/freemall.tar.gz                               
                                                 
>
>echo "¼³Ä¡¿Ï·á"fi
>
>
>
>"/bin/free_install.sh" 55L, 2248C                             55,0-1       
Bot
>echo "\$product_cnt = \"6\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$oldimg = \"../conf/mainimg.gif\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$bottom_display = \"Y\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$Merchant_money = \"5000\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$Merchant_mail = \"Y\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$total_product_cnt =\"30\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$backcolor=\"#ececec\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "\$layout=\"L\";" >>
/hosting/$mallid/public_html/conf/Merchant_set.inc
>echo "?>" >>  /hosting/$mallid/public_html/conf/Merchant_set.inc
>
>cat /hosting/$mallid/public_html/conf/Merchant_set.bak
/hosting/$mallid/public_html/conf/Merchant_set.inc
>
>rm -rf sql.bak
>echo "create table $mall (uid int(11) not null auto_increment primary key, num
int(7) not null)" >> ./sql.bak
>mysql -uroot -pspdhelql rkddudqh  < sql.bak
>
>
>mv /hosting/$mallid/public_html/Product_List/auth.bak
/hosting/$mallid/public_html/Product_List/auth.inc
>
>cat icash/Order.php3.bak | sed "s/icashurl/$mallid/g" >
icash/Order.php3.bak
>
>rm -rf icash/Order.php3
>mv icash/Order.php3.bak icash/Order.php3
>chown -R $mall.$mall /hosting/$mallid/
>
>rm -rf  /hosting/$mallid/public_html/freemall.tar.gz
>
>
>echo "¼³Ä¡¿Ï·á"
>fi
>
>
>
>ÀÌ·¸°Ô ÇÒ·Á°í Çϴµ¥¿© free_install.sh ¿¡¼­ ¹Ù·Î ¼³Ä¡°¡ µÇ°Ô ÇÒ·Á°í
>Çϴµ¥¿©.
>
>µµ¿òÁ» ÁÖ¼¼¿ä
>
> 

========================================

>exec("../../bin/free_install.sh $data[uid]")

>echo "¹«·áÇü »ý¼ºÇÒ °èÁ¤À» ÀÔ·ÂÇϼ¼¿ä"
>echo "==============================="
>
>read mallid
>
>echo  "¸ô¾ÆÀ̵𸸠´Ù½Ã ÀÔ·ÂÇϽÿä"
>
>read mall


¿ì¼± ¿©±â¿¡¼­ echo ¸í·É¾î´Â ÇÊ¿ä¾ø½À´Ï´Ù.

±×¸®°í
PHP ½©½ºÅ©¸³Æ®¿¡¼­´Â ÇÑ°³ÀÇ º¯¼ö($data[uid])¸¸
Àü´ÞÇÏ°Ô µÇ¾î ÀÖ°í
sh ½© ½ºÅ©¸³Æ®¿¡¼­´Â Å°º¸µå ÀÔ·Â(read)À¸·Î µÎ°³ÀÇ º¯¼ö¸¦
¹Þ¾Æ¿Àµµ·Ï µÇ¾î ÀÖ½À´Ï´Ù.

µÎ°³°¡ ¼­·Î ¸ÅÄ¡µÇÁö ¾Ê±º¿ä.

µû¶ó¼­,

$mallid = $data[uid]; // ?? ¸Â³ª¿ä?
$mall = $data[xxx]; // mall ¿¡ ÇÊ¿äÇÑ Á¤º¸

exec("../../bin/free_install.sh $mallid $mall")

...

# ¸ðµÎ ÁÖ¼®Ã³¸®ÇÔ
#
#echo "¹«·áÇü »ý¼ºÇÒ °èÁ¤À» ÀÔ·ÂÇϼ¼¿ä"
#echo "==============================="
#
#read mallid
#
#echo  "¸ô¾ÆÀ̵𸸠´Ù½Ã ÀÔ·ÂÇϽÿä"
#
#read mall

mallid=$1 ## ù¹ø°·Î Àü´ÞµÈ º¯¼ö($data[uid])
mall=$2 ## µÎ¹ø°·Î Àü´ÞµÈ º¯¼ö($data[xxx])

ÀÌ·±½ÄÀ¸·Î °íÃĺ¸¼¼¿ä.. read ´Â Å°º¸µå ÀÔ·ÂÀ¸·Î
º¯¼ö¸¦ ¹Þ¾Æ¿À´Â ³»ºÎ ¸í·É¾îÀÔ´Ï´Ù.



 
ÀÌÀü±Û : ½©ÇÁ·Î±×·¡¹Ö
´ÙÀ½±Û : mod_bandwidth¼³Ä¡ ¹®Á¦  
 from 61.254.75.40
JS(Redhands)Board 0.4 +@

½©ÇÁ·Î±×·¡¹Ö mod_bandwidth¼³Ä¡ ¹®Á¦
Àμâ¿ë 


apache lighttpd linuxchannel.net 
Copyright 1997-2024. linuxchannel.net. All rights reserved.

Page loading: 0.03(server) + (network) + (browser) seconds