»Ç¶ó´åÄÄ
Loading...




À¥µðÀÚÀÎ,Æ÷Åä¼¥,±×´©º¸µå,Á¦·Îº¸µå,µ¿¿µ»óÁ¦ÀÛ °ü·Ã ¸Þ¸ð >>


¦­Àüü(437)¦­ÀÎÅͳÝ,ÄÄÇ»ÅÍ (94) | À¥µðÀÚÀÎtip (182) | CG,±×·¡ÇÈtip (70) | BBS_Tip (74) | ¿µ»ótip (17) |
ÇϳªÀÇ °Ô½ÃÆÇ¿¡¼­ ¿©·¯½ºÅ²À» Àû¿ëÇÏ´Â ¹ý 2008-04-28 04:07:59
ȨÆäÀÌÁöȨÆäÀÌÁö

 

ÇϳªÀÇ °Ô½ÃÆÇ¿¡ ¿©·¯½ºÅ²À» Àû¿ëÇÒ¼ö ÀÖ´Â ¹æ¹ýÀÔ´Ï´Ù.

º¸·¯°¡±â

ÇϳªÀÇ ½ºÅ²À¸·Î ¿©·¯°¡Áö ½ºÅ¸ÀÏÀ» º¸¿©ÁÖ´Â°Ô ¾Æ´Ï¶ó.. ¸»±×´ë·Î ¿©·¯°¡Áö ½ºÅ²À» ÇϳªÀÇ °Ô½ÃÆÇ¿¡ Àû¿ëÇؼ­ Á¢¼ÓÀÚ°¡ ¿øÇÏ´Â ½ºÅ¸ÀÏ·Î º¼¼ö ÀÖµµ·Ï ÇÏ´Â ±â´ÉÀÌÁö¿ä.

4
¿ì¼± ±â´Ù¸®½Ã´Â ºÐµéÀÌ ¸¹Àº°Í °°¾Æ¼­..
ÀÚ½ÅÀÌ ¿øÇÏ´Â °Ô½ÃÆÇ¿¡ ¿©·¯°¡Áö Á¾·ùÀÇ ½ºÅ²À» Àû¿ëÇÏ´Â ¹æ¹ýÀ» ¾Ë·Áµå¸®°Ú½À´Ï´Ù.
±×¸®°í ÇϷ绡¸® Á¤¸®°¡ µÇ´Âµ¥·Î À§¿¡ »ùÇðԽÃÆÇ¿¡¼­ Á¦°¡ »ç¿ëÇÑ Á¦·Î5½ºÅ¸ÀÏÀÇ °Ô½ÃÆÇ, °Ö·¯¸®, À¥Áø, ºí·Î±× ½ºÅ¸ÀÏÀÇ ½ºÅ²¼¼Æ®¸¦ ¿Ã¸®°Ú½À´Ï´Ù. (¿©·¯ ½ºÅ²À» ´Ù¾çÇÏ°Ô Àû¿ëÇÒ¼ö ÀÖ±äÇÏÁö¸¸.. ÀÌ¿ÕÀ̸é Å׸¶°¡ ÀÖ¾î¾ß ÇÒ°Í °°¾Æ¼­ Á¦·Î5½ºÅ¸ÀÏ·Î ¿©·¯°¡Áö ½ºÅ²À» Á¦ÀÛÇÑ°ÍÀÔ´Ï´Ù.)

ÀÚ~

»ç½Ç...±²ÀåÇÑ ÆÁ °°¾Æ º¸ÀÌÁö¸¸... ÀÌ·ÐÀûÀ¸·Î...±×¸®°í ¼Ò½ºÀÇ ºÐ·®ÀûÀ¸·Î´Â ±²ÀåÈ÷ º°°Å ¾Æ´Õ´Ï´Ù.

1. ÀÛµ¿¿ø¸®

Á¦·Îº¸µå¿¡¼­ ¸ðµç °Ô½ÃÆÇÀº °Ô½ÃÆÇ¿¡ ¼³Á¤µÈ ½ºÅ²ÀÇ À̸§°ú ±âŸ ¼³Á¤À» dbÀÇ °Ô½ÃÆÇ ¼³Á¤ Å×ÀÌºí¿¡¼­ ¹Þ¾Æ¿É´Ï´Ù.
±× ¹Þ¾Æ¿Â °ªµéÀ» ±âÁØÀ¸·Î ½ºÅ²À» Àû¿ëÇÏ°í... ±×·¯´Âµ¥¿ä,
ÀÌ ±â´ÉÀ» ÇÏ´Â ºÎºÐÀÌ ¹Ù·Î lib.php ÀÇ  

 // °Ô½ÃÆÇ ¼³Á¤À» Àоî¿È
 function get_table_attrib($id) { ... } ÇÔ¼öÀÔ´Ï´Ù...

