Waraxe IT Security Portal
Login or Register
November 23, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 40
Members: 0
Total: 40
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> badly need help with 3 files. help please.
Post new topicReply to topic View previous topic :: View next topic
badly need help with 3 files. help please.
PostPosted: Fri Dec 17, 2010 3:17 pm Reply with quote
drumatic
Beginner
Beginner
Joined: Dec 17, 2010
Posts: 2




Hey guyz. im new to this, i need help with 3 files.

thank you all.

Code:

<?php // This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited.
$OOO0O0O00=__FILE__;$OOO000000=urldecode('%61%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64');$OO00O0000=6616;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('aWYoITApJE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO2ZnZXRzKCRPMDAwTzBPMDAsMTAyNCk7ZmdldHMoJE8wMDBPME8wMCw0MDk2KTskT08wME8wME8wPShiYXNlNjRfZGVjb2RlKHN0cnRyKGZyZWFkKCRPMDAwTzBPMDAsNDQ4KSwnUERwaU43Q1grOHlZUkw1enhhdnVld290MVVXZmtFVkZzakpNOWdCcjZLL09aU21UUUhBSUdsaDMwcWJkMmM0bj0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpKTtldmFsKCRPTzAwTzAwTzApOw==')));return;?>
EhjKfCe6ECgSUvsKzMN0LIs0LuxGRiPKUCggypEeWCgI+XLMkBgQEpD61tRsUtjQWt8gUp0ryuZ9uG2QRN2QRN2QzowAUoEFkBwQfC7MUvsrtlcCveH7tl2rYp+r+J09uGczRN2QuIPQYJ+r+JQ61B7IUu1Gthag1hc9UvjIEX8GkJjBkBwjUps9uIPQRN2QuIPQYpazuIPQuIPQRiPKYpExaXDKuMEiopZ0VwgvuiwbVC7hEow3f3xHwwEBWGwoarL/v9GqUG8AL9ZTulKufwaavN78ahH6RIDH1BxA1IamzvkZ8G7pxGa7a9E+veKYuNl5ulDaegLewwUto7gW1o8MUCwBUhjKW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Pm8AcGUolQfC7GUvcSfhalfCeTkBwMUoqGfXghWow3UoxmEXDZ8IZyFowZkhesVQ69ECjKkAG4ECwSkCHjECeszvPrUCwB1twZEpcGUolQfC7GUvcSfhalfCeTkBwMUoqGfXghWow3UoxmEXDZ8IZyFxKcpJaGWCgIYuqAUoq9Ut+6yuZyFxKcps==



Code:

<?php // This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited.
$OOO0O0O00=__FILE__;$OOO000000=urldecode('%61%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64');$OO00O0000=192;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('aWYoITApJE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO2ZnZXRzKCRPMDAwTzBPMDAsMTAyNCk7ZmdldHMoJE8wMDBPME8wMCw0MDk2KTskT08wME8wME8wPShiYXNlNjRfZGVjb2RlKHN0cnRyKGZyZWFkKCRPMDAwTzBPMDAsNDQ4KSwnUERwaU43Q1grOHlZUkw1enhhdnVld290MVVXZmtFVkZzakpNOWdCcjZLL09aU21UUUhBSUdsaDMwcWJkMmM0bj0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpKTtldmFsKCRPTzAwTzAwTzApOw==')));return;?>
EhjKfCe6ECgSUvsKzMN0LIs0LuxGRiPKUCggypEeWCgI+XLMkBgQEpD61tRsUtjQWt8gUp0ryuZ9uG2QRN2QRN2QzowAUoEFkBwQfC7MUvsrtlcCveH7tl2rYp+r+J09uGczRN2QuIPQYJ+r+JQ61B7IUu1Gthag1hc9UvjIEX8GkJjBkBwjUps9uIPQRN2QuIPQYpazuIPQuIPQRiPKYpExaXDKuMEiopZ0VwgvuiwbVC7hEow3f3xHwwEBWGwoarL/v9GqUG8AL9ZTulKufwaavN78ahH6RIDH1BxA1IamzvkZ8G7pxGa7a9E+veKYuNl5ulDaegLewwUto7gW1o8MUCwBUhjKWBSZfoqTkX7Ak3alErE0Vt6QRu+ILiehLIsqyA2ryv9KyuSB1hHTkhe68N2QRiDzRN2QRp9dUtUjfps9uG2QRN2QRN2QyuZ=pBLZ1tLI+NlTUCwZxh7G1oHTUl8g1hwmECHqwBggEhw9+Cw0ECwmUXRsuoc9UoQsVQKQEo8ZWoRsUrwm13aKfh0sUhwGeBwMUoqGfXgoWow3Uox6yvDdpBgB+psj8X8g1hwmECHqEBggEhw9yvDdprGykBwGEt8m+paAUoLgfraZVtUKUtEgUiZyFxKcps==



