I updated my signature. Thanks for the heads up!
A bit more backgound: I have been reading things like the
following quote :
Quote:
Originally Posted by chamberinternet
...
This is how it's done:
Modify the "<xcart-dir>/include/categories.php" file:
1) find the following line (it is 290th in X-Cart v4.1.0 by default)
if (($current_area == "C" && defined("GET_ALL_CATEGORIES")) || defined('MANAGE_CATEGORIES')) {
2) replace it with the next one
if (($current_area == "C") || defined('MANAGE_CATEGORIES')) {
....
|
...but when I open 'include/categories.php', with any text editor, I see the following:
Code:
<?php //0147d
/*****************************************************************************\
+-----------------------------------------------------------------------------+
| X-Cart |
| Copyright (c) 2001-2005 Ruslan R. Fazliev <rrf@rrf.ru> |
| All rights reserved. |
+-----------------------------------------------------------------------------+
| PLEASE READ THE FULLTEXT OF SOFTWARE EVALUATION AGREEMENT IN THE "COPYRIGHT"|
| FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE |
| AT THE FOLLOWING URL: http://www.x-cart.com/evaluation_agreement.html |
| |
| THIS AGREEMENT EXPRESSES THE TERMS AND CONDITIONS ON WHICH YOU MAY USE THIS |
| SOFTWARE PROGRAM AND ASSOCIATED DOCUMENTATION THAT RUSLAN R. FAZLIEV |
| (hereinafter referred to as "THE AUTHOR") IS FURNISHING OR MAKING AVAILABLE |
| TO YOU WITH THIS AGREEMENT (COLLECTIVELY, THE "SOFTWARE"). PLEASE REVIEW |
| THE TERMS AND CONDITIONS OF THIS EVALUATION AGREEMENT CAREFULLY BEFORE |
| INSTALLING OR USING THE SOFTWARE. BY INSTALLING, COPYING OR OTHERWISE USING |
| THE SOFTWARE, YOU AND YOUR COMPANY (COLLECTIVELY, "YOU") ARE ACCEPTING AND |
| AGREEING TO THE TERMS OF THIS EVALUATION AGREEMENT. IF YOU ARE NOT WILLING |
| TO BE BOUND BY THIS AGREEMENT, DO NOT INSTALL OR USE THE SOFTWARE. VARIOUS |
| COPYRIGHTS AND OTHER INTELLECTUAL PROPERTY RIGHTS PROTECT THE SOFTWARE. |
| THIS AGREEMENT IS A LICENSE AGREEMENT THAT GIVES YOU LIMITED RIGHTS TO USE |
| THE SOFTWARE AND NOT AN AGREEMENT FOR SALE OR FOR TRANSFER OF TITLE. THE |
| AUTHOR RETAINS ALL RIGHTS NOT EXPRESSLY GRANTED BY THIS AGREEMENT. |
| |
| The Initial Developer of the Original Code is Ruslan R. Fazliev |
| Portions created by Ruslan R. Fazliev are Copyright (C) 2001-2005 |
| Ruslan R. Fazliev. All Rights Reserved. |
+-----------------------------------------------------------------------------+
\*****************************************************************************/
if (!extension_loaded('ionCube Loader')) { $_ds = DIRECTORY_SEPARATOR; $_df = dirname(__FILE__); $_pl = strtolower(substr(php_uname(), 0, 3)); $_ed = realpath(ini_get('extension_dir')); $ts = 0; ob_start(); phpinfo(1); $_p = ob_get_contents(); ob_end_clean(); $_ts = ((($_pl != 'win') && ($ts = preg_match('!thread safety.*(enabled|yes)!Ui',$_p))) ? '_ts' : ''); $_fn = 'ioncube_loader_'.$_pl.'_'.substr(phpversion(), 0, 3).$_ts.($_pl == 'win' ? '.dll' : '.so'); $_sn = 'ioncube'.$_ds.$_fn; $_ll = ''; function _c($f) { return !empty($f) && file_exists($f); } $_sm = ini_get("safe_mode"); $_sm = ($_sm === 1) || !strcasecmp($_sm,"on"); if (!$_sm) { $_ln = ""; $_rd = str_repeat('..'.$_ds, 4).$_ds; $_i = strlen($_rd); while ($_i--) { if ($_rd[$_i] == $_ds) { $_lp = realpath(substr($_rd, 0, $_i+1).$_sn); if (file_exists($_lp)) { $_ln = $_lp; break; } } } if (!_c($_ln)) $_ln = realpath(substr($_rd, 0, $_i+1).$_sn); if (!_c($_ln)) $_ln = realpath($_ed.$_ds.$_fn); if (_c($_ln)) { if (ini_get("enable_dl")) { $_rd = str_repeat('..'.$_ds,substr_count($_ed,$_ds)).preg_replace('/(.:\\\)|(^\/)/i', '', $_ln); @dl($_rd); if (function_exists('_il_exec')) { return _il_exec(); } } $_ll = '<br />To install the ionCube loader at your server, please add the the following line in your <code>php.ini</code>, before any other <code>zend_extension</code> lines:<br /><code>zend_extension'.($ts ? '_ts' : '')." = ".$_ln."</code><br>"; } } die('This demo version is protected by ionCube PHP Encoder. System failed to install appropriate <a href="http://ioncube.com/loader/">ionCube PHP Loader</a> for your system.<br /><br />
Possible reasons:<br />
1. You are using MS Windows and X-Cart and PHP are located on different logical drives (eg. PHP is installed on disk C: and X-Cart on disk D:). To resolve this, move X-Cart to the same disk as PHP or put all loader files from the xcart/ioncube directory to the directory defined in the variable extension_dir in php.ini file (c:\php4\extensions\ by default).
Also, you can visit the <a href="http://ioncube.com/loader/">ionCube PHP Loader homepage</a>, download the valid loaders for your system and install them following the instructions, provided by README file in loaders archive. <br />
2. Unsupported version of PHP (currently versions 4.0.6 - 5.1.x are supported)<br />
3. Dynamic loading is disabled at your system (eg. safe mode is on, or enable_dl is off)<br />
4. Unsupported operation system (currently demo is available for Windows NT/2000/2003/XP, FreeBSD 4, Linux Intel, Solaris Sparc, NetBSD, OpenBSD).<br />'.$_ll.'<br />
Full version of X-Cart will work on any OS where PHP/MySQL meets minimum <a href="http://www.x-cart.com/cart_system_requirements.html">system requirements</a>.<br/>
You can find more information about X-Cart demo at <a href="http://www.x-cart.com/downloadable_demo.html#qas">http://www.x-cart.com/downloadable_demo.html#qas</a>.'); }
?>
4+oV565U/ust/ac5k9DLgPGRlXt+uJIZwYqgxR+iGVsArm4lyYlgneaxJPP/6WzQ7unqNNubh2fG
pV2i8V3jfxVY30yKW49R0VLffhHPXNe7NJEmi/Bj6E650e1CGBcDAnTQ1Gp4aDGriLa5KRauUSnZ
xhgxRC06AxQQgkgnNxxNwRudOB+6koQWY8C2zOu0Ny5DilEtXMz99UIduuF2bCOa88IuVw+Tx7m3
CfVwnoRwulvmM4XqrXxCDZSmyB9posiqkgZLxX8KCs1bTYLM7oahmTwZLH69csTDNhA/dCVpGjh4
VnREIEEuaOjMIzQRUNeEYiroE+th6sHnB4uPLDR5f9/JJHvENVwFxERZiyJTz1kWgDxTdZ5c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NJxfqIOleQQti+HHC4DYguKVXVHV+EvgyQVZlac9ARUnjGLlvuyU9frgkZdnx6F/E4UDqE9eR
R5gg2v7EmM1VcF9PVmacY8JEAwHs/obCZDQUCWr+MFpfAukdIJAGlQ/sD9NdLUFqe1c/yP7ZEQ9U
CvakW7lTLVdPMs38Wj/0H4Rne2Qt9dDQ+qAGuUELQnaD4LE0TxRzT4E6Bdfe57LF0fAuJ3Hv0e5f
vjnBTFz0jE2xJgoySYFB+Wh/J2L28J8VOlu/NSOl0qTVTm4iTq4j0/Cz1X4iaQJhwEMSIXWEOI8X
o60mZIkAT67xyjscft7F0PXMPrQ2vOrsplnhH07xoxM8bsQLQOTMAY6Fxwg4AAZeVlFbDxtmCa58
feKE7h7+MSwZDc+/ZYgYh9uUCu438WmWjW51vTvWCx56TEekTjlLnd1TMScanm2Uyi3k6GZEjjPJ
2wd4y1CviKOepmfjy9lccCAVmXwer6xdIsIO+wmxOIeXBGtU1jG6zP5/Z7DyZ9AhSWmOkChdx5sJ
zC0kERaFU+EXb9OAoz8cIdu7Q0gZI3QwSLXopuPeNVwzjAk5sLs47BNNu59LAlCnPHInnW0Y/3fw
ngt0BGjcJF+MphQ5Rj6sPfjk4RT5yRaPG49SLeTJP6pg3HffHdvF+gL1ReW/1bqwSJ/iE4sXpqbD
AEnHI0z39HvvpgAZuJkmowVTXGynbw61vKAdanCRGV4HyISFwK/DJCmd/TCpc4fNMBxBuY3GWS4j
..... (truncated to save page load... I think the picture is clear enough)
It appears as if all the base files are obfuscated with the IonCube Loader. Is this the case? If so, how do people edit files like 'include/categories.php'?