ÀÌ ÇÔ¼ö´Â °Ô½ÃÆÇÀÌ ±¸µ¿µÇ´Â °úÁ¤¿¡¼­ ÀûÀýÈ÷ $id °ª°ú ÇÔ²² ½ÇÇàµÇ´Âµ¥¿ä... ÀÌ ÇÔ¼ö¸¦ ¼öÁ¤Çؼ­ ¿øÇÏ´Â ¼³Á¤ºÎºÐÀ» ½Ç½Ã°£À¸·Î ¿øÇÏ´Â °ªÀ¸·Î ´ëü ÇØÁÖ´Â ¿ø¸®ÀÔ´Ï´Ù. À̶§ ¿øÇÏ´Â °ªÀº ÄíÅ°¸¦ ÀÌ¿ëÇؼ­ ÀúÀåÇϱ⠶§¹®¿¡ ÆäÀÌÁö À̵¿½Ã¿¡µµ ¸ðµçº¯È­°¡ À¯ÁöµÇ´Â °ÍÀ̱¸¿ä.  (¿ø¸®±îÁö´Â ¼³¸íÇÒ ÇÊ¿ä°¡ ¾ø¾úÀ»±î¿ë? ^^)

2. ¼³Ä¡¹ý (lib.php ¸¸ ¼öÁ¤ÇØÁÖ¸é µË´Ï´Ù.)

¿ì¼±.. °Ô½ÃÆÇ »ó´Ü¿¡ ½ºÅ²Ã¼ÀÎÁö ¹öÆ°µéÀ» ³Ö¾îÁà¾ß °ÚÁÒ?

 //  Ãʱâ Çì´õ¸¦ »Ñ·ÁÁÖ´Â ºÎºÐ;;;;
 function head($body="",$scriptfile="") { ... } ÇÔ¼ö¸¦ ã¾Æ¼­...

³»ºÎ¿¡ ÀÖ´Â..

   <?
   if($group[header_url]) { @include $group[header_url]; }
   if($setup[header_url]) { @include $setup[header_url]; }
   if($group[header]) echo stripslashes($group[header]);
   if($setup[header]) echo stripslashes($setup[header]);
   ?>

ÀÇ ÇÏ´Ü¿¡ ´ÙÀ½ ³»¿ëÀ» Ãß°¡ÇØÁÝ´Ï´Ù.