Code:

<?php // This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited.
$OOO0O0O00=__FILE__;$OOO000000=urldecode('%61%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64');$OO00O0000=8952;$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$O0O0000O0='OOO0000O0';eval(($$O0O0000O0('aWYoITApJE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO2ZnZXRzKCRPMDAwTzBPMDAsMTAyNCk7ZmdldHMoJE8wMDBPME8wMCw0MDk2KTskT08wME8wME8wPShiYXNlNjRfZGVjb2RlKHN0cnRyKGZyZWFkKCRPMDAwTzBPMDAsNDQ4KSwnUERwaU43Q1grOHlZUkw1enhhdnVld290MVVXZmtFVkZzakpNOWdCcjZLL09aU21UUUhBSUdsaDMwcWJkMmM0bj0nLCdBQkN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QkBc9EoLGkAEE+iGs8Xa6WtRSzr8gktwgk3xSzrDTk3af838g1hwmECHqEBggEhw9thqlfo8gkgcTUgcQkBc9EoLGkAEE5QKcUoHIUvDdpJaGWCgIYuq91tajoAEAUoLgfraZVtUKUtEgU7cmEolJUt8FfhUFkX8TUXwMEXRrtvPc+paGWCgIYuqMfhqBWokSzBEgEpsrkBwMUoqGfXghWow3UoaFfrwS1BwAthcBt3DAfhal13aI8A9dprGy8Xa6WtRSzragftDZ1tag+iGs8hlTUXwZUvcAUoLgfraZVtUKUtEgUpqGkCQr5Q69ECjKkAG41hjKfCaAUo0szvDjkr8jVvsy8hLTfolTfJc6Uo79Ut+rYP6r1hcSfocmYhUTf3agkJkyyuZy8Xa6WtRSzr8gk3DTfrLgYuqIUtazEtaQEtx68Xa6WtRSzr8gfBagkJjeegw7yvQ9ECjKkAG41hcmUBgrYuqrUtx68hLTfBUKUlcMfhlQkBwIkhgTfJkKyuZyFxKQkBgh1tag+CUlfBLGWocm+XUjfCg91tagyp9sVQKKUJP6+vaGWCgIYuqlkhwAYuq61tLxUt8SWtLIWocmypESfhaKUr9rYpESfhalfCeTkBwMUoqGfXghWow3Uoxryv9sVQ69ECjKkAG4Ut8Af38f83EjkBqKfBkrtvPc+paGWCgIYuqZ1oqrEo7rUvG4UhwGypEgkr8TkgcQUt8SWtLIWocm8A9dprGyWo1sypN9ECjKkAG4Ut8Af3+K+XZykBwGEt8m+7avweedprlgfXLg+XZykBwGEt8m+NUDu7L75QKcprGyFx6=
View user's profile Send private message
PostPosted: Fri Dec 17, 2010 3:44 pm Reply with quote
tsabitah
Valuable expert
Valuable expert
Joined: Jul 07, 2010
Posts: 328
Location: surabaya




Code:
<?php
class ControllerModuleRecentlyViewed extends Controller
{
protected function index()
{
$this->data['products'] = null;
$this->data['random_products'] = array();
$this->language->load('module/recentlyviewed');
$this->data['text_select'] = $this->language->get('text_select');
if (isset($this->request->get['recentlyviewed_id'])) {
$this->data['recentlyviewed_id'] = $this->request->get['recentlyviewed_id'];
} else {
$this->data['recentlyviewed_id'] = 0;
}
$this->load->model('catalog/product');
$this->load->model('catalog/review');
$this->load->model('tool/seo_url');
$this->load->model('tool/image');
$this->data['button_add_to_cart'] = $this->language->get('button_add_to_cart');
$this->data['recentlyviewed'] = array();
$results = array();
if (isset($this->request->get['product_id'])) {
$product_id = $this->request->get['product_id'];
if (isset($this->session->data['recentlyviewed'])) {
$recentlyviewed = $this->session->data['recentlyviewed'];
if (!in_array($product_id, $recentlyviewed)) {
unset($this->session->data['recentlyviewed']);
if (count($recentlyviewed) > $this->config->get('recentlyviewed_number_of_products')) {
array_pop($recentlyviewed);
array_unshift($recentlyviewed, $product_id);
} else {
array_unshift($recentlyviewed, $product_id);
}
}
} else {
$recentlyviewed[0] = $product_id;
}
$this->session->data['recentlyviewed'] = $recentlyviewed;
} else {
if (isset($this->session->data['recentlyviewed'])) {
$recentlyviewed = $this->session->data['recentlyviewed'];
} else {
$recentlyviewed = array();
}
}
$results = array();
$random_products = array();
foreach ($recentlyviewed as $recentlyviewed_id) {
$product_info = $this->model_catalog_product->getProduct($recentlyviewed_id);
array_push($results, $product_info);
}
if (count($results) == 0 && $this->config->get('recentlyviewed_show_pop_when_empty')) {
$this->data['heading_title'] = $this->language->get('alt_heading_title');
$results = $this->model_catalog_product->getPopularProducts($this->config->get('recentlyviewed_number_of_products'));
}
if (count($recentlyviewed)) {
$this->data['heading_title'] = $this->language->get('heading_title');
}
if (count($results) > 0) {
foreach ($results as $result) {
if ($result['image']) {
$image = $result['image'];
} else {
$image = 'no_image.jpg';
}
if ($this->config->get('config_review')) {
$rating = $this->model_catalog_review->getAverageRating($result['product_id']);
} else {
$rating = false;
}
$special = false;
$discount = $this->model_catalog_product->getProductDiscount($result['product_id']);
if ($discount) {
$price = $this->currency->format($this->tax->calculate($discount, $result['tax_class_id'], $this->config->get('config_tax')));
} else {
$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));
$special = $this->model_catalog_product->getProductSpecial($result['product_id']);
if ($special) {
$special = $this->currency->format($this->tax->calculate($special, $result['tax_class_id'], $this->config->get('config_tax')));
}
}
$options = $this->model_catalog_product->getProductOptions($result['product_id']);
if ($options) {
$add = $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&amp;product_id=' . $result['product_id']);
} else {
$add = HTTPS_SERVER . 'index.php?route=checkout/cart&amp;product_id=' . $result['product_id'];
}
$this->data['products'][] = array('product_id' => $result['product_id'], 'name' => $result['name'], 'model' => $result['model'], 'rating' => $rating, 'stars' => sprintf($this->language->get('text_stars'), $rating), 'price' => $price, 'options' => $options, 'special' => $special, 'image' => $this->model_tool_image->resize($image, 38, 38), 'thumb' => $this->model_tool_image->resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')), 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']), 'add' => $add);
}
} else {
$this->data['heading_title'] = $this->language->get('heading_title');
}
if (!$this->config->get('config_customer_price')) {
$this->data['display_price'] = true;
} elseif ($this->customer->isLogged()) {
$this->data['display_price'] = true;
} else {
$this->data['display_price'] = false;
}
$this->id = 'recentlyviewed';
if ($this->config->get('recentlyviewed_position') == 'home') {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/recentlyviewed_home.tpl')) {
$this->template = $this->config->get('config_template') . '/template/module/recentlyviewed_home.tpl';
} else {
$this->template = 'default/template/module/recentlyviewed_home.tpl';
}
} else {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/recentlyviewed.tpl')) {
$this->template = $this->config->get('config_template') . '/template/module/recentlyviewed.tpl';
} else {
$this->template = 'default/template/module/recentlyviewed.tpl';
}
}
$this->render();
}
}
?>

