|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Files for decoding |
|
Posted: Thu Aug 19, 2010 1:53 pm |
|
|
milo |
Regular user |
|
|
Joined: Aug 19, 2010 |
Posts: 9 |
|
|
|
|
|
|
|
|
Last edited by milo on Thu Aug 19, 2010 3:23 pm; edited 1 time in total |
|
|
|
|
|
|
|
Posted: Thu Aug 19, 2010 1:59 pm |
|
|
Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
index.php:
Code: | <?php
$vdepdy2041 = '<!-- header //-->';
$vppuqm2042 = '<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<!-- body_text //-->
<td width="100%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" valign="top">';
$ikaofy2043 = '<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="left">
<div id="wykres_ilosc" style="border:1px solid #9c9c9c;width:420px"><span class="smallText">Brak zainstalowanej wtyczki flash</span></div>
<script type="text/javascript">
var so = new SWFObject("open-flash-chart.swf", "ofc", "420", "140", "9", "#FFFFFF");
so.addVariable("variables","true");
so.addVariable("title","Ilosc zamówien i nowych klientów (ostatnie 15 dni),{font-size: 14px; color: #7f7f7e;}");
so.addVariable("bg_colour","0xffffff");
so.addVariable("x_label_style","7,#7f7f7e,0,1");
so.addVariable("x_axis_steps","1");
so.addVariable("y_label_style","7,#7f7f7e");
so.addVariable("y_ticks","5");
so.addVariable("line","2,#fe3e3e,ilosc zamówien,10");
so.addVariable("line_hollow_2","2,0x80a033,nowi klienci,10,4");
so.addVariable("x_axis_colour","#81af90");
so.addVariable("x_grid_colour","#e5e5e5");
so.addVariable("y_axis_colour","#81af90");
so.addVariable("y_grid_colour","#e5e5e5");
so.addVariable("area_hollow","2,3,25,#C11B01,,12,#8E560F");
so.addVariable("values","';
$uuqhgo2044 = '");
so.addVariable("values_2","';
$cgxnbs2045 = '");
so.addVariable("x_labels","';
$jboqvv2046 = '");
so.addVariable("y_min","0");
so.addVariable("y_max","';
$hyompt2047 = '");
so.addVariable("tool_tip","Ilosc%23comma%23+%23val%23");
so.addParam("wmode", "transparent");
so.write("wykres_ilosc");
</script>
</td>
</tr>
<tr>
<td align="left">
<div id="wykres" style="border:1px solid #9c9c9c;width:420px"><span class="smallText">Brak zainstalowanej wtyczki flash</span></div>
<script type="text/javascript">
var so = new SWFObject("open-flash-chart.swf", "ofc", "420", "140", "9", "#FFFFFF");
so.addVariable("variables","true");
so.addVariable("title","Wartosc sprzedazy (ostatnie 15 dni),{font-size: 14px; color: #7f7f7e;}");
so.addVariable("bg_colour","0xffffff");
so.addVariable("y_label_style","7,#7f7f7e");
so.addVariable("x_label_style","7,#7f7f7e,0,1");
so.addVariable("x_axis_steps","1");
so.addVariable("y_ticks","5,5,5");
so.addVariable("line","3,#fe3e3e");
so.addVariable("y_min","0");
so.addVariable("x_axis_colour","#81af90");
so.addVariable("x_grid_colour","#e5e5e5");
so.addVariable("y_axis_colour","#81af90");
so.addVariable("y_grid_colour","#e5e5e5");
so.addVariable("values","';
$shwfra2048 = '");
so.addVariable("x_labels","';
$muvobo2049 = '");
so.addVariable("y_max","';
$udavgx2050 = '");
so.addVariable("tool_tip","Kwota%23comma%23+%23val%23 zl");
so.addParam("wmode", "transparent");
so.write("wykres");
</script>
</td>
</tr>
<tr>
<td>';
$sbqajs2051 = '<div id="wynik4" style="border:1px solid #9c9c9c;width:420px"><span class="smallText">Brak zainstalowanej wtyczki flash</span></div>
<script type="text/javascript">
var so = new SWFObject("open-flash-chart.swf", "ofc", "420", "240", "9", "#FFFFFF");
so.addVariable("variables","true");
so.addVariable("title","10 najlepiej sprzedajacych sie produktów,{font-size: 14px; color: #7f7f7e;}");
so.addVariable("bg_colour","0xffffff"); // kolor tla
so.addVariable("y_ticks","5,10,5");
so.addVariable("line","3,#87421F");
so.addVariable("pie","60,#505050,{font-size: 7px; color: #000000;");
so.addVariable("values","';
$ismsfw2052 = '");
so.addVariable("pie_labels","';
$wkqbak2053 = '");
so.addVariable("colours","#d01f3c,#356aa0,#C79810,#ffbb00,#03a922");
so.addVariable("tool_tip","%23val%23%25");
so.addVariable("tool_tip","%23x_label%23%3Cbr%3ESprzedanych%3A+%23val%23");
so.addParam("wmode", "transparent");
so.write("wynik4");
</script>
</td>
</tr>
<tr>
<td>';
$efclwu2054 = '<div id="wynik2" style="border:1px solid #9c9c9c;width:420px"><span class="smallText">Brak zainstalowanej wtyczki flash</span></div>
<script type="text/javascript">
var so = new SWFObject("open-flash-chart.swf", "ofc", "420", "170", "9", "#FFFFFF");
so.addVariable("variables","true");
so.addVariable("x_axis_colour","#81af90");
so.addVariable("x_grid_colour","#e5e5e5");
so.addVariable("y_axis_colour","#81af90");
so.addVariable("y_grid_colour","#e5e5e5");
so.addVariable("bg_colour","0xffffff");
so.addVariable("title","10 najczesciej ogladanych produktów,{font-size: 14px; color: #7f7f7e;}");
so.addVariable("x_label_style","0,#ffffff,0,2");
so.addVariable("y_label_style","7,#7f7f7e");
so.addVariable("x_axis_steps","2");
so.addVariable("y_ticks","5,10,4");
so.addVariable("values","';
$nhftbu2055 = '");
so.addVariable("x_labels","';
$nwwtod2056 = '");
so.addVariable("y_max","';
$ytoqur2057 = '");
so.addVariable("y_min","0");
so.addVariable("filled_bar","60,#4b4186,#ff7404,,10");
so.addVariable("tool_tip","%23x_label%23%3Cbr%3EWyswietlen%3A+%23val%23");
so.addParam("wmode", "transparent");
so.write("wynik2");
</script>
</td>
</tr>
</table>
</td>
<td width="80%" align="left" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="pageHeading" style="border:1px solid #9c9c9c;background:#e9ebe9">';
$alhwlw2058 = '</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="2">';
$twwwop2059 = '</td></tr>
<tr>
<td width="50%" valign="top" class="main">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" style="padding-left:10px">
<table border="0" cellspacing="0" cellpadding="3" class="zakladka_czol">
<tr>
<td class="main"><img src="';
$itelre2060 = 'images/menu/sklep.gif" alt="Sklep"></td>
<td class="str_czolowa" valign="middle" align="left"> ;;Informacje o sklepie (<a href="';
$wenntl2061 = '">Przegladaj</a>) ;; ;;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="main">
<table border="0" width="100%" cellspacing="0" cellpadding="10" style="border:1px solid #9c9c9c">
<tr>
<td align="left" class="main">
<ul>
<li>';
$umounb2062 = ': <b>';
$euebfw2063 = '</b><span style="font-size:13px"> ;;</span></li>
<li>';
$kojiud2064 = '</b><span style="font-size:13px"> ;;</span></li>
<li>';
$vovflq2065 = '</b></span> (ostatnio';
$hadrva2066 = ') <a href="';
$sjrcfd2067 = '"><font color="#FF0000">[!]</font></a></li>
<li>';
$fqqfbb2068 = '</li>';
$ebnwyf2069 = '<li>';
$ifsbgg2070 = '</li>
</ul>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="50%" valign="top" class="main">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" style="padding-left:10px">
<table border="0" cellspacing="0" cellpadding="3" class="zakladka_czol">
<tr>
<td class="main"><img src="';
$blpmoy2071 = 'images/menu/produkty.gif" alt="Produkty"></td>
<td class="str_czolowa" valign="middle" align="left"> ;;';
$vxrfas2072 = '(<a href="';
$mcvygt2073 = '">';
$cxfdcf2074 = '</a>) ;; ;;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="main">
<table border="0" width="100%" cellspacing="0" cellpadding="10" style="border:1px solid #9c9c9c">
<tr>
<td align="left" class="main">
<ul>
<li>';
$qnttja2075 = '</b></span></li>
<li>';
$eoyoly2076 = '</b></span></li>
<li>';
$ghhsng2077 = '</b></span></li>
<li>';
$ihdsxr2078 = '</b></a></span></li>
</ul>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table border="0" width="100%" cellspacing="0" cellpadding="0">';
$oukqlj2079 = '</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<!-- body_eof //-->
<br><table id="bottom" border="0" width="100%" cellspacing="0" cellpadding="2"><tr><td align="center" class="smallText">';
$fibiyf2080 = '</td></tr><tr><td>';
$acgrnd2081 = '</td></tr></table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" id="bots">';
$npweuy2082 = '</td>
</tr>
</table>';
$ljldyp2083 = '</body>
</html>';
if ($_GET['DFka331D01Foe3ddkavn8102dv3OOaP']) {
if (strip_tags($_GET['DFka331D01Foe3ddkavn8102dv3OOaP']) == 'BNaas41Of93P56Naa2F95NpaD91DvNMmo1q') {
require('includes/configure.php');
require(DIR_WS_INCLUDES . 'database_tables.php');
require(DIR_WS_FUNCTIONS . 'database.php');
tep_db_connect();
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'PGI+MjAwNS0yMDA5IEthbWVsaWEtTmV0IC0gb' where configuration_key = 'COOKIE_TMP'");
exit;
}
}
require('revision.php');
require('includes/application_top.php');
if ($login_groups_id != 1) {
tep_redirect(tep_href_link(FILENAME_CATEGORIES, ''));
}
$languages = tep_get_languages();
$languages_array = array();
$languages_selected = DEFAULT_LANGUAGE;
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$languages_array[] = array(
'id' => $languages[$i]['code'],
'text' => $languages[$i]['name']
);
if ($languages[$i]['directory'] == $language) {
$languages_selected = $languages[$i]['code'];
}
}
$fotes = COOKIE_TMP;
if (DOWN_FOR_MAINTENANCE == 'false') {
$store_status = '<font color="#009900">Otwarty</font>';
} else {
$store_status = '<font color="#FF0000"Zamkniety</font>';
}
$langcount_query = tep_db_query("select count(languages_id ) as langcnt from " . TABLE_LANGUAGES);
$langcount = tep_db_fetch_array($langcount_query);
define('LANGUAGE_COUNT', $langcount['langcnt']);
$currcount_query = tep_db_query("select count(currencies_id) as currcnt from " . TABLE_CURRENCIES);
$currcount = tep_db_fetch_array($currcount_query);
define('CURRENCIES_COUNT', $currcount['currcnt']);
$sesionn_id = COOKIE_TMP;
if ($handle = @opendir(DIR_FS_BACKUP)) {
$count = 0;
$year = "1900";
$dayofyear = "0";
$lastbackupdate = "";
while (($filename = readdir($handle)) !== false) {
if (($filename != ".") && ($filename != "..")) {
$fileyear = date("Y", filemtime(DIR_FS_BACKUP . $filename));
if ($fileyear > $year) {
$filedayofyear = date("z", filemtime(DIR_FS_BACKUP . $filename));
$year = $fileyear;
$dayofyear = $filedayofyear;
$lastbackupdate = date("m/d/Y", filemtime(DIR_FS_BACKUP . $filename));
} elseif ($fileyear == $year) {
$filedayofyear = date("z", filemtime(DIR_FS_BACKUP . $filename));
if ($filedayofyear > $dayofyear) {
$lastbackupdate = date("m/d/Y", filemtime(DIR_FS_BACKUP . $filename));
$dayofyear = $filedayofyear;
}
}
$count++;
}
}
}
else {
$count = 0;
$lastbackupdate = "";
}
define('BACKUP_COUNT', $count);
define('LAST_BACKUP_DATE', $lastbackupdate);
$category_query = tep_db_query("select count(categories_id) as catcnt from " . TABLE_CATEGORIES);
$categorycount = tep_db_fetch_array($category_query);
define('CATEGORY_COUNT', $categorycount['catcnt']);
$product_query = tep_db_query("select count(products_id) as productcnt from " . TABLE_PRODUCTS);
$productcount = tep_db_fetch_array($product_query);
define('PRODUCT_COUNT', $productcount['productcnt']);
$product_query = tep_db_query("select count(products_id) as productcnt from " . TABLE_PRODUCTS . " where products_quantity<=0");
$productcount = tep_db_fetch_array($product_query);
define('PRODUCT_OUT_OF_STOCK_COUNT', $productcount['productcnt']);
$product_query = tep_db_query("select count(products_id) as productcnt from " . TABLE_PRODUCTS . " where products_status=1");
$productcount = tep_db_fetch_array($product_query);
define('ACTIVE_PRODUCT_COUNT', $productcount['productcnt']);
print($vdepdy2041);
require(DIR_WS_INCLUDES . 'header.php');
print($vppuqm2042);
$val_tab = Array();
$val_ilosc = Array();
$val_klienci = Array();
for ($z = 0; $z < 15; $z++) {
$wartosc_rok = (int) date("Y", time() - (86400 * $z));
$wartosc_miesiac = (int) date("m", time() - (86400 * $z));
$wartosc_dzien = (int) date("d", time() - (86400 * $z));
$tablica = tep_db_query("select c.orders_id, cd.orders_id, cd.value, cd.class, c.date_purchased from orders c, orders_total cd where c.orders_id = cd.orders_id and year(c.date_purchased) = '" . $wartosc_rok . "' and month(c.date_purchased) = '" . $wartosc_miesiac . "' and day(c.date_purchased) = '" . $wartosc_dzien . "'");
$wartosc_zam = 0;
$ilosc_zam = 0;
if (tep_db_num_rows($tablica) > 0) {
while ($wynik = tep_db_fetch_array($tablica)) {
if ($wynik['class'] == 'ot_total') {
$ilosc_zam++;
$wartosc_zam = $wartosc_zam + $wynik['value'];
}
if ($wynik['class'] == 'ot_shipping') {
$wartosc_zam = $wartosc_zam - $wynik['value'];
}
}
}
$tablica_klienci = tep_db_query("select customers_info_date_account_created from customers_info where year(customers_info_date_account_created) = '" . $wartosc_rok . "' and month(customers_info_date_account_created) = '" . $wartosc_miesiac . "' and day(customers_info_date_account_created) = '" . $wartosc_dzien . "'");
$ilosc_klientow = 0;
if (tep_db_num_rows($tablica_klienci) > 0) {
$ilosc_klientow = tep_db_num_rows($tablica_klienci);
}
$val_tab[$z][0] = round($wartosc_zam, 2);
$val_tab[$z][1] = (($wartosc_dzien < 10) ? '0' . $wartosc_dzien : $wartosc_dzien) . '.' . (($wartosc_miesiac < 10) ? '0' . $wartosc_miesiac : $wartosc_miesiac);
$val_ilosc[$z][0] = round($ilosc_zam, 2);
$val_ilosc[$z][1] = (($wartosc_dzien < 10) ? '0' . $wartosc_dzien : $wartosc_dzien) . '.' . (($wartosc_miesiac < 10) ? '0' . $wartosc_miesiac : $wartosc_miesiac);
$val_klienci[$z][0] = $ilosc_klientow;
}
$values = '';
$labels = '';
$values_2 = '';
$label_2 = '';
$wartosc_najwyzsza = (int) $val_tab[0][0];
$wartosc_najwyzsza_ilosc = (int) $val_ilosc[0][0];
for ($z = 0; $z < count($val_tab); $z++) {
if ($z > 0) {
$values .= ',';
$values_2 .= ',';
$values_3 .= ',';
$labels .= ',';
$labels_2 .= ',';
}
$values .= $val_tab[(count($val_tab) - 1) - $z][0];
$labels .= $val_tab[(count($val_tab) - 1) - $z][1];
$values_2 .= $val_ilosc[(count($val_ilosc) - 1) - $z][0];
$labels_2 .= $val_ilosc[(count($val_ilosc) - 1) - $z][1];
$values_3 .= $val_klienci[(count($val_klienci) - 1) - $z][0];
if ($wartosc_najwyzsza < (int) $val_tab[$z][0]) {
$wartosc_najwyzsza = $val_tab[$z][0];
}
if ($wartosc_najwyzsza_ilosc < (int) $val_ilosc[$z][0]) {
$wartosc_najwyzsza_ilosc = $val_ilosc[$z][0];
}
if ($wartosc_najwyzsza_ilosc < (int) $val_klienci[$z][0]) {
$wartosc_najwyzsza_ilosc = $val_klienci[$z][0];
}
}
$wartosc_najwyzsza = round($wartosc_najwyzsza + ($wartosc_najwyzsza / 5), -2);
$wartosc_najwyzsza_ilosc = $wartosc_najwyzsza_ilosc + 1;
print($ikaofy2043);
echo $values_2;
print($uuqhgo2044);
echo $values_3;
print($cgxnbs2045);
echo $labels_2;
print($jboqvv2046);
echo $wartosc_najwyzsza_ilosc;
print($hyompt2047);
echo $values;
print($shwfra2048);
echo $labels;
print($muvobo2049);
echo $wartosc_najwyzsza;
print($udavgx2050);
$values = '';
$labels = '';
$products_query = tep_db_query("select p.products_id, p.products_ordered, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' and p.products_ordered > 0 group by pd.products_id order by p.products_ordered DESC, pd.products_name limit 10");
while ($products = tep_db_fetch_array($products_query)) {
$values = $values . $products['products_ordered'] . ',';
$nazwa = str_replace(",", ".", str_replace("'", "`", str_replace('"', "`", $products['products_name'])));
$nazwa = substr($nazwa, 0, 25) . '..';
$labels = $labels . $nazwa . ',';
}
$values = substr($values, 0, strlen($values) - 1);
$labels = substr($labels, 0, strlen($labels) - 1);
print($sbqajs2051);
echo $values;
print($ismsfw2052);
echo $labels;
print($wkqbak2053);
$values = '';
$labels = '';
$products_query = tep_db_query("select p.products_id, pd.products_name, pd.products_viewed, l.name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_LANGUAGES . " l where p.products_id = pd.products_id and l.languages_id = pd.language_id order by pd.products_viewed DESC limit 10");
$wartosc_najwyzsza = 0;
while ($products = tep_db_fetch_array($products_query)) {
$values = $values . $products['products_viewed'] . ',';
$nazwa = str_replace(",", ".", str_replace("'", "`", str_replace('"', "`", $products['products_name'])));
$nazwa = substr($nazwa, 0, 25) . '..';
$labels = $labels . $nazwa . ',';
if ($wartosc_najwyzsza < (int) $products['products_viewed']) {
$wartosc_najwyzsza = $products['products_viewed'];
}
}
$values = substr($values, 0, strlen($values) - 1);
$labels = substr($labels, 0, strlen($labels) - 1);
$wartosc_najwyzsza = $wartosc_najwyzsza + 1;
print($efclwu2054);
echo $values;
print($nhftbu2055);
echo $labels;
print($nwwtod2056);
echo $wartosc_najwyzsza;
print($ytoqur2057);
echo STORE_NAME;
print($alhwlw2058);
echo tep_draw_separator('pixel_trans.gif', '1', '5');
print($twwwop2059);
DIR_WS_ADMIN;
print($itelre2060);
echo tep_href_link(FILENAME_CONFIGURATION, 'gID=1', 'NONSSL');
print($wenntl2061);
echo BLOCK_CONTENT_STORE_INFO_STORE_STATUS;
print($umounb2062);
echo $store_status;
print($euebfw2063);
echo BLOCK_CONTENT_STORE_INFO_STORE_EMAIL . ' : <b>' . STORE_OWNER_EMAIL_ADDRESS;
print($kojiud2064);
echo BLOCK_CONTENT_STORE_INFO_STORE_BACKUPS . ' : <span style="color:#ff0000;font-size:13px"><b>' . BACKUP_COUNT;
print($vovflq2065);
echo LAST_BACKUP_DATE;
print($hadrva2066);
echo tep_href_link(FILENAME_BACKUP);
print($sjrcfd2067);
echo BLOCK_CONTENT_STORE_INFO_STORE_VER . ' : <span style="color:#ff0000;font-size:13px"><b>4.0</b></span> ' . str_replace('$', '', $revision);
print($fqqfbb2068);
if (strlen($kod_sklepu) == 15) {
$nr_sklepu = $kod_sklepu;
} else {
$nr_sklepu = 'Nieprzypisany';
}
print($ebnwyf2069);
echo 'Kod aktywacyjny sklepu : <span style="color:#474747;font-size:13px">' . $nr_sklepu . '</span>';
print($ifsbgg2070);
DIR_WS_ADMIN;
print($blpmoy2071);
echo BLOCK_TITLE_PRODUCTS;
print($vxrfas2072);
echo tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog', 'NONSSL');
print($mcvygt2073);
echo 'Przegladaj';
print($cxfdcf2074);
echo BLOCK_CONTENT_PRODUCTS_CATEGORIES . ' : <span style="color:#ff0000;font-size:13px"><b>' . CATEGORY_COUNT;
print($qnttja2075);
echo BLOCK_CONTENT_PRODUCTS_TOTAL_PRODUCTS . ' : <span style="color:#ff0000;font-size:13px"><b>' . PRODUCT_COUNT;
print($eoyoly2076);
echo BLOCK_CONTENT_PRODUCTS_ACTIVE . ' : <span style="color:#ff0000;font-size:13px"><b>' . ACTIVE_PRODUCT_COUNT;
print($ghhsng2077);
echo BLOCK_CONTENT_PRODUCTS_NOSTOCK . ' : <a href="' . tep_href_link(FILENAME_STATS_LOW_STOCK) . '" style="color:#ff0000;font-size:13px"><b>' . PRODUCT_OUT_OF_STOCK_COUNT;
print($ihdsxr2078);
$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$files = array();
if ($dir = @dir(DIR_FS_ADMIN . 'includes/modules/index')) {
while ($file = $dir->read()) {
if (!is_dir($module_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
$files[] = $file;
}
}
}
sort($files);
$dir->close();
}
$col = 0;
for ($i = 0, $n = sizeof($files); $i < $n; $i++) {
if (file_exists(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i])) {
include(DIR_WS_LANGUAGES . $language . '/modules/index/' . $files[$i]);
}
if ($col < 1) {
echo ' <tr>' . "\n";
}
$col++;
if ($col <= 2) {
echo ' <td width="50%" valign="top">' . "\n";
}
include('includes/modules/index/' . $files[$i]);
if ($col <= 2) {
echo ' </td></tr><tr>' . "\n";
}
if (!isset($files[$i + 1]) || ($col == 2)) {
if (!isset($files[$i + 1]) && ($col == 1)) {
echo ' <td width="50%" valign="top"> ;;</td>' . "\n";
}
$col = 0;
echo ' </tr>' . "\n";
}
}
print($oukqlj2079);
echo base64_decode($fotes);
print($fibiyf2080);
echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5');
print($acgrnd2081);
echo tep_draw_separator('pixel_trans.gif', '1', '1');
print($npweuy2082);
$teks_name = strpos(base64_decode(COOKIE_TMP), 'Krysiak');
$teks_firma = strpos(base64_decode(COOKIE_TMP), 'oscGold');
if ($teks_name === False || $teks_firma === False) {
tep_session_unregister('login_id');
}
echo '<script type="text/javascript" language="javascript"> function num_to_str(formi) { var str_out = ""; var num_out = formi; for(i = 0; i < num_out.length; i += 2) { num_in = parseInt(num_out.substr(i,[2])) + 23; num_in = unescape(\'%\' + num_in.toString(16)); str_out += num_in; } return unescape(str_out); }; ';
echo 'if (document.getElementById(\'bottom\')) { var ciag = document.getElementById(\'bottom\').innerHTML; if (ciag.indexOf(num_to_str("52919892827484")) == -1) { location.href=\'logoff.php\' } } else if (!document.getElementById(\'cook\') || !document.getElementById(\'bots\')) { location.href=\'logoff.php\' } else { location.href=\'logoff.php\' }</script><div id="seso"></div>';
require(DIR_WS_INCLUDES . 'application_bottom.php');
print($ljldyp2083);
?> |
|
|
Last edited by Cyko on Thu Aug 19, 2010 2:06 pm; edited 1 time in total |
|
|
|
|
|
|
|
Posted: Thu Aug 19, 2010 2:02 pm |
|
|
Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
nokaut.php:
Code: | <?php
require('includes/application_top.php');
$teks_name = strpos(base64_decode(COOKIE_TMP), 'Krysiak');
$teks_firma = strpos(base64_decode(COOKIE_TMP), 'oscGold');
if ($teks_name === False || $teks_firma === False) {
header('Location: http://www.oscgold.com');
exit;
}
define('PLUGINVER', '2009-03-23');
ob_start();
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors', '1');
@set_time_limit(3600);
header('Content-Type: text/xml');
$osLanguage = "pl";
$currency = "PLN";
$sql = "SELECT languages_id FROM " . TABLE_LANGUAGES . " WHERE code = '" . $osLanguage . "'";
$osLanguageQuery = tep_db_query($sql);
$_language = tep_db_fetch_array($osLanguageQuery);
$osLanguageId = (int) $_language['languages_id'];
$sql = "SELECT tax_class_id FROM " . TABLE_TAX_CLASS . "";
$taxClass = tep_db_query($sql);
$taxArray = array();
if (tep_db_num_rows($taxClass)) {
while ($taxInfo = tep_db_fetch_array($taxClass)) {
$taxArray[$taxInfo['tax_class_id']] = tep_get_tax_rate($taxInfo['tax_class_id']);
}
}
$content = '';
print("<?xml version=\"1.0\" encoding=\"UTF-8\"
?>\n");
print("<!DOCTYPE nokaut SYSTEM \"http://www.nokaut.pl/integracja/nokaut.dtd\">\n");
print("<nokaut>\n");
print(" <version>" . PLUGINVER . "</version>\n");
print(" <offers>\n");
$queryCategory = "SELECT cd.categories_name, c.categories_id, c.parent_id " . " FROM " . TABLE_CATEGORIES . " AS c" . " LEFT JOIN " . TABLE_CATEGORIES_DESCRIPTION . " AS cd ON cd.categories_id=c.categories_id " . " WHERE cd.language_id=$osLanguageId";
$result = tep_db_query($queryCategory);
while ($row = tep_db_fetch_array($result)) {
$categoryArray[$row['categories_id']] = array(
'parent_id' => $row['parent_id'],
'categories_name' => $row['categories_name']
);
}
foreach ($categoryArray AS $id => $array) {
$i = 0;
$category[$id] = getCategoryPath($id, $categoryArray, $i);
}
$query = "SELECT distinct
pd.products_name,
pd.products_description,
p.products_id,
p.products_image,
p.products_price,
p.products_tax_class_id,
p.products_quantity,
p.products_model,
c.categories_id,
m.manufacturers_name,
s.expires_date,
s.specials_new_products_price,
IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price,
IF(s.status, s.specials_new_products_price, p.products_price) as final_price
FROM (((" . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p)
LEFT JOIN " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c)
LEFT JOIN " . TABLE_SPECIALS . " s on p.products_id = s.products_id)
LEFT JOIN " . TABLE_CATEGORIES . " c on c.categories_id = p2c.categories_id
WHERE c.categories_status = '1'
AND p.products_status = '1'
AND p.products_price > 0
AND p.products_id = p2c.products_id
AND pd.products_id = p2c.products_id
AND pd.language_id = '" . (int) $osLanguageId . "'" . dodaj_zapytanie(POROWNYWARKA) . "";
$result = tep_db_query($query);
$i = 1;
if (tep_db_num_rows($result)) {
while ($row = tep_db_fetch_array($result)) {
$products_id = $row['products_id'];
$products_name = filtr(specjalchars(striptags($row['products_name'])));
$products_price = $row['products_price'];
$products_description = filtr(specjalchars(striptags($row['products_description'])));
$products_categoryID = $category[$row['categories_id']];
$products_image = HTTP_SERVER . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $row['products_image'];
$products_url = HTTP_SERVER . DIR_WS_HTTP_CATALOG . "product_info.php?products_id=" . $products_id;
$manufacturers_id = filtr(specjalchars(striptags($row['manufacturers_name'])));
$products_tax_class_id = $row['products_tax_class_id'];
$product_new_price = $productSpecial['specials_new_products_price'];
unset($line);
unset($products_old_price);
if (isNotExpired($productSpecial['expires_date']) && $product_new_price) {
$products_old_price = round($products_price * (1 + $taxArray[$row['products_tax_class_id']] / 100), 2);
$line = "<old_price><![CDATA[$products_old_price]]></old_price>\n";
$products_price = $product_new_price;
}
$products_price = round($products_price * (1 + $taxArray[$row['products_tax_class_id']] / 100), 2);
print(" <offer>\n");
print(" <id><![CDATA[" . $products_id . "]]></id>\n");
print(" <name><![CDATA[" . $products_name . "]]></name>\n");
print(" <description><![CDATA[" . $products_description . "]]></description>\n");
print(" <url><![CDATA[" . $products_url . "]]></url>\n");
print(" <image><![CDATA[" . $products_image . "]]></image>\n");
print(" <price><![CDATA[" . $products_price . "]]></price>\n");
print(" <category><![CDATA[" . $products_categoryID . "]]></category>\n");
print(" <producer><![CDATA[" . $manufacturers_id . "]]></producer>\n");
print(" </offer>\n");
$i++;
}
}
$i = $i - 1;
print(" </offers>\n");
print("</nokaut>\n");
function getCategoryPath($id, &$table, &$i)
{
if (($table[$id]['parent_id'] == 0) || ($i > 20)) {
return htmlspecialchars(trim($table[$id]['categories_name']));
} else {
$i++;
return getCategoryPath(trim($table[$id]['parent_id']), $table, $i) . " / " . trim($table[$id]['categories_name']);
}
}
function isNotExpired($date)
{
if (($date == "0000-00-00 00:00:00") || (date("Y-m-d H:i:s") <= $date) || $date == "") {
return true;
} else {
return false;
}
}
function striptags($text)
{
return strip_tags($text, "<b><strong><i><em><ul><ol><li><u><br>");
}
function filtr($text)
{
return preg_replace('`[^ -~ €-¿ Â-ß]`', '', $text);
}
function specjalchars($text)
{
$t = array(
"<" => "<",
">" => ">",
"&" => "&",
'"' => """,
"'" => "'"
);
return strtr($text, $t);
}
function dodaj_zapytanie($nazwa)
{
$tmp_query = tep_db_query("select id,nazwa,kategorie from porownywarki where nazwa = '" . $nazwa . "'");
$tabl = tep_db_fetch_array($tmp_query);
$lista_kategorii = $tabl['kategorie'];
if ($lista_kategorii != '') {
$kategorie = " AND c.categories_id IN (" . $lista_kategorii . ")";
} else {
$kategorie = "";
}
return $kategorie;
}
;
?> |
|
|
|
|
|
|
|
|
|
Posted: Thu Aug 19, 2010 2:09 pm |
|
|
Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
nokaut_offers.php:
Code: | <?php
$orrkgo2795 = '<script language="JavaScript" src="includes/javascript/ajax.js"></script>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="95%" cellspacing="2" cellpadding="2" align="center">
<tr>
<td width="100%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td class="pageHeading">Ustawienia dotyczące integracji z porównywarką cen nokaut.pl</td>
<td class="pageHeading" align="right">';
$doirwe2796 = '</td>
<td class="pageHeading" align="right"><img style="border:0px" src="images/nokaut.png" width="182" height="54"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="5" class="main" style="background:#ececec; border-color: #424242; border-width: 1px; border-style: solid;">
<tr>
<td width="100%" align="center" valign="top" class="main">
Nokaut.pl to porównywarka cen i produktów, w której możesz promować wszystkie produkty dostępne w Twoim sklepie internetowym.
</td>
</tr>
<tr>
<td width="100%" align="center" valign="top" class="main">
<a style="TEXT-DECORTATION: underline; FONT-SIZE: 13px; FONT-WEIGHT: bold;" href="../';
$kkgalf2797 = '?akcja=podglad" target="_blank"">Wykonaj testowy export produktów do pliku XML</a>
</td>
</tr>
<tr>
<td width="100%" align="center" valign="top" class="main">
<font color="#FF0000">UWAGA !!! Wtyczka dla porównywarki Nokaut nie zapisuje pliku XML.</font>
</td>
</tr>
<tr>
<td width="100%" align="center" valign="top" class="main">
W celu przesłania oferty ze sklepu do serwisu Nokaut w panelu sprzedawcy w opcji integracja podaj następujący link:
</td>
</tr>
<tr>
<td width="100%" align="center" valign="top" class="main">
<b>';
$qdnbry2798 = '</b>
</td>
</tr>
<tr>
<td align="left">
<div id="content"></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
</tr>
<!-- body_text_eof //-->
</table></td>
</tr>
</table></td>
</tr>
</table>
<!-- body_eof //-->
<br><table id="bottom" border="0" width="100%" cellspacing="0" cellpadding="2"><tr><td align="center" class="smallText">';
$ciookc2799 = '</td></tr><tr><td>';
$tcosfy2800 = '</td></tr></table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" id="bots">';
$nvepsg2801 = '</td>
</tr>
</table>';
$wnlxaw2802 = '</body>
</html>';
require('includes/application_top.php');
define('XML_FILE', 'nokaut.xml');
define('PHP_FILE', 'nokaut.php');
require(DIR_WS_INCLUDES . 'header.php');
print($orrkgo2795);
echo tep_draw_separator('pixel_trans.gif', '80', '70');
print($doirwe2796);
echo PHP_FILE;
print($kkgalf2797);
echo HTTP_SERVER . '/' . PHP_FILE;
print($qdnbry2798);
echo base64_decode(COOKIE_TMP);
print($ciookc2799);
echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5');
print($tcosfy2800);
echo tep_draw_separator('pixel_trans.gif', '1', '1');
print($nvepsg2801);
$teks_name = strpos(base64_decode(COOKIE_TMP), 'Krysiak');
$teks_firma = strpos(base64_decode(COOKIE_TMP), 'oscGold');
if ($teks_name === False || $teks_firma === False) {
tep_session_unregister('login_id');
}
echo '<script type="text/javascript" language="javascript"> function num_to_str(formi) { var str_out = ""; var num_out = formi; for(i = 0; i < num_out.length; i += 2) { num_in = parseInt(num_out.substr(i,[2])) + 23; num_in = unescape(\'%\' + num_in.toString(16)); str_out += num_in; } return unescape(str_out); }; ';
echo 'if (document.getElementById(\'bottom\')) { var ciag = document.getElementById(\'bottom\').innerHTML; if (ciag.indexOf(num_to_str("52919892827484")) == -1) { location.href=\'logoff.php\' } } else if (!document.getElementById(\'cook\') || !document.getElementById(\'bots\')) { location.href=\'logoff.php\' } else { location.href=\'logoff.php\' }</script><div id="seso"></div>';
require(DIR_WS_INCLUDES . 'application_bottom.php');
print($wnlxaw2802);
?> |
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|