<script>
 function setCookie(name,value,expiredays)
 {
  var todayDate = new Date();
  todayDate.setDate(todayDate.getDate() + expiredays);
  document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
 }
 function changeTheme(newStyle, no) {
  var newhref = document.location.href.replace(/(#.+)/,'');
  setCookie('<?=$id?>_viewStyle', newStyle, 365);
  setCookie('<?=$id?>_currentStyle', no, 365);
  document.location.href = newhref;
 }
</script>
 
<style>
 .skinChanger {
  cursor: pointer;
  font-size:8pt;
  font-family: µ¸¿ò, verdana;
  color: #7C7769;
 }
 .underBorder {
  border-bottom: solid 2px #E08600;
  padding-bottom:2px;
 }
</style>

<iframe name="guest_chk" id="guest_chk" frameborder=0 width=0 height=0></iframe>

<div style="width:90%; text-align:left; padding:8px;">
 <span class="skinChanger" id="sChanger1" onclick="changeTheme('',1); return false;">°Ô½ÃÆÇÇü</span> 
 <span class="skinChanger" id="sChanger2" onclick="changeTheme('zb5_style_webzine',2); return false;">À¥ÁøÇü</span>
 <span class="skinChanger" id="sChanger3" onclick="changeTheme('zb5_style_gallery',3); return false;">°Ö·¯¸®Çü</span> 
 <span class="skinChanger" id="sChanger4" onclick="changeTheme('zb5_style_blog',4); return false;"><img src="images/typeB.gif" align=absmiddle border=0 />ºí·Î±×Çü</span>
</div>

<?php
  $cookieName = $id.'_currentStyle';
  if(isset($_COOKIE[$cookieName]) && $_COOKIE[$cookieName] != '') {
  $newSkinNo = $_COOKIE[$cookieName];
?>

<script>
 try {
  document.getElementById('sChanger<?=$newSkinNo?>').className = "skinChanger underBorder";
 } catch(e) {}
</script>

<?} else {?>

<script>
 try {
  document.getElementById('sChanger1').className = "skinChanger underBorder";
 } catch(e) {}
</script>

<?}?>

¼³¸íÀ» µå¸®¸é...

<span class="skinChanger" id="sChanger¼ø¼­¹øÈ£" onclick="changeTheme('½ºÅ²À̸§',¼ø¼­¹øÈ£); return false;">°Ô½ÃÆÇÇü</span>

ÀÇ Çü½ÄÀÔ´Ï´Ù. ¼ø¼­¹øÈ£´Â 1ºÎÅÍ ¼øÂ÷ÀûÀ¸·Î Áõ°¡ÇÏ´Â Çü½ÄÀ¸·Î ÇØÁֽñ¸¿ä...

'½ºÅ²À̸§' ºÎºÐ¿¡ Àû¿ëÇÒ ½ºÅ²ÀÇ À̸§À» ³Ö¾îÁÖ½Ã¸é µË´Ï´Ù.

óÀ½¿¡ ÀÖ´Â changeTheme('',1);  ´Â °ü¸®ÀÚÆäÀÌÁö¿¡¼­ ¼³Á¤ÇÑ °Ô½ÃÆÇÀÇ ½ºÅ²°ú ¼³Á¤À» Àû¿ëÇÔÀ» ÀǹÌÇÕ´Ï´Ù.

ƯÁ¤°Ô½ÃÆÇ¿¡¸¸ Àû¿ëÇϽ÷Á¸é.. À§¿¡ Ãß°¡µÈ Àüü ³»¿ëÀ»

<?php if ($id=='°Ô½ÃÆÇ ¾ÆÀ̵ð') {?>

....

....

<?}?>

¿Í °°Àº if ±¸¹®À¸·Î °¨½ÎÁÖ½Ã¸é µË´Ï´Ù.
¿©·¯¾ÆÀ̵𸦠Àû¿ëÇҽÿ¡´Â ..  if ±¸¹®ÀÇ Á¶°ÇÀ»...
if ($id=='°Ô½ÃÆÇ ¾ÆÀ̵ð' || $id=='°Ô½ÃÆÇ ¾ÆÀ̵ð1') ÀÇ Çü½ÄÀ¸·Î Ãß°¡ÇØÁÖ½Ã¸é µÇ±¸¿ä.


ÀÚ ÀÌÁ¦~ Áß¿äºÎºÐÀÎ ¼³Á¤À» ¹Ù²ãÁÖ´Â ºÎºÐÀÔ´Ï´Ù.

lib.php ¿¡¼­ function get_table_attrib($id) { ... }  ÇÔ¼ö¸¦ ¾Æ·¡ ³»¿ëÀ¸·Î ±³Ã¼ÇÕ´Ï´Ù.
¼öÁ¤ÇÏ½Ã°í ½ºÅ²Ã¼ÀÎÁö¸¦ ÇÏÁö ¾Ê¾Æµµ ±âº»±â´É¿¡´Â Àý´ëÀûÀ¸·Î º¯È­°¡ ¿À°Å³ª ¿À·ù°¡ ³ªÁö ¾ÊÀ¸´Ï ¾È½ÉÇϽñæ....

 // °Ô½ÃÆÇ ¼³Á¤À» Àоî¿È
 function get_table_attrib($id) {

  global $connect, $admin_table;

  $data=mysql_fetch_array(mysql_query("select * from $admin_table where name='$id'",$connect));

  if($data[table_width]<=100) $data[table_width]=$data[table_width]."%";

  // ¿ø·¡´Â IP¸¦ º¸¿©ÁÖ´Â ±â´ÉÀε¥, DB º¯°æÀ» ÇÇÇϱâ À§Çؼ­ À̹ÌÁö ¹Ú½º »ç¿ë ±ÇÇÑÀ¸·Î º¯°æÇÏ¿© »ç¿ë
  if(!$data[use_showip]) $data[use_showip] = 1;
  $data[grant_imagebox] = $data[use_showip];

  $cookieName = $id.'_viewStyle';
  if(isset($_COOKIE[$cookieName]) && $_COOKIE[$cookieName] != '') {
   $newSkin = $_COOKIE[$cookieName];
   $data[skinname] = $newSkin;
////
   if($newSkin == 'zb5_style_blog') {
    $data[memo_num] = 2;
    $data[use_alllist] = '1';
    $data[only_board] = '';
   }
   if($newSkin == 'zb5_style_webzine') {
    $data[memo_num] = 10;
   }
   if($newSkin == 'zb5_style_gallery') {
    $data[memo_num] = 15;
   }
////
  }

  return $data;
 }



Àß º¸½Ã¸é...

////
   if($newSkin == 'zb5_style_blog') {
    $data[memo_num] = 2;
    $data[use_alllist] = '1';
    $data[only_board] = '';
   }
   if($newSkin == 'zb5_style_webzine') {
    $data[memo_num] = 10;
   }
   if($newSkin == 'zb5_style_webzine1') {
    $data[memo_num] = 10;
   }
   if($newSkin == 'zb5_style_gallery') {
    $data[memo_num] = 15;
   }
////

À̺κÐÀº ²À ÇÊ¿äÇÑ ºÎºÐÀº ¾Æ´Ñµ¥¿ä... ½ºÅ²º°·Î ±âŸ °Çµå·ÁÁÖ°í ½ÍÀº°Ô½ÃÆÇ ¼³Á¤À» ¼öÁ¤ÇÒ¼ö ÀÖ´Â ºÎºÐÀÔ´Ï´Ù.

¿¹¸¦ µé¾î...

   if($newSkin == 'zb5_style_gallery') {
    $data[memo_num] = 15;
   }

´Â ½ºÅ²ÀÌ 'zb5_style_gallery' À̶ó¸é... ÇÑÈ­¸é¿¡ º¸¿©ÁÙ °Ô½Ã¹°¼ö¸¦ 15°³·Î Çضó~ ÀÌ·±°Å±¸¿ä...

   if($newSkin == 'zb5_style_blog') {
    $data[memo_num] = 2;
    $data[use_alllist] = '1';
    $data[only_board] = '';
   }

´Â ½ºÅ²ÀÌ 'zb5_style_blog' À̶ó¸é... ÇÑÈ­¸é¿¡ º¸¿©ÁÙ °Ô½Ã¹°¼ö¸¦ 2°³·Î ÇÏ°í ÇÏ´Ü¿¡ ¸ñ·ÏÇ¥½Ã¸¦ ÇÏ´Â Çü½Ä¿¡ ¹æ¸í·Ï½ºÅ¸ÀÏ·Î ÁöÁ¤Ç϶ó´Â °ÍÀÌÁö¿ä.

°ü¸®ÀÚ ÆäÀÌÁöÀÇ °Ô½ÃÆÇ ¼³Á¤¿¡¼­ ¼³Á¤ÇÏ´Â ¸ðµç Ç׸ñµéÀ» Àú·±½ÄÀ¸·Î ¼öÁ¤ÇÒ¼ö ÀÖ½À´Ï´Ù.

Àß ÀÀ¿ë ÇϽñæ!!!

(only_board, memo_num ÀÌ·± º¯¼öÀÇ À̸§Àº admin Æú´õÀÇ admin_add_board.php ¸¦ º¸½Ã¸é input ÀÇ name À̶ó´Â°É ¾Æ½Ç¼ö ÀÖÀ»°Ì´Ï´Ù.)

 

2

 

p.s: ½ºÅ²¿¡ µû·Î Àû¿ëµÈ ÆÁÀÌ ÀÖ´Ù¸é.. »ç¿ëµÈ °¢°¢ÀÇ ½ºÅ²¿¡ ´Ù Àû¿ëÇØÁÖ¼Å¾ß ÇÏ´Â ±«·Î¿òÀÌ...¤Ñ.¤Ñ
¿¹¸¦ µé¾î ¸ÖƼ·Î 5°³ ½ºÅ² Àû¿ëÇÑ»óÅ¿¡¼­... ¹º°¡ ½ºÅ²¿¡ ±â´ÉÃß°¡ÇÏ·Á¸é.. 5°³ ½ºÅ²¿¡ ´Ù ÇØÁà¾ß º°Å»¾ø´Ù´Â ºÒÆíÇÔÀÌ Àִٴ°ÅÁÒ~

 

 





    



¸ñ·Ïº¸±â »èÁ¦Çϱâ

¹øÈ£ Á¦¸ñ ÀÏÀÚ
437  [CG,±×·¡ÇÈtip] Èçµé¸° »çÁøÀÇ º¸Á¤  2008-04-27
436  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÈÞ´ëÆù ±â±âº¯°æ½Ã ÄÚµå ÀԷ  2010-04-30
435  [BBS_Tip] È¸¿ø°¡ÀԽà °¨»ç¸ÞÀÏ ¹ß¼Û  2009-02-18
434  [À¥µðÀÚÀÎtip] È­¸é¿¡ Å׵θ® ÁÖ±â  2008-04-27
433  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] È¨ÆäÀÌÁöÀÇ ¿¾¸ð½ÀÀ» º¼¼ö ÀÖ´Â »çÀÌÆ®  2018-03-31
432  [À¥µðÀÚÀÎtip] È¨ÆäÀÌÁö ÇØ»óµµ ÃÖÀûÈ­ ÆÁ  2008-05-31
431  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇѱÛÀ̸§ ¿µ¹®Ç¥±â¹ý  2009-03-11
430  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇѱÛÀÌ ¾È ½áÁú¶§,  2008-06-07
429  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇÑ±Û 2002 ½ÇÇà ¾ÈµÉ¶§,  2009-03-31
428  [CG,±×·¡ÇÈtip] Çѱ¹ÀÇ ÀüÅë»ö»ó  2008-04-27
427  [CG,±×·¡ÇÈtip] ÇÏÆ® ºê·¯½¬  2008-04-27
 [BBS_Tip] ÇϳªÀÇ °Ô½ÃÆÇ¿¡¼­ ¿©·¯½ºÅ²À» Àû¿ëÇÏ´Â ¹ý  2008-04-28
425  [ÀÎÅͳÝ,ÄÄÇ»ÅÍ] ÇÊÄÚÀÎ Á¦°Å Á¦°ÅÇÒ ÆÄÀÏ Fill  2009-03-20
424  [CG,±×·¡ÇÈtip] Ç÷¡½ÃÇ÷¹ÀÌ¾î  2008-04-27
423  [À¥µðÀÚÀÎtip] Ç÷¡½Ã¿¡¼­ »õâ °¡¿îµ¥ ¿­±â  2009-03-03
422  [¿µ»ótip] Ç÷¡½Ã¿¡¼­ ¹«ºñŬ¸³ Àμâ,ÇÁ¸°Æ®ÇÏ±â  2013-01-31
421  [CG,±×·¡ÇÈtip] Ç÷¡½Ã¾Ù¹ü¸¸µé±â  2008-04-27
420  [À¥µðÀÚÀÎtip] Ç÷¡½Ã¾×¼Ç½ºÅ©¸³Æ®  2009-02-09
419  [¿µ»ótip] Ç÷¡½Ã»çÀÌÁî´Ã¾î³²¹æÁö  2009-01-06
418  [À¥µðÀÚÀÎtip] Ç÷¡½Ã À§·Î ·¹ÀÌ¾î ¶ç¿ï½Ã.  2009-01-30
417  [À¥µðÀÚÀÎtip] Ç÷¡½Ã »õâ ¶ç¿ì´Â °£´ÜÇÑ ¹æ¹ý  2009-02-01
416  [CG,±×·¡ÇÈtip] Ç÷¡½Ã ¸Å´º ¹öÆ°ÀÇ ¸µÅ© °Å´Â ¹æ¹ý  2008-04-27
415 ºñ¹Ð±ÛÀÔ´Ï´Ù [À¥µðÀÚÀÎtip] Ç÷¡½Ã ·Ñ¸µ ¼Ò½º  2010-05-26
414  [À¥µðÀÚÀÎtip] Ç÷¡½Ã ·Îµå ¹«ºñ  2010-04-20
413  [À¥µðÀÚÀÎtip] Ç÷¡½Ã °¶·¯¸® 2Á¾  2010-05-26
¸ñ·Ïº¸±â
12345678910