Thursday 5 October 2017

Creating batch file

Creating a batch file:

  1. Create a new file using Notepad
  2. Rename it as   filename.bat (select All files)
  3. copy the following Script and save
  4. Run it by double clicking it.
  5. That's it enjoy : )

-------------------------------------------------------------------------------------------------------
@echo off
echo Hey sree now i'm removing the log files
pause
sc stop Tomcat7
pause
rmdir "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\logs" /S /Q
pause
mkdir "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\logs"
pause
del "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\VIS.war"
pause
rmdir "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\VIS" /S /Q
pause
rmdir "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\work\Catalina\localhost\VIS" /S /Q
pause
sc start TomCat7
pause
echo sree it's working fine....  !!!!   : )


------------------------------------------------------------------------------------------------------

Tuesday 3 October 2017

Wordpress

  • First Download Original File of Newspaper 7.1.1 WordPress Theme by Click Here.

Two Methods of Activation Newspaper Theme

First Method:

  • First of all go this path Newspaper/includes/wp_booster/td_cake.php.
  • Open td_cake.php file in any PHP editor.
  • Find
    function td_cake_manual($s_id, $e_id, $t_id)
and change below code
if (md5($s_id . $e_id) == $t_id) {
    return true;
} else {
    return false;
}
with
if ($e_id == "crackorsquad.in" && $t_id == "crackorsquad") {
    return true;
} else {
    return false;
}
  • Then open “your_site/wp-admin/admin.php?page=td_cake_panel” in your browser and then click on Manual activation and Enter below code
Envato Purchase Code: crackorsquad.in

Activation Key: crackorsquad
After entering This code, Your theme successfully Activate.

Second Method:

  • Apply above method but change above code with
if (md5($s_id . $e_id) == $t_id) {
    return true;
} else {
    return true;
}
After this when you enter any Envato Purchase Code and Activation Key then correctly Activate without any error.

============================
Easy steps to activate newspaper theme 8 or above Find td_ajax.php file on includes/wp_booster In the function td_validate_data Replace this: private static function td_validate_data($id, $ec, $ad) { if (md5($id . $ec) == $ad) { return true; } else { return false; } with this: private static function td_validate_data($id, $ec, $ad) { if (md5($id . $ec) == $ad) { return true; } else { return true; }

================================