sumardi's site
Change better self, to change the wold
1
Nov

User Management di Linux

Posted in Linux  by ardi271

ini yang gw suka dari linux…salah satu nya kita bisa mengatur expired account user…berikut ini cara nya :

# usermod -e 2010-12-31 nama_user

kemudian cek hasil nya :
# chage -l nama_user
Last password change : Oct 05, 2010
Password expires : never
Password inactive : never
Account expires : Dec 31, 2010
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

reference :
1. http://techgurulive.com/2008/09/15/how-to-show-expiration-date-of-linux-user-account/
2. http://linux.die.net/man/8/usermod
3. http://www.linuxforums.org/forum/red-hat-fedora-linux/93498-how-reactivate-expired-account-linux-root-user.html
4. http://www.comptechdoc.org/os/linux/commands/linux_cruserman.html

29
Oct

Step by Step implementasi re-CAPTCHA di CodeIgniter

Posted in codeigniter  by ardi271

seteleh sekian lama nanya2 mbah googel, akhirnya ketemua jg captcha yg keren di CI..siapa lagi klo bukan re-CAPTCHA…truss gimana tuh implementasiin di CI…nah ini dia….silahkan di simak gan…

  1. Daftar dulu disini http://recaptcha.net/
  2. Download librarry nya disini : http://code.google.com/p/recaptcha/downloads/list?q=label:phplib-Latest
  3. Rename file recaptchalib.php jadi recaptcha_helper.php , truss… taruh di folder helpers (/system/application/helpers)
  4. Tambahkan function berikut di file recaptcha_helper.php : function recaptcha()
    {
    $CI =& get_instance();
    $CI->config->load('recaptcha');
    $public_key = $CI->config->item('recaptcha_public_key');
    $message = isset($CI->validation->recaptcha_error)
    ? $CI->validation->recaptcha_error : '';
    return recaptcha_get_html($public_key, $message);
    }
  5. Read the rest of this entry »

Tags: , ,