Change cPanel’s email password through command line

This script will help you change any email’s account password without using cPanel, this is done through the command line. It was written in PHP but mostly uses shell commands so I guess it was easier to use elements from both worlds.

Use it at your own risk, this script requires to be executed as root and was done for educational purposes.

Save it as change_password.php and execute it to see how to use it: php change_password.php

osTicket Red theme 1.6 RC4

Hello there πŸ™‚

Based on my old post (http://xux.in/blog/post/osticket-theme-1-6-rc4/), I decided to do more templates for osTicket 1.6 RC4 and RC5, because (and accidentally), the main theme code I did, allows you to integrate new templates in just a few minutes. So I downloaded some free css templates (like 12) and started to play with them and I’ll release 1 post for each template. The first part of the post will contain only the theme’s screenshots and once I fix some the code and test it enough I’ll update the post with the full template translated in english and spanish.

Here is how it looks! πŸ™‚

Download osTicket Red Theme (3692) (Compatible with 1.6 RC5)

* Note: This template is ONLY for the client side, not for the staff/admin area.

osTicket theme 1.6 RC4

As you already know osTicket is a support ticket system which is very easy to use and free. Developers from osTicket are back, they fixed a few bugs and cleaned a little bit most of the code.

Features:

  • Multilanguage client interface: You can add as many languages as you want for the client side.
  • Error messages can be “catched” and identified by a unique MD5 key which you can translate it in your language file.
  • You can configure the Ticket ID field to be a password field or just a text field for “security”.
  • It comes with 2 cool, light and fully XHTML valid themes which you can easily modify colors and also the HTML because of it’s clean design.
  • It has a built-in CAPTCHA module that will protect you from SPAM.
  • Search tickets based only on ticket’s subject.
  • Easy to install.
  • Last but not least, it’s 100% free, but that doesn’t mean you are allowed to remove credits πŸ˜‰

It has been tested a while now but it’s still on a beta stage, however, you might find some bugs and I’ll be happy to get some feedback from you. I didn’t include the Spanish language file this time, but I’ll do it someday πŸ™‚ If you want to translate it to other language feel free to send me your language file and I’ll include it in the next release πŸ˜‰

Here are some screenshots:

This specific version is a patched one from Nov/30/2010 which includes all the post-install instructions here, spanish translation included and all the patches needed to work with osTicket 1.6.0 (Stable), get it here: Download osTicket CTheme for 1.6.0 (Stable) (4235)

*** This is still very old news, keeping them there just for the archives ***

Are you still reading? Ok, you deserve it… Download osTicket CTheme (4370) (Compatible with 1.6 RC5)
Necesitas el tema en espaΓ±ol? Descarga el archivo osTicket CTheme Spanish Language (2813)

When you uncompress the file it will create a directory called “client”, that directory should be copied to osTicket’s root dir and the rest of the installation instructions are in the README file, have fun!

** Post install notes and bug fix:

  • The file thankyou.inc.php from this template has a code error in line 10: $ctlang->docatch($msg?) which should be changed for $ctlang->docatch($msg)?
  • Inside osTicket’s root dir, edit the index.php and comment (or delete) all the html code in order to see the template display correctly, then you just need to add this line before the footer in included: require(CLIENTINC_DIR.’main.inc.php’);. This bug and others will be fixed in the next release soon.

PHP EditDNS Updater for Linux

This is a simple PHP script which will update your dynamic DNS records using EditDNS.

Features:
– You can configure as many records as you want.
– Supports HTTP and HTTPS.
– For PHP 4x and higher compiled with sockets.
– Simple validation.

Here is the code: (editdns.php)

Save it, chmod +x and play with it.

Old sources:
http://forums.nerdie.net/showthread.php?t=616
http://xux.in/blog/post/ip-updater-for-editdnsnet/

Ensim’s (aka Parallels Pro Control Panel X for Linux) alternative ChangePasswdVirtUser

Ensim former Parallels Pro Control Panel X for Linux has a command line interface scripts as you SHOULD know πŸ˜‰ which allows you to do several administrative tasks without login to the appliance. The other day I started to write an API in order to admin N Ensim servers with only 1 interface which is a lot of work/code but hell, I’ll post some screenshots later πŸ™‚ … So one of the biggest problems I had was the script ChangePasswdVirtUser (located in /usr/local/bin), which allows you to change a virtual user’s password asking for the new password 2 times and I didn’t want to ruin my weekend and decided to hack that script and make it work like this: ChangePasswdVirtUser domain.com user newpassword

That’s so insecure! I know and I’ll come later with a more secure alternative don’t worry πŸ˜‰ in the meantime you can play with it:

File: /usr/local/bin/ChangePasswdVirtUser1