¼øÀ§ ½ÎÀÌÆ® ÇÁ·Î±×·¥Àä. ¾Æ·¡¼ º¸½Ã¸é ¸µÅ©¸¦ ´·¶À»¶§ ȸ¿øÀÌ µî·ÏÇÑ È¨ÇÇ ÁÖ¼Ò·Î °¡´Â ¹®Á¦Àä. ÀÌ»óÇÏ°Ô È¨ÇÇ ÁÖ¼Ò¸¦ http:// ÀÌ°É ¾È Àû±¸ °¡ÀÔÇϸé ÀÛµ¿ÀÌ ¾ÈµË´Ï´Ù. ¿¹¸¦ µé¾î happycgi.comÀÇ È¨ÇǸ¦ µî·ÏÇÞÀ¸¸é ÇÁ·Î±×·¥ÀÌ ÀÛµ¿ÀÌ ¾ÈµÅ°í http://happycgi.comÀ¸·Î °¡ÀÔÇßÀ¸¸é ÀÛµ¿ÀÌ µË´Ï´Ù. ¹®Á¦´Â http://¸¦ ÀûÀ¸¸é ¾ÈµÅ°Åµç¿ä. http://¾øÀÌ °Á µµ¸ÞÀÎ À̸§¸¸ º¸ÀÌ°Ô ÇÏ·Á´Ù º¸´Ï±î ¹®Á¦°¡ »ý±â³×¿ä. ¾Æ·¡Á» ÀÛµ¿µÇ°Ô ÇØÁÖ½Ç ºÐ ¾ø³ª¿ä ? ¿øº»Àº ÆÄÀÏ Ã·ºÎÇÞ½À´Ï´Ù. ºÎŹµå¸³´Ï´Ù.
sub log_out_hit {
open (DATA,"+<protected/data.file"); flock (DATA,2); @data_array = <DATA>; $account = $in{'hit_out'}; $a=0;
foreach (@data_array) { @new_array = split(/\|/,$data_array[$a]); if ($new_array[12] == $account) { @new_array[3]++; $outurl = $new_array[6]; $data_array[$a] = join("\|",@new_array); } $a++; }
seek (DATA, 0, 0); print DATA @data_array; flock (DATA,8); close (DATA);
}
¾Æ·¡´Â ȸ¿ø °¡ÀÔ ÀÛµ¿ ÆÞÀÔ´Ï´Ù.
sub update_account { open (DATA,"<protected/data.file"); flock (DATA,2); @data_array = <DATA>; flock (DATA,8); close (DATA); $account = $in{'account'}; $a=0; foreach (@data_array) { @new_array = split(/\|/,$data_array[$a]); if ($new_array[12] == $account) { $new_array[4]=$in{'name'}; $new_array[5]=$in{'email'}; $new_array[6]=$in{'site_name'}; $new_array[7]=$in{'site_description'}; $new_array[8]=$in{'domain_price'}; $new_array[9]=$in{'site_url'}; $new_array[11]=$in{'new_password'}; $new_array[13]=$in{'banner_height'}; $new_array[14]=$in{'banner_width'}; $new_array[15]=$in{'domain_price'}; } $data_array[$a] = join("\|",@new_array); $a++; } open (DATA,">protected/data.file"); flock (DATA,2); print DATA @data_array; flock (DATA,8); close (DATA); }
|