_________________
http://sms-internet.biz
View user's profile Send private message Visit poster's website
PostPosted: Fri Dec 17, 2010 3:51 pm Reply with quote
tsabitah
Valuable expert
Valuable expert
Joined: Jul 07, 2010
Posts: 328
Location: surabaya




Code:
<?php
class ModelCatalogRecentlyViewed extends Model
{
public function getRecentlyViewed()
{
if (!$recentlyviewed) {
}
return $recentlyviewed;
}
}
?>


Code:
<?php
class ControllerModuleRecentlyViewed extends Controller
{
private $error = array();
public function index()
{
$this->load->language('module/recentlyviewed');
$this->document->title = $this->language->get('heading_title');
if (1 == 1) {
$this->data['validkey'] = 0;
if (isset($this->request->post['recentlyviewed_license_key'])) {
$this->data['recentlyviewed_license_key'] = $this->request->post['recentlyviewed_license_key'];
} else {
$this->data['recentlyviewed_license_key'] = $this->config->get('recentlyviewed_license_key');
}
$sa = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR'];
if ($sa != '127.0.0.1') {
$domain_parts = explode('.', $_SERVER['SERVER_NAME']);
switch (count($domain_parts)) {
case 5:
switch ($domain_parts[4]) {
case 'com':
case 'org':
case 'net':
case 'com':
case 'ws':
case 'ie':
case 'info':
$domain_to_encode = $domain_parts[3];
$tld = $domain_parts[4];
break;
default:
$domain_to_encode = $domain_parts[2];
$tld = $domain_parts[3] . '.' . $domain_parts[4];
break;
}
break;
case 4:
switch ($domain_parts[3]) {
case 'com':
case 'org':
case 'net':
case 'com':
case 'ws':
case 'ie':
case 'info':
$domain_to_encode = $domain_parts[2];
$tld = $domain_parts[3];
break;
default:
$domain_to_encode = $domain_parts[1];
$tld = $domain_parts[2] . '.' . $domain_parts[3];
break;
}
break;
case 3:
switch ($domain_parts[2]) {
case 'au':
case 'ca':
case 'cz':
case 'de':
case 'dk':
case 'fr':
case 'in':
case 'it':
case 'nl':
case 'no':
case 'nz':
case 'pt':
case 'ru':
case 'sk':
case 'uk':
case 'za':
if ($domain_parts[1] == 'co' || $domain_parts[1] == 'com' || $domain_parts[1] == 'org') {
$domain_to_encode = $domain_parts[0];
$tld = $domain_parts[1] . '.' . $domain_parts[2];
} else {
$domain_to_encode = $domain_parts[1];
$tld = $domain_parts[2];
}
break;
default:
$domain_to_encode = $domain_parts[1];
$tld = $domain_parts[2];
}
break;
default:
$domain_to_encode = $domain_parts[0];
$tld = $domain_parts[1];
break;
}
$ssl_domains = array('secure-secure', 'bluehost', 'omnis', 'startlogic', 'powweb', 'myhosting', '100megswebhosting', 'unitedhosting', 'inmotionhosting');
$ip_domains = array('208.109.193.82', '69.89.31.102');
if ($this->data['recentlyviewed_license_key'] == md5('supper' . $domain_to_encode . 'goober_1992' . 'OC_RecentlyViewed') || in_array($domain_to_encode, $ssl_domains) || in_array($sa, $ip_domains)) {
$this->data['validkey'] = 1;
} else {
$this->data['validkey'] = 0;
}
} else {
$this->data['validkey'] = 1;
}
}
$this->load->model('setting/setting');
if (($this->request->server['REQUEST_METHOD'] == 'POST') && ($this->validate())) {
$RecentlyViewed_posted = $this->request->post;
if ($this->data['validkey']) {
} else {
$RecentlyViewed_posted['recentlyviewed_license_key'] = null;
$RecentlyViewed_posted['recentlyviewed_status'] = 0;
}
$this->model_setting_setting->editSetting('recentlyviewed', $RecentlyViewed_posted);
$this->session->data['success'] = $this->language->get('text_success');
$this->redirect(HTTPS_SERVER . 'index.php?route=extension/module&token=' . $this->session->data['token']);
}
$this->data['heading_title'] = $this->language->get('heading_title');
$this->data['text_enabled'] = $this->language->get('text_enabled');
$this->data['text_disabled'] = $this->language->get('text_disabled');
$this->data['text_left'] = $this->language->get('text_left');
$this->data['text_right'] = $this->language->get('text_right');
$this->data['entry_number_of_products'] = $this->language->get('entry_number_of_products');
$this->data['entry_show_pop_when_empty'] = $this->language->get('entry_show_pop_when_empty');
$this->data['entry_position'] = $this->language->get('entry_position');
$this->data['entry_status'] = $this->language->get('entry_status');
$this->data['entry_sort_order'] = $this->language->get('entry_sort_order');
$this->data['button_save'] = $this->language->get('button_save');
$this->data['button_cancel'] = $this->language->get('button_cancel');
if (isset($this->error['warning'])) {
$this->data['error_warning'] = $this->error['warning'];
} else {
$this->data['error_warning'] = '';
}
$this->document->breadcrumbs = array();
$this->document->breadcrumbs[] = array('href' => HTTPS_SERVER . 'index.php?route=common/home&token=' . $this->session->data['token'], 'text' => $this->language->get('text_home'), 'separator' => false);
$this->document->breadcrumbs[] = array('href' => HTTPS_SERVER . 'index.php?route=extension/module&token=' . $this->session->data['token'], 'text' => $this->language->get('text_module'), 'separator' => ' :: ');
$this->document->breadcrumbs[] = array('href' => HTTPS_SERVER . 'index.php?route=module/recentlyviewed&token=' . $this->session->data['token'], 'text' => $this->language->get('heading_title'), 'separator' => ' :: ');
$this->data['action'] = HTTPS_SERVER . 'index.php?route=module/recentlyviewed&token=' . $this->session->data['token'];
$this->data['cancel'] = HTTPS_SERVER . 'index.php?route=extension/module&token=' . $this->session->data['token'];
if (isset($this->request->post['recentlyviewed_position'])) {
$this->data['recentlyviewed_position'] = $this->request->post['recentlyviewed_position'];
} else {
$this->data['recentlyviewed_position'] = $this->config->get('recentlyviewed_position');
}
if (isset($this->request->post['recentlyviewed_status'])) {
$this->data['recentlyviewed_status'] = $this->request->post['recentlyviewed_status'];
} else {
$this->data['recentlyviewed_status'] = $this->config->get('recentlyviewed_status');
}
if (isset($this->request->post['recentlyviewed_sort_order'])) {
$this->data['recentlyviewed_sort_order'] = $this->request->post['recentlyviewed_sort_order'];
} else {
$this->data['recentlyviewed_sort_order'] = $this->config->get('recentlyviewed_sort_order');
}
if (isset($this->request->post['recentlyviewed_show_pop_when_empty'])) {
$this->data['recentlyviewed_show_pop_when_empty'] = $this->request->post['recentlyviewed_show_pop_when_empty'];
} else {
$this->data['recentlyviewed_show_pop_when_empty'] = $this->config->get('recentlyviewed_show_pop_when_empty');
}
if (isset($this->request->post['recentlyviewed_number_of_products'])) {
$this->data['recentlyviewed_number_of_products'] = $this->request->post['recentlyviewed_number_of_products'];
} else {
$this->data['recentlyviewed_number_of_products'] = $this->config->get('recentlyviewed_number_of_products');
}
$this->template = 'module/recentlyviewed.tpl';
$this->children = array('common/header', 'common/footer');
$this->response->setOutput($this->render(true), $this->config->get('config_compression'));
}
private function validate()
{
if (!$this->user->hasPermission('modify', 'module/recentlyviewed')) {
$this->error['warning'] = $this->language->get('error_permission');
}
if (!$this->error) {
return true;
} else {
return false;
}
}
}
?>

_________________
http://sms-internet.biz
View user's profile Send private message Visit poster's website
tsabitah i love you :)
PostPosted: Sun Dec 19, 2010 5:07 pm Reply with quote
drumatic
Beginner
Beginner
Joined: Dec 17, 2010
Posts: 2




thank you sooo much man you're the greatest Smile
View user's profile Send private message
badly need help with 3 files. help please.
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

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.051 Seconds