/********************************************
  FREE MODULE BY AGE-WEB.ORG MEDIA GROUP
  -----------------------------------------------------------------
    + Author : Hamer
    + ICQ : 988603
    + Site: Age-web.org
    + Support: http://forum.age-web.org
    + Email: aw.hamer@gmail.com

 -------------------------------------------------------------------
       
      
********************************************/


 SQL :

       ------------- SQL: --------------

 ALTER TABLE dle_users ADD COLUMN selected_ava int(1) not null default'0'; 

        -------------------------------
*  dle -  


        (v6.3)

1.    `upload`   .
   -----------------------------------------
2.      engine/avatars/ - 777 (chmod)
   -----------------------------------------
3.  engine/engine.php
      :
   -----------
   case "addnews" :
	include ENGINE_DIR.'/modules/addnews.php';
        break;
   --------------
  
 :

   -----------
   case "avatars" :
	include ENGINE_DIR.'/modules/avatars.php';
	break;
   --------------

   -----------------------------------------
4.  engine/modules/profile.php
   
  :~

 -----------
if($image_name != "") $image_name  = totranslit(stripslashes($img_name_arr[0])).".".totranslit($type);
 --------------

  :

 -----------
 if($image) 
   {
  $aw_avatar = 0;
    }
     else {
    $aw_avatar = 1;
   }
 --------------

    :~
  
 + !!  _    ,    !
 
 -----------
 allowed_ip='$allowed_ip'
 --------------

   :
  
 -----------
 allowed_ip='$allowed_ip',selected_ava='$aw_avatar'
 --------------

 -----------------------------------------
5.  templates/   /userinfo.tpl
   
  : ~

 ---HTML----
 <img src="{foto}" border="0" />
 -----------

  :

  ---HTML----
 [not-logged] <a href="/avatars.html"> </a>[/not-logged]
 -----------

*  avatars.html      . .     ,      /?do=avatars!


  : 

  .htacceess            :

# Auto Avatar ( Age-Web.org )
RewriteRule ^avatars.html$ index.php?do=avatars [L]


   :

_/avatars.html (  )
_/?do=avatars

    ,      uploads/avatars/
 . 

    : http://forum.age-web.org/
  Hamer!

-----------------------------------------------------------------------------
       Copyright (c) Age-Web.Org Media Group
          Category for free!

