Browsing articles tagged with " script"
Jul
16
2012

Remove Premium WordPress Themes [ clinkft1 ]

wordpress

I got a WP Premium themes from the Internet and apply it on one of my WordPress site.  Surprisingly, sometime a random word appear at the bottom of the page which is link to another website. Word “Premium WordPress Themes” Link “http://themes.weboy.org/” CSS id “clinkft1″ Once check the source code it shown <a id=”clinkft1″ href=”http://themes.weboy.org/” title=”WordPress Themes”>WordPress Themes</a><script type=”text/javascript”>clinkft1.innerHTML = “”;</script><div></div> To fix this get into the themes folder and open this file /core/functions/shortcode_library.php then […]

Apr
30
2012

Linux’s bash shell script – Check running program

bash-570x200

Since I have develop a script code to do automatic synchronize files between server and clients. The code is designed to run in background. To make sure that the program is still running the following code is used to recognize the running process. #!/bin/sh SERVICE=’httpd’ if ps ax | grep -v grep | grep $SERVICE > /dev/null then echo “$SERVICE service running, everything is fine” else echo “$SERVICE is not running” echo “$SERVICE is not […]




Member Area