Guest User

IceTheme

a guest
Nov 9th, 2013
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. 1. раскодировать /templates/имя_шаблона/icetools/helper.php
  2. при помощи http://www.tareeinternet.com/scripts/decrypt.php - eval gzinflate base64_decode PHP Decoder
  3. дописать айпишник своего сервера в список исключений (каждый раз при смене сервера)
  4. $white_list = array("localhost", "127.0.0.1", "Your ip here")
  5.  
  6. 2. в /templates/имя_шаблона/icetools/default.php
  7. строку после // Please Dont change this (encoded for the security of the license key)
  8. заменить на:
  9. JHTML::_('behavior.framework', true);require_once JPATH_ROOT .
  10. "/templates/" . $this->template . '/icetools/helper.php';
  11. // get params
  12. $helper = $app = JFactory::getApplication();
  13. $templateparams = $app->getTemplate(true)->params;
  14. $logo = $this->params->get('logo');
  15.  
  16. 3. НЕПРОВЕРЕННЫЙ
  17. в /templates/имя_шаблона/icetools/default.php
  18. строку после // Please Dont change this (encoded for the security of the license key)
  19. заменить на:
  20. JHTML::_('behavior.framework', true);require_once JPATH_ROOT .
  21. "/templates/" . $this->template . '/icetools/helper.php'; //
  22. get params$helper = new iceHelper( $this->template
  23. );$helper->renderTemplate( $this->params ); $app =
  24. JFactory::getApplication(); $templateparams =
  25. $app->getTemplate(true)->params;$logo=
  26. $this->params->get('logo');
  27. после этого очистить /templates/имя_шаблона/icetools/helper.php
  28.  
  29. 4. ДЛЯ СТАРЫХ ШАБЛОНОВ
  30. раскодировать /templates/имя_шаблона/icetools/helper.php
  31. при помощи http://www.tareeinternet.com/scripts/decrypt.php
  32. из полученного кода вырезать:
  33. if(empty($license)){
  34. echo "<div style='background:#E6EFC2; border:1px solid #CEE086; padding:10px 15px; margin:10px auto; width:520px; border-radius:7px; font-family:Arial; font-size:14px'>";
  35. echo "<h2 style='margin:0 0 8px;'>";
  36. echo JText::_("No License Key!");
  37. echo "</h2><p style='margin: 0 0 7px;'>";
  38. echo JText::_("To use the IceTheme Premium template you need a license key.");
  39. echo "</p><p style='margin: 0;'>";
  40. echo JText::_("You can get the license key from IceTheme.com ");
  41. echo "<a href='http://www.icetheme.com/licenses.html'>Get the License Key!</a>";
  42. echo "</p></div>";
  43. exit();
  44. }
  45.  
  46. и
  47.  
  48. else{
  49. echo "<div style='background:#FFE2E0; border:1px solid #FF9A92; padding:10px 15px; margin:10px auto; width:520px; border-radius:7px; font-family:Arial; font-size:14px'>";
  50. echo "<h2 style='margin:0 0 8px;'>";
  51. echo JText::_("Invalid License Key!");
  52. echo "</h2><p style='margin: 0 0 7px;'>";
  53. echo JText::_("We are sorry but your license key is invalid or it may be unpublished.");
  54. echo "</p><p style='margin: 0 0 20px;'>";
  55. echo JText::_("You can get the license key from IceTheme.com - ");
  56. echo "<a href='http://www.icetheme.com/component/option,com_license/lang,en/view,licenses/'>Get the License Key!</a>";
  57. echo "</p><p style='margin: 0 0 2px;'>";
  58. echo JText::_("Please contact us if your issue persist - ");
  59. echo "<a href='http://www.icetheme.com/About/Contact.html'>Contact IceTheme</a>";
  60. echo "</p></div>";
  61. exit();
  62. }
  63.  
  64. Будьте внимательны! Перед else{ будет стоять скобочка } ( }else{ ), так вот её удалять не стоит (она закрывает предыдущее условие)
Add Comment
Please, Sign In to